Lago is an API-first billing platform that meters usage events, applies pricing and entitlements, generates invoices, and collects payments. It is available as a hosted cloud service or can be self-hosted.
Overview
Lago sits between product usage and revenue. Applications send events, which become billable metrics. Lago then applies pricing and entitlements, produces invoices, and collects payments. It is aimed at AI products, so it can meter input, output and cached tokens, compute such as GPU and CPU, API calls, seats, and custom events.
Pricing models include usage-based, recurring, prepaid, percentage, graduated, package, volume, minimum-commitment and hybrid charges. Customers can have subscriptions with allowances and overages, prepaid credit wallets with automatic top-ups, usage alerts, credit notes, taxes, multiple currencies and entities, and customer-specific overrides for negotiated contracts. Event ingestion is idempotent by transaction id, and a batch with an invalid event is rejected whole.
Lago is headless. You use it through a REST API, SDKs, webhooks, a CLI and an MCP server, and it also has a web UI for product and finance teams. A read-only Finance Assistant answers questions about billing and revenue in plain language, and a Billing Assistant is offered as a Premium option. Payment processing is kept separate from metering, with connections to Stripe, Adyen and GoCardless. Other integrations cover CRM, accounting, tax, data warehouses and cloud marketplaces.
You can use it as Lago Direct to bill your own customers, or as Lago Embedded to offer white-label billing inside your platform. Lago Cloud is the managed option in US or EU regions. You can also self-host it with Docker Compose, or with Helm charts for larger deployments with dedicated workers. It exposes Prometheus metrics. Self-hosted instances send basic product analytics by default, and you can opt out.
Key features
- Real-time event metering with idempotent ingestion
- Usage, graduated, package, volume and hybrid pricing
- Prepaid credit wallets with automatic top-ups
- Subscriptions, invoices, credit notes and taxes
- Entitlements, allowances and usage alerts
- Payment provider orchestration and dunning
- MRR and revenue analytics
- REST API, SDKs, CLI, webhooks and MCP server
Use cases
- Metering and billing AI token usage
- Usage-based billing for APIs and compute
- Managing subscriptions with overages and minimum commitments
- Prepaid credit and top-up billing
- Offering white-label billing inside a platform
Does the same job as
Lago doesn't name these products itself, but its own description shows it does the same job.