Engineering
Lago Cloud walkthrough: from usage to credits and an invoice
Anh-Tho Chuong•Nov 14•3 min read
Lago is built for platforms that enable others to build, sell, and scale across AI, finance, e-commerce, cloud, and ERP ecosystems.

AI PLATFORMS
AI apps have variable costs that don't fit flat subscriptions. When builders can't monetize to match their costs, they churn.
Supports subscriptions, usage-based, credits, hybrid pricing and everything else.
No-code interface for builders, APIs for engineers, MCP for LLMs
Security and compliance for your users and your platform
Self-host and customize Lago.

Everything you need to embed and customize billing features into your platform, without rebuilding it.

Built for embedded partners. Launch faster with a billing engine designed for OEM use cases. Get platform-grade APIs, tenant isolation, and the flexibility to build exactly what your customers need.

Make your monetization features and user experience unique. Embed our platform, customize it to your specific needs, modify and extend Lago's code if needed, and launch a tailored product faster than ever.

Keep full control. Lago is open-source, offered on-prem, Soc 2 type 2. There's no black box, you get direct access to the action, while we stay behind the scenes to support when needed.

Full support for Embedded partners. Get dedicated partner support, custom integrations, and the flexibility to build exactly what your customers need on top of Lago's infrastructure.
Yes. Lago’s ongoing wallet balance typically refreshes in under a second after a new event is included in usage. It reflects remaining prepaid credits after current usage, including taxes.
Use this live balance in customer dashboards and configure balance alerts and automatic top-ups.
Yes. Customize subscription fees, usage rates, minimum commitments and billing thresholds for each customer’s subscription while keeping a shared plan structure.
Lago applies those negotiated terms when calculating charges and generating invoices.
No. Lago Cloud is a fully managed billing platform. Lago handles hosting, scaling, upgrades and monitoring. Your team connects customer and usage data, configures pricing and connects your payment and finance tools.
Self-hosting is also available if you prefer to operate Lago in your own environment.
Yes. Lago Embedded provides the metering, pricing and invoicing engine behind a billing experience you build into your platform. Your customers manage their offers and bill their end users through your product.
Define your customer onboarding, pricing models, billing interface and finance connections, then integrate Lago’s APIs and validate the resulting invoices. The Lago team can help scope implementation and agree a launch plan.
Yes. Build your interface and workflows around Lago’s APIs so billing fits your product. Your team controls the customer experience and can develop the platform-specific features that distinguish your offer.
Lago Embedded is for platforms that want to offer billing to their own customers, including AI application platforms, commerce, cloud, financial infrastructure and ERP products.
Use Lago’s metering, pricing and invoicing capabilities as the foundation while your team builds the platform experience. The open-source engine and documented APIs give your developers visibility into the billing logic they integrate.
Lago manages your customers’ pricing, usage, plans and invoices. Your payment infrastructure handles collecting and moving funds. For a Stripe Connect platform, design the account and payment flow with the Lago team as part of the integration.
Lago Cloud has completed a SOC 2 Type II audit. Request the report and review Lago’s trust center with your security team to assess the hosted service, access controls and supporting documentation against your requirements.
Yes. Configure Lago’s ongoing balance alerts to trigger a restriction in your application when credits reach your chosen threshold. Your application enforces access using those alerts and its own request checks.
You can also set earlier thresholds to warn customers and prompt them to top up before their credits run out.
Yes. Lago automatically generates invoices from your subscription terms and usage charges and provides downloadable PDFs. You can also use the invoicing provider of your choice, using Lago’s invoice data and webhooks.
Deploy Lago seamlessly on your own infrastructure to keep full control.
Create a Lago plan from plan.json using the CLI:
lago plans create --input @plan.json --output jsonExample Lago JSON response for a yearly Basic plan with usage-based API charges:
{
"plan": {
"name": "Basic",
"code": "basic",
"interval": "yearly",
"amount_cents": 90000,
"amount_currency": "USD",
"charges": [
{
"billable_metric_code": "api_calls",
"charge_model": "standard"
}
]
}
}Your data is protected with enterprise-grade rigor.
Deploy Lago on-prem, in a VPC or elsewhere.
Role-based access control to set user roles and permissions.