LLM API Price Increases Explained: Why Cache Hit Rate Matters More Than the Sticker Price
New-generation LLM APIs bill input and output at sharply different rates: uncached input prices are close to ten times cached-input prices, and output is up to fifty times the cached-input rate. This article breaks down the changes in the three price tiers and shows through two worked examples how the same model can cost about 8.4 CNY or about 30.3 CNY per million tokens, depending on input-to-output ratio and cache hit rate. It explains why caching reduces input-side costs but not output costs, how Agent workloads change the cost picture, and how developers can keep bills under control through stable prefixes, context compression, output limits, model routing, and cost observability.
1. The bottom line first: the sticker price is not the bill
Recent discussions about API price adjustments for new-generation large models have centered on clear changes in three billing tiers: input on a cache miss, input on a cache hit, and output. On the surface, output prices are close to four times those of the previous generation, and input prices are up by roughly a factor of three. It is easy to conclude that everything has gone up across the board, but judging by unit prices alone makes it easy to misread the real cost structure.
What you actually pay for is not an isolated price per million tokens. Your bill is a composite driven by:
- input length
- output length
- cache hit rate
- request reuse
- context length
- concurrency
- task type
In agentic workflows, AI coding tools, long-document analysis, and multi-turn tool calling, the input side often dwarfs the output side, and much of the input consists of highly repetitive prefixes. The cache-hit price still looks low, yet it may carry far more weight on your bill than the price list suggests.
A more accurate way to read the price change: it is not a simple linear increase but a repricing of the inference cost structure. Enterprise users who can reuse a stable prefix over the long term and keep hit rates high can substantially dilute their effective per-unit cost. Low-volume users with scattered requests, frequently changing prompts, and little context reuse will feel cost pressure that comes close to, or even exceeds, the sticker price.
2. Price changes: a sharp rise in output, a milder change for cached input
Compare one typical service across its previous and new generations (prices in CNY per million tokens):
| Tier | Previous generation | New generation | Change |
|---|---|---|---|
| Output | ~27 | ~100 | Close to 4x |
| Input (cache miss) | ~6.5 | ~20 | About 3x |
| Input (cache hit) | ~1.1 | ~2 | Roughly 1.8x |
The three tiers did not move in lockstep.
Output: the most pronounced increase
The previous generation charged about CNY 27 per million output tokens; the new generation charges about CNY 100, an increase close to fourfold. Output is where the increase concentrates because generation does not happen in one shot. It requires token-by-token decoding: each output token is computed from the historical state formed by all prior input and everything generated so far. That makes the output stage demanding in terms of GPU memory bandwidth, inference scheduling, latency control, and resource consumption.
Input: the gap between cache misses and cache hits is wider
The previous generation charged about CNY 6.5 per million tokens on a cache miss and about CNY 1.1 on a hit. The new generation charges about CNY 20 and CNY 2 respectively. In absolute terms, input prices are up roughly threefold. In relative terms, however, the cache-hit price remains far below the cache-miss price. This means the provider has not simply monetized caching at a premium. It is retaining an incentive for caching while shifting most of the cost pressure onto cache misses and output generation.
Cache-hit discount: the spread is wider still
Under the previous generation, a cache-miss input token cost about six times a cache-hit input token. In the new generation, that ratio has widened to about ten times. At the same time, the ratio between output price and cache-hit input price has roughly doubled, from about 25x to about 50x.
In other words, caching has moved from a marginal optimization to a key variable that determines real cost.
3. Real cost: the same model, several times apart in spend
To assess the true cost of the new generation, you need the concept of a blended cost per million tokens, not the price of a single tier. Suppose a scenario has the following profile:
- Input-to-output token ratio of about 20:1, which is common in long-context agents, code analysis, and document Q&A
- A 90% cache hit rate
- Cached input at CNY 2 per million tokens
- Cache-miss input at CNY 20 per million tokens
- Output at CNY 100 per million tokens
The effective input price is then:
Effective input price = 2 x 0.9 + 20 x 0.1 = 3.8 CNY per million tokens
With 20 units of input tokens and one unit of output tokens, the blended cost is:
Blended cost = (20 x 3.8 + 1 x 100) / 21 = approximately 8.4 CNY per million tokens
Now consider a second scenario:
- Input-to-output token ratio of about 5:1
- A cache hit rate of only 20%
- The same prices
The effective input price becomes:
Effective input price = 2 x 0.2 + 20 x 0.8 = 16.4 CNY per million tokens
And the blended cost becomes:
Blended cost = (5 x 16.4 + 1 x 100) / 6 = approximately 30.3 CNY per million tokens
Both scenarios run on the same new-generation model. Yet the first, an enterprise-style workload with heavy reuse and a high hit rate, costs about CNY 8.4 per million tokens. The second, a low-volume workload with weak caching and frequently changing prompts, costs about CNY 30.3. That is a difference of roughly 3.6x.
The real question is not whether the sticker price is expensive. What matters is:
- Whether requests share a stable, reusable prefix
- Whether the system prompt, tool descriptions, and knowledge snippets stay consistent over time
- Whether input is much longer than output
- Whether the cache hit rate can be kept consistently high
- Whether output length is controllable
- Whether there are many short, dynamic, or low-frequency requests
4. Why cache hits matter: reuse saves prefill computation
A request typically goes through two stages:
1. Input processing (prefill)
The model reads the system prompt, user input, conversation history, tool definitions, retrieved snippets, and other content, and computes the hidden states for these tokens. Inference systems generally refer to this stage as prefill. Long inputs make prefill costly in both compute and GPU memory.
2. Output generation (decoding)
The model produces new tokens one step at a time based on the input state and the tokens generated so far. Each new token requires reading the current context state and computing the next step. This stage is highly sensitive to memory bandwidth and scheduling.
Cache hits work because the platform can reuse the already-computed context state when several requests share the same prefix. It does not have to run a full prefill every time. Long-context agents repeatedly carry system prompts, tool lists, knowledge-base snippets, and prior interaction histories in every request. When these prefixes hit the cache, the input-side compute cost drops substantially.
The cache-hit price is not zero because a hit is not entirely free. It still involves cache storage, memory or GPU memory consumption, cache lookup, request scheduling, and checks that the context stays consistent. That is why the hit price is lower than the miss price, but not low enough to treat the resource cost as negligible.
Output prices have risen so noticeably because the cost of the decoding stage is hard to eliminate with caching. Every new token must be decoded against the current full state, and the output stage places greater demands on latency, bandwidth, and concurrency scheduling. For agentic tasks that need long responses, caching cannot directly amortize output costs.
5. The agent era: cost shifts from a single conversation to long-running tasks
In a conversational application, one user interaction might involve only tens to a few thousand tokens, so callers are usually not very sensitive to cost. In the agent era, the cost structure changes significantly. Agent tasks typically share five traits:
- Long context: System prompts, tool definitions, task goals, prior steps, execution results, code snippets, and retrieved content keep accumulating. A moderately complex task can easily push the input context to tens of thousands, or even hundreds of thousands, of tokens.
- Multiple tool calls: An agent does not finish in one answer. It loops through thinking, calling, observing, and calling again, and each additional step may carry some or all of the previous context.
- Long runtime: Some automated tasks run for hours or even days. When multiple agents run in parallel, total token consumption grows significantly.
- High proportion of repeated prefixes: Within the same session, with the same toolset and system prompt, many requests share a stable prefix. Good use of caching can substantially dilute input costs.
- Output cannot be fully reused: Input prefixes can be reused, but the output of each step is usually task-specific and hard to reuse across requests. Output therefore remains one of the main cost items in long-running tasks.
For example, a single task in a typical enterprise agent scenario might involve thousands of tool calls and consume hundreds of thousands of tokens in total. With a cache hit rate of only 20%, much of the input is billed at the cache-miss price while the output cannot be avoided, so the blended cost climbs quickly. If the system prompt, tool descriptions, task templates, and knowledge snippets stay stable and the hit rate stays above 90%, input-side costs fall sharply and the overall bill becomes much easier to control.
6. Sparse model architectures: an engineering challenge of balancing performance and cost
New-generation large models generally point toward larger parameter counts, sparse activation, hybrid attention, and long-context optimization. These architectural choices do not translate simply into “cheaper” or “more expensive.” Their impact depends on how the inference stack is engineered.
- Large parameter counts, high resident-resource cost: Even if a single inference activates only some of the parameters, the full set of model weights still needs to be deployed in GPU memory or high-speed storage. Larger models put more demands on GPU memory capacity, memory bandwidth, model loading, and node scheduling.
- Sparse activation lowers compute but adds routing complexity: Sparse architectures activate only a small number of experts per token to reduce computation. Expert routing, load balancing, communication synchronization, and cache layout all introduce additional engineering costs. An uneven distribution of experts can also leave some nodes overloaded.
- Long context increases attention and cache pressure: In long-context scenarios, the size of the KV cache grows with context length. Larger caches consume more GPU memory, put more pressure on bandwidth, and are harder to schedule. Even when reuse reduces repeated computation, efficient storage and indexing mechanisms are still required.
- Output decoding is bandwidth-sensitive: Decoding is often not purely compute-bound. It is highly sensitive to memory bandwidth, scheduling efficiency, and latency control. Long-output tasks require stronger resource guarantees to sustain stable throughput and acceptable latency.
The pronounced increase in output pricing therefore reflects more than a commercial decision. It also reflects the higher combined costs of deployment, scheduling, long-context handling, and inference resource provisioning in the new generation.
7. How developers can reduce real cost: start with request design
With the new pricing structure, developers should look beyond unit prices. They need systematic optimization across request design, context organization, cache utilization, output control, and task orchestration.
1. Keep prefixes stable to raise the cache hit rate
The hit rate depends on whether the request prefix is stable. Keep content that rarely changes at the front and put dynamic content at the end, for example:
- Keep the system prompt fixed
- Keep tool definitions stable
- Avoid frequently changing few-shot examples
- Organize knowledge snippets in a consistent order
- Put dynamic user input last
A sample structure:
Stable system promptTool descriptionsFixed examplesHistory summaryDynamic user input
If you reshuffle the system prompt, tool order, or examples on every request, the cache may not be reused even when the business logic is unchanged.
2. Version your prompts
Teams should avoid having several people edit prompts, tool descriptions, and templates at the same time. Put version management in place so that the stable prefix used in production stays consistent. Frequent version changes increase the chance of cache invalidation and can also distort cost estimates.
3. Compress input context
Longer context does not necessarily produce better results. It increases input costs and inference pressure. To compress the input:
- Summarize past conversations
- Include only the tools relevant to the current task
- Deduplicate, sort, and truncate retrieval results
- Include only key files or key snippets in code context
- Remove repeated logs, error messages, and ineffective placeholders
4. Control output length
Since output prices have risen noticeably, controlling output matters more than ever. Define the task goal clearly and avoid unnecessary verbosity:
- Use structured output
- Specify word or field limits
- Ask the model to return only the required results
- Avoid open-ended free-form generation
- Break long-text generation into segments
5. Set up model routing
Not every request needs the most capable model. Simple classification, summarization, extraction, and format conversion can go to a lower-cost, smaller model. Reserve complex reasoning, code generation, and multi-step planning for premium models. This can significantly reduce overall average costs.
6. Use asynchronous execution and batching
For tasks that do not need real-time responses, use asynchronous tasks, batch processing, and queue scheduling. These reduce the resource pressure of peak concurrency, and unified batching can also improve cache reuse.
7. Make costs observable
Enterprises should log the input tokens, output tokens, cache hit status, task type, model version, latency, and cost of every request. Track at least these metrics:
- Cost per thousand requests
- Cost per successful task
- Cache hit rate
- Average input length
- Average output length
- Input-to-output ratio
- Timeout and retry rate
- Blended cost per token
A sample cost-estimation formula:
Effective input price = cached price x hit rate + uncached price x (1 - hit rate)Blended price = (input tokens x effective input price + output tokens x output price) / total tokens
8. Choose carefully what to cache
Caching lowers costs, but it also raises data security concerns. For content that includes user privacy, sensitive enterprise information, internal documents, or code assets, confirm the cache isolation mechanism, lifecycle, and access controls. In multi-tenant systems, make sure sensitive cached content is not shared between tenants.
8. Choosing an enterprise model: evaluate task-level cost, not just output price
When evaluating or purchasing a large-model service, the output unit price is only one reference point. What really determines cost is how much it takes to complete a business task. Assess vendors across these dimensions:
- Cache hit capability: Can the service effectively reuse system prompts, tool descriptions, knowledge snippets, and session prefixes? The hit rate has a major impact on long-context scenarios.
- Input-to-output ratio: If input is much larger than output, cache hits on the input side matter especially much. If output is long, focus on the output price and the platform’s support for controlling output length.
- Context length: For long-context tasks, evaluate stability, latency, cache utilization, and failure recovery with very long inputs.
- Concurrency and rate limits: When agents run in parallel, can the platform reliably handle high concurrency? If rate limiting forces task retries, those retries add to your costs.
- Observability and auditing: Enterprises need to track call volume, token consumption, cache hits, error rates, and cost distribution. Without monitoring, fine-grained cost control is hard.
- Security and compliance: Does the caching mechanism support tenant isolation? Are logs masked? Could data be used for training or reused across customers? Clarify these points during evaluation.
9. Summary: the price change is a reordering of the cost structure
On the surface, the new-generation API pricing is an increase in output, input, and cache-hit prices. In substance, it reflects a shift in the inference cost structure. For enterprise agent scenarios with high cache hit rates, heavy input reuse, and long contexts with stable prefixes, the new pricing may even lead to better real-world costs. For developers with low-volume, short requests, highly dynamic prompts, and low cache utilization, real costs will come close to the sticker price or end up higher.
Evaluating model pricing therefore cannot stop at “how much per million tokens.” Instead, start from your actual workload and build a framework based on blended cost per million tokens or cost per successful task. Developers should focus on:
- stable prefix design
- cache hit rate
- input compression
- output control
- model routing
- task orchestration
Only by making these engineering practices part of the system architecture can you balance cost, performance, and stability under the new-generation pricing model.
