LLM Inference Pricing: Why Output is Doubled and Cache is Discounted — The Tech Logic Behind New Flagship Model Price Hikes

    The pricing strategy of new flagship large language models (LLMs) reveals a structural shift, significantly increasing output costs while offering deep discounts for cache hits. This article explores the technical logic behind this pricing model, analyzing inference cost structures involving KV cache, the economics of the Agent era, and how different usage patterns impact actual unit costs. It also provides actionable strategies for developers to optimize expenses under this new pricing paradigm.

    1. The Facts: How Much Did Prices Actually Increase?

    The announced pricing of the new flagship model compared to its previous coding-specialized generation shows uneven increases across different tiers:

    • Output tier: Increased from about 27 RMB/million tokens to 100 RMB/million tokens, a nearly 4x jump.
    • Input tier (cache miss): Increased from about 6.5 RMB/million tokens to 20 RMB/million tokens, roughly 3x.
    • Input tier (cache hit): Increased from about 1.1 RMB/million tokens to 2 RMB/million tokens, less than a 2x increase, making it the most moderate hike across all tiers.

    More notably, there is a structural change in the price ratios:

    1. The price ratio between cache misses and hits widened from about 6:1 in the previous generation to 10:1.
    2. The price ratio between output and cache hits widened from about 25:1 to 50:1.

    This indicates that the price adjustment is not a simple “proportional increase across the board,” but a deliberate move to widen the price gap between different usage patterns. To understand the intent behind this pricing design, we must delve into the cost structure of inference systems.

    2. Why Cache Hits Are Valuable: The True Composition of Inference Costs

    The cost of LLM inference is generally composed of three parts:

    • Weight loading and VRAM occupation: Model parameters reside in VRAM, representing a fixed cost.
    • Prefill computation: Processing the input prompt, where computation is proportional to the input length.
    • Decoding computation: Generating tokens one by one, where VRAM bandwidth and KV Cache access grow linearly or even super-linearly with context length.

    KV Cache is the critical factor here. In long-context Agent scenarios, a single task can easily involve hundreds of thousands of tokens. The VRAM footprint and bandwidth consumption of its KV Cache are substantial. If this can be reused—meaning multiple requests share the same system prompt and prefix—the system only needs to compute it once. Subsequent requests can directly reuse the cache, drastically reducing marginal costs.

    A mature industry approach is the disaggregated inference architecture, which decouples prefill and decoding into different compute nodes, managing and storing the cache independently and centrally. Under this architecture, the cache hit rate becomes the core variable determining unit cost. In certain intelligent coding scenarios, because users repeatedly use the same editor context, repository structures, and instruction templates, the cache hit rate can exceed 90%—meaning that for every 10 tokens processed by the system, only 1 token requires actual prefill recompute.

    Pricing reflects cost: The cache hit price of 2 RMB is close to the system’s marginal cost under the assumption of “zero prefix recompute,” while the cache miss price of 20 RMB must cover the full computation overhead of the prefill. The 10x ratio is an honest pricing of this cost difference.

    3. The Math: Who Pays the “Discounted” Price vs. the “Full” Price

    The pricing structure impacts two types of users very differently.

    Scenario A: Enterprise Agent Users

    Typical characteristics: Fixed system prompt, highly reused repository prefixes, input-to-output ratio of about 20:1 (common in long-context coding Agents), and a 90% cache hit rate.

    • Effective input unit price ≈ 2 × 0.9 + 20 × 0.1 = 3.8 RMB/million tokens
    • Output unit price = 100 RMB/million tokens
    • Blended unit price ≈ (20 × 3.8 + 1 × 100) / 21 ≈ 8.4 RMB/million tokens

    Scenario B: Indie Developers

    Typical characteristics: Different prompt every time, cache hit rate of only 20%, input-to-output ratio of about 5:1.

    • Effective input unit price ≈ 2 × 0.2 + 20 × 0.8 = 16.4 RMB/million tokens
    • Blended unit price ≈ (5 × 16.4 + 1 × 100) / 6 ≈ 30.3 RMB/million tokens

    For the same model, the unit cost in Scenario A is about 1/3.6 of that in Scenario B. On the surface, it looks like a blanket price increase, but in reality, price discrimination is baked into the billing granularity: enterprise clients who reuse prefixes long-term get services close to cost price, while random-access indie developers bear a higher marginal cost. This logic is analogous to traditional cloud computing, where “reserved instances are cheaper, on-demand instances are expensive.”

    4. Why Price Hikes Are Inevitable: The Agent Era’s Cost Model Has Changed

    In the Chatbot era, a single interaction involved dozens to thousands of tokens. Users were insensitive to unit prices, total expenditure was limited, and vendors could trade low prices for scale.

    The Agent era is completely different. In typical autonomous scenarios disclosed by the industry, a single task can easily involve thousands of tool calls and consume hundreds of thousands of tokens, with multiple Agents running in parallel for days. If these tasks were executed at the previous generation’s pricing, the inference side would operate at a loss—because VRAM occupation, KV Cache storage, and bandwidth consumption during the decoding phase grow linearly or super-linearly with context length, and revenue cannot cover the compute bill.

    Model scale itself is also increasing. The new generation of models has scaled up to the 2.8 trillion parameter level, adopting a large-scale sparse MoE architecture (thousands of experts, with only a dozen or so activated per token). Although active parameters are well controlled, the following costs are rigid:

    1. Resident VRAM weights: Even with sparse activation, the total number of expert parameters determines the VRAM floor, requiring more GPUs.
    2. Expert routing communication overhead: All-to-All communication accounts for a significant proportion in large-scale clusters and is difficult to optimize to zero.
    3. Kernel optimization under new attention mechanisms: Mechanisms like hybrid linear attention require targeted operator development and tuning, and this engineering investment ultimately translates into cost.

    5. Practical Advice for Developers

    Facing this pricing structure, developers can proactively align with the lower-cost tiers:

    1. Fix and reuse prefixes: Place stable content like system prompts, tool definitions, and long document instructions at the very beginning of the prompt to maximize cache hits.
    2. Dynamic content at the end: Place varying user inputs at the tail end of the prompt to avoid breaking the prefix cache.
    3. Control output length: Output is the highest-priced tier. Streamlining instructions and restricting generation formats can directly lower costs.
    4. Monitor usage: Record the distribution of input/output/hit rates at the application layer, and periodically recalculate the actual blended unit price using the formulas above to avoid being misled by the listed price.
    5. Multi-model routing: Route simple subtasks to lower-cost models and only invoke flagship models at key decision points. This is a standard cost optimization practice in the industry.

    6. Conclusion

    This price adjustment is essentially a public calibration of the Agent economic model: shifting the inference costs previously covered by low-price subsidies to corresponding user groups through differentiated cache pricing. For high-reuse, large-scale enterprise clients, this is not necessarily bad news—stable service quality and a long-term sustainable supply side are more important than one-time low prices. However, for developers with sporadic usage and scattered prompts, it is indeed necessary to re-evaluate unit costs and actively optimize through prefix engineering. Understanding that “listed price ≠ actual unit price” is the key to cost control in the new era of LLM pricing.