Getlago

USAGE-BASED

Usage-based billing software, open source.

Send usage events, aggregate them into billable metrics, price them in plans and let Lago generate the invoices.

Trusted by the most innovative companies

Mistral AI
PayPal
Groq
Synthesia
Laravel
Swan
Epicor
1NCE
Cerebrium
Blacksmith
Lune
OQC
What usage-based billing software does

For a developer API, send usage events with stable transaction IDs and endpoint and region properties. Lago aggregates and prices each group, applies eligible credits, and creates invoice fees. Your connected payment provider collects payment.

What usage-based billing software does

Bill the way your business works

Lago supports every monetization model — pay-as-you-go, hybrid, prepaid, or enterprise thresholds. Combine usage with subscriptions, add-ons, or credits without building your own microservices.

Bill the way your business works

Integrate seamlessly with your existing stack

Lago connects to CRM, ERP and tax systems such as NetSuite, Salesforce, Stripe and Anrok. Sync pricing and usage data across your stack automatically, ensuring accurate invoices without manual reconciliations.

Integrate seamlessly with your existing stack

Keep enterprise-grade control

Lago is SOC2 Type II compliant. Open-source enables hosting any way you want (cloud, on-prem, VPC, air-gapped) to ensure full compliance.

Keep enterprise-grade control

Usage-based billing is no longer difficult

Everything you need to bill for usage.

Define billable metrics.

Define billable metrics. Meter any events to include it in plans, charge for it directly or use it for credit consumption.

Ingest usage.

Ingest usage. Lago's tests report about 10,000 events/sec for REST batch and 1–3M events/sec for Kafka/Redpanda with ClickHouse Cloud. Test your own workload.

Create plans.

Create plans. Create plans that include credits or bill for usage directly.

Bill the way you want.

Bill the way you want. Use a credit-based system or charge at the end of the period, depending on your products or customers.

Customize with overrides.

Customize with overrides. Enable contract-level overrides for enterprise customers incl. pricing, feature access and other terms.

Resources

Billing is mission-critical. Lago is engineered for the realities of high-volume enterprises.

Empower all teams with usage data

Engineers

Engineering

Build billing without the headaches.

Product

Product

Ship complex pricing and new packaging faster.

Finance

Finance

Billing for all motions, products and geographies.

Operations

Operations

One source of truth for all billing data.

Powering fast-growing AI scaleups.And global enterprises.

See how ambitious teams build and scale their billing with Lago.

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

— Timothée Lacroix, CTO, Mistral AI

Timothée Lacroix

Usage-based billing FAQ

Does Lago update prepaid credit balances in real time?

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.

See the event-to-wallet flow and wallet documentation.

Can Lago handle negotiated enterprise contracts?

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.

Explore customer-specific pricing.

Do I need to self-host Lago or manage billing infrastructure?

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.

Explore managed Lago Cloud.

Can Lago meter API calls, tokens, storage and time-based usage?

Yes. Lago supports count, count unique, latest, maximum, sum and weighted sum.

Use these to count API calls, total token consumption, measure peak storage, track active seats or calculate resource quantities weighted by the time they were used. Usage measurement documentation

Do I need to build my own usage aggregation pipeline before using Lago?

No. Send your usage events to Lago, and it handles the billing preparation: matching events to subscriptions and billable metrics, extracting the values to measure, applying configured filters and aggregating consumption for billing. Usage processing documentation

Can I keep my existing payment provider, ERP and financial ledger?

Yes. Lago calculates charges, generates invoices and tracks billing status. Your payment provider processes payments, while your ERP or financial ledger maintains your accounting records.

Connect these systems through Lago’s integrations or a custom API workflow.

Explore how Lago fits into your stack.

What does a Lago prepaid wallet manage?

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.

Explore prepaid wallets.

Can existing customers keep their prices when we launch a new offer?

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.

Explore plans and pricing.

How do minimum spending commitments work with prepaid credits?

A minimum commitment sets the agreed spend for a billing period. If spending before taxes and discounts falls below that amount, Lago adds a charge for the difference.

Prepaid credits fund eligible invoices. You can combine both to manage the customer’s spending commitment and the credits used to pay it.

Explore minimum commitments and prepaid credits.

Lago solves complex billing.