Demystifying LLM Subscription Pricing: How Cache Hit Rates Determine Real Costs

    This article explores why the theoretical token pricing of Large Language Model (LLM) subscriptions often diverges drastically from actual usage experiences. By breaking down the billing structure into four types of tokens—cache hit inputs, cache write inputs, uncached inputs, and model outputs—it explains how different token weights impact real costs. The article also details methods for reverse-engineering hidden quota systems, highlights the "ideal condition" trap in theoretical pricing models, and provides a practical framework for developers to measure their actual costs and make informed subscription decisions.

    1. Why Theoretical Pricing and Actual Experience Diverge

    Many developers using AI coding assistants or LLM subscription plans encounter a common confusion: why does the “cost per million tokens” advertised officially fail to align with their perceived rate of quota consumption? Marketing might promise tens of millions of tokens per month, yet heavy usage exhausts the quota in days. Conversely, light users might find their effective unit price surprisingly low.

    The core of this contradiction lies in the fact that LLM token billing is not a single price list, but a composite structure comprising multiple token types, weight coefficients, and hidden quota systems. Simply looking at the surface number of “tokens per month” makes it nearly impossible to deduce the true cost.

    2. The Four Token Types: The First Step to Understanding Billing Structures

    During interactions with a model, the tokens generated in a single request are not homogeneous. The industry typically categorizes them into four types:

    1. Cache Hit Input: The requested context overlaps with previous requests and can be reused directly from the KV cache without recalculating. The marginal cost of these tokens is extremely low, so the billing weight is usually a fraction or even a few dozenths of the standard input price.
    2. Cache Write Input: Generated when writing long contexts for the first time (e.g., system prompts, large codebase summaries). This requires actual computation and storage, and its billing weight may be higher than standard input.
    3. Uncached Input: Completely fresh context that requires full inference computation.
    4. Model Output: Generated autoregressively token by token, incurring the highest computational cost. Its unit price is usually significantly higher than input.

    In other words, processing “1 million tokens” can vary in real cost by an order of magnitude depending on the composition of these four token types. This is why any comparison of “unit token pricing” must first ask: What are the weighting proportions?

    3. How Reviewers Reverse-Engineer Hidden Quota Systems

    Because subscription plans typically do not disclose their internal quota conversion rules, independent review organizations design “stress tests” to reverse-engineer them. The principle is conceptually straightforward but executed rigorously:

    • Isolating Variables: Deliberately constructing request sequences that consume large amounts of only one token type. For example, to test cache hits, a large fixed context is written first, followed by repeated requests using the same context. To test fresh inputs, the content is changed every time to avoid cache hits. To test outputs, the generation length is extended individually.
    • Cross-Interval Sampling: Because user interfaces usually only show integer percentages, single-measurement errors are large. The solution is to send a continuous stream of requests, recording the number of tokens consumed as the quota percentage jumps from 17% to 18%, 18% to 19%, etc. Averaging multiple intervals helps dilute quantization errors.
    • Weighting by Real Workload: Once the deduction rates for the four token types are obtained, they are weighted according to their proportions in a typical coding assistant workload (e.g., cache hit inputs account for over 90%, while outputs account for a minimal fraction) to infer the total token capacity a subscription quota can theoretically support.

    Such tests have revealed counterintuitive conclusions: the real equivalent cost difference between some flagship subscriptions can be several-fold, and plans with similar surface-level prices might have vastly different actual capacities.

    4. The “Ideal Condition” Trap of Theoretical Values

    It is crucial to remain vigilant, as any reverse-engineering is based on specific assumptions. A typical assumption used by some third-party pricing calculators is:

    Token Type Assumed Proportion
    Cache Hit Input 97%
    Uncached Input 2.5%
    Model Output 0.5%

    This implies that out of every 1 million tokens processed, 970,000 are cache hits, and only 5,000 are outputs—an idealized programming scenario extremely friendly to heavy caching.

    However, real-world usage is rarely this friendly. A suitable analogy is the range of an electric vehicle: a theoretical range of 500 km is measured under continuous no-load, low-speed-limit, and low-wind-resistance conditions. In daily stop-and-go driving, the actual range might drop below 350 km. Applied to LLM usage:

    • Caches Expire: Unaccessed session context caches become invalid, and the next request is billed as an uncached input or a cache write.
    • Frequent Task Switching: Moving from one project to another, changing codebases, or rewriting system prompts incurs significant cache write costs.
    • Output Proportion Fluctuations: Asking the model to write a large block of new code versus asking it to review and reply briefly can cause a tenfold difference in output tokens.
    • Long Context Dialogue Expansion: In multi-turn conversations, history continuously accumulates, causing the absolute volume of uncached inputs to grow steadily.

    Therefore, theoretical unit pricing is an upper-bound estimate; the actual equivalent cost will often degrade significantly, with the degradation depending on your workload structure.

    5. How to Calculate Your Real Costs

    For developers, rather than relying on a single number from any third party, it is better to establish your own measurement framework:

    1. Step 1: Record real workload
    2. Sample and calculate the actual proportion of each token type during a typical work week.
    3. (Many client debug logs or usage panels provide raw data)
    4. Step 2: Measure deduction rates for each type
    5. Following the method above, perform stress tests for each token type separately.
    6. Record the token consumption for quota percentage jump intervals.
    7. Step 3: Weighted calculation
    8. Equivalent total tokens = Subscription quota ÷ Σ(proportion_i × deduction_rate_i)
    9. Step 4: Compare with pay-as-you-go
    10. Calculate the total cost of token-based pricing using the same workload structure.
    11. Compare with the subscription price to find the break-even point.

    The key value of this method is that it transforms the question of “is this subscription worth it?” from a subjective feeling into an engineering problem that can be answered with data.

    6. Implications for Selection Decisions

    Based on the analysis above, several universal recommendations can be drawn:

    1. Look at workload structure first, then price. If your scenario primarily involves repeated reads of long contexts (e.g., continuous development of a large codebase), the advantages of a plan with high cache hit weight will be amplified. For high-frequency short interactions and multi-project switching, the benefits of caching will be heavily discounted.
    2. Distinguish the boundaries between subscriptions and pay-as-you-go billing. Subscriptions are essentially “quota packages” suited for users with stable, predictable workloads. For scenarios with high workload volatility or high output proportions, pay-as-you-go billing may actually be more transparent and controllable.
    3. Maintain skepticism toward any “theoretical unit price”. Whether the number comes from official marketing or third-party calculations, always question the underlying workload assumptions—97% cache hits versus 50% cache hits can lead to conclusions that differ by several magnitudes.
    4. Pay attention to capabilities beyond pricing. Context length, cache TTL, concurrency limits, and rate-limiting strategies will all materially impact unit cost. Comparing prices alone can easily lead to distorted conclusions.

    Conclusion

    LLM subscription pricing is a black box wrapped in cache mechanisms, hidden quota systems, and workload assumptions. Understanding the billing weight differences among the four token types, mastering the empirical methods to reverse-engineer quota systems, and remaining vigilant about “theoretical values under ideal conditions” are essential for making cost decisions that truly fit your workload among various model services. Different subscription models have their own pros and cons; there is no universally “cheapest” option, only the plan that best matches your usage patterns.