LLM API Pricing Increases: A Technical Breakdown of Token Cost Structure
This article explains why a newer large model can charge several times more per token than its predecessor while another route pushes prices down, and why the sticker price alone no longer reflects inference cost. It breaks down the three-tier billing structure of input, output, and cache-hit tokens, shows how parameter scale relates only indirectly to effective price, and offers a reusable cost-estimation function. It also covers cache-hit optimization through stable prefixes, the difference between subscription quotas and token-based API billing, four enterprise practices, and a selection checklist.
1. The Phenomenon: A Structural Shift Behind Higher Unit Prices
A pattern worth watching has appeared in the industry: a next-generation model with a much larger parameter count launched at an official price several times higher than the previous generation, with output priced in the range of 100 yuan per million tokens, input in the range of 20 yuan, and cache-hit input in the range of 1 yuan. At the same time, a different technical route is moving the opposite way: parameter counts are growing while unit prices drop noticeably.
Put together, these two facts lead to an important conclusion: the per-token price can no longer represent inference cost on its own. What actually determines the bill is the product of three factors: billing structure, hit rate, and call pattern. This article sets aside the specifics of any particular product and discusses only the general technical mechanics and the engineering responses to them.
2. Why Pricing Takes a Three-Tier Structure
Billing for mainstream inference services is usually split into three categories, with price gaps of one to two orders of magnitude:
| Billing item | Relative price | Computation profile | Cost driver |
|---|---|---|---|
| Input (cache miss) | Medium | One forward pass, all parameters must be read in full | Memory bandwidth + compute |
| Output | High | Token-by-token autoregressive, serial decoding | Compute + KV cache growth |
| Cached input | Very low | Prefix KV reuse, prefill skipped | Mainly storage and scheduling |
Output is the most expensive because the decoding stage cannot be parallelized: weights must be read again at every step, arithmetic intensity is low, and memory bandwidth is under heavy pressure. Input is billed for a single prefill pass only, which parallelizes well. A cache hit removes the computation for the repeated prefix entirely, leaving only the overhead of storage and hit validation.
Once this is clear, it also explains why a fivefold price increase does not necessarily mean a fivefold bill. If the workload consists of long system prompts and repeated question answering over long documents, most of the input falls into the cached range.
3. Parameter Scale and Unit Price Are Not Linearly Related
Scaling up parameters creates two opposing forces. On one side, the volume of weight reads, memory footprint, and parallel communication overhead all rise, pushing up the marginal cost of a single inference. On the other side, more thorough training and post-training, higher hardware utilization, and more mature quantization and scheduling approaches spread the cost per token thinner.
So “the model is bigger, therefore it is more expensive” is a correlation, not a causal relationship. What matters is the effective cost per million tokens: the weighted result under your actual input-to-output ratio and cache hit rate.
A reusable estimation skeleton:
def estimate_cost(reqs, price):# price: unit price per million tokens, in yuanhit, miss, out = 0, 0, 0for r in reqs:cached = r.prompt_tokens * r.cache_hit_ratehit += cachedmiss += r.prompt_tokens - cachedout += r.completion_tokensreturn (hit*price["cache"] + miss*price["in"] + out*price["out"]) / 1e6
4. Cache Hits: The Most Underrated Cost Lever
Caching typically requires an exact prefix match, so the engineering rule is to put stable content first and volatile content last:
[system instructions][tool definitions][domain knowledge][fixed examples] -> stable prefix, cacheable[conversation history][retrieved snippets for this turn][user input] -> variable suffix
Supporting practices include fixing the JSON serialization order and key order, avoiding timestamps or random IDs at the start of a prompt, splitting long documents into segments and reusing the same segment boundaries, and turning frequent question-answer pairs into fixed prefix templates. Raising the hit rate from 30% to 70% can often cut input-side spending by more than half.
5. Subscription Quotas and API Metering Are Two Different Systems
The quotas, concurrency limits, and weekly caps of a subscription-based coding plan are not equivalent to token-metered API billing. When subscription quotas run out, users fall back to the API and the perceived unit price rises. Products that place interactive conversation and code execution in separate quota pools can also distort comparisons that look cheaper at first glance.
Evaluating real cost therefore requires a common basis: convert everything to effective cost per million tokens, and factor in quota reset cycles, peak concurrency, and the extra consumption caused by failed retries.
6. Four Practical Recommendations for Enterprise Adoption
- Build cost observability: record input, output, and cache-hit tokens per business line, and configure budget alerts and log retention.
- Use tiered routing: send simple requests to a small model or a rules engine, and escalate to a large model only for complex reasoning, balancing quality against spend.
- Add elasticity and asynchrony: put batch jobs in a message queue to run off-peak, and pair this with elastic scaling on a container platform so you do not pay for peak capacity year-round.
- Build an abstraction layer: wrap the model-calling interface uniformly so that switching and canary rollouts are configurable, reducing lock-in risk with any single option.
7. Selection Evaluation Checklist
- Does your input-to-output ratio deviate from the default assumption?
- Is the prefix stable enough to support cache hits?
- Do the quotas, concurrency, and reset cycles match your business peaks?
- Is there a fallback path and a multi-option rollback plan?
- Does the quality evaluation cover your real business distribution rather than general leaderboards?
Conclusion
A unit price increase is a normal fluctuation driven by the market and compute supply. The right engineering response is not to chase the lowest listed price, but to get cache hit rate, request structure, and routing strategy right. When effective cost is measurable, adjustable, and reversible, any price change is just a parameter change rather than an architectural risk.
