Lago has been able to follow the pace of our releases and has allowed us to focus on what we do best.

Billing & Invoicing
Lago calculates charges, generates invoices and connects with your payment provider.
Wrap your OpenAI, Anthropic or Bedrock client and every model call becomes a usage event in Lago.
Fund agents with prepaid wallets and get alerted as balances run low, before spend gets out of hand.
Let agents pay per request over HTTP 402, with each payment tied to the usage it covers.
Connect agents to Lago through the MCP server, the CLI or the API. Each one reads and writes the same billing data.
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"
}
]
}
}Invoices go out with the right taxes and get paid through your provider.
Every payment syncs to your accounting and CRM.
Pricing and packaging.Model subscriptions, usage, seats, credits or hybrid plans, and change prices and packages without rebuilding billing.
Billing is mission-critical. Lago is engineered for the realities of high-volume enterprises.



Billing is mission-critical. Lago is engineered for the realities of high-volume enterprises.
See how ambitious teams build and scale their billing with Lago.
Lago has been able to follow the pace of our releases and has allowed us to focus on what we do best.

How billing systems are built, compared and chosen.
What a billing system does, and where teams outgrow the one they have.
The main options for usage-based and hybrid billing, side by side.
Subscription, usage-based, hybrid and everything between.
What it takes to change pricing without an engineering project.
Lago calculates charges from a customer's plan and billable metrics, then automatically creates and sends an invoice once the billing period closes. Invoices apply the right taxes, include usage and subscription line items together, and can go out as PDF or as XML for e-invoicing compliance, without manual assembly.