Why LLM Inference Costs Are Dropping: The Technical Logic Behind Lower Prices

    This article explains why recent LLM API price cuts reflect a downward shift in the underlying cost curve rather than promotional tactics. It breaks down the asymmetric costs of prefill and decoding, shows how prefix caching turns repeated computation into a one-time amortized cost, and introduces a quantifiable cost-performance ratio for model selection. It also covers practical steps for capturing the savings—prefix design, cache hit-rate monitoring, model routing, and elastic capacity—along with key risks and boundaries.

    1. The Phenomenon: Price Cuts Are Not Marketing, They Are a Shift in the Cost Curve

    A notable pattern has emerged in the industry recently: the same model service line has adjusted its permanent pricing multiple times within a short period, with both the flagship tier and the lightweight tier reduced in tandem, and cached input prices pushed down to an extremely low level. Treating this as a promotion misses the point. A more reasonable explanation is that the unit cost structure on the inference side has itself changed, and the price is merely the outward manifestation of a downward shift in the cost curve.

    The public pricing can be abstracted into a typical tiered structure (unit: CNY per million tokens):

    Tier Cached Input Uncached Input Output
    Flagship 0.025 3 6
    Lightweight — 0.2 2

    The three orders of magnitude difference (0.025 / 3 / 6) is not set arbitrarily. It precisely maps to three real costs in the inference pipeline: the near-zero marginal cost brought by prefix reuse, the compute overhead of full prefill, and the memory and bandwidth overhead of generating each token during autoregressive decoding. Understanding this is what allows you to translate a “price cut” into actionable architectural decisions.

    2. Breaking Down the Cost Structure: Why Cached Input Can Be Two Orders of Magnitude Cheaper

    2.1 The Cost Asymmetry Between Prefill and Decoding

    A request is split into two phases. The prefill phase processes all input tokens in parallel and is bounded by compute limits; the decoding phase generates output tokens one by one and is bounded by memory bandwidth. Output is priced higher than uncached input precisely because decoding cannot be parallelized.

    2.2 Prefix Caching Turns Repeated Computation into a One-Time Amortized Cost

    When multiple requests share the same prefix (system prompts, tool definitions, long documents, few-shot examples), the key-value cache of that prefix can be reused, and subsequent requests only need to compute the new portion. This is the physical basis for cached input being priced far below uncached input—not a subsidy.

    2.3 The Knock-On Effect on Unit Economics

    A cache hit changes the independent variable of the cost model: from “total input length” to “first input length + incremental length.” For long-context, multi-turn, and batch structured-extraction workloads, the bill can drop by one to two orders of magnitude.

    3. The Trade-Off Between Quality and Price: A Quantifiable Selection Criterion

    Objectively speaking, due to compute and engineering constraints, different models still show a capability gradient on complex reasoning and long-chain tasks. But engineering selection never pursues “the strongest”; it pursues “the optimum under constraints.” Suppose the top-tier solution scores 1 in quality, an alternative scores 0.7–0.8, and its unit price is 1/10 of the former or even lower:

    1. cost-performance ratio = quality ratio / price ratio = 0.75 / 0.10 = 7.5

    That is, under the same budget, the alternative can produce roughly 7.5 times the effective work. Only when a task has a rigid requirement for the last 20% of quality (such as high-risk code merges or complex multi-step agent planning) do you need to route requests to the strongest tier. This forms the quantitative basis for tiered routing.

    4. Implementation: Actually Capturing the Low-Price Dividend

    4.1 Standardizing Prefix Design

    Putting stable content first and volatile content last is the prerequisite for cache hits:

    1. [system instructions + tool schema + domain specs] <- stable prefix, reused across requests
    2. [retrieved long documents] <- semi-stable, reused per batch
    3. [current user question] <- volatile, placed at the end

    4.2 Making Hit Rate Observable

    Build a monitoring and alerting dashboard for cache hit rate, average uncached input ratio, and output ratio. An abnormal drop in hit rate usually means the template has been polluted by variables such as timestamps or random IDs.

    4.3 Model Matrix and Routing

    The lightweight tier handles classification, extraction, rewriting, and intent recognition; the flagship tier handles planning and complex reasoning. Using rules or a small model for upfront discrimination can route most traffic to the low-price tier.

    4.4 Elasticity and Capacity

    Inference services should be stateless, working with container platforms and message queues to smooth out peaks and fill valleys; batch offline tasks and online interactions should be pooled separately to avoid competing for resources.

    5. Risks and Boundaries

    Low price does not mean zero cost: caching is constrained by capacity and eviction policies, and the hit rate cannot be assumed to be 1; output tokens remain the main expense, so generation length must be controlled; vendor lock-in risk should be mitigated through an abstraction layer and multi-backend adaptation; and data compliance requirements may prohibit caching sensitive content across requests. General-purpose capabilities offered by cloud providers such as Baidu AI Cloud (object storage, log services, monitoring and alerting, container platforms) can serve as infrastructure options for hosting the above architecture; for specific billing and quotas, refer to the official documentation.