Evaluating LLM Price Increases: Cache Hits and Task Cost Analysis
This article explains how to evaluate large language model price changes without conflating different billing categories. It builds a token-level cost model based on input-output ratio and cache hit rate, compares workloads with different reuse patterns, and argues that upgrade decisions should focus on cost per successful task rather than headline token prices.
1. Align Billing Definitions Before Evaluating a Price Increase
When discussing large model pricing, a common mistake is to compress different billing items into a single claim that “the overall price has increased several times.” In practice, a single call usually involves at least three usage categories:
- Uncached input tokens: input content that must be processed through the regular path.
- Cached input tokens: input content that meets cache-reuse conditions and is billed at the cache-hit rate.
- Output tokens: content generated by the model and billed according to the relevant rules.
These three categories have different unit prices and different shares in real workloads. Therefore, the increase in one tier cannot represent the cost change for all requests.
To illustrate the calculation method, this article uses a set of hypothetical prices that do not correspond to any specific product or actual quote:
| Billing item | Old pricing | New pricing |
|---|---|---|
| Uncached input | CNY 6.5 per million tokens | CNY 20 per million tokens |
| Cached input | CNY 1.1 per million tokens | CNY 2 per million tokens |
| Output | CNY 27 per million tokens | CNY 100 per million tokens |
From these figures:
- The uncached input price is about 3.08 times the original;
- The cached input price is about 1.82 times the original;
- The output price is about 3.70 times the original.
Therefore, “every price has become five times the original” does not match this data. A more accurate statement is: output and uncached input show larger increases, while the cached-input tier shows a relatively smaller increase.
It is also important to note that whether the cache-hit price is CNY 1 or CNY 2 directly affects subsequent calculations. If the CNY 1 tier is used, results based on CNY 2 cannot be carried over. Before conducting a cost evaluation, verify the effective date, billing unit, scope of application, and whether additional fees exist.
2. Build a Cost Model: Convert List Prices into Business Bills
Assume that during a given measurement period:
- Total input tokens are (I);
- Total output tokens are (O);
- The input cache hit rate is (h);
- The uncached input unit price is (P_u);
- The cached input unit price is (P_c);
- The output unit price is (P_o).
All unit prices are expressed in “CNY per million tokens.”
The weighted average input price is:
[
P_{\text{in}}=hP_c+(1-h)P_u
]
The total cost is:
[
C=\frac{I[hP_c+(1-h)P_u]+OP_o}{10^6}
]
If the input-output ratio is defined as (r=I/O), the average cost per million combined input and output tokens is:
[
P{\text{avg}}=\frac{rP{\text{in}}+P_o}{r+1}
]
This model reveals three key variables: input-output ratio, input cache hit rate, and output price.
It is especially important to note that the cache hit rate here should be measured by input token volume, not by request count. A very short request that hits the cache and a request containing a large amount of historical context that hits the cache have completely different effects on the bill.
At the same time, “average cost per million combined tokens” is only a normalized metric for comparison. It is not necessarily a billing tier actually offered by a provider, nor is it equal to the cost of completing a task.
3. Why Two Workload Types Produce Different Bills
3.1 Long-context, stable-prefix, continuously running tasks
Suppose a coding agent needs to repeatedly read fixed specifications, project instructions, and historical context. Its input-output ratio is 20:1, and its input cache hit rate is 90%.
Using the hypothetical new pricing:
[
P_{\text{in}}=0.9\times2+0.1\times20=3.8
]
The average cost per million combined tokens is:
[
P_{\text{avg}}=\frac{20\times3.8+100}{21}\approx8.38\text{ CNY}
]
Although this workload has long input, most of it is billed at the cache-hit tier. Therefore, a large input volume does not necessarily mean a high unit cost.
However, even if output accounts for only about 4.76% of total tokens, its cost still accounts for:
[
\frac{100}{20\times3.8+100}\approx56.8\%
]
of total cost. This shows that after a high cache hit rate lowers input cost, output may become the main part of the bill.
3.2 Low-frequency tasks with highly variable prompts
Now suppose another type of call has an input-output ratio of 5:1 and a cache hit rate of only 20%.
The average input-side unit price is:
[
P_{\text{in}}=0.2\times2+0.8\times20=16.4
]
The combined average cost is:
[
P_{\text{avg}}=\frac{5\times16.4+100}{6}\approx30.33\text{ CNY}
]
The average cost of the two workload types differs by about 3.62 times. This should not be interpreted as one type of customer receiving an additional commercial discount and another being charged a premium. A more rigorous conclusion is: under the same billing rules, different degrees of cache reuse and different input-output structures produce significant differences in effective unit price.
This difference also does not necessarily divide along enterprise users versus individual developers. An individual developer’s fixed workflow may have a high reuse rate, while one-off document analysis inside an enterprise may have almost no cache reuse.
4. Cache Buffers Price Increases, but It Does Not Mean the Upgrade Is Cheaper
In the new pricing, the average cost for high-hit scenarios is lower, but this alone cannot establish that it is cheaper than the old pricing. To judge the increase from an upgrade, comparisons must be made under the same workload.
For the scenario with an input-output ratio of 20:1 and a hit rate of 90%, the old average input price is:
[
0.9\times1.1+0.1\times6.5=1.64\text{ CNY}
]
The old cost per million combined tokens is approximately:
[
\frac{20\times1.64+27}{21}\approx2.85\text{ CNY}
]
The new pricing is approximately CNY 8.38, about 2.94 times the old pricing.
For the scenario with an input-output ratio of 5:1 and a hit rate of 20%, the old average input price is CNY 5.42, and the combined average cost is approximately CNY 9.02. The new pricing is approximately CNY 30.33, about 3.36 times the old pricing.
Therefore, a more reasonable judgment is:
Cache reuse can buffer the impact of price increases, but when usage structure and hit rate remain unchanged, “relatively low cost” should not be misread as “cheaper than the previous generation.”
If the new pricing can reduce the number of call turns, shorten generated content, or improve task success rates, final task cost may still improve. However, these changes must be verified through actual testing and cannot be inferred from a price sheet alone.
5. Where Cache Hit Rates Come From: Architecture Capability Is Not a Guarantee
Inference systems can reduce repeated input computation by reusing context states that have already been processed. Some systems also separate different inference stages or cache resources to improve resource utilization and scheduling efficiency.
However, the fact that a system supports caching does not mean any business workload can achieve a 90% hit rate. Actual results usually depend on:
Whether the input prefix is stable.
Common prefix caching relies on identical token sequences; semantic similarity does not mean a cache hit.Whether reusable content is long enough.
Reusing only a very short fixed prompt may have limited impact on the overall bill.Whether calls fall within an effective reuse window.
Caching may be affected by expiration, capacity, eviction policies, request routing, and other factors.Whether the service allows reuse across requests or sessions.
The specific scope and isolation rules depend on the actual service design; cross-user sharing cannot be assumed by default.Whether a hit meets billing conditions.
Reuse at the internal computation level and cache discounts on the bill should not be treated as the same thing without verification.
Therefore, a high hit rate should be treated as a metric to be validated for a specific workload, not as a universal result automatically delivered by a particular architecture.
6. Development Practices: Optimize Cache Without Incorrect Reuse
6.1 Place stable content in positions that are easy to reuse
Where business semantics allow, fixed rules, output formats, and long-lived background information can be organized first, followed by the current task, retrieval results, and temporary state.
If timestamps, random identifiers, or user-specific fields appear too early, they may break reuse opportunities for the subsequent prefix. However, necessary information must not be removed, and instruction priority or permission boundaries must not be changed merely to improve hit rates.
6.2 Keep context organization deterministic
Document fragments, file lists, and tool instructions should use stable ordering and formatting. If the same content appears in a different order each time or carries changing metadata, cache reuse may be less effective.
Deterministic organization has an additional benefit: it makes experiments easier to reproduce, anomalies easier to locate, and version performance easier to compare.
6.3 Manage cache and context length separately
Caching can reduce the cost of some repeated input, but it cannot eliminate the impact of irrelevant context on task quality. Long-running agents should still remove stale information, summarize historical processes, and retain only the materials necessary for the current task.
“Whether context is necessary” and “whether context is reusable” should be monitored separately, rather than retaining unlimited historical content for the sake of hit rate.
6.4 Control redundant output while preserving necessary evidence
When output prices are high, the model can be guided to generate only necessary change descriptions, structured results, or items requiring confirmation, reducing repeated explanations and irrelevant expansion.
However, shorter output is not always cheaper. If excessive compression causes missing constraints, repeated follow-up questions, or rework, final cost may rise. The optimization goal should be to reduce ineffective output, not to mechanically shorten every response.
7. Upgrade Evaluation Should Center on Cost per Successful Task
Simply comparing prices per million tokens cannot answer whether a model is worth upgrading to. For developers and enterprises, a more important metric is:
[
\text{Average cost per successful task}
=
\frac{\text{Total task-related cost during the measurement period}}
{\text{Number of successfully completed tasks}}
]
Here, cost may include not only model calls but also tool execution, runtime environments, failed retries, and human review.
It is advisable to select representative real tasks and compare old and new pricing under consistent acceptance criteria. At minimum, record:
- Total input volume, cached input volume, and total output volume;
- Number of call turns, retries, and tool executions;
- Task success rate, result quality, and human correction time;
- Average cost, latency, and the distribution of high-cost tasks.
Do not look only at averages. Long-tail tasks may consume large budgets due to looping calls, abnormal retries, or continuously expanding context, and they need separate analysis.
After launch, budgets, call-turn limits, and anomaly alerts should also be established by workflow. When necessary, use a lower-cost processing path for simple tasks and reserve more reasoning and validation resources for complex tasks.
8. Conclusion: Understand Price Increases in the Context of Real Workloads
The impact of large model pricing is determined not by a single list price but by the combination of price structure and business structure.
Tasks with high prefix reuse and a large input share are more likely to benefit from cache billing; tasks with low reuse and more output are more exposed to price increases. However, cache advantages are not an exclusive benefit for enterprise users, nor do they mean that the bill after an upgrade will necessarily decrease.
A reasonable decision path is: first verify billing definitions, then measure the real input-output structure and token-level hit rate, then perform a cost comparison under the same assumptions, and finally validate the benefit using task success rate and rework cost.
Only by putting list prices, cache behavior, call processes, and delivery results into the same evaluation framework can you judge whether a price adjustment merely increases cost or is accompanied by productivity improvements sufficient to offset the increase.
