LLM Inference Pricing Divergence: A Deep Dive into Cache-Hit vs. Output Token Pricing
This article analyzes recent changes in large language model (LLM) inference pricing, showing that the adjustments are not a uniform price hike but a deliberate widening of price tiers. By examining the cost structures of prefill vs. decode phases, KV cache pressure in sparse MoE architectures, and the economics of cache hits, it explains why output tokens have become relatively more expensive while cache-hit inputs remain cheap. Using two contrasting usage scenarios, it demonstrates that the effective cost per token can vary by more than 3x depending on cache hit rates and input-output ratios. The article concludes with practical recommendations for developers to optimize their call patterns and reduce inference costs in agentic workloads.
1. The Data: Not a Uniform Price Increase
A side-by-side comparison of the previous and current generation model pricing reveals significant differences across billing tiers:
| Billing Tier | Previous-Gen Coding Model | New-Gen Model | Increase |
|---|---|---|---|
| Output token | 27 CNY / 1M tokens | 100 CNY / 1M tokens | ~3.7x |
| Input token (cache miss) | 6.5 CNY / 1M tokens | 20 CNY / 1M tokens | ~3x |
| Input token (cache hit) | 1.1 CNY / 1M tokens | 2 CNY / 1M tokens | ~1.8x |
Looking at the “output 100” figure alone, one might conclude a “5x jump.” But the more telling evolution is in two ratios:
- Cache-miss vs. cache-hit input ratio: widened from ~6x to 10x.
- Output vs. cache-hit input ratio: widened from ~25x to 50x.
In other words, the core change is not a blanket price increase, but a widening of price gradients across tiers: cache hits have become relatively cheaper, while outputs have become relatively more expensive. To understand this strategy, we need to examine the true cost structure of inference.
2. The Real Cost Structure: Why Output Is Expensive and Cache Hits Are Cheap
2.1 Prefill vs. Decode Cost Differences
LLM inference operates in two phases:
- Prefill phase: Processes the entire input prompt at once. This is compute-intensive, highly parallelizable, and achieves high GPU utilization, so the per-token cost is relatively low.
- Decode phase: Generates tokens autoregressively, one at a time. Each generated token requires reading the full KV cache, making memory bandwidth the bottleneck rather than compute. The longer the context, the higher the cost per output token.
This explains why output pricing is consistently higher than input pricing: output tokens consume bandwidth-limited decode resources, and their cost grows with context length.
2.2 KV Cache and Memory Pressure from Sparse Architectures
New-generation models commonly use trillion-parameter sparse Mixture-of-Experts (MoE) architectures — for example, hundreds of billions to trillions of total parameters with only a tiny fraction of experts activated per token. Sparse activation reduces per-token compute, but all model parameters and expert weights must remain resident in memory, and the storage and read cost of KV cache grows linearly or even superlinearly with context length.
In the chat era, a single interaction might involve tens to thousands of tokens, making these costs negligible. But in the agent era, a single task can involve thousands of tool calls, consume hundreds of thousands of tokens, and run autonomously across multiple agents for days. At old pricing, such workloads would likely be unprofitable on the inference side. The price increase is essentially a re-pricing of the real costs of agentic scenarios.
2.3 The Economics of Cache Hits
Disaggregated inference architectures — which decouple prefill and decode onto different nodes and independently cache/schedule KV cache — allow long prefixes to be reused across requests. For repeated requests, the cache-hit portion requires almost no recomputation of prefill, so the marginal cost is extremely low. Since the cost of hit portions has dropped dramatically, providers have an incentive to pass part of that savings to users with high reuse rates — which explains why the “cache-hit price increase” is the most moderate.
3. A Cost Comparison: Same Model, Over 3x Cost Difference Across Scenarios
Listed prices are only one dimension — actual costs depend on usage patterns. We estimate blended per-token costs for two typical scenarios.
Scenario A: Enterprise Coding Agent
Typical traits: a fixed, long system prompt; highly reused project context; input-to-output ratio of ~20:1; cache hit rate up to 90%.
# Cache-hit price 2 CNY, cache-miss price 20 CNYinput_price = 2 * 0.9 + 20 * 0.1 # = 3.8 CNY / 1M tokensoutput_price = 100# Weighted at 20:1 input-to-output ratioblended = (20 * input_price + 1 * output_price) / 21 # ≈ 8.4 CNY / 1M tokens
Scenario B: Low-Frequency Individual Developer
Prompts change every time, cache hit rate is only 20%, and input-to-output ratio is 5
input_price = 2 * 0.2 + 20 * 0.8 # = 16.4 CNY / 1M tokensblended = (5 * input_price + 1 * output_price) / 6 # ≈ 30.3 CNY / 1M tokens
The same model costs about 3.6x less per token in Scenario A than in Scenario B. On the surface, this looks like a “universal price increase,” but in reality:
- Enterprise customers with long, stable system prompts and high prefix reuse effectively get a discounted rate.
- Individual developers who change prompts frequently pay list price or even a premium.
This signals a shift for mainstream model pricing from “one-size-fits-all” to “usage-pattern-based pricing”: price gradients encourage context reuse and penalize fragmented calls.
4. Recommendations for Developers
- Maximize cache hit rate: Place stable content (system prompts, tool definitions, project specification documents) at the very beginning of the prompt, and put dynamic content at the end, ensuring prefix consistency.
- Evaluate your input-output ratio: High-input, low-output scenarios (e.g., code comprehension, long-document analysis) benefit most from cache discounts; high-output scenarios should monitor output pricing and limit generation length when necessary.
- Control context growth in agent tasks: Regularly compress conversation history, trim irrelevant tool results, and avoid unbounded KV cache growth that inflates decode costs.
- Use hybrid routing for high-volume workloads: Route simple subtasks to cheaper models and reserve the flagship model for only the most complex reasoning.
5. Conclusion
This pricing adjustment should not be interpreted simply as a “5x price increase,” but rather as a structural repricing of inference costs for the agent era: output tokens are tied to decode bandwidth and have become more expensive, while cache hits have stayed moderate due to architectural optimizations. For developers, the response is not to complain about listed prices but to optimize their call patterns — under the new pricing scheme, context reuse itself is a competitive cost advantage.
