LLM Tiered Pricing Explained: Who Really Pays for Compute

    A new generation of LLM pricing looks more expensive across the board, but the increases are far from uniform: output prices have risen the most, while cached input prices have barely moved. This article breaks down how prefix caching and KV Cache reuse reshape inference costs, walks through real-world cost calculations showing a 3x+ gap between high- and low-cache-hit workloads, and offers practical tips for developers to engineer their prompts for lower bills.

    1. The Phenomenon: Prices Are Up Everywhere, but Not Evenly

    When a leading LLM provider recently announced pricing for its next-generation model, the immediate reaction was “it got more expensive.” But if you break prices down into three tiers—input (cache miss), input (cache hit), and output—you’ll find the increases are highly uneven. That unevenness is the key to understanding this price change.

    Using a typical industry pricing structure as an example (numbers are illustrative, used only to explain the mechanism):

    • Previous coding-focused version: output ~27 CNY per million tokens; input ~6.5 CNY on cache miss, ~1.1 CNY on cache hit;
    • New version: output ~100 CNY per million tokens; input ~20 CNY on cache miss, ~2 CNY on cache hit.

    Computing the increase per tier reveals three interesting patterns:

    1. Output prices rose the most, nearly 4x;
    2. Input prices rose roughly 3x across tiers, relatively moderate;
    3. The price gradient widened significantly: in the previous generation, cache-miss input was about 6x the cache-hit input; the new generation pushes that to 10x. The ratio of output price to cache-hit input went from roughly 25x to about 50x.

    In other words, this is not a simple across-the-board price hike but a structural reshaping of pricing—the cache-hit tier saw the smallest increase, while the output tier saw the largest. Behind this restructuring lies the change in inference costs brought by model capability upgrades, as well as the provider’s deliberate tilt toward certain customer segments.

    2. Why Can Cache Hits Be So Cheap?

    To understand this pricing, you first need to understand the cost structure of inference services.

    1. What Is KV Cache?

    When an LLM generates text autoregressively, the attention computation for every token depends on the intermediate states of all preceding tokens (the KV Cache). If every request had to compute these intermediate states from scratch, a long system prompt or conversation history would be recomputed for each new request, wasting enormous amounts of GPU compute on redundant work.

    The idea behind Prefix Caching is: if multiple requests share the same prefix (e.g., the same system prompt or the same codebase context), cache the KV Cache for that prefix in the inference cluster so subsequent requests can reuse it directly, skipping the redundant computation.

    2. The Role of Disaggregated Inference

    State-of-the-art inference solutions generally adopt a disaggregated architecture: prefill (processing input and generating the KV Cache) and decode (generating output token by token) are split onto separate compute nodes, with intermediate states passed through a high-speed cache pool. Combined with distributed caching systems, this architecture can push cache hit rates very high—according to public engineering blogs, hit rates above 90% are achievable in coding scenarios, where many requests share the same code context.

    3. From Cost to Pricing

    For cache-hit requests, the actual GPU compute devoted to that prefix is close to zero; the marginal cost is mainly storage and bandwidth, which is why the price can be pushed so low. On the output side, however, every token genuinely goes through decode-stage computation, and the stronger and larger the model, the higher the per-token cost—that’s why output prices rose the most.

    In one sentence: the sticker price reflects the marginal cost of the “worst case,” while the cache-hit price reflects the marginal cost of the “best case.” The gap between them is the dividend of compute reuse, and providers choose to pass most of that dividend to customers who can actually hit the cache.

    3. Doing the Math: Same Model, 3x+ Cost Difference

    The pricing structure affects users with different usage patterns very differently. Let’s work through two typical scenarios.

    Scenario A: Enterprise Agent, High Cache Hit Rate

    • Input-to-output ratio of about 20:1 (very common for long-context coding agents);
    • Cache hit rate of 90% (long-running workloads with the same system prompt, highly reused prefixes).

    Effective input price:

    1. 2 × 0.9 + 20 × 0.1 = 3.8 per million tokens

    Output stays at 100 per million tokens. Blended unit cost:

    1. (20 × 3.8 + 1 × 100) / 21 ≈ 8.4 per million tokens

    Scenario B: Individual Developer, Low Cache Hit Rate

    • A different prompt every request, hit rate around 20%;
    • Input-to-output ratio of about 5:1.

    Effective input price:

    1. 2 × 0.2 + 20 × 0.8 = 16.4 per million tokens

    Blended unit cost:

    1. (5 × 16.4 + 1 × 100) / 6 ≈ 30.3 per million tokens

    For the same model, Scenario A’s unit cost is about 1/3.6 of Scenario B’s. The sticker price is one thing; the actual bill is another: enterprise customers effectively get a discounted rate, while individuals who change their prompt every time pay full price—or a premium.

    4. Practical Advice for Developers

    Once you understand the pricing mechanism, you can actively optimize your cost structure:

    1. Keep your system prompt stable: Put system instructions, few-shot examples, tool definitions, and other fixed content at the very front of the prompt, kept byte-for-byte identical—this is the prerequisite for prefix cache hits. Even a one-character change invalidates all cached content after that point.
    2. Restructure your prompt: Move volatile content (user input, timestamps, random numbers) to the end of the prompt and put static content first, maximizing the reusable prefix length.
    3. Leverage message concatenation in multi-turn conversations: In continuous conversations, historical messages naturally form a reusable prefix—avoid unnecessarily truncating or rewriting history.
    4. Evaluate real cost, not sticker price: When choosing a model, weight the calculation with your actual input/output ratio and expected hit rate instead of looking only at the output price. You can parameterize the formula above with a simple script:
    1. def cost(hit_price, miss_price, out_price, io_ratio, hit_rate):
    2. in_price = hit_price * hit_rate + miss_price * (1 - hit_rate)
    3. return (io_ratio * in_price + out_price) / (io_ratio + 1)
    4. # Scenario A: ~8.4; Scenario B: ~30.3
    5. print(cost(2, 20, 100, 20, 0.9))
    6. print(cost(2, 20, 100, 5, 0.2))
    1. Pay attention to context caching features: Model services on major cloud platforms typically offer explicit context caching, allowing you to cache frequently reused content such as long documents or knowledge bases, significantly reducing costs at scale.

    5. Conclusion

    This price change is fundamentally about finer pricing granularity: evolving from a one-size-fits-all per-token price to tiered pricing based on actual compute consumption. For users who can build high-cache-hit workloads, it’s actually good news; for low-reuse, lightweight users, the bill genuinely goes up. As a developer, rather than complaining about sticker prices, it’s better to understand the cost model behind the pricing and use engineering techniques to become one of the customers who gets the discount. This also signals that the competitiveness of future LLM applications will depend not just on clever prompts, but on solid inference cost engineering.