Why LLM Inference Pricing Is Moving to Peak and Off-Peak Billing
This article explains why large language model inference is shifting from flat, per-call pricing to metered peak and off-peak billing. It covers the cost structure behind time-of-use pricing, a minimal request cost model, prefix caching as an architectural constraint, tiered off-peak scheduling, capacity planning around low-demand windows, and observability guardrails for cost control. Developers will find practical guidance on establishing a cost baseline, normalizing prompts to raise cache hit rates, moving batch workloads to off-peak windows, and locking in savings with monitoring.
1. From Upfront Investment to Metered Usage: The Turning Point for Intelligent Workloads
Over the past decade, the cost curve for AI compute has fallen at an unusually steep rate. According to publicly reported industry data, the price per million tokens for a model reaching a given level of capability on general knowledge benchmarks dropped from roughly $20 in late 2022 to about $0.07 by October 2024, a decline of nearly 286x. This was not the result of a single promotion, but the combined effect of three curves pushing down at once: falling unit prices for compute, better reuse of memory and compute by inference engines, and lower per-token computation from more sparse model architectures.
More notable is the change in the billing model itself. A recent landmark move in the industry: one cloud provider’s LLM service began peak and off-peak pricing in mid-August 2026, then launched a lightweight model version in early September and cut API prices further. Under its published rates, the lightweight model charges, during peak hours, 0.04 CNY per million input tokens on a cache hit and 2 CNY on a cache miss, with output at 8 CNY; the more capable version is priced at 0.3, 9, and 27 CNY respectively; off-peak prices are uniformly half the peak rate.
The real meaning of these numbers is not “cheap.” It is that intelligent workloads have been fitted with an electricity meter for the first time. Once the billing dimension is refined from “number of calls” to “token volume × time period × cache state,” inference services become structurally identical to traditional utilities such as electricity and cloud resources: they have peak-valley price spreads, loss differences, and capacity constraints. For developers, this turns cost from an after-the-fact bill into a designable architectural variable.
2. The Technical Foundation of Peak and Off-Peak Pricing: Why Shifting Workloads Saves Money
Peak and off-peak pricing is not a marketing design; it maps the real cost curve of an inference cluster.
The main cost of LLM inference is GPU memory and accelerator cards, and these resources have two rigid characteristics. First, poor capacity elasticity: scaling takes minutes or even hours and cannot follow second-level traffic fluctuations. Second, idle time is pure loss: a card with no requests still incurs depreciation and power draw. Providers must therefore reserve capacity for peak demand, and that reserved capacity is a pure sunk cost during troughs. Passing the marginal cost of off-peak periods back to developers as a price discount is essentially paying developers to fill the valley and raise overall resource utilization.
Three engineering conclusions follow:
- Latency-insensitive tasks should be shifted to off-peak windows. Offline summarization, batch vectorization, log and ticket classification, regression test case generation, and data cleaning and labeling assistance typically have no interactive SLA constraints and are the first candidates for shifting.
- Peak-hour calls should be budgeted as “expensive.” Every retry in an interactive flow and every replay of conversation history in a multi-turn dialogue is amplified at peak prices.
- Caching goes from an optimization to a billing item. When the price gap between a cache hit and a miss is tens of times, the payoff of a caching strategy is no longer just latency; it shows up directly on the bill.
3. Cost Modeling: Do the Math Before Optimizing
Every optimization starts from a measurable baseline. A minimal model for the cost of a single request:
Cost = (Tin_hit * P_in_hit + Tin_miss * P_in_miss + Tout * P_out) * f(segment)where f(peak) = 1.0, f(valley) = 0.5
Take the lightweight model during peak hours. A request with 4,000 input tokens (all cache misses) and 800 output tokens costs (4000/1e6)*2 + (800/1e6)*8 = 0.0144 CNY. If 3,600 of those tokens hit the cache, it drops to (400/1e6)*2 + (3600/1e6)*0.04 + 0.0064 ≈ 0.0072 CNY, cut in half. If the same request is scheduled into an off-peak window, the cost halves again. In other words, stacking caching and off-peak scheduling can theoretically yield about a 4x price spread, and neither requires changing the model.
Three types of instrumentation need to be added immediately: token consumption split by business line (input, output, and cache hits listed separately), a time-period label on each request, and an end-to-end cost estimate per request. Missing any one of these dimensions degrades later optimization into guesswork.
4. Cache Hit Rate: From Saving Money to an Architectural Constraint
A high cache hit rate does not come from adding a Map layer; it requires requests to have a stable prefix at construction time. Practices that work include:
- Prefix fixation: put the system prompt, tool descriptions, output format constraints, and few-shot examples at the very front of the prompt in a fixed order, and place user variables at the end. The prefix must be identical to be reused.
- Reduce hidden variables: keep timestamps, random IDs, and request trace numbers out of the prefix; put any context that must be injected at the tail.
- Version prompt templates: one template change invalidates the entire cache. Manage templates with version numbers and roll them out gradually.
- Batch semantic merging: merge “different phrasings of the same intent” into a normalized prompt at the gateway layer to raise cross-request reuse.
Illustrative gateway logic:
def build_prompt(system_v3, tools, user_input, ctx):# Stable prefix first, variables last, to maximize prefix reuseprefix = f"[SYS v3]{system_v3}\n[TOOLS]{tools}"return f"{prefix}\n[USER]{user_input}\n[CTX]{ctx}"
The cache hit rate is an architectural metric, not an operations metric, and should be included in acceptance criteria at the design review stage.
5. Off-Peak Scheduling: Make Batch Processing a First-Class Citizen
Off-peak execution needs a task tiering mechanism. Divide all calls into interactive, near-real-time, and offline tiers, and explicitly declare the acceptable completion window for each:
| Task tier | Typical scenarios | Tolerable latency | Scheduling strategy |
|---|---|---|---|
| Interactive | Chat, code completion | Seconds | Direct call at peak, strict length limits |
| Near-real-time | Document summarization, review assistance | Minutes | Downgrade to the lightweight model at peak |
| Offline | Batch vectorization, evaluation | Hours | Run in the off-peak queue |
In implementation, write offline-tier tasks to a message queue and have consumers pull them within the off-peak window under a concurrency quota; combine this with exponential backoff and rate limiting to avoid a spike at the moment the period switches. Also prepare a fallback path: when rate limiting triggers at peak, automatically switch to the lightweight model or shorten output length instead of failing outright.
6. Capacity and Elasticity: Align with Off-Peak Windows
Off-peak scheduling assumes predictable capacity. Build a periodic profile of request volume (hourly and weekday means and percentiles), set the concurrency ceiling for off-peak windows accordingly, and use the container platform’s elastic scaling to scale up and down on a schedule rather than relying only on metric-triggered scaling. For replayable offline tasks, also support checkpoint resume and idempotent writes so that tasks reclaimed when a window closes do not incur duplicate billing.
7. Observability and Cost Guardrails
Cost governance ultimately lands in the monitoring and alerting system: build dashboards for token consumption, cache hit rate, time-period distribution, and per-request cost, and set budget threshold alerts (for example, a warning at 80% of the daily budget and an alert on a sudden period-over-period spike for a single business line). Add guardrails on the application side: cap maximum output length, cap the number of multi-turn history rounds, summarize and compress overly long contexts, and turn off high-precision models for non-critical paths.
An easily overlooked point is that output tokens are usually more expensive than input tokens, so “making the model write less” often pays off more than “making the model read less.” Structured output, field trimming, and giving an outline before expanding are all effective cost measures.
8. Conclusion
A 286x price drop is only the beginning of the story; the real watershed is the refinement of the billing dimension. When intelligent workloads are metered by time period and by loss, like electricity, cost turns from a financial problem into an architectural one. Baidu AI Cloud provides a complete foundation for this kind of cost engineering through its LLM services and general capabilities such as object storage, message queues, container platforms, log services, and monitoring and alerting. The advice for developers is direct: first build a cost baseline, then normalize prefixes and govern caching, then move offline tasks wholesale into off-peak windows, and finally use an observability system to lock in the gains.
