The Cost Logic Behind Large Model API Price Increases
This article breaks down a recent across-the-board API price increase for a general-purpose large model and shows that what actually changed was the price structure, not just the price level. It introduces a reusable model for converting list prices into effective per-token costs using the input-output ratio and cache hit rate, then applies it to three typical workloads. It also explains why disaggregated inference and KV Cache reuse make high hit rates achievable, why Agent-era costs grow non-linearly, and offers a practical cost-governance checklist plus vendor selection advice.
1. What Happened: An Across-the-Board Price Adjustment
A model provider recently raised the usage price of its new-generation general-purpose large model significantly. On the output side, the price went from about CNY 27 per million tokens in the previous generation to CNY 100, nearly a 4x increase. On the input side, the cache-miss price rose from CNY 6.5 to CNY 20, and the cache-hit price rose from CNY 1.1 to CNY 2, both around 3x.
On the surface this looks like a uniform increase across all tiers. But once you lay out the relative relationships between tiers, what really changed is the price structure, not simply the price level.
Two key ratios illustrate the point:
- The ratio of the cache-miss input price to the cache-hit input price widened from about 6x to 10x.
- The ratio of the output price to the cache-hit input price widened from about 25x to 50x.
In other words, the cache-hit tier saw the mildest increase, while the output tier rose the sharpest. The provider is effectively using price as a lever to steer workloads toward a “highly reusable prefix” pattern.
2. From List Price to Effective Unit Price: A Reusable Calculation Model
Token-based billing cannot be judged by list price alone; it must be weighted by the real traffic structure. Let R be the input-output ratio (input tokens / output tokens) and h the cache hit rate. Then:
effective input price = P_hit * h + P_miss * (1 - h)blended unit price = (R * effective input price + P_out) / (R + 1)
Plugging in both generations of prices yields cost profiles for three typical workloads.
Scenario A: Enterprise long-context agent. Input-output ratio 20:1, hit rate 90%:
input side ≈ 2*0.9 + 20*0.1 = 3.8 CNY/million tokensblended ≈ (20*3.8 + 100)/21 ≈ 8.4 CNY/million tokens
Scenario B: Low-frequency, retail-style calls. Input-output ratio 5:1, hit rate 20%:
input side ≈ 2*0.2 + 20*0.8 = 16.4 CNY/million tokensblended ≈ (5*16.4 + 100)/6 ≈ 30.3 CNY/million tokens
Scenario C: One-off short requests with no cache. Hit rate near 0, input-output ratio 1:1, blended unit price about CNY 60 per million tokens.
For the same model, the unit cost in Scenario A is only about one-third of Scenario B and about one-seventh of Scenario C. The conclusion is direct: under the new pricing, customers that reuse the same system prompt and prefix over the long term get a discount price, while developers who change their prompt every time pay the list price or even a premium.
3. Why This Pricing Is Viable: Disaggregated Inference and Cache Reuse
This structure holds only if the cache hit rate can be pushed very high through engineering. The mainstream industry approach splits inference into two stages: a prefill stage that processes the long prefix and generates the KV Cache, and a token-by-token decode stage, deployed on separate resource pools. High-speed interconnect and tiered GPU-memory/main-memory storage let the KV Cache be reused across requests. Combined with prefix-tree matching, bucketed scheduling by common prefix, and cache sharding and eviction policies, hit rates above 90% are achievable for coding-style workloads that share “the same system prompt + long documents + multi-turn tool calls.”
Once the hit rate stays above 90%, the weight of the CNY 2 hit tier outweighs the CNY 20 miss tier, benefiting both the provider’s compute amortization and the developer’s bill. Conversely, if a workload inherently cannot reuse prefixes, the price lever lands entirely on the developer.
4. Why Costs Rise Non-Linearly in the Agent Era
In the chat era, a single interaction involved only tens to a few thousand tokens, so price fluctuations were barely noticeable. Agent workloads are entirely different: a single task may involve thousands of tool-call steps and accumulate hundreds of thousands of tokens, with hundreds of agents running in parallel and continuously for days. Here cost is driven by three resources that grow linearly or even super-linearly with context length:
- GPU memory usage: KV Cache size is proportional to sequence length and concurrency.
- Storage and bandwidth: cache swap-in/swap-out and cross-node transfer add overhead.
- Decode bandwidth: token-by-token generation is constrained by GPU memory bandwidth, and effective throughput drops under long context.
Serving this kind of workload at the previous generation’s prices could mean losing money on a single task. So the price increase is rational on the supply side, and on the demand side it requires developers to treat “cache-friendly” as a first-class design goal.
5. A Practical Cost-Governance Checklist
- Stable prefix layout: Put the system prompt, tool definitions, and knowledge-base snippets at the front and keep them byte-level stable, placing volatile content later.
- Control prompt jitter: Keep timestamps, random IDs, and floating-point formatting results out of the prefix to avoid invalidating the entire cache.
- Compress context: Summarize historical traces and use retrieval-based recall, backfilling only the necessary snippets.
- Improve output efficiency: Constrain the length of structured output and avoid lengthy chains of thought being counted in the output tier.
- Tiered model routing: Route simple subtasks to smaller models or direct cache hits, and call the large model only for complex reasoning.
- Observability first: Use monitoring, alerting, and logging services to track hit rate, input-output ratio, and per-task cost by business dimension, breaking the bill down to the task level.
6. Selection Advice
When evaluating a model provider’s pricing, ask for a complete quote across all three tiers and use replay of your own real traffic to estimate the blended unit price, rather than comparing a single list price. If your prefixes are naturally reusable, the new structure is actually cheaper; if you mainly serve one-off short requests, prioritize solutions with finer-grained caching and support for custom cache lifecycles, or build your own retrieval and caching layer directly on container platforms and object storage. Baidu AI Cloud’s related product lines are typically divided along such general capabilities and can serve as a reference for comparing the self-built and managed paths.
