Evaluating a 5x LLM API Price Increase: A Practical Cost Framework
A 5x jump in LLM API pricing does not necessarily mean a 5x increase in your actual bill. This article breaks down the four-part pricing model (input, output, cache hit, and cache write), explains why per-task cost is a better comparison metric than unit price, and shows how subscription leverage affects real spending. It also provides a six-point cost governance checklist, sample token tracking and model routing code, and a four-question decision framework to help teams evaluate effective cost rather than reacting to headline prices.
Introduction: A 5x Price Increase Does Not Mean a 5x Cost Increase
When a new-generation LLM raises its API price by roughly 5x compared to the previous generation (about CNY 100 per million output tokens, CNY 20 per million input tokens, and CNY 1 per million cache-hit tokens), the first community reaction is usually that it is outrageously expensive. But if you break down the bill, that conclusion often does not hold: the unit price is only a coefficient in the pricing formula. Monthly spending is also determined by token structure, cache hit rate, average consumption per task, and plan leverage. This article aims to build a reusable evaluation method rather than staying at the emotional level of unit-price comparison.
1. Understand the Billing Model First: What the Four Price Tiers Mean
The billing of mainstream LLM APIs typically consists of four price tiers, each serving a completely different purpose:
- Input price: the unit price for processing context and prompts, usually the main cost source in long-context scenarios.
- Output price: the unit price for generated content, usually the main cost source for reasoning and coding tasks, and often the highest of the four tiers.
- Cache-hit price: a discounted unit price after reusing intermediate computation results for repeated prefixes (system prompts, long documents, tool definitions, few-shot examples), usually an order of magnitude lower than the regular input price.
- Cache-write cost on a miss: some schemes charge tokens written to the cache for the first time at a price slightly higher than the regular input price.
The “input 20, cache hit 1” mentioned in the original text essentially upgrades the price structure from a “two-part” model to a “four-part” model. This means there are more levers for cost optimization: in the past, you could only save money by compressing context; now you can push most input costs down to one-twentieth by increasing the prefix reuse rate.
A simplified cost formula can be written as:
Cost per task =uncached input tokens × input unit price+ cache-hit tokens × cache unit price+ output tokens × output unit price+ cache-write tokens × write unit price
2. Compare Per-Task Cost, Not Unit Price
The most valuable observation in the original text is that different models consume different average amounts of tokens when completing the same batch of tasks. Some models tend to output a long reasoning process before giving a conclusion, while others are more concise; some models repeatedly read and write files and generate large amounts of intermediate artifacts in agentic coding tasks. Therefore, “cost per task” is the comparable metric:
Cost per task = average input tokens × input unit price+ average output tokens × output unit price(cache portion calculated separately)
In engineering practice, it is recommended to collect this data directly through instrumentation rather than relying on estimates:
# Pseudocode: aggregate tokens and cost by taskrecord = {"task_id": task_id,"input_tokens": usage.prompt_tokens,"cached_tokens": usage.prompt_cache_hit_tokens,"output_tokens": usage.completion_tokens,"cost": (usage.prompt_tokens - usage.prompt_cache_hit_tokens) * PRICE_INPUT + usage.prompt_cache_hit_tokens * PRICE_CACHE \+ usage.completion_tokens * PRICE_OUTPUT}metrics.append(record)
With this data, you can answer the key question: after a 5x price increase, if the new model raises task success rate from 70% to 95% and significantly reduces the proportion requiring manual rework, the “effective cost” (including human rework) may actually decrease. A model evaluation must include the hidden costs of failed retries and human intervention.
3. Plan Leverage: More Impactful Than Unit Price on Real Spending
The original text uses “the multiple relationship between plan price and consumable quota” as a yardstick for measuring product strength, a very practical perspective. It can be abstracted into a leverage metric:
Leverage multiple = consumable quota within the plan / plan subscription price
The higher the leverage multiple, the greater the call volume that can be supported under the same subscription budget. When evaluating, three things should be placed in the same table: unit price level, leverage multiple, and whether the quota is shared across models. If the new-generation model raises its unit price by 5x without a corresponding increase in the leverage multiple, the actually available call volume drops by about 5x — this is the “price increase” that users actually perceive.
4. Cost Governance Checklist: Six Levers to Reduce Your Bill
- Prefix stabilization: keep system prompts, tool definitions, and few-shot examples fixed at the front without dynamic concatenation to maximize cache hits.
- Context layering: retrieve first and then inject for long documents, putting only relevant fragments into the context to avoid repeatedly transmitting the entire document.
- Output constraints: use structured output and length limits to control generation volume, since the output unit price is usually the highest.
- Model routing: route simple tasks to small or lightweight models and escalate complex tasks, forming a cost gradient.
- Batching and asynchrony: use asynchronous/batch channels for offline tasks, trading latency for price.
- Observability: build cost dashboards and budget alerts by business line and by task to avoid discovering overspending only at the end of the month.
Illustrative routing logic:
def route(task):if task.complexity <= 0.3 and task.risk == "low":return SMALL_MODEL # low-cost channelif task.risk == "high":return STRONG_MODEL # high-quality channel + manual reviewreturn MID_MODEL
5. Selection Decision Framework: Four Questions to a Conclusion
- Question 1: What is the average token consumption per task? Answer with real instrumentation data, not a feeling.
- Question 2: What cache hit rate can be achieved? In stable-prefix scenarios, this item has the largest impact on the bill.
- Question 3: What is the plan leverage multiple? How much usable quota can the subscription budget buy.
- Question 4: How much do failure costs and human rework account for? Factor quality improvement into the total cost.
If the combined answers show that the new option is not superior in “cost per effective task,” the rational approach is not to tough out the unit price but to make the token structure cheaper through architectural optimization; if it is still more expensive overall, you should keep the previous-generation model as a fallback channel and split traffic by scenario.
6. Final Thoughts
A 5x price increase is a signal, not a conclusion. The truly professional evaluation path is: break down the four-part billing structure, collect per-task token data, calculate plan leverage, and then factor in quality and rework. In general engineering practice on platforms such as Baidu AI Cloud, making costs observable with logging services, monitoring alerts, and containerized deployment can upgrade model selection from “looking at unit price” to “looking at effective cost.” When a team can state the real cost and success rate of each type of task at any time, whether to raise prices becomes just a calculable question.
