Understanding the Hidden Billing Logic of LLM Subscription Plans

    This article breaks down why the headline quota on an LLM subscription is not a simple token counter, and how four token categories—cache hits, fresh input, cache writes, and output—are charged at different rates. It explains a single-variable stress-testing method for measuring each rate, why optimistic public estimates tend to overstate real capacity, and how to build a more reliable task-based capacity model with a safety margin. Engineering practices for reducing consumption are also covered.

    1. The Starting Problem: A Stated Quota Is Not Usable Capacity

    With subscription-based LLM services, what users typically see is a vague quota or a percentage progress bar. What actually determines how many tasks a plan can run is a weighted billing logic that is not publicly exposed. Comparing the unit price of a plan directly against a higher-tier plan easily leads to a one-sided conclusion, because the two plans carry different workload structures, caching strategies, and quota conversion methods.

    A basic premise helps here: a subscription quota is not a “token counter,” but an abstract unit of measurement. Different categories of tokens consume quota at different coefficients, and how much work the plan can ultimately support depends on the mix of token categories in the workload.

    2. Four Token Categories and Differentiated Charging

    Mainstream metering models usually split a request into four categories: cache-hit input, fresh input, cache writes, and model output. Their costs differ enormously. The cache-hit portion reuses existing computation and has the lowest unit cost; fresh input must participate in computation in full; cache writes require additionally persisting context; and output is usually the most expensive category.

    A common experimental approach is “single-variable stress testing”: make each request consume as few token categories as possible, then observe how the quota percentage changes. For example, to test cache hits, write a fixed block of context and reuse it repeatedly; to test fresh input, change the content every time to avoid a hit; and stretch output separately. Because the interface usually displays only integer percentages, you need to issue a large number of consecutive requests, record how many tokens were consumed as the percentage moved from 17% to 18% and from 18% to 19%, and then average across several complete intervals to cancel out rounding error.

    An illustrative measurement flow can be expressed as:

    1. for each token category in [cache_read, fresh_input, cache_write, output]:
    2. warm up context (if needed)
    3. loop requests until the quota percentage crosses one integer mark
    4. record the start/end percentage of the interval and the cumulative tokens
    5. rate[category] = cumulative tokens / percentage marks crossed
    6. weighted capacity = total quota / Σ(rate[category] × workload share[category])

    Once the four coefficients are measured, weighting them by the mix found in real AI coding workloads lets you back out the approximate total token volume a plan can support. The value of this kind of measurement is that it turns “it feels like it’s running out fast” into a reproducible number.

    3. Why Theoretical Estimates Are Optimistic

    Some public estimates use extremely favorable mixes, for example 97% cache-hit input, 2.5% fresh input, and only 0.5% output. That amounts to assuming that out of every one million tokens processed, only five thousand are output—an ideal coding scenario that is extremely friendly to caching.

    Maintaining such a mix is difficult in engineering practice, for reasons that include:

    • Task switching changes the context, causing caches to be invalidated or to expire;
    • Prefix drift in long sessions reduces the hit rate as the conversation grows;
    • Concurrency and multiple parallel projects repeatedly flush the cache space;
    • Output-heavy tasks (refactoring, documentation generation, test completion) naturally raise the output share.

    This is similar to the test conditions for the stated range of an electric vehicle: continuous driving, no load, low speed limits, and good aerodynamics. In real use, with stop-and-go driving and frequent starts and stops, the effective figure often works out to around 70% of the stated value. Theoretical estimates are therefore suitable as an upper-bound reference, not as a direct budgeting basis.

    4. A More Reliable Capacity Assessment Method

    It is advisable to use the “task” rather than the “token” as the accounting unit and build your own baseline:

    1. Sample the real workload: continuously record the request-type distribution and context length over several days.
    2. Calculate the effective cache hit rate: measure cold-start and steady-state scenarios separately.
    3. Convert to per-task cost: divide the number of completed tasks by quota consumed to get an average cost per task.
    4. Reserve headroom: leave a 20%–30% margin for cache invalidation, retries, and rollbacks.
    1. def estimate_quota(tasks, mix, rates, total_quota, margin=0.25):
    2. per_task = sum(mix[k] * rates[k] for k in rates)
    3. need = tasks * per_task * (1 + margin)
    4. return need <= total_quota, need

    5. Cost-Reduction Practices on the Engineering Side

    • Stable prefix: put the system prompt and specification notes at the very front of the context to reduce prefix drift.
    • Context trimming: retrieve fragments by task relevance instead of stuffing in the entire repository.
    • Tiered model routing: send simple completions to a lightweight tier and complex reasoning to a higher tier.
    • Batching and merged requests: reduce the cache-write overhead caused by repeated warm-ups.
    • Observability: continuously track the quota consumption curve through logging services and monitoring alerts.

    6. Conclusion

    A price comparison between subscription plans holds only when the workload structure, cache hit rate, and quota conversion method are the same. For developers, the correct approach is to first measure their own workload profile, then estimate capacity with a weighted model, and keep a margin. Whether billing is per token or per task, the result should be validated against the real workload—only then does the resulting cost judgment carry engineering value.