Decoding Hidden Billing Mechanics in LLM Subscription Plans

    This article explains how to estimate the real capacity of LLM subscription plans when usage is only exposed as an integer percentage. It covers a controlled experiment design that isolates four token types (fresh input, cache write, cache read, and output), a cross-interval accumulation technique to remove rounding error, and a weighted reverse calculation from billing coefficients to plan capacity. It also shows why optimistic cache assumptions inflate results, offers a discount model for cache decay, and outlines a more robust evaluation approach based on real workload profiling and per-task cross-validation.

    1. Starting Point: Why Subscription Costs Must Be Reverse-Engineered

    As AI coding tools and LLM services spread, many developers are moving from pay-as-you-go pricing to monthly subscriptions. A subscription appears to convert unpredictable per-unit prices into a fixed monthly fee, but what actually determines the experience is an undisclosed credit system: the interface usually shows only an integer percentage, so users cannot tell how much input, cached, and output token budget remains.

    This creates an engineering problem: how to quantify the real capacity of a subscription plan without relying on official documentation. The common industry approach is to reverse-engineer the billing coefficients through controlled experiments, then apply weighted estimation based on a real workload mix. This article follows that approach and focuses on the sources of bias that are easy to overlook.

    2. Independent Metering of Four Token Types: The Core of the Experiment Design

    Billing dimensions in mainstream inference services can usually be abstracted into four categories: fresh input that misses the cache, cache writes, cache reads, and model output. Their unit costs differ dramatically — output is typically the most expensive, cache reads the cheapest. Any conclusion about “how many tokens per million” must therefore be broken down along these four dimensions first.

    The key testing technique is single-variable isolation: make each request consume as few token categories as possible.

    1. Testing Cache Read:
    2. 1. Write a sufficiently long fixed context (produces one cache write)
    3. 2. Repeatedly send requests with the same prefix so later requests fully hit the cache
    4. 3. Record changes in the credit percentage
    5. Testing Fresh Input:
    6. Change the body content on every request so no cache is hit
    7. Testing Output:
    8. Fix a very short input and let the model keep generating long text

    Because the interface displays only an integer percentage, the cost of a single request gets truncated to 0. The engineering workaround is cross-interval accumulation: run a large number of consecutive requests, record how many tokens were consumed when the percentage moved from 17% to 18% and from 18% to 19%, then average over several complete intervals to remove rounding error statistically. The result is four coefficients: how much subscription credit each million tokens of a given type consumes.

    3. Weighted Reverse Calculation: From Coefficients to Plan Capacity

    Once the four coefficients are known, a set of workload proportions is needed to convert them into total plan capacity. A typical mix used in some public estimates is roughly:

    Token type Assumed share
    Cached input 97%
    Fresh input 2.5%
    Model output 0.5%

    This means that for every million tokens processed, 970,000 come from cache reuse and only 5,000 are newly generated output. It describes a heavily cache-friendly coding scenario — the same repository and the same context read and written repeatedly.

    The reverse formula can be abstracted as:

    1. Plan token capacity ≈ total credit / Σ(share of each type × unit coefficient of that type)

    The denominator is essentially a weighted average unit price. The more the mix tilts toward cheap tokens, the smaller the denominator and the larger the calculated capacity. This also explains why different estimates can differ by several times: the gap usually lies not in the coefficients but in the assumed proportions.

    4. The Gap Between Ideal Figures and Real Workloads

    The fundamental limitation of the calculation above is that the assumed proportions are too optimistic. In real use, caches expire, contexts change, and tasks switch, so hit rates fluctuate sharply with the working rhythm. The logic matches the rated range of an electric car: the 500 km figure comes from steady, unloaded, low-drag conditions, while real stop-and-go driving with frequent starts may leave only a bit over 300 km.

    A simple discount model can quantify this decay:

    1. def effective_capacity(total_credit, coef, ratio, cache_decay=0.6):
    2. """
    3. total_credit: total plan credit
    4. coef: dict of unit coefficients for the four token types
    5. ratio: dict of ideal workload shares
    6. cache_decay: actual discount factor applied to the cache share
    7. """
    8. r = dict(ratio)
    9. r["cache_read"] *= cache_decay
    10. r["fresh_input"] += ratio["cache_read"] * (1 - cache_decay)
    11. s = sum(r[k] * coef[k] for k in coef)
    12. return total_credit / s

    With a discount factor of 0.6, the cache advantage is clearly weakened and effective capacity can drop by more than 30%. Any single figure should therefore be treated as an upper bound, not an expected value.

    5. A More Robust Evaluation Approach

    For developers and enterprise users, the more reliable path is to build your own baseline rather than rely on generic estimates:

    1. Profile your real workload: measure the actual share of the four token types in your projects, especially cache hit rate and context length distribution.
    2. Cross-validate per task: besides the token-based measure, use “how much credit a typical task consumes” as a second yardstick; agreement between the two increases confidence.
    3. Leave headroom: multiply the calculated upper bound by an empirical discount and use that as the capacity planning baseline.
    4. Value observability: prefer platforms that offer usage breakdowns, log services, and monitoring alerts, which make ongoing calibration easier.

    6. Conclusion

    The reverse-engineering method for an undisclosed credit system is itself rigorous; the problem lies in the workload assumptions. Understanding the chain of coefficient separation, interval accumulation, weighted reverse calculation, and discount correction turns a vague percentage into a comparable engineering metric. One point should be clear: whether measured in tokens or in tasks, current subscription plans are not cheap in real cost. Rational selection comes down to replacing idealized conditions with your own workload profile — trading rated range for real range.