Getlago

Billing for AI products, from usage to invoice

On Lago Cloud, meter tokens and other usage, combine subscriptions and credits, and invoice customers without operating the billing service. Lago customers include CoreWeave, Mistral AI and PayPal.

Evaluate Lago for your product
Lago meters input, output, and cached tokens. This example shows 1.2 million tokens, a spend alert at $1,500, and $500 in prepaid credits applied to a $1,560 invoice, leaving $1,060 due. The Finance Assistant then turns a request for quarterly MRR into a revenue chart and report, before the sequence returns to token usage.

Trusted by the most innovative companies

Mistral AI
PayPal
Groq
Synthesia
Laravel
Swan
Epicor
1NCE
Cerebrium
Blacksmith
Lune
OQC

Meter every AI token.
Bill with confidence.

Engineering gets granular usage data.
Finance gets a clear path from consumption to revenue.

See AI metering in actionExplore usage metering

AI usage over time

Every token type, accounted for.

1.19Mtokens metered
Input tokens654.00K
Output tokens236.00K
Cached tokens295.00K

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.

Every token, captured.Meter input, output, and cached tokens separately. Attribute usage to each customer, so every event has a place on the bill.

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

Enterprise-grade security and privacy

SOC 2 Type II

SOC 2 Type II

Your data is protected with enterprise-grade rigor.

Self-host

Flexible Deployment

Deploy Lago on-prem, in a VPC or elsewhere.

Role Based Access Control

RBAC

Role-based access control to set user roles and permissions.

Lago self-hosted

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 json

Example 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"
      }
    ]
  }
}

Bring the best of AI to billing.Make every billing workflow count.

Connect your AI tools, automate billing operations, and turn your Lago data into answers for your finance team.

Billing and Finance AI Assistants.

Manage billing and explore your revenue in plain language. Ask Lago’s AI assistants to help with invoices, subscriptions, and financial reports.

Lago Finance Assistant turning a request for quarterly MRR into a chart and customer report.

AI Agent SDK.

Collect usage from LLMs or AI gateways without building the middleware.

AI providers surrounding Lago, illustrating usage collection through the AI Agent SDK.

AI Dunning Agent.

Automate cash collection with personalized reminders and payment retries. Help overdue invoices get paid, with less manual follow-up.

Lago Dunning Agent with a request to email customers and collect unpaid invoices, beside a customer list.

Lago connects to your existing stack

Connect AI providers and gateways, payment providers, accounting systems, CRMs and the rest of your revenue stack.

Discover integrations
  • Provider

    OpenAI

    Capture Chat Completions and Responses API token usage.

    View integration
  • Provider

    Anthropic

    Capture Messages API usage, streaming and prompt caching.

    View integration
  • Provider

    AWS Bedrock

    Capture Converse and InvokeModel usage, including streaming.

    View integration
  • Provider

    Google Gemini

    Capture text, reasoning, audio and image token usage.

    View integration
  • Provider

    Mistral

    Capture chat completion, streaming and cache-read usage.

    View integration
  • Router

    Ramp Router

    Bill the model that served each routed call.

    View integration
  • AI platform

    Snowflake Cortex

    Bill API and SQL AI usage in Snowflake.

    View integration
  • Gateway

    Databricks AI Gateway

    Bill hosted and BYOK AI Gateway usage.

    View integration

Lago billing platform 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.

What is Lago, and which businesses is it built for?

Lago is a billing platform for subscriptions, usage-based pricing, prepaid credits and negotiated contracts. It connects customer usage and commercial terms to invoices and finance workflows. Use managed Lago Cloud or run Lago on your own infrastructure.

Explore lago cloud

Which companies use Lago?

Explore Lago’s published customer stories to see how teams use it for AI usage, subscriptions and enterprise billing. Each story explains the customer’s billing model and the role Lago plays.

Explore customers

How does my application connect to Lago?

Use a Lago SDK or the REST API to send customer, subscription and usage data. Receive webhooks for billing events such as invoice creation and payment updates, then use that information in your product and finance workflows.

Explore APIs and SDKs

How much does Lago Cloud cost?

Lago Cloud offers Launch, Scale and Enterprise plans. Launch has no minimum commitment and includes one-time free allowances; Scale starts with a $12,000 annual commitment; Enterprise uses custom terms. See the pricing page for current rates and feature coverage.

View Lago pricing

Why choose Lago for usage-based and subscription billing?

Lago brings usage metering, customer-specific pricing, prepaid credits and invoicing into one billing system. Run it on managed Cloud, connect your payment and finance tools, and inspect the open-source engine behind the calculations.

Explore lago cloud

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.

Does Lago have native Salesforce and NetSuite integrations?

Yes. Lago offers Salesforce CRM and CPQ packages for configured sales-to-billing workflows, plus a NetSuite SuiteBundle that syncs billing records into your accounting system. Configure the mappings and flows for your organization.

Explore salesforce crm

Lago solves complex billing.