Skip to content
Sonic AI

Usage-based billing, explained

Usage-based billing charges for what each customer consumes. The pricing models one contract can mix, why ingestion is the hard part, and what to check.

Supreet Gupta

Supreet Gupta, Co-founder

· Updated · 3 min read

Three usage meters filling at different rates and flowing into one invoice.
On this page

Usage-based billing (also called metered or consumption billing) charges a customer for what they actually used, such as API calls, compute minutes, gigabytes or transactions, instead of a fixed recurring fee. It's the pricing model behind most infrastructure and AI-native products, because cost and value both grow with consumption rather than headcount.

The pitch is simple: pay for what you use. The mechanics behind that sentence are where usage billing systems succeed or fail: measuring usage correctly, pricing it correctly, and never counting an event twice.

The pricing models usage billing has to support

"Usage-based" isn't one model. A single contract commonly needs several of these on the same invoice:

ModelHow it pricesTypical use
LinearA flat rate per unitSimple metered APIs
Volume (flat-band)One rate applies to the whole volume once a threshold is crossedRetroactive volume discounts
Graduated (tiered)Different rates for different slices of volumeProgressive discounting
PackagedPriced in blocks (e.g., per 1,000 units), rounded upPredictable-feeling pricing
Prepaid / drawdownA pre-purchased balance draws down as usage happensCommitment-based contracts
Minimum commitmentA floor charge regardless of actual usageGuaranteed revenue with usage upside

A usage-heavy contract often mixes two or three of these: a prepaid balance that moves to a graduated overage rate once it runs out, with a minimum commitment underneath. Billing software that only supports one model forces every deal into that shape whether or not it fits.

Why ingestion is the hard part

Pricing formulas are the easy part. The hard part is getting raw usage events from wherever they're generated, such as a warehouse table, a vendor export or an application log, into something that can be trusted enough to put a dollar figure on it.

Three things go wrong constantly:

  • Duplicate events. The same usage record gets counted twice because a file was re-uploaded, or an event stream retried a delivery. Without a deliberate idempotency key per event, a re-run of the same import silently doubles the invoice.
  • Unclear scope. A usage file has ten columns; only three actually identify a unique, billable event. Importing "whatever's in the row" instead of a deliberately configured uniqueness rule is how the same usage gets billed under two different keys.
  • Volume that breaks the tooling. A usage-heavy customer can generate millions of events a month. A billing system that chokes on a very large file, or takes hours to process one, turns invoice generation into a bottleneck at exactly the customers who matter most.

Why "wait and see" beats "guess and bill"

When a usage file is incomplete, for example missing the last few days of a billing period, the instinct is to bill on what's there and true it up later. That's backwards. An incomplete usage picture should produce a draft that waits, not an invoice that ships with a guess baked into it. The correction for a wrong invoice is always more expensive than the correction for a late one.

What to check before trusting a usage billing setup

  • Does it support idempotency keys you configure per data source, or does it assume every row is unique by default?
  • Can one contract mix linear, volume, graduated, and prepaid models without a custom engineering project?
  • What's the actual processing time for a large file? Minutes, or does it fall over past a certain size?
  • Does an incomplete usage file produce a draft that waits, or does the system guess and finalize?
  • Can usage sit on the same invoice as a fixed fee or seat charges, or does it always need a separate line item system?

Sonic AI's usage templates support linear, volume, graduated, packaged, prepaid and minimum-commitment models on the same schedule as fixed fees and seats, with idempotency keys your team sets for each data source. See how usage and seats work, or the deeper mechanics on idempotency as a product feature, usage templates, and usage sync from your database.

Related terms: usage-based billing, meter, usage template, idempotency, minimum commitment.

Supreet Gupta

Written by

Supreet Gupta

Co-founder, Sonic AI · LinkedIn

Supreet is a Cofounder at Sonic AI. Before starting Sonic, Supreet was a Product Manager at SaaS Labs (Sequoia funded Series B startup) where he worked with enterprises in US and Europe to deliver communication solutions. He completed his bachelors from IIT Bombay.

FAQ

What is the difference between usage-based billing and subscription billing?

Subscription billing charges a fixed amount each period, whatever the customer uses. Usage-based billing charges for what was actually consumed, such as API calls or minutes, so the invoice changes every period. Many B2B contracts combine the two: a fixed platform fee plus metered usage, or a prepaid balance with overage.

What are the common usage-based pricing models?

Linear (a flat rate per unit), volume (one rate for every unit once a threshold is crossed), graduated (a different rate for each slice of volume), packaged (blocks of units, rounded up), prepaid drawdown and minimum commitments. A single contract often mixes two or three of them on one invoice.

Why do usage-based invoices get double-counted?

Usually because the same usage event is imported twice, when a file is re-uploaded or an event stream retries a delivery. The fix is an idempotency key for each event, built from the columns that identify it, so a repeated import is recognised and skipped instead of billed again.

What should happen when a usage file is incomplete?

The invoice should wait as a draft until the missing usage arrives, rather than going out with a guess and a later true-up. Correcting a wrong invoice costs more, in credit notes and in customer trust, than sending a correct one a few days later.

See Sonic run on one of your contracts.

A 30-minute call with the team, using your own contract.

Book a demo