Decoding Cache Pricing: Why LLM API Price Hikes Hit Some Workloads Harder Than Others

    This article breaks down the pricing logic behind a recent LLM API price increase, focusing on how cache hit rates and input-to-output ratios determine the real cost per token. It explains why a disaggregated inference architecture can push prefix cache hit rates above 90%, models the effective unit cost for two contrasting scenarios, and runs a sensitivity analysis to show which variable matters most. The article closes with practical engineering recommendations for stabilizing prefixes, layering context, budgeting output, tracking observability metrics, and choosing the right architecture.

    1. The Signal: List Prices Rose Across the Board, but Not Uniformly

    A recent price update for a new-generation model API from an AI coding tool drew attention: the output rate is roughly 4x the previous generation, the uncached input rate is about 3x, and the cache-hit tier rose more modestly. On the surface, this looks like an across-the-board increase. Put the tiers side by side, however, and the structure of the increases is clearly uneven.

    The original list prices can be abstracted into the table below (in CNY per million tokens):

    Tier Previous Gen New Gen Multiple
    Output 27 100 ≈3.7
    Input (uncached) 6.5 20 ≈3.1
    Input (cached) 1.1 2 ≈1.8

    What actually matters is not the absolute price but the change in the ratios between tiers:

    • Uncached input / cached input widened from about 6x to 10x;
    • Output / cached input widened from about 25x to 50x.

    This means the pricing strategy has shifted its focus from “encouraging usage” to “rewarding reuse.” The cache-hit tier has become a price low point, while the output tier has become a cost high point.

    2. The Cause: Disaggregated Inference Pushes Cache Hit Rates Up

    A model technical blog noted that in coding scenarios, a disaggregated inference architecture (splitting the compute-intensive decode phase from the memory-intensive prefill phase into separate resource pools) pushed the prefix cache hit rate above 90%. This is a common industry technical approach, and its core benefit is that long prefixes such as system prompts, code context, and tool definitions do not need to be recomputed every turn.

    Once the cache hit rate enters the 90% range, the real effect of the pricing model changes completely: list prices went up, but the effective per-unit price for high-frequency reuse scenarios actually went down.

    3. Modeling: One Model, Two Very Different Unit Costs

    Let the input-to-output ratio be (r), the cache hit rate be (h), the cached input price (p_h=2), the uncached input price (p_m=20), and the output price (p_o=100). Then:

    1. effective input unit price = p_h * h + p_m * (1 - h)
    2. blended unit cost = (r * effective input unit price + p_o) / (r + 1)

    Scenario A: enterprise-grade long-context agent, (r=20), (h=0.9):

    1. effective input unit price ≈ 2*0.9 + 20*0.1 = 3.8
    2. blended cost ≈ (20*3.8 + 100) / 21 ≈ 8.4 CNY per million tokens

    Scenario B: low-frequency individual developer, (r=5), (h=0.2):

    1. effective input unit price ≈ 2*0.2 + 20*0.8 = 16.4
    2. blended cost ≈ (5*16.4 + 100) / 6 ≈ 30.3 CNY per million tokens

    The two differ by roughly 3.6x. The conclusion is clear: under the same model, customers who reuse the same prefix over the long term get a “discounted price,” while developers who change their prompts every time pay the list price or even a premium.

    4. Sensitivity Analysis: Which Variable Is Worth the Most

    Taking partial derivatives of the formulas above reveals:

    • The share of output cost is determined by (1/(r+1)); the larger (r) is, the thinner the expensive output is spread;
    • Input cost is highly sensitive to (h); as (h) rises from 0.2 to 0.9, the input unit price drops from 16.4 to 3.8, a reduction of about 77%.

    So the optimization priority should be: first raise the hit rate, then extend context reuse, and only then consider compressing output.

    5. Engineering Practice Recommendations

    1. Prefix stabilization: Put the system prompt, tool schema, and fixed examples at the very front, and avoid volatile injections such as timestamps and random IDs, so prefix drift does not invalidate the cache.
    2. Context layering: Route static knowledge through retrieval or long-term caching, append dynamic conversation tails incrementally, and keep “long prefix unchanged, short suffix changing.”
    3. Output budget: Use schema constraints for structured results, cut redundant explanatory text, and directly reduce consumption of the most expensive output tier.
    4. Observability: Use logging services and monitoring alerts to track hit rate and input-to-output ratio, and calculate the true unit cost with the formulas above rather than looking only at list prices.
    5. Architecture selection: For high-concurrency, long-context scenarios, prioritize platforms with prefix caching and disaggregated inference capabilities; for low-frequency scenarios, control context length and avoid paying for unused prefixes.

    6. Closing

    The price increase announcement is only the surface. The real cost watershed is the cache hit rate and the input-to-output ratio. If developers bring these two metrics into architecture design, they can capture a downward cost curve even during a period of rising list prices.