Cache Hit Rate Determines Agent Costs: The Logic Behind the Latest LLM Price Hike

    A major LLM provider recently raised the list price of its new foundation model, but the actual bill depends heavily on cache hit rate. This article breaks down the pricing logic, models real costs for two typical workloads, and offers practical cache-friendly design guidance for developers.

    Cache Hit Rate Determines Agent Costs: The Logic Behind the Latest LLM Price Hike

    A major LLM provider recently published pricing for its next-generation foundation model. The list price did go up, but the magnitude varies by billing tier, and the final bill depends more on cache hit rate than on the sticker price. This article unpacks the logic behind the adjustment and estimates real-world costs using two typical workloads.

    1. List Price Increases: Not Uniform Across Tiers

    Take coding scenarios as an example. The previous model’s output price was about 27 CNY per million tokens; the new list price is 100 CNY, a roughly 3.7x increase — the steepest of all tiers. On the input side, the cache-miss price rose from 6.5 to 20 CNY, about 3.1x. The cache-hit price went from 1.1 to 2 CNY, only about 1.8x, the mildest increase of the three tiers.

    The ratios between tiers shifted as well. The miss-to-hit ratio widened from roughly 6x to 10x. The output-to-hit ratio climbed from about 25x to 50x. In other words, the price increase is concentrated on output tokens and uncached input, while cache hits were barely touched.

    There is a technical rationale for this design. Output is generated token by token through decoding, which consumes far more memory bandwidth and compute time than input processing. A cache hit, by contrast, skips redundant prefill computation and directly reuses the existing KV cache. Widening the price gradient amounts to using pricing signals to steer callers toward different usage patterns.

    2. Cache Hit Rate: The Premise of the New Pricing Model

    Larger model specifications push up per-request cost. According to specifications cited in media reports, the model uses a sparse MoE architecture with roughly 2.8 trillion parameters — refer to the provider’s official documentation for authoritative details. As parameter count grows, memory footprint, KV cache storage, and decoding bandwidth all scale with context length. Without accompanying scheduling optimizations, the cost of a single request would indeed rise noticeably.

    The provider’s answer is a disaggregated inference architecture that separates prefill from decoding, combined with a cache-centric scheduling strategy. The provider claims cache hit rates can exceed 90% in coding scenarios. That figure presumes that multiple requests share the same system prompt, code prefix, or tool definitions. It describes results under specific workloads and will not necessarily reproduce in every business. Before committing, measure the hit rate with your own request logs.

    3. Real Unit Prices for Two Types of Users

    List price is not what you actually pay. The effective unit price is determined by two factors: cache hit rate and the input-to-output ratio. The estimates below use two sets of assumptions, with all prices in CNY per million tokens.

    Scenario Cache hit rate Input:output ratio Effective input price Blended price
    Enterprise Agent 90% 20:1 3.8 ~8.4
    Individual developer 20% 5:1 16.4 ~30.3

    In the enterprise Agent scenario, the effective input price is 2×0.9 + 20×0.1 = 3.8 CNY. Out of every 21 tokens, 20 are input and 1 is output, yielding a blended price of about 8.4 CNY. For individual developers, the hit rate is only around 20%, so the effective input price rises to 2×0.2 + 20×0.8 = 16.4 CNY, with a blended price of about 30.3 CNY. For the same model, the former costs roughly 28% of the latter — less than a third.

    This gap comes from usage patterns, not from any user-specific discount. Applying the same assumptions to the previous generation’s pricing, the enterprise scenario blended cost was about 2.8 CNY and the individual scenario about 9.0 CNY. On that basis, the enterprise scenario rises about 2.9x under the new pricing, while the individual scenario rises about 3.4x. Both groups pay more; individual developers absorb the larger increase.

    4. Chatbot vs. Agent: Different Cost Profiles

    The design of the new pricing model is directly tied to the cost structure of the Agent era. The conclusion up front: the new pricing lowers the cost of reusable context and raises the cost of building new context and generating content.

    In the chatbot era, a single interaction typically consumed only a few hundred to a few thousand tokens. The absolute cost per interaction was small, and users were not sensitive to unit price.

    Agent tasks are entirely different. A complex task may involve thousands of tool-call steps, each carrying the full conversation history. Consumption of hundreds of thousands to millions of tokens is common. When multiple Agents run in parallel for days, token volume turns from a personal expense into an enterprise bill.

    The input-output structure matters even more. An Agent’s input carries the system prompt, tool descriptions, historical trajectories, and intermediate results, while its output is often just a short next action. Input dominates disproportionately. Inference time is mainly governed by context length, KV cache storage, and decoding bandwidth — all of which grow with context. If all input were billed at a single flat rate, pricing could not reflect which context is reusable and which must be recomputed.

    5. How Developers Can Adapt to the New Pricing Logic

    The opportunity for enterprise users lies in turning dynamic prefixes into static ones. Workloads that maintain fixed system prompts and tool definitions over time, and that run similar tasks at high frequency across many Agents, will perform well under the new pricing. Concrete steps include:

    • Place system prompts, tool descriptions, and knowledge base snippets at the very front of the request to form a stable prefix.
    • Have different tasks and threads share similar context structures wherever possible.
    • Avoid reassembling a fresh prompt for every subtask.

    These optimizations involve only application-layer design and require no changes to model code.

    Individual developers and consumer-facing products face more direct pressure. Occasional calls that each carry a large amount of unique context will become noticeably more expensive. Consider the following:

    • Reduce frequently changing portions of the context, and carve out stable content for reuse.
    • Use shorter instructions to shrink input volume.
    • For tasks that do not need real-time responses, check whether the provider offers asynchronous or low-priority invocation options before deciding to adopt them.

    Cache-friendly design checklist:

    1. Are the system prompt and tool descriptions placed at the very front of the request, sent byte-for-byte identically every time?
    2. Are knowledge base snippets concatenated in a fixed order?
    3. Have volatile fields such as timestamps, random IDs, and usernames been moved out of the prefix?
    4. Do subtasks reuse the parent task’s context instead of reassembling their own?
    5. Do you regularly review cache hit metrics and compare them week over week?

    6. Verify Billing Terms Before Comparing Providers

    Cache billing rules vary significantly across providers. Cache lifetime, the minimum prefix length required for a hit, whether cache writes are billed separately, and the strictness of prefix matching all affect real cost. Figures like a 90% hit rate also tend to come from providers’ own tests under specific workloads. Before comparing across vendors, go through each billing document item by item and run estimates with your own real request samples.