Why LLM Inference Costs Keep Falling—and How to Build a Cost-Efficient Calling Architecture
This article explains why large language model inference prices have dropped by orders of magnitude, breaking down the structural drivers behind the decline: model efficiency gains, hardware and compiler co-optimization, economies of scale, and new pricing mechanisms. It then presents three practical cost-reduction mechanisms—off-peak time-based pricing, prefix cache-aware billing, and model-tier routing—along with guidance on building cost observability and avoiding common mistakes. Developers will learn how to redesign their calling architecture so that falling unit prices translate into real savings on the bill.
In recent years, the price of calling large language models has fallen by orders of magnitude. The Stanford AI Index Report 2025 offers a clear data point: for models that reach GPT-3.5-level performance on the MMLU benchmark, the price per million tokens dropped from $20 in November 2022 to $0.07 in October 2024—roughly 1/286 of the original. This is not a one-off promotion, but the externalization of efficiency gains across the entire supply chain. This article tackles a more engineering-oriented question: as unit prices keep falling, how should developers redesign their calling architecture to turn price cuts into real savings on the bill?
1. The Structural Reasons Behind the Order-of-Magnitude Price Drop
To understand the price drop, start with the cost structure. The cost of a single online inference request breaks down into four parts: compute amortization, the concurrency ceiling imposed by GPU memory usage, data movement and network overhead, and redundant capacity reserved for elasticity. Over the past two years, all four have been optimized at once.
First, there has been an efficiency revolution in the models themselves. Sparse architectures, finer-grained quantization schemes, and more efficient attention implementations have significantly reduced the number of activated parameters required for the same capability. Higher capability density is equivalent to lower compute consumption per token.
Second, hardware and compiler stacks now work in tandem. Operator fusion, better GPU memory bandwidth utilization, and fuller batch scheduling let the same accelerator serve more requests within the same time window.
Third, economies of scale and higher utilization. The fixed costs of inference clusters are amortized over larger request volumes, and compute that would sit idle is transformed from a “sunk cost” into a “sellable resource.”
Fourth, competition and pricing innovation. When providers begin slicing resources along the time dimension, price is no longer a flat line but a curve that rises and falls with load.
Understanding these four points makes it clear why “cheap” is not temporary but a sustainable trend—and why simply waiting for prices to drop does not automatically deliver a cost advantage.
2. Putting a Meter on Intelligence: Three Actionable Cost-Reduction Mechanisms
The metaphor of “putting a meter on intelligence” is apt: calling a large model used to be like using water—you pay for what you use but see no breakdown. Now it is more like electricity, with time-of-use pricing, peak and off-peak differences, and metering granularity. This breaks down into three mechanisms.
2.1 Off-Peak Time-Based Pricing: Shift Load to Cheaper Time Windows
A cloud provider’s large model service already offers two price tiers—peak and idle—with idle-time prices typically half of peak-time prices. Using the publicly described tiering as an example, for a lightweight model during peak hours, the input price per million tokens is about ¥0.04 for cache hits and about ¥2 for cache misses, with output at about ¥8; for a high-tier model, the corresponding figures are about ¥0.3, ¥9, and ¥27; off-peak prices are halved across the board.
These numbers carry a lot of information: output prices are generally several times input prices, there is a tens-of-times gap between cache hits and misses, and there is another 2x of room along the time dimension. The engineering implication is clear—controlling output length, improving cache reuse, and shifting work off-peak are the three highest-leverage moves.
2.2 Cache-Hit Pricing: Turn Repeated Prefixes into Zero Cost
Mainstream inference services generally support prefix caching: when a request’s prompt prefix matches a previous request, that portion does not need to be recomputed and is billed at a significantly lower rate. To capture this benefit, the way prompts are organized must change.
# Bad example: variables first, prefix changes every time, cache never hitsUser ID={uid}, current time={now}, please summarize the following document: {doc}# Good example: stable prefix first, variables last[System role and output specification — long-term unchanged][Domain knowledge notes — updated by version]—— Below is the content of this request ——User ID={uid}, time={now}, document: {doc}
Key engineering points include: place stable content such as system prompts, tool descriptions, and few-shot examples at the front and keep their order fixed; move high-frequency variables such as timestamps, random numbers, and user identifiers to the end; base the cache key on a content hash rather than a request ID; and version-control prompt templates, treating any template change as a cache invalidation.
2.3 Model-Tier Routing: Replace “One-Size-Fits-All” with Routing
There is a several-fold price gap between high-tier and lightweight models. A sensible approach is to build a routing layer that splits traffic by task difficulty: intent recognition, format conversion, and extraction/classification go to lightweight models; complex reasoning and long-form generation go to high-tier models; and a confidence fallback is set so that a request is escalated and retried when the lightweight model’s output is uncertain.
def route(task):if task.kind in ("classify", "extract", "format"):return "light" # low-cost tierif task.complexity > 0.7:return "pro" # high tierreturn "light"
3. Cost Observability: Meter First, Then Save
Cost reduction starts with visibility. It is recommended to establish three categories of metrics: first, business-level metrics that track token consumption and cost by scenario, tenant, and API; second, request-level metrics that record input and output token counts, whether the cache was hit, and the number of retries; third, quality-level metrics that record the first-pass success rate and manual rework rate, avoiding the trap of “saving money but losing quality.”
Supporting measures include: setting hard limits on long contexts and applying segmented summarization; using message queues and container platforms to carry offline batch processing, feeding non-real-time tasks into idle time windows in batches; building an aggregated dashboard of call details from log services, and configuring budget alerts and rate-limiting/degradation policies; and limiting maximum output length on the client side to prevent output inflation from the model “freely improvising.”
4. Common Pitfalls
One is focusing only on unit price while ignoring structure, overlooking the price multiple between output and input. Two is routing all requests to high-tier models, using quality redundancy to mask design flaws. Three is designing cache keys carelessly, resulting in a hit rate that stays near zero. Four is treating price drops as a reason to loosen budgets, letting usage growth swallow all the gains. Five is ignoring duplicate billing caused by retries and timeouts.
5. Conclusion
The price drop is the result; efficiency improvement is the cause. When intelligence begins to be precisely metered, cost shifts from a financial problem to an architectural one. Shift load off-peak, fix prefixes, tier model selection, and keep usage visible—get these four things right, and the same business scale can cost only a fraction of what it did before. On platforms such as Baidu AI Cloud, combined with general-purpose monitoring and alerting, log services, and elastic container capabilities, this approach can be implemented directly as a sustainable cost-governance process.
