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

AI billing software
AI companies like CoreWeave, Groq and Mistral AI use Lago to meter tokens, GPU time and agent actions in real time. Bill them pay-as-you-go, with prepaid credits, subscriptions, hybrid plans or enterprise contracts, all in one usage-based billing platform.
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"
}
]
}
}Engineering gets granular usage data.
Finance gets a clear path from consumption to revenue.
Every token type, accounted for.
Illustrative stacked bar chart of 18 days of AI usage, totaling 1,185,000 tokens. Input, output, and cached tokens are measured separately. Daily usage grows from 24,000 to 135,000 tokens.
Any usage signal.Input, output and cached tokens, GPU time, requests and model variants, with no pre-aggregation.





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.

Every pricing lever AI companies use, in one engine.
Cap tokens, requests or seats per plan, override per customer, and enforce limits from a webhook.
Know when a customer's usage spikes or credits run low, and act before the bill does.
Lago Cloud, or the open-source engine in your VPC or an air-gapped environment.
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. Meter tokens, requests, compute time or your own product usage, then apply the prices you charge customers. Lago combines those charges with subscriptions, prepaid credits and negotiated contracts, and generates the resulting invoices.
Yes. Set your own rates by model and token type, or use the Agent SDK’s supported price mode to apply a markup to reference model prices. Manage the prices you charge customers separately from provider rates.
Yes. Send completed call minutes as usage and configure a subscription with an included allowance and an overage rate. For example, a $500 monthly plan with 10,000 included minutes and $0.04 per extra minute adds $80 of usage charges at 12,000 minutes, before credits and tax.
A Lago wallet tracks purchased and promotional billing credits that customers use to pay eligible invoices.
Configure which charges those credits cover, their expiration rules and automatic top-ups. The ongoing balance shows remaining credits after current usage, including taxes.
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. Create a new plan for the new offer and keep existing customers on their current plans. You choose which customers receive each offer and whether to migrate existing subscriptions.