Why AI Platforms Meter Usage with Credits and Percentages
This article explains why many AI platforms express subscription usage as credits and percentages instead of raw token counts. It covers the four structural weaknesses of tokens as an external billing unit, why percentages act as a one-way relative quota signal that protects capacity privacy, how overlapping short and long rate-limit windows make remaining usage non-linear, and how clients and backends should respond with backoff, local token buckets, and soft-threshold degradation. It also outlines a layered design for metering, policy, exposure, and observability, plus practical budget planning when the denominator is never disclosed.
1. The Overlooked Fact: The Denominator Is Never Published
Across most AI platforms, billing and rate limiting draw a clear line. Usage purchased separately with real money comes with a published unit price, conversion formula, and typical consumption ranges. Usage “included” in a monthly subscription is reduced to a single percentage: no total allowance for the rolling five-hour window, no total for the weekly window, and no denominator anywhere in the terms of service.
This is not speculation. The server-side rate-limit data structures exposed by some open-source clients make it visible: the fields pushed from server to client typically cover only three things — used percentage, window duration, and reset time. There is no plan-wide total and no token-to-percentage conversion (in the code, this logic is usually concentrated in a single rate-limit-related source file).
That leaves the client with exactly one option: treat the percentage as the only trustworthy signal for display and scheduling. This is not laziness; it is the inevitable result of the server-side contract. Understanding this is the first cornerstone of understanding the credit and percentage system.
2. Why Not Tokens: Four Structural Flaws in the Unit Itself
Tokens look like the most “scientific” unit, but as an external metering standard in real platform engineering, they carry structural defects.
First, heterogeneous conversion is difficult. Different models use different tokenizers, so the same passage of Chinese text can split into noticeably different token counts across models; multimodal input must also fold images and audio into an equivalent token amount. Forcing tokens as the unified external unit would make the numbers users see swing sharply whenever they switch models, making stable expectations impossible.
Second, cost is non-linear. Token count reflects only “text length,” while actual compute cost is strongly tied to the quadratic term in attention computation, context length, cache hits, batching efficiency, and the number of output decoding steps. Equal token counts can differ severalfold in real cost across scenarios, so token-based pricing would leave the platform exposed to uncontrollable mismatch risk.
Third, cognitive burden on users. What the vast majority of users actually want to know is “can I still use this this month, and how much more can I produce,” not a token tally. Handing users an abstract quantity that requires understanding tokenization rules only generates support tickets and mental overhead.
Fourth, commercial packaging needs. Credits let a platform map different models, capabilities, and priority tiers (for example peak versus off-peak) onto a single scale, creating an operable price gradient without exposing the underlying cost structure.
3. Percentages as Relative Quotas: A Privacy-Preserving Design
If credits solve “unified external pricing,” percentages solve “preserving internal flexibility.”
A percentage is a classic relative quantity: it expresses consumption progress without revealing absolute capacity. Platforms gain three benefits.
Capacity elasticity. The backend can adjust the real allowance, concurrency ceiling, and model routing policy for each plan at any time, without changing the client contract or shipping a release. The progress bar semantics users see stay stable.
Abuse and reverse-engineering resistance. Once an absolute allowance is public, the upper bound of unit cost is public too, which invites back-calculation, resale, and large-scale extraction. A relative quantity cuts that inference chain by design.
Cross-plan comparability. Free, basic, and premium tiers share the same percentage semantics, so one UI and one scheduling logic can serve every tier.
For developers, there is an engineering reality to accept: the percentage is a one-way signal. You can read used_percent, the window duration, and the reset time, but you cannot read the denominator or back out a token conversion. Any implementation that tries to “estimate the total allowance and then budget precisely” is built on quicksand.
A representative server-side payload looks roughly like this (field semantics follow common industry shapes, not a specific platform’s API):
{"used_percent": 0.42,"window_seconds": 18000,"resets_in_seconds": 9600}
4. Overlapping Windows: Why a Single Allowance Is Not Enough
Real platforms usually enforce limits at multiple time scales at once, typically a “short window + long window” combination — for example burst protection on the order of hours plus sustained protection over a week. Whether a request is admitted depends on the intersection of all window verdicts, not on any single one.
This leads to a key implication: remaining capacity is not a straight line you can extrapolate. When the short window is saturated, you must wait even if the weekly allowance is ample; when the weekly allowance is tight, an idle short window will not let you through. A client therefore cannot schedule by “linearly pacing against remaining percentage.”
A robust admission check can be abstracted as:
def can_send(limits):# limits: multi-window rate-limit list pushed by the serverfor w in limits:if w.used_percent >= 1.0:return False, w.resets_in_secondsreturn True, 0
The better engineering practice is to treat every window as a set of “soft threshold watermarks” and start degrading at 70%–85%, rather than waiting for a hard rejection at 100%.
5. How Clients and Backends Should Respond
On the application side, the recommended practices are:
- Trust only the percentage and reset time, and persist rate-limit state so scheduling decisions survive a process restart.
- Implement exponential backoff with jitter, using the reset time in the response as the upper bound on waiting instead of polling at fixed intervals.
- Build a local token bucket for active shaping, holding the request rate below the soft threshold and trading smoothness for throughput.
- Separate “deferrable jobs” from “real-time interactive tasks”: run the former in batches after the window resets, and switch the latter to smaller context or lighter-weight capabilities on the degraded path.
- Show users progress rather than absolute numbers, using relative phrasing such as “about 70% of this week’s allowance remains,” and avoid promising specific counts that cannot be verified.
On the platform side, if you want to design a similar system of your own, a layered reference looks like this:
- Metering layer: convert heterogeneous resources into internal credits and record multi-dimensional consumption tags.
- Policy layer: enforce limits with multi-window sliding counters or sliding logs, with hot-reloadable window parameters.
- Exposure layer: push only percentage, window duration, and reset time, keeping absolute allowances on the server.
- Observability layer: track watermark levels per tier through monitoring, alerting, and logging services, use a message queue for peak shaving, and run elastic compute on a container platform.
6. Budgeting Advice for Enterprises and Teams
Because the denominator is invisible, budget planning must shift from “allowance estimation” to “consumption rate management.” Three workable paths: first, absorb predictable batch workloads with separately purchased pay-as-you-go resources, whose published unit price and formula make precise accounting easy; second, treat the subscription allowance as a guaranteed channel for high-value interactions, reserved for low-latency scenarios; third, maintain an internal credit ledger that rolls up relative consumption across projects and individuals, using relative share for cost allocation and quota governance.
7. Conclusion
Credits and percentages are not marketing language; they are the optimal solution under four constraints — heterogeneous conversion, cost volatility, multi-window rate limiting, and capacity privacy. The mindset developers need is this: the percentage is a one-way, relative, hot-updatable scheduling signal. Designing degradation, backoff, and shaping mechanisms around that premise is what makes an AI application stable and predictable even when the allowance system is opaque.
