Getlago

Billing & Invoicing

Billing & invoicing without the headaches

Lago calculates charges, generates invoices and connects with your payment provider.

Ava Johnson is assigned the Enterprise plan. Its subscription fee and its seats, credits, LLM input tokens, LLM output tokens and compute charges each get a 10% discount, billed monthly. Lago then issues an invoice from Quantive to VantagePoint: a $99.00 Pro plan subscription fee, 250 units of API usage overage at $0.12 and a $21.00 credits top-up, for a $150.00 subtotal. Sales tax of 8% applies to the $99.00 fee, the $51.00 of other items is exempt, and the total due is $157.92. Finally, Jake Dennison’s prepaid wallet takes four transactions in turn, each landing at the top of the activity: 15 credits invoiced, 30 credits invoiced, 100 credits purchased manually, then 45 credits invoiced. The balance moves from 1,520 to 1,530 credits.

Trusted by the most innovative companies

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

One app for all billing strategies

Usage-based, subscriptions, seats, hybrid or prepaid credits. Each strategy is a plan in Lago, so pricing can change without rebuilding billing.

Usage metrics in Lago: seats, API calls, storage, ATM withdrawals and physical cards, each with its aggregation type

Metering and billing for AI agents

AI Billing SDK

Wrap your OpenAI, Anthropic or Bedrock client and every model call becomes a usage event in Lago.

Agent spend control

Fund agents with prepaid wallets and get alerted as balances run low, before spend gets out of hand.

x402 Payments

Let agents pay per request over HTTP 402, with each payment tied to the usage it covers.

Tools for AI agents

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

From invoice to cash.
Synced to your books.

Invoices go out with the right taxes and get paid through your provider.
Every payment syncs to your accounting and CRM.

Package and price any plansExplore plans
Assign a plan
AJAva Johnsoncus_12345678910111213
PlanSelect a planEnterprise planAssign plan
Override plan
Fixed recurring charges
Subscription fee-10%Monthly
Usage-based charges
Metered chargesCharges are fully billed, invoiced and reset at the end of each billing period.
Seats-10%Monthly
Credits-10%Monthly
LLM Input Tokens-10%Monthly
LLM Output Tokens-10%Monthly
Compute-10%Monthly

Pricing and packaging.Model subscriptions, usage, seats, credits or hybrid plans, and change prices and packages without rebuilding billing.

How Lago supports complex billing

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

Accurate charges.

Accurate charges. Lago automatically calculates what customers owe you based on billable metrics and defined plans.

Customizable plans.

Customizable plans. Tie metrics to any pricing model and combine them into hybrid plans.

Advanced billing.

Advanced billing. Capture more revenue faster with threshold-based billing, pro-rations and automated dunning campaigns.

Automated invoicing.

Automated invoicing. Lago generates accurate invoices for any customer, plan or entity to eliminate manual work.

Integrations across the stack.

Integrations across the stack. Connect Lago with your CRM, ERP, accounting and reseller billing platforms to obtain accurate revenue analytics where you need it.

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

Billing & Invoicing FAQ

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.

Lago solves complex billing.