AI and LLM usage metering

Meter tokens, tasks and model usage before it becomes a bill

Record the usage signal once, keep the raw evidence, and roll it up independently from OpenAI, Anthropic, Gemini or whichever billing system you use downstream.

What you get
  • Token, task and request meters use the same ingestion contract
  • Subscription, product-item and meter keys make routing explicit when you need more than one usage stream
  • Idempotency keeps retries from becoming extra customer usage
  • Raw events remain available behind every monthly rollup

Meter the signal you actually sell

Tokens are useful when your customer contract is token-based. Tasks, runs or requests are often better when the customer buys outcomes. UsageBox does not force an AI-specific unit.

Route each usage stream explicitly

Use the subscription, product-item and meter ingest keys when your account has multiple customers or usage streams. The POST contract stays the same even as the catalog grows.

Retry safely

Generate one idempotency key per logical usage event and reuse it only when retrying that same event. Network ambiguity should never become double usage.

Separate vendor cost from customer usage

Your provider invoice answers what you paid. Your meter answers what each customer consumed. Keeping those records separate makes margin and reconciliation explainable.

Change models without changing the POST contract

Model- or provider-specific usage can be represented by the meter or product item your application routes the event to. Changing that routing does not require a new ingestion endpoint.

Send quantities to the biller you choose

UsageBox stops at measured quantity and rollups. Stripe, a custom ledger or another billing system can apply prices, credits, discounts, tax and invoices downstream.

Product boundary

UsageBox does not estimate your model-provider bill

The metering layer records the usage values your application sends. Provider pricing tables, customer pricing, credits and invoice logic remain separate so they can change without corrupting the usage record.

Meter here

  • Tokens
  • Tasks and runs
  • API requests
  • Customer subscriptions
  • Model/provider-specific meters or product items

Keep downstream

  • Provider price tables
  • Customer pricing
  • Credit drawdown
  • Tax
  • Invoices and payments

See the request before you create an account

Choose the usage signal, inspect the exact payload, then create a free key only when the contract fits your integration.