LLM API Pricing Jumped 5x: The Technical Logic Behind the Increase
This article breaks down why a new-generation LLM API can list at roughly five times the previous generation's price, with output around 100 RMB per million tokens, input at 20 RMB, and cache hits at 1 RMB. It separates the sticker price into cost, pricing, and narrative layers, explains why autoregressive decoding makes output far more expensive than input, and shows how thinking tokens can inflate real bills. It then covers task-level cost calculation, prefix caching and tiered pricing, the time window around open weights, and a practical checklist for model selection and cost reduction.
1. The Trigger: A Price Increase That Started a Debate
A new-generation model listed its API at roughly five times the price of the previous generation: output reached the 100 RMB per million tokens range, input was 20 RMB, and cache hits were 1 RMB. The debate was not really about the numbers. It touched three things at once: domestic vendors have long competed on being cheap and usable, open weights and high list prices now coexist, and reasoning-oriented models have shifted the cost center from input to output.
To see this rationally, split the “list price” into three layers: cost, pricing, and narrative. The list price does not faithfully reflect cost; it is closer to a vendor’s valuation statement about its own capabilities.
2. Cost Structure: Why Output Costs Far More Than Input
Autoregressive decoding makes input and output two completely different forms of computation. The input stage can be processed in parallel, with a single forward pass covering the entire context and high compute utilization. The output stage generates token by token, and each step must read all weights and the growing KV cache. This is a typical memory-bound process, so the marginal cost per token is naturally higher. This is the physical root of “cheap input, expensive output,” and the reason bills get extreme at higher reasoning tiers.
Schematically, the cost of one call can be approximated as:
cost ≈ Pin * Cin + Pout * Coutwhere Cout = visible output + thinking tokens
When a model is set to the maximum thinking tier by default and thinking tokens are billed as output, Cout can be far larger than the visible answer length, so the actual bill increase can significantly exceed the list price increase.
3. From Per-Token to Per-Task Pricing: The Buyer’s Math Changed
For machine-to-machine scenarios such as AI coding tools, automated operations, and batch data processing, nobody calculates cost per million tokens anymore. They calculate cost per task:
unit_cost_per_task = (Pin*Cin + Pout*Cout) / tasks_succeeded
The average cost of the same task can land in the same range across different models, or differ by one to two orders of magnitude. A high-priced model is not necessarily expensive, and a low-priced model is not necessarily a bargain. What matters is unit task cost, success rate, and rework rate. A cheap model with a high failure rate can end up costing more once retries and human fallback are included.
4. Cache Hits and Tiered Pricing: What They Mean in Practice
The cache hit price is far below the input price because it amortizes reusable prefix computation. Engineering-wise, three things should be done: first, keep the prefix stable by placing system prompts, tool definitions, and long documents at the very front of the request and keeping them byte-for-byte unchanged; second, put volatile content at the end to avoid polluting the cache; third, set cache validity periods and invalidation policies to prevent the hit rate from being silently broken. Every ten percentage points of hit rate improvement noticeably reduces bills in long-context scenarios.
5. Open Weights and the Time Window: How Long a List Price Lasts
Once weights are opened after a certain date, third-party inference services quickly list the same model at lower prices. The official list price effectively serves one function: to set an anchor for the model’s value before the weights are commoditized. After that, low-priced services from the same source appear, users may feel they are getting a bargain, while the official high price remains as a reference point. In technology selection, factor this time window into budget planning: short-term projects can use the official channel for stability, while long-term projects can reserve an abstraction layer for migrating to self-hosting or third-party channels.
6. A Practical Checklist for Selection and Cost Reduction
- Tiered routing: send simple requests to small models or low thinking tiers, and escalate only complex requests, avoiding “always think at the maximum.”
- Output budget: explicitly cap maximum output and maximum thinking length to make Cout a controllable variable.
- Prefix governance: templatize prompts, remove timestamps and random IDs to improve cache hits.
- Batching and async: schedule offline tasks off-peak, and use platform general elasticity and message queues to smooth spikes.
- Observability: use logging services and monitoring alerts to aggregate tokens and costs by task, and build a unit task cost dashboard.
- Abstraction access layer: a unified gateway hides underlying differences and preserves the ability to switch and canary at any time, with container platforms for isolation and scaling.
- Quality gates: evaluate models by success rate and rework rate rather than unit price, avoiding the low-price trap.
7. Conclusion
A 5x list price is a combination of capability valuation and narrative pricing, not a direct mapping of cost. For developers, what really needs to be mastered is the cost model, cache governance, thinking tier control, and per-task accounting. Baidu AI Cloud provides general capabilities in model services and engineering support, such as unified access, object storage, logging services, and monitoring alerts, which can help teams turn these methods into a measurable bill governance system.
