When Subscription LLM Billing Goes Wrong: Quota Design and How to Protect Yourself
A public undercounting incident showed that subscription AI is priced by a hidden compute conversion table, not a fixed monthly fee. This article covers why metering fails, how to design event-sourced ledgers and reconciliation, how to compensate users, and a practical checklist for tracking your own quota.
What a billing miscount actually revealed
A large-model provider recently admitted that its metering system had been undercounting usage for some models. After the fix shipped, the same workloads hit quota limits faster—about 40% faster for some models and about 25% for another—while those models still lasted longer than the previous generation. Other models were unaffected.
The remediation was typical:
- No clawback: previously undercounted usage was not billed after the fact.
- One-time reset: subscribers at each tier received a quota reset they could keep and were not forced to spend in the current period.
On the surface this was a billing incident. At root it exposed the real contract of subscription AI: the monthly fee maps to an invisible compute conversion table. Change the table and, with the same fee, the work you can finish changes.
The conversion table is the real price
Subscription AI does not sell “chat turns.” It sells compute. Platforms usually convert each model call into a unified quota unit. Typical factors include:
- Input/output token counts: output usually costs more quota than input.
- Model-tier multipliers: stronger models convert at a higher rate.
- Context and cache: long context, cache hits, and tool calls often have their own coefficients.
- Billing-period boundaries: quota resets by cycle; requests at the switch are easy to mis-attribute.
The conversion table is a black box for users: the monthly fee is fixed, the rules can change. When a platform upgrades a model or corrects metering, the same prompt may consume more quota. That is the lesson of this incident—whether you have enough quota depends less on how much you typed than on how the platform counts.
Why metering breaks: six common root causes
From an engineering view, LLM usage metering is distributed event processing. Frequent failure points include:
1. Conversion coefficients out of sync with model versions
A new model is canaried while metering still uses old coefficients, so some traffic is under- or over-counted. Model rollout and metering config must be one change unit.
2. Async pipelines drop or double-count events
Inference, metering, and billing are usually loosely coupled. Retries, consumer restarts, and duplicate delivery can miss or double-book usage.
3. Unit and precision conversion errors
Weighted tokens, cache discounts, and tool-call add-ons stack floating-point conversions. Small errors become large over a month.
4. Billing-cycle and timezone edges
Does a request at the reset instant belong to this period or the next? Cross-timezone users and traffic spikes near reset windows are high-risk.
5. Credits/refunds not closed with metering
Gifts, refunds, and resets change ledger balances without auditable events, so later reconciliation cannot explain diffs.
6. Split gray-release paths
Some traffic uses new metering logic, some the old. Dual tracks disagree, and a correct combined ledger is hard to reconstruct.
Designing reliable metering and reconciliation
Principle 1: Raw events are the immutable source of truth
Persist usage as raw events first; the ledger is a recomputable view. Snapshot conversion coefficients on the event—do not look them up later from a config table:
CREATE TABLE usage_events (event_id UUID PRIMARY KEY, -- idempotency keyrequest_id VARCHAR NOT NULL, -- inference request IDuser_id VARCHAR NOT NULL,model_tag VARCHAR NOT NULL,input_tokens BIGINT NOT NULL,output_tokens BIGINT NOT NULL,multiplier NUMERIC(10,4) NOT NULL, -- conversion coefficient snapshotoccurred_at TIMESTAMPTZ NOT NULL,billing_cycle DATE NOT NULL,raw_payload JSONB NOT NULL);
Principle 2: Idempotent writes and deduplication
A primary key on event_id gives idempotency. Deduplicate on request_id at the metering ingress so upstream retries do not bill the same inference twice.
Principle 3: Shadow ledger plus automatic reconciliation
Recompute a shadow ledger with an independent implementation and compare it to production on a schedule. Alert when the difference exceeds a threshold:
SELECTCOALESCE(a.user_id, b.user_id) AS user_id,a.billed_units - b.billed_units AS diffFROM prod_ledger aFULL OUTER JOIN shadow_ledger bON a.user_id = b.user_idAND a.billing_cycle = b.billing_cycleWHERE ABS(COALESCE(a.billed_units, 0)- COALESCE(b.billed_units, 0)) > 0.01;
Principle 4: Treat metering changes like code releases
- Review conversion-table changes and canary them on a small slice of traffic.
- Dual-run old and new logic during the canary and emit a diff report before full rollout.
- Keep change history so you can roll back and recompute from event snapshots.
Principle 5: Show users the line items
Consoles should show tokens, conversion coefficient, quota deducted, and remaining quota per call. Transparency is the best defense against “the table changed, so I get less work.”
After a failure: principles for making users whole
How you handle a billing error drives trust. Mature compensation usually follows:
- No clawback: undercounting is the platform’s fault; do not bill users later.
- Scope the impact: compensate only users who actually used the affected models or plans.
- Credits that persist: a one-time reset that can be kept, not forced into the current period, respects how people spend.
- A public postmortem: root cause, blast radius, and fix timeline—open part of the black-box ledger.
User-side checklist: is your quota enough?
You cannot control the conversion table, but you can control your own books:
- Build a cost baseline: rerun a fixed benchmark task after model or rule changes to spot when work got more expensive.
- Turn on budget and usage alerts: many clouds notify around 80% of quota.
- Tag work: separate experimental calls from production so you do not burn quota unnoticed.
- Export usage regularly: keep history if a dispute arises.
- Read billing notices: model upgrades often change metering, not just the monthly fee.
- Know expiry rules: whether gifted or reset quota expires or carries across cycles.
Closing
The value of this miscount is not the credits. It put the real contract of subscription AI on the table: the product is compute; the monthly fee is the ticket; the conversion table is the deal. Platforms need raw events, idempotency, snapshots, shadow reconciliation, and canaryed changes. Users need unit-cost discipline and their own usage ledger. Do not wait until month-end to learn you are out of quota.
