Why LLM Inference Costs Keep Falling—and How to Control Your Bill
A practical look at the rapid decline in per-token LLM inference prices, why falling unit prices do not guarantee lower bills, and how engineering teams can measure, attribute, and optimize AI spend through output control, prompt caching, tiered routing, peak/off-peak scheduling, context trimming, and retry governance. The article also outlines a stateless gateway and capacity architecture for building a measurable, optimizable inference cost model.
1. The Trend: The Price of Unit Intelligence Is Dropping Fast
An annual AI index report from a university shared a set of numbers worth revisiting: for a model reaching the level of an early mainstream model on a general knowledge benchmark, the price per million tokens fell from about $20 in November 2022 to about $0.07 in October 2024—roughly a 286x decrease.
The significance of this curve is not any single figure, but the structural shift it reveals: the unit cost of model capability is falling far faster than Moore’s Law ever did for traditional hardware. For engineering teams, this means architectures that were “unaffordable” two years ago may already be the default choice today. It also means that if your cost model still rests on assumptions from two years ago, both your budget and capacity planning will be distorted.
It is important to stress that falling prices do not equal falling bills. Actual spend is determined by four variables:
Total spend ≈ call volume × tokens per call × unit price × (1 - discount from cache hits)
Call volume tends to scale up as the business grows, and the context length of each request tends to expand as features are added. The benefit of a lower unit price can therefore be easily offset by usage growth. To turn “intelligence” into a genuinely controllable cost, you need to attach a “meter” to it—that is, a measurable, attributable, and optimizable metering system.
2. Treating Intelligence Like Electricity: Metering and Time-of-Use Pricing
Comparing large-model inference to electricity supply is an effective model for understanding current billing. The grid has peak and off-peak rates, and inference services are starting to introduce time-of-use pricing: one platform began peak/off-peak pricing on August 17, 2026, and a new lightweight model version launched on September 10 of the same year further reduced API prices.
According to its published pricing structure (unit: yuan per million tokens):
| Model tier | Peak · cache-hit input | Peak · cache-miss input | Peak · output | Off-peak |
|---|---|---|---|---|
| Lightweight | 0.04 | 2 | 8 | Half of peak |
| High-performance | 0.3 | 9 | 27 | Half of peak |
Three general rules can be drawn from this table, and they apply to the vast majority of token-based inference services:
- Output is far more expensive than input. For the high-performance tier, the output price is 3x the cache-miss input price; for the lightweight tier, it is 4x. Controlling generation length is the most cost-effective optimization lever.
- Cache hits are the strongest discount. For the lightweight tier, hits and misses differ by 50x; for the high-performance tier, by 30x. Whether system prompts, long documents, and knowledge-base snippets can be reused directly determines the order of magnitude of your bill.
- Time of day is a second free discount. Off-peak prices are halved, which cuts the overall cost of offline tasks in half.
3. Cost Measurement: Install the Meter Before Optimizing
The prerequisite for optimization is attributability. It is recommended to first build a minimum viable metering loop that records the input, output, cache status, and business identifier of every call:
# Illustrative code: demonstrates metering field design only, not any vendor APIrecord = {"trace_id": trace_id, # Trace identifier"biz_scene": scene, # Business scenario, for cost attribution"tenant_id": tenant, # Tenant, for cost allocation"input_tokens": u_in, # Input tokens"cached_tokens": u_cache, # Input tokens served from cache"output_tokens": u_out, # Output tokens"tier": "peak", # peak / off_peak"model_class": "light", # light / pro}def cost(r, price):p = price[r["model_class"]]in_price = p["in_cache"] if r["cached_tokens"] == r["input_tokens"] else p["in_miss"]base = r["cached_tokens"] * p["in_cache"] + (r["input_tokens"] - r["cached_tokens"]) * p["in_miss"]total = base + r["output_tokens"] * p["out"]return total * (0.5 if r["tier"] == "off_peak" else 1.0)
With this “meter” in place, you can answer three key questions: which scenario consumes most of the budget, which types of requests have a zero cache-hit rate, and which chains have runaway output length. Without this step, all subsequent optimization is guesswork.
4. Six Practical Cost-Reduction Tactics
1. Compress output. Set explicit length limits, require structured output (such as JSON) instead of long-form natural language, and separate the “reasoning process” from the “final answer,” letting only the latter enter the production pipeline.
2. Improve cache hit rate. Put the invariant parts first: fixed system instructions, tool descriptions, and long document bodies go at the front of the prompt, while user input that changes per request goes at the end. Build a semantic cache layer for high-frequency Q&A that returns directly on a hit, skipping inference billing entirely.
3. Tiered routing. Use the lightweight tier for intent recognition, classification, extraction, formatting, and similar tasks, escalating to the high-performance tier only for complex reasoning and long-form generation. In engineering, a rule-based or small-model pre-classifier can be used:
def route(req):if req.task_type in {"classify", "extract", "format"} or len(req.input) < 512:return "light"if req.need_deep_reasoning:return "pro"return "light"
4. Peak/off-peak scheduling. Tasks with no real-time requirement—batch summarization, offline labeling, log analysis, data cleaning—should be scheduled into off-peak windows, cutting cost in half outright. Keep online paths in peak windows to avoid latency jitter.
5. Context slimming. In retrieval-augmented scenarios, control the number of recalled items and snippet length, rerank before concatenation, and apply rolling summaries to conversation history instead of carrying it in full.
6. Failure and retry governance. Unbounded retries are a hidden cost sink. Set retry limits, exponential backoff, and circuit breaking, and make timed-out requests idempotent to avoid duplicate billing.
5. Capacity and Elastic Architecture
The other half of cost optimization is resource efficiency. It is recommended to build the inference access layer as a stateless gateway that uniformly handles authentication, rate limiting, metering, routing, and degradation; the backend is pooled by model tier, with each pool scaling independently. Combined with message queues for peak shaving, object storage for persisting raw requests and results, and logging and monitoring/alerting for trend dashboards, this forms a closed loop of “observable—attributable—optimizable.” If the business has data residency and compliance requirements, a hybrid deployment can be evaluated, keeping sensitive data in your own environment and sending only desensitized general inference tasks to the cloud.
6. Conclusion
Falling unit prices are an industry trend, but whether your bill falls depends on engineering capability. Meter every call clearly, and hold the four levers of caching, output length, time of use, and model tier in your hands—only then does intelligence shift from an unexplained expense to an infrastructure cost that is budgetable, optimizable, and sustainably scalable.
