Getlago

Usage Metering

Meter usage in real time. Bill it without the headaches.

Lago is the open-source billing platform that gives engineering and finance full control over any usage-based model. Event-driven metering, hybrid pricing, self-hosted or cloud.

Lago meters input, output, and cached tokens in real time. Usage events from sources such as OpenAI, Anthropic, Google Gemini, Mistral, Ramp Router, Snowflake Cortex, Databricks, Cloudflare, AWS Kinesis, Amazon S3, Google Cloud, Redis, and Azure stream into one chart showing 1.2 million tokens. An events feed lists each metric as it arrives, at rates between 100 and 50,000 events per second.

Trusted by the most innovative companies

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

Real-time metering
and usage-based billing
at scale.

Capture usage from every source that drives your product, from HTTP APIs and streaming connectors to AI gateways and the LLMs behind them. Lago brings events from Kafka, Kinesis, S3, GCP, Redis, Azure, and more into one real-time metering flow. Track credit drawdown as it happens, apply usage-based pricing at scale, and keep every charge visible from the first event to the final invoice.

AI gateways & LLMs

  • OpenAI
  • Anthropic
  • Google Gemini
  • Mistral
  • AWS Bedrock
  • Ramp Router
  • Snowflake Cortex
  • Databricks
  • Cloudflare
  • More

API & streaming

  • HTTP
  • Kinesis
  • S3
  • Kafka
  • GCP
  • Redis
  • Azure
  • More
Lago
Usage meteringBilling

Ready for billing

  • Invoicing
  • Real-time credit balances
  • Usage reports
  • Taxes
  • Analytics
  • Revenue Recognition
  • Alerts
  • Governance

Capture your usage

Send events from your application with the API or a Lago SDK.

Define what counts

Aggregate events into billable metrics, from API calls to compute hours.

Choose your pricing

Combine usage charges, subscriptions, and prepaid credits in your plans.

Turn usage into invoices

Apply each customer’s plan to their usage and generate their invoice.

Ingest usage at scale from any source

Bring usage from HTTP APIs, event streams, and LLM gateways into Lago. Connect sources such as Kafka, Kinesis, and your AI stack to ingest usage at scale and turn it into billable metrics.

Ingest usage at scale from any source

Turn raw usage data into accurate invoices

Lago ingests raw usage data and converts it into charges. Aggregate events in real time to ensure your billing doesn’t miss a beat.

Turn raw usage data into accurate invoices

Bill usage at any scale

Bill as many products as you want and ingest up to 1M events per second.

Bill usage at any scale

Adapt pricing on the fly

Both non-engineers and engineers can update usage charges via API or Lago’s no-code UI.

Adapt pricing on the fly

Usage-based billing is easy now

Everything you need to bill for usage.

Define billable metrics.

Define billable metrics. Define metrics you’ll charge for. Charge for them directly, include an allowance or use them for credit consumption.

Ingest usage.

Ingest usage. Charge for credits, tokens, compute hours, API calls, outcomes or anything else.

Create hybrid plans.

Create hybrid plans. Combine usage-based with subscription models.

Customize with overrides.

Customize with overrides. Customize terms like pricing, usage budgets and more for enterprise customers.

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 Metering FAQ

What is usage metering?
Toggle

Usage metering captures product consumption, an API call, a token, a compute-minute, as an event, then aggregates those events into a number billing can charge for. In Lago, every event carries a code that maps to a billable metric, a transaction_id for deduplication, and a subscription reference, and events arrive through the REST API, batch API, streaming connectors, or an S3 backfill.

Lago solves complex billing.