How Tiered LLM Inference Pricing Works: Cache, Input, and Output Costs Explained

    LLM providers are shifting from flat pricing to tiered inference pricing based on cache hits, input tokens, and output tokens. This article breaks down the economics behind this structure—KV Cache costs, how effective unit prices can differ by more than 3x for the same model, and why the Agent era is driving prices up—plus practical tips developers can use to optimize costs through caching.

    Understanding Tiered LLM Inference Pricing: Cache, Input, and Output

    Recent price adjustments by LLM providers reveal an important shift: inference pricing is no longer a single number, but a tiered structure built around how resources are actually consumed. Understanding this structure matters more than simply noting that “prices went up.”

    1. The Facts: Three Pricing Tiers, Uneven Increases

    Take a next-generation general-purpose LLM as an example. Official pricing is split into three tiers: cache-hit input, cache-miss input, and output. Compared with the previous coding-focused version, output prices rose from about 27 RMB per million tokens to 100 RMB—nearly 4x. Input prices for cache misses went from 6.5 to 20 RMB per million tokens (about 3x), and cache-hit inputs from 1.1 to 2 RMB.

    But the more telling signal is how the ratios between tiers shifted:

    • The ratio of cache-miss to cache-hit input prices widened from roughly 6:1 to 10:1;
    • The ratio of output to cache-hit input prices widened from roughly 25:1 to 50:1.

    This means the pricing system is deliberately widening the gap between “reused resources” and “newly computed resources.” Cache-hit input saw the mildest increase; output saw the steepest. To understand why, we need to look at what inference actually costs.

    2. Why Cache Hits Are Cheap: The Economics of KV Cache

    When Transformer models generate text autoregressively, every token’s context goes through attention computation. To avoid recomputing Key/Value matrices for historical tokens, inference services cache them—this is the KV Cache.

    The key point is that storing and reading KV Cache has real costs. In long-context scenarios, a session with hundreds of thousands of tokens can occupy gigabytes or even tens of gigabytes of GPU memory. Modern inference services therefore commonly implement prefix caching: if a new request shares a prompt prefix with a previous one, the attention states for those tokens can be reused directly, skipping redundant prefill computation.

    For providers, a cache hit means:

    1. Skipping prefill compute, which typically accounts for a significant share of total computation;
    2. Paying only for KV Cache storage and read bandwidth—far cheaper than recomputing;
    3. Significantly lower first-token latency, which also improves user experience for long prompts.

    So the low cache-hit price isn’t a discount out of goodwill—it reflects genuinely lower costs. The pricing passes those savings to users, provided their request structure allows reuse.

    3. Same Model, Effective Price Can Differ by 3x or More

    Tiered pricing leads to an important conclusion: identical nominal unit prices can translate into very different real costs depending on usage patterns. Let’s estimate two typical scenarios.

    Scenario A: Enterprise Agent. A long-context coding agent typically has an input-to-output ratio of 20:1, with a highly fixed system prompt and tool definitions. Prefix cache hit rates can exceed 90% (some vendors achieve this using disaggregated inference architectures that decouple prefill and decoding, running caches on dedicated clusters).

    The effective blended input price:

    1. Weighted input price = hit price × 0.9 + miss price × 0.1
    2. = 2 × 0.9 + 20 × 0.1 = 3.8 RMB per million tokens

    Combining the 20:1 input-output ratio:

    1. Blended unit price = (20 × 3.8 + 1 × 100) / 21 ≈ 8.4 RMB per million tokens

    Scenario B: Casual Developer. Prompts differ every time, cache hit rate is around 20%, and the input-output ratio is 5:1:

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

    Same model, but the two usage patterns differ by roughly 3.6x in unit cost. What looks like a universal price hike is actually a disguised discount for enterprise customers with high prefix reuse, while lightweight users who change prompts every time pay full price—or a premium. This is classic cost-structure-based differential pricing, similar to how cloud providers price reserved versus on-demand instances.

    4. The Real Driver Behind the Price Increase: Agent-Era Inference Cost Curves

    In the chat era, a single interaction used tens to thousands of tokens, so price sensitivity was naturally low. The Agent era is different:

    • A single task can involve thousands of tool calls and accumulate hundreds of thousands of tokens of context;
    • Multi-agent parallelism and long-running autonomous execution amplify token consumption by orders of magnitude;
    • Inference costs grow linearly—or super-linearly—with context length: GPU memory, KV Cache storage, and memory bandwidth during decoding all balloon as context grows.

    For providers, running very long-context tasks at old prices could mean losing money on individual calls. The price increase is partly a passive reflection of the cost curve, not purely a commercial decision.

    On top of that, next-generation models demand more hardware themselves. Trillion-parameter sparse MoE architectures keep active parameters manageable, but full weights in memory, communication overhead from expert routing, and the difficulty of kernel optimization under hybrid attention mechanisms all translate into more GPUs and more complex cluster scheduling. These infrastructure investments inevitably flow into pricing.

    5. Practical Advice for Developers

    1. Structure your prompts: Place stable system prompts and tool schemas at the very front of the prefix, with dynamic content after them, to maximize prefix cache hits.
    2. Reuse session context: For multi-turn tasks, continue the same session instead of rebuilding it each time—cached tokens are billed at the lower tier.
    3. Match the model to the task: Use cheaper models or cheaper versions for lightweight exploration and one-off scripts; reserve premium flagship models for long-running Agent tasks.
    4. Watch your input-output ratio: Agent applications are input-heavy, so input-side cache hit rate has an outsized impact on total cost and deserves dedicated optimization.
    5. Verify actual hit rates in your billing dashboard: Don’t just look at listed prices—use real bills to back-calculate your effective unit price so you can accurately compare model versions.

    6. Conclusion

    The essence of this pricing change is a paradigm shift from “chat-based billing” to “Agent-based billing”: pricing increasingly maps to underlying resource consumption, with prefill compute, KV Cache storage, and decoding bandwidth split into distinct tiers, making usage patterns determine actual cost. For enterprise customers who reuse context efficiently, it’s a discount; for random-access lightweight users, it’s a return to full price. Understanding this tiered logic is more valuable than complaining about “price increases”—because it makes one thing clear: in the Agent era, engineering-level cache optimization is real, measurable cost optimization.