Getlago

Billing & Invoicing

Billing & invoicing without the headaches

Lago Cloud calculates charges, generates invoices and connects with your payment provider without your team running the billing service.

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.

Agent Storefront

Let agents sign up, choose a usage-based plan and buy credits to use your API. Explore Storefront. Access is on request.

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

Related reading

How billing systems are built, compared and chosen.

Billing & Invoicing 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 automatically generate invoices for subscriptions and usage-based pricing?

Yes. Lago automatically generates invoices from your subscription terms and usage charges and provides downloadable PDFs. You can also use the invoicing provider of your choice, using Lago’s invoice data and webhooks.

Explore invoicing

Can I combine subscription fees and usage charges on one invoice?

Yes. A Lago plan can combine a fixed subscription fee with usage charges, included allowances and overages. For example, charge a monthly platform fee plus the API calls a customer uses beyond their allowance.

Explore plans

Does Lago calculate taxes?

Yes. Lago calculates taxes from the rates you configure and supports basic EU VAT scenarios. Connect Anrok or Avalara for broader tax calculation based on your customer, product and jurisdiction settings, and Lago applies the result to the invoice.

Explore anrok

Can Lago automatically follow up on overdue invoices and retry payments?

Yes. Configure a dunning campaign with an overdue-balance threshold, retry schedule and number of attempts. Lago requests payment through the connected provider and sends reminders according to the campaign. Apply campaigns by billing entity or customize them for individual customers.

Explore automatic dunning

Can I correct an invoice after it has been issued?

Yes. Void the original invoice and regenerate a corrected subscription or usage invoice with the updated amounts, quantities or fees. Lago keeps the original and links the replacement to it, preserving the record of the correction.

Explore void

Can I issue credit notes and refund customers through Lago?

Yes. Use a credit note to return money through a connected payment provider or credit the customer against future invoices. You can also create a credit note when voiding an invoice.

Explore void

Which payment providers can I use with Lago?

Lago provides native integrations with Stripe, Adyen and GoCardless, plus community connectors such as MoneyHash. Use the API and webhooks to build a workflow with another provider.

Explore integrations

Can Finance review and correct invoices before they’re finalized?

Yes. Set a grace period for end-of-period invoices so your team can review them in draft.

Add missing usage or fees, adjust amounts or unit counts, and refresh the draft before finalization.

Explore draft invoice review.

Can customers receive one invoice for several products?

Yes. Lago consolidates subscriptions billed on the same day when they share the payment method, currency, billing entity, purchase order number and payment terms.

You can also keep selected subscriptions on separate invoices for individual contracts or cost centers.

Explore invoice consolidation.

Does Lago provide e-invoicing?

Yes. Lago generates structured e-invoices for France, including Factur-X and UBL EN 16931, and Germany, including XRechnung and ZUGFeRD.

Submission to tax authorities or networks such as Peppol requires an appropriate provider connection. Contact sales or your account manager to confirm the formats and submission workflow for your countries.

Are there geographic restrictions on using Lago?

Lago’s core billing capabilities are designed to work across countries. Tax and e-invoicing coverage depends on local requirements and the provider integrations you use.

Contact sales or your account manager to confirm the setup for your markets. Service availability remains subject to applicable legal and export restrictions under Lago’s terms.

Lago solves complex billing.