Blog
/
Guides

Consumption-Based Billing: How It Works + 3 Real Examples

Consumption-based billing records usage after the compute runs. Learn the pipeline, 6 billing types, and how AI products enforce limits before the invoice.

Sara NelissenSara Nelissen
Written by
Sara Nelissen
Last updated
July 10, 2026
read time
8
minutes
Consumption-Based Billing: How It Works + 3 Real Examples

Table of contents

An AI support agent starts processing 80,000 tickets, and the customer has credits for 12,000 drafts. Billing records all 80,000. 

Consumption-based billing counts every unit a customer consumes. It has no say over whether the next unit should run. AI products carry the most exposure, because one request can cost a fraction of a cent and the next can cost several dollars.

The rest of this guide covers how the pipeline works, the billing types in use, and the layer that puts a limit ahead of the invoice.

What is consumption-based billing?

Consumption-based billing charges customers for what they use, so the invoice follows measured consumption during the billing period. The billing system ingests usage events, applies pricing rules, and generates the invoice from the total.

Any measurable event your product can emit works as a billing unit. Common consumption units include:

  • API calls: Charged per request
  • LLM tokens: Charged per input and output token
  • Compute minutes: Charged per unit of processing time
  • Storage gigabytes: Charged per gigabyte stored
  • Agent actions: Charged per task or step an agent completes

Flat subscriptions charge the same amount at any usage level. Consumption-based billing ties the invoice to what each customer consumed, so a light user and a heavy user receive different bills.

Consumption-based billing vs usage-based billing

Usage-based billing and consumption-based billing describe the same idea, which is charging customers for what they consume. Vendors use several labels for it:

Term What it describes
Consumption-based billing The full model, from pricing rules to the invoice
Usage-based billing The same model under a different name
Metered billing The event ingestion and aggregation layer
Pay-as-you-go billing Consumption-based billing with no minimum commitment

Some vendors reserve “consumption” for resource units such as compute time and storage, and use “usage” for broader metrics such as transactions or feature access.

How consumption-based billing works

Consumption-based billing runs as a usage pipeline that turns product events into invoice line items. The pipeline has four parts:

  1. Usage event ingestion: Your product sends an event for every billable action, and usage metering pipelines carry those events to the billing system. Each event holds the customer ID, event type, timestamp, quantity, and pricing metadata.
  2. Aggregation: The billing system groups events by customer, product, and pricing dimension. It may count the first 10,000 tokens at one rate and the next 100,000 at a lower rate.
  3. Pricing rule application: The system applies the pricing logic to the aggregated usage, such as a flat per-unit rate, tiers, volume discounts, committed usage, credits, or a hybrid model.
  4. Invoice generation: The priced usage becomes invoice line items, and the billing platform generates the invoice and collects payment.

A simple metering table handles this at low volume. Concurrent requests, customer hierarchies, credit balances, retries, and late-arriving events turn it into an engineering system that shapes how the product behaves and how usage gets enforced.

Types of consumption-based billing models

Each billing model implements one of the consumption-based pricing models, so the pricing design and the billing system have to match. Most AI products combine more than 1.

Model How it works Illustrative example Best for
Pay-as-you-go Flat rate per unit consumed $0.01 per API call Variable demand with no commitment
Tiered usage Rate changes at usage thresholds First 10K tokens at $0.01 per 1K, next 100K at $0.008 per 1K Progressive rate breaks
Volume-based Lower rate applies at higher volumes $0.10 per GB for the first 50 TB, $0.08 per GB after Heavy users who earn a lower rate
Minimum plus overage Base fee covers a usage floor, and extra units bill per unit $200 per month includes 1M tokens, and extra tokens cost $0.20 per 1K A predictable baseline with room to grow
Hybrid Subscription plus consumption $99 per month plus $0.005 per agent action Platform access plus metered features
Credit-based Customer buys a balance upfront and draws it down A $500 credit block drawn down by each inference call AI products with variable cost per action

Minimum plus overage models bill the extra units as overage fees, and a metering error turns those fees into a dispute, so unit-level accuracy matters.

Prepaid credits are a common pattern in AI products, and their engineering requirements exceed a single balance column.

Consumption-based billing examples

The following three public billing setups show where enforcement has to begin. Each vendor ships a way to control spend, and each control has a limit you should know about.

Google Cloud: Budgets that alert and budgets that cap

A standard Google Cloud budget alerts you and does not cap usage. Spend cap budgets add enforcement, because they pause usage for the services they cover once costs pass the target amount.

Each cap covers one project and one eligible service, so a product that spans several services needs a cap for each one.

In-flight requests still finish, and persistent resources such as storage keep accruing charges.

Vercel: A spend limit that checks every few minutes

Spend Management lets a Vercel team set a spend amount per billing cycle. Crossing it can send a notification, trigger a webhook, or pause production deployments for every project.

Vercel checks spend every few minutes, so projects can keep serving traffic and accruing usage for several minutes after the amount is crossed. Vercel’s docs advise setting the amount below the most you are willing to spend.

OpenAI API: A prepaid balance with a processing delay

OpenAI’s prepaid billing draws the credit balance down as the API gets used, and free credits burn before purchased credits. Auto recharge adds credits when the balance falls below a threshold you set.

API access may continue for a short delay after credits run out, and usage processed during that delay shows as a negative balance deducted from the next purchase. OpenAI tells customers not to rely on the prepaid balance as an instantaneous spending cutoff.

All three setups pair metered billing with a spend control, and all three controls run on a delay or a narrow scope. A request that arrives inside that window runs, and an enforcement check in the request path closes that window.

Why AI products need consumption-based billing

AI products need consumption-based billing because every request carries a marginal cost, and that cost changes with the model, the context length, the output length, and the number of tool calls an agent triggers.

Two customers on the same plan show the problem. One asks a question and triggers one model call. The other launches an agent run that makes 30 model calls plus tool use, and both pay the same flat fee.

A flat price forces a choice. Overcharge light users until pricing feels unfair, or undercharge heavy users until margins shrink. Consumption-based billing ties revenue to the cost each customer creates.

The following consumption patterns drive that cost variance in AI products:

  • LLM inference calls: Cost moves with the model, context length, output length, and reasoning effort, so billing meters each dimension on its own
  • Agent actions: A single run can trigger dozens of tool calls, API requests, or workflow steps, and each one has its own cost
  • Embedding generation: Call volume is high, and the cost per call is low, so ingestion has to absorb the volume without adding overhead
  • Compute time: Fine-tuning, batch processing, and retrieval-augmented generation map to time-based billing

The wider the cost range between two actions, the more the invoice has to follow actual usage.

Pros and cons of consumption-based billing

Consumption-based billing gives every customer a bill that matches their usage, and it means the vendor has to count that usage and control it in time.

Factor Pros Cons
Cost alignment Revenue follows cost: Each extra unit that costs the vendor money brings revenue Metering errors: A wrong count hits margin and the invoice
Customer fairness Fair pricing: Light users avoid paying for capacity they do not use Budget spikes: A usage surge produces an unexpected bill
Growth Expansion without renegotiation: Revenue grows as customers use more Harder forecasting: Projections depend on historical consumption patterns
Product insight Usage data: Events show which features drive activity Distorted data: Late or duplicated events skew the picture
Control Visible charges: Customers see a bill tied to real usage Timing: Billing records usage after the fact and cannot stop a request

The last row matters most for AI products, and the next section explains why.

What consumption-based billing cannot do on its own

Consumption-based billing tells you what was used, and it cannot decide what should have been allowed. Billing platforms like Stripe, Orb, and Metronome record usage and generate accurate invoices.

The question “Is this customer allowed to run this action at this moment?” has to be answered before the action runs. Metering answers it afterward.

The support agent from the intro shows the timing problem. Three scenarios show how it appears in production:

  • Credit overdraft: A customer runs out of credits mid-session, and the session continues until the next metering cycle catches the deficit. The cost is committed before the deficit shows up.
  • Concurrent requests: Two agent workflows start at the same moment against one credit pool. Both pass the balance check, and together they overdraw the account before either finishes.
  • Enterprise spend caps: A department head sets a monthly AI budget. A cap with no check on each request shows in a dashboard, and nothing in the stack enforces it.

The enforcement layer has to sit in the request path, before compute runs.

What production-grade consumption-based billing requires

Moving from a metering table to production-grade consumption-based billing takes more engineering than a first estimate suggests. The following five requirements carry the load.

Event ingestion at volume: Bursts without drops

The ingestion pipeline absorbs bursts without dropping or duplicating events, and both mistakes cost money. Retries are the usual source of duplicates, so each usage report should carry an idempotency key. A request retried after a timeout or dropped connection then counts once.

An undercount leaks revenue, and an overcount produces an invoice the customer does not trust and a dispute that pulls engineers in.

Credit management: More than a balance column

Credits arrive in blocks, and each block carries its own expiry date and cost basis. Promotional credits burn before paid credits, and expiring credits burn before non-expiring ones.

Depletion is hard, which blocks the action at zero, or soft, which allows the action and flags the overdraft. An append-only ledger keeps every change reconcilable.

Real-time balance resolution: One balance, many requests

A balance check needs a real-time view of usage. Cache invalidation and concurrency handling decide whether two requests can draw from the same balance and push usage past the limit as request volume grows.

The solution is a deduction that returns the updated balance in the same call. In Stigg, that’s synchronous credit consumption: the response carries the new balance, so the next check runs against it rather than waiting for the metering pipeline to settle.

Enforcement in the request path: A check that returns fast

The check runs before the action executes, resolves against a current balance, and has to return in single-digit milliseconds. Stigg’s entitlement checks resolve at p99 under 10ms, so enforcement adds no visible latency to the product.

Tenancy: Limits at every level

Enterprise customers need per-team allocations, per-agent budgets, and per-product spend caps, with hard limits at any level of the hierarchy set on their own.

Budgets cascade from the org down through departments, teams, users, and individual agents, and usage rolls back up. Each parent limit is a ceiling its children subdivide, so a single check has to enforce every level above the caller.

Where in-house consumption-based billing breaks down

The in-house version works on launch day, and nobody questions it until pricing moves. A balance table and an event log are a valid answer for a single product with plain usage patterns.

The system breaks on five requests, and none of them depend on ARR or headcount:

  • Enterprise allocations: A customer asks for per-team budgets with hard caps, and the org-level balance cannot express them
  • Shared credit pools: Two concurrent agent workflows draw from one pool, and both pass the same balance check
  • Pricing changes: A new tier means editing consumption logic in several services, and one service gets missed
  • Audit requests: Finance asks to trace a balance change to a single transaction, and the event log cannot
  • Pre-request limits: A limit has to stop a request before it runs, and the job that counts usage runs after

Miro’s story matches the pricing-change row. Its internal tooling became the bottleneck, and a simple plan update turned into a multi-week cross-functional project.

Miro shipped credit-based AI pricing in under 6 weeks on Stigg. Moving off its in-house tooling also saved 5,000 engineering hours that would have gone to building and maintaining it.

The first build was a reasonable call, and the pricing roadmap outgrew it.

Add real-time enforcement on top of consumption-based billing

Your billing system can track every AI request, but by the time it records an overage, you've already paid for the compute.

Stigg adds enforcement before execution. If a customer has 12,000 drafts available, your application can stop the support agent at draft 12,000, even when the job contains 80,000 tickets. Limits follow the customer's plan, add-ons, trials, and overrides.

With Stigg, the process looks like this:

  1. Check entitlements: Confirm the customer's access and remaining draft allowance.
  2. Apply usage rules: Allow requests within the limit and block, warn, or prompt an upgrade according to the configured policy.
  3. Record consumption: Track completed usage against the customer's allowance.
  4. Pass billing data downstream: Let the billing system handle invoicing, taxes, and payments.

These checks happen synchronously in the request path, so your application can enforce the customer's current commercial rules before committing more compute.

Stigg's Sidecar runs beside your application as a Docker container. It serves entitlement checks from an in-memory cache, with optional Redis persistence so the cache survives restarts and is shared across instances.

You don't need to rebuild your billing stack to add that control. Stigg lets you adopt one capability at a time:

  • Start small: Add entitlements, metering, or credits independently. Bring in more components as your pricing gets more complex.
  • Keep checks close to your app: Use the Sidecar's in-memory cache or the Node SDK for in-process checks without a Sidecar.
  • Control every credit: Manage paid and promotional credits, expiration dates, cost basis, burn order, and an append-only ledger.
  • Enforce limits before execution: Check allowances in the request path and block expensive operations when a customer reaches a hard limit.
  • Build with AI-native tools: Use Stigg's MCP server, CLI, and agent skills to manage your pricing catalog, credits, and entitlements from the tools your team already uses.

The result is more control over what customers can consume, without moving invoicing, taxes, or payments out of Stripe, Zuora, or your existing billing provider.

Explore the Stigg docs to see how the Sidecar, Node SDK, and credits engine fit into your application. Start with one usage limit and test what happens when the next batch job reaches it.

FAQs

1. What is consumption-based billing?

Consumption-based billing is a billing model that charges customers for the amount they use, measured in units such as API calls, tokens, compute time, or storage. The invoice follows measured consumption during the billing period.

2. What is the difference between consumption-based billing and subscription billing?

The main difference between consumption-based billing and subscription billing is how the invoice is calculated. Subscriptions charge a fixed amount at any usage level, while consumption-based billing charges for what was consumed.

3. What is the difference between consumption-based billing and usage-based billing?

The main difference between consumption-based billing and usage-based billing is the label, since both charge customers for what they use. Some vendors use consumption for resource units such as compute time and usage for broader metrics.

4. Can consumption-based billing enforce usage limits in real time?

No, consumption-based billing records usage and invoices afterward, but a separate enforcement layer can check limits in the request path before an action runs.

5. What is a credit-based billing model?

A credit-based billing model lets customers buy a balance upfront and draw it down with each billable action. Credits come in blocks with expiry dates, cost basis, and a defined burn order.

Latest news.

One email per month.
From engineers, for engineers.

Thank you! Your submission has been received.
Oops! Something went wrong while submitting the form.