Why LLM Inference Costs Keep Falling: Caching, Peak-Off-Peak Pricing, and Cost Controls
This article explains why the price of high-quality LLM inference has dropped by orders of magnitude, breaking the decline down into three drivers: better hardware utilization, reusable computation across requests, and supply-side pricing that flattens demand peaks. It covers the architectural and engineering reasons behind lower costs, why cache-hit and cache-miss input prices differ so sharply, how time-of-day pricing creates arbitrage opportunities, and the engineering practices for cost governance, including observability, task tiering and routing, off-peak scheduling, and budget guardrails. A sample pricing table and a cost-estimation function are included.
1. From Compute Bills to a Smart Meter for Intelligence
In early 2025, the arrival of an open-weight model pushed the industry to systematically rethink the cost structure of large models. The impact was not limited to benchmark scores. It came down to a simpler fact: the unit price of high-quality reasoning services can fall by several orders of magnitude in a very short time. An industry index report from a university showed that the price per million tokens for models reaching a given level of general knowledge capability dropped from about $20 to under $0.1 in two years, a decline of more than two orders of magnitude.
This shift resembles a turning point in the history of the power industry. When electricity went from a factory’s own generator to a socket on the wall, the way it was measured changed from buying equipment to buying kilowatt-hours. LLM services are going through the same transition: intelligence is now metered by token, priced by time period, and discounted on cache hits. This article calls this mechanism “putting a meter on intelligence.”
The falling price is not the result of a single factor. It comes from three curves moving down at the same time: higher effective utilization of compute, reusable computation across requests being identified, and supply-side price levers flattening demand peaks.
2. The First-Principles Reasons Behind Lower Costs: Architecture and Engineering Efficiency
2.1 Sparse Activation and Parameter Efficiency
The core idea of Mixture-of-Experts architectures is to activate only a subset of the parameter set for each token. Total parameter count determines the model’s knowledge capacity, while activated parameter count determines the actual compute for a single inference. Once the two are decoupled, a model can scale up without a linear increase in inference cost.
2.2 The Cost of Attention and Long Contexts
Standard attention scales quadratically with sequence length, so costs grow quickly in long-context scenarios. Common mitigations include chunked and sparse attention, sliding windows, and caching the results of reusable prefix computation. The practical takeaway for developers is straightforward: the longer the context, the greater the benefit of prefix reuse.
2.3 Low Precision and Batching
Half precision, low-bit quantization, and continuous batching significantly increase throughput per GPU. The essence of higher throughput is filling the time slices spent waiting, so GPU compute is not wasted on network round trips and user thinking time.
2.4 Explicit Pricing for Inference-Time Compute
A technical approach that has emerged in recent years turns “thinking” itself into an adjustable resource: less thinking for simple tasks, more for complex ones. This creates a new engineering problem. Token consumption during the reasoning phase is no longer predictable and must be constrained with budget limits.
3. Cache Reuse: Why the Gap Between Hits and Misses Is So Large
On current mainstream platforms, input pricing is generally split into “cache hit” and “cache miss” tiers, with a price gap that often reaches one to two orders of magnitude. On a hit, there is no need to re-run the full prefill computation; only storage and lookup overhead apply.
To improve hit rates, the key is to keep request prefixes stable:
[Stable prefix] System prompt + tool definitions + domain knowledge + few-shot examples[Volatile part] Current user input
Putting volatile content last and stable content first is the most effective structural way to raise hit rates. In addition, controlling prefix length, avoiding timestamps and random IDs in prompts, and using “split first, then fix the order” for document question answering all noticeably improve reuse.
4. Peak and Off-Peak Pricing: Turning the Load Curve into a Cost Curve
Time-of-day pricing is the most mature demand-side management tool in the power industry. Once introduced to inference services, it creates a clear arbitrage opportunity. One platform began peak and off-peak pricing in mid-August 2026, then launched a lightweight version in early September and cut prices further. Its published time-of-day rules are representative: only a few hours in the morning and afternoon on workdays are designated as peak, while all other hours, weekends, and public holidays are charged at the off-peak price, which is about half the peak price.
The published price levels are roughly as follows (unit: CNY per million tokens):
| Model tier | Peak input (hit) | Peak input (miss) | Peak output | Off-peak |
|---|---|---|---|---|
| Lightweight | 0.04 | 2 | 8 | Half of peak |
| High-performance | 0.3 | 9 | 27 | Half of peak |
Three engineering conclusions can be drawn from this table. First, output costs several times more than input, so controlling generation length is the top optimization target. Second, cache-miss input is far more expensive than cache-hit input, so prompt structure governance directly determines the bill. Third, off-peak is half price, which means offline tasks have natural scheduling value.
5. Engineering Practices for Cost Governance
5.1 Build Observability
Log the input and output tokens, cache hit status, time-period label, and model tier for every call, and use monitoring and alerting to set up a unit-cost dashboard. Without measurement, there is no optimization.
def estimate_cost(in_tok, out_tok, cached, peak, tier="light"):pin_hit, pin_miss, pout = (0.04, 2, 8) if tier == "light" else (0.3, 9, 27)cost = (cached * pin_hit + (in_tok - cached) * pin_miss + out_tok * pout)return cost / 1e6 * (1 if peak else 0.5)
5.2 Task Tiering and Routing
Tier requests by difficulty: solvable by rules, solvable by a small model, and requiring large-model reasoning. Combined with a semantic cache, results for repeated questions can be reused directly. The routing layer should support fallback on failure and budget-based circuit breaking.
5.3 Schedule Offline Tasks Off-Peak
Tasks such as batch summarization, log analysis, offline evaluation, and vector rebuilding can be queued through a message queue to smooth peaks and then delivered for execution during off-peak hours, directly halving costs.
5.4 Budget Guardrails
Set token budgets and concurrency limits for each business line, and automatically downgrade the model tier when limits are exceeded to prevent runaway inference-time compute from causing bill spikes.
6. Conclusion
When intelligence is metered like electricity, the focus of competition shifts from “whose model is bigger” to “whose cost per unit of intelligence is lower and whose scheduling is smarter.” For developers, there are only three practical levers: govern prompt structure to improve cache hit rates, implement task tiering and off-peak scheduling, and build cost observability and budget guardrails into the system. General-purpose capabilities from platforms such as Baidu AI Cloud (object storage, message queues, container platforms, logging services, and monitoring and alerting) are sufficient to support this governance framework, but the real cost advantage comes from engineering discipline on top of architecture choices.
