Understanding Token Billing in LLM Subscription Plans
This article breaks down how token quotas in large language model subscription plans are actually consumed. It explains the four token types—fresh input, cache write, cache read, and output—and how each is weighted into a single quota unit. It also shows a black-box method for measuring deduction rates from percentage changes, why advertised capacity assumes an unrealistically high cache hit rate, and how developers can build their own cost estimation and capacity planning workflow.
1. The Starting Point: The Gap Between Advertised Quota and Real Usable Capacity
When evaluating AI coding tools or LLM subscription plans, developers usually see a single “quota” number: how many tokens or requests are available each month. In real usage, however, the quota often drains much faster than expected. This gap is not necessarily deliberate misleading by the vendor; it comes from the coupling of three factors: the billing model, caching strategy, and workload structure. To understand it, you first need to break “quota” down into measurable deduction units.
2. Differentiated Deduction Models for Four Token Types
Most mainstream LLM services split the token consumption of a single call into four categories: fresh input that misses the cache, cache write, cache read on a hit, and model output. The computational cost of these four types differs significantly. Cache reads are usually far cheaper than raw input, while output is the most expensive because it is generated autoregressively token by token.
Converting a subscription quota is essentially about mapping these four token types into a unified “quota unit” with different weights. A schematic conversion logic can be expressed as:
quota consumed = w_in * fresh_input+ w_cw * cache_write+ w_cr * cache_read+ w_out * output
The weights w_* are determined by underlying compute costs and are not publicly disclosed by the providers. This is exactly why external estimation is difficult: you can only observe changes in the quota percentage, but you cannot directly read the weights.
3. Black-Box Reverse Engineering: Measuring Deduction Rates from Percentage Changes
Since the console usually shows only integer percentages, a practical black-box measurement method is “single-variable isolation + interval accumulation”:
- Construct requests that consume large amounts of only one token type. To measure cache reads, first write a fixed-length context and then reuse it repeatedly; to measure uncached input, change the content each time to avoid a hit; to measure output, extend the generation length.
- Send requests continuously and record the cumulative tokens consumed when the quota jumps from 17% to 18%, and from 18% to 19%.
- Average across multiple complete percentage intervals to cancel out rounding errors, yielding “how much quota is consumed per million tokens of a given type.”
Once the four deduction rates are measured, weight them by the proportions in your real workload to reverse-engineer the plan’s theoretical capacity. The value of this method is that it does not rely on vendor disclosure, but the cost is high measurement effort, long time, and conclusions that are heavily influenced by workload assumptions.
4. Cache Hit Rate Assumptions: Why Theoretical Values Are Optimistic
Many calculations of “processable token volume” are based on an extremely favorable workload assumption, with typical proportions as follows:
| Token type | Assumed share |
|---|---|
| Cached input (hit) | 97% |
| Uncached input | 2.5% |
| Model output | 0.5% |
This means that for every one million tokens processed, 970,000 come from cache hits and only 5,000 are output. It is like measuring an electric vehicle’s range under ideal conditions: continuous no-load driving, low speed limits, and minimal wind resistance. Real development scenarios are the opposite: frequent task switching, expired context, invalidated caches, and scattered concurrency all significantly reduce the cache hit rate, so actual usable capacity may be only 60–70% of the theoretical value.
5. Building Your Own Cost Estimation Method
Rather than relying on advertised values, it is better to build a localized measurement and estimation workflow:
- Instrumentation: log the four token counts for each call on the application side to form a real workload profile.
- Segmented measurement: measure cache hit rates separately by task type (completion, refactoring, long-form generation).
- Conversion validation: use the black-box method above to measure deduction rates, plug in your own workload proportions, and get a personalized quota budget.
- Set a buffer: plan capacity at 60%–70% of the theoretical value, leaving room for cache invalidation and burst traffic.
6. Conclusion
A subscription quota is a weighted abstraction, not a physical quantity that can be directly equated with tokens. Understanding the differentiated deduction of the four token types, recognizing the optimistic bias in cache hit rate assumptions, and calibrating against your own workload with a reproducible black-box method are key to making cost decisions as a developer. Whether you choose token-based or task-based billing, only by restoring the “advertised quota” to the “real usable capacity under your own workload” can you avoid budget distortion.
