← home
MONETIZATION · BILLING

LLM usage metering for customer billing.

Operations guide · 1 July 2026

By the LLM CFO team

Usage metering is how SaaS platforms that resell LLM functionality track consumption per customer and translate it into a charge. Unlike internal chargeback, metering is customer-facing and contractual—it defines who owes what, when, and for how much. Getting metering right means choosing the right measurement points, handling provider discounts, and reconciling against the actual provider invoice.

Where metering lives in your architecture

Every LLM API call flowing through your platform passes through multiple layers. You can capture metering at any of them:

The right approach uses all three: gateway for real-time rate limiting and customer visibility, SDKs for enriched tagging, and provider invoices for monthly reconciliation.

Billing units: tokens, requests, or outcomes

You must choose what unit you charge customers by:

Most platforms start with token-based (cost recovery is clear) and gradually move to outcome-based (better positioning).

The discount math: cache-read, batch, and reasoning tokens

Providers discount certain token types dramatically:

The key: if the provider gives you a discount, you must decide whether to keep it or pass it through. Do not leave this ambiguous—it will become a contract dispute.

Handling retries, tool calls, and fallback paths

One user action often triggers multiple LLM requests:

Every alternate path in your application is a metering edge case. Build a decision tree early.

Idempotency and deduplication

Your metering system must be idempotent: the same request replayed twice should not produce two charges. This is hard at scale:

Without idempotency, every network hiccup becomes revenue loss (double charges that customers contest) or hidden cost (charges you ignore to avoid disputes).

Monthly reconciliation and variance investigation

At month close, reconcile your metered usage against the provider invoice:

  1. Sum your metered usage. All events for the month, converted to cost using your pricing table.
  2. Compare to the provider invoice. The numbers rarely match exactly. Variance under 2% is acceptable; variance over 3% means something is wrong.
  3. Investigate the delta. Common causes: (a) missing metering events (retries, tool calls, fallback paths you forgot to tag), (b) timestamp misalignment (requests in one month, invoiced in the next), (c) wrong pricing (you used last month's rates but the provider updated them), (d) provider bugs or adjustments.
  4. Fix the root cause. Do not manually adjust. If you are consistently short, fix your metering. If you are consistently over, fix your pricing table.

Reconciliation is also your audit trail. If a customer disputes a charge, you rebuild the bill from metered events and compare to your cost.

What to meter: the minimal set

Do not meter everything. Focus on the contractual signal:

Everything else (feature, endpoint, user, duration) is operational telemetry, not metering.

Related

← Back to llmcfo.com