Understanding the Hidden Billing Logic of LLM Subscription Plans

    This article explains why fixed-fee LLM subscriptions are not truly unlimited. It breaks down the four token types—cache read, fresh input, cache write, and output—and shows why each carries a different deduction weight. It also outlines a black-box method for reverse-engineering those hidden weights, explains why idealized capacity estimates run optimistic, and offers a practical cost-evaluation framework developers can apply to their own workloads.

    1. The Starting Point: A Subscription Is Not Unlimited Usage

    When AI coding tools shift from pay-as-you-go billing to a monthly subscription, many developers assume that paying a fixed fee means they can run as much as they want within their quota at no extra cost. In practice, they often hit rate limits by mid-month, or notice a clear slowdown after a few days of heavy use. Understanding this requires one basic premise: a subscription plan is not “unlimited monthly usage.” It converts a single monetary price into a set of hidden, token-type-weighted quota consumption rules.

    This conversion is the root of the problem. Under pay-as-you-go billing, the bill is explicit and the unit price of each token type is clear. A subscription hides those unit prices inside “quota percentages,” so users only see an integer percentage drop without the conversion factors behind it. As a result, the same monthly fee can correspond to several times the actual throughput depending on usage habits.

    2. Four Token Types: Why Total Volume Is Not Enough

    In mainstream LLM inference pipelines, tokens are typically divided into four categories with very different compute costs and caching behavior:

    • Cache Read (cache-hit input): The context prefix is already cached, so only an attention read is needed—the lowest cost.
    • Fresh Input (cache-miss input): Brand-new content that requires full prefill, which is the most compute-intensive.
    • Cache Write: Writing a long context into the cache for the first time, which adds a one-time overhead.
    • Output: Generated token by token through autoregression, which cannot be parallelized and has both high latency and high cost.

    If a plan deducted quota based only on “total tokens,” it would be severely unfair: a user who mostly gets cache hits and a user who continuously generates output would consume the same quota for completely different value. A mature quota system therefore must assign different deduction weights to the four token types. Understanding this is the first step to reading any subscription plan.

    3. Reverse Engineering: How to Measure the Hidden Deduction Rates

    Since vendors usually do not publish the weights, they can only be inferred through black-box experiments. Industry analysts commonly use a “single-variable isolation” method whose logic is worth borrowing:

    1. Isolate variables: Consume one token type heavily at a time. To test cache reads, write a fixed-length context once and then reuse it repeatedly; to test fresh input, change the content each time to avoid a hit; to test output, extend the generation length.
    2. Cross integer jumps: The interface only shows integer percentages, so record how many tokens it takes to go from 17% to 18% and from 18% to 19%, then average across multiple complete intervals to remove boundary error.
    3. Weight back to a real workload: Once the four rates are measured, weight them by the share of each token type in real coding workloads to infer the plan’s theoretical capacity.

    The inferred logic can be written schematically as:

    1. Quota consumed = Σ (usage of a token type × its deduction weight)
    2. Theoretical capacity = Total quota / weighted consumption per unit of mixed workload

    The value of this method is not in producing an exact number but in revealing a fact: a plan’s real capacity is a joint function of the four rates and the workload structure.

    4. Why Idealized Estimates Are Too Optimistic

    Some public estimates assume an extremely favorable mix—for example, 97% cache-hit input, 2.5% fresh input, and only 0.5% output. Under that structure, nearly every million tokens is low-cost cache reads, so the resulting capacity looks very attractive.

    Real development is far from that:

    • Frequent task switching changes the context prefix and lowers the cache hit rate.
    • Caches expire and get evicted, so long conversations require re-writing.
    • Long-output scenarios (refactoring, documentation generation, test completion) significantly raise the output share.
    • Running multiple tasks in parallel squeezes cache space and pushes the hit rate down further.

    This is like an electric car rated for 500 km of range measured under continuous, unloaded, low-drag, constant-speed ideal conditions; in real stop-and-go driving with frequent starts and air conditioning load, it often drops to just over 300 km. The gap between a subscription’s “theoretical capacity” and its “usable capacity” is exactly this kind of real-world discount.

    5. A Cost-Evaluation Framework for Developers

    Rather than fixating on how many tokens a plan claims to run, build your own evaluation model:

    1. Sample your real workload: Measure the actual share of cache-hit, fresh-input, and output tokens over a week instead of using an ideal mix.
    2. Compute a weighted unit price: Use the inferred deduction weights to calculate “quota consumed per million tokens” for your own workload.
    3. Apply a real-world discount: Based on task-switching frequency and context-length distribution, take 70%–80% of the theoretical value as your planning baseline.
    4. Set up observability: Track the quota drain rate and the number of rate-limit hits in daily monitoring instead of discovering overspend at month-end.
    1. def estimate_quota(usage, weights, discount=0.75):
    2. # usage: token usage by type; weights: inferred deduction weights
    3. weighted = sum(usage[k] * weights[k] for k in weights)
    4. return weighted / discount

    6. Conclusion

    Subscription pricing is not transparent; its real cost is determined by hidden, type-specific deduction rules. Idealized estimates assume an unrealistically high cache hit rate and an unrealistically low output share, often overestimating capacity by several times. For developers, the reliable path is to understand the cost differences among the four token types, infer the weights through isolation experiments or public data, and then weight by your real workload while leaving a real-world discount. The result may not be precise, but the direction will be right—whether billing is per token or per task, the actual cost of a subscription model needs to be carefully accounted for rather than obscured by the word “unlimited.”