Why LLM Inference Costs Are Dropping So Fast

    This article explains why the cost of LLM inference is falling by orders of magnitude and what developers should do about it. It covers the four drivers behind the decline—algorithmic efficiency, hardware and cluster scheduling, serving-pipeline optimization, and maturing business models—then focuses on two practical levers: time-based (peak vs. off-peak) pricing and prompt prefix caching. You will find guidance on structuring prompts to maximize cache hits, reducing output tokens, calculating unit economics, building observability and capacity governance, and a deployment checklist for running cost-efficient LLM workloads.

    An annual AI index-style report from a university research group shows that, measured against a model reaching a given level of capability on a general knowledge benchmark, the price per million tokens has fallen by two to three orders of magnitude within two to three years. The significance of this data is not any specific price point, but a structural fact: the marginal cost of a unit of intelligence is being compressed down toward the cost of the underlying infrastructure.

    At the same time, a new pricing model has appeared in the industry—time-based pricing. In mid-August 2026, a platform began charging different rates for peak and off-peak periods, and in early September it launched a lighter model version and cut API prices further. Under its published standard, the lighter model charges for peak-period input per million tokens in two tiers depending on cache hit or miss (0.04 and 2 yuan respectively), with output at 8 yuan; the more capable version is priced at 0.3, 9, and 27 yuan respectively; off-peak rates are uniformly half of peak rates.

    The takeaway for developers is that cost is no longer a question of “can we afford it,” but an engineering question of “do we know how to use it.”

    2. Four Drivers Behind the Cost Decline

    The first is algorithmic and architectural efficiency. Sparsification, low-precision representations, and more efficient attention implementations have significantly reduced the compute required for the same results.

    The second is hardware and cluster scheduling. Higher utilization, finer-grained batching, and better fault isolation reclaim idle compute.

    The third is serving-pipeline optimization. Prefix caching, continuous batching, request queuing, and priority scheduling turn “one request, one allocation of compute” into “many requests sharing compute.”

    The fourth is maturing business models. Providers are shifting from selling individual calls to selling predictable capacity, using price levers to smooth peaks and fill valleys, and turning user elasticity into their own utilization.

    3. Time-Based Pricing: Making Time an Optimizable Dimension

    The essence of time-based pricing is importing a grid-style load curve into the compute market. During peak periods supply is tight and prices rise; during off-peak periods resources sit idle and prices are halved. For developers, this means the architecture needs a new “time dimension” scheduler.

    1. # Example: choose an execution window based on how deferrable a task is
    2. def pick_window(task):
    3. if task.deadline_sla is not None and task.is_latency_sensitive:
    4. return "peak" # online interaction, preserve experience
    5. if task.can_delay_seconds >= 3600:
    6. return "off_peak" # offline batch job, half the cost
    7. return "peak"

    Typical deferrable scenarios include: batch labeling of logs and comments, offline data cleaning and structured extraction, regression test case generation, document summarization and knowledge base rebuilding, and overnight report generation. Moving these tasks from peak to off-peak usually yields about a 50% savings on input and output costs directly, with no loss in quality.

    4. Cache Hits: The Most Underrated Lever

    Looking at the price structure above, the input price for a cache hit is one to two orders of magnitude lower than for a miss. This tells us that how you organize your prompts directly determines your bill.

    Reusable stable prefixes include: system instructions, role settings, output format constraints, tool and function definitions, domain glossaries, and long document bodies. Putting the volatile parts (user questions, retrieved snippets) at the end maximizes the prefix reuse rate.

    1. [Stable prefix: system prompt + tool definitions + glossary + long document] <- high reuse
    2. [Semi-stable zone: conversation summary, current task context]
    3. [Volatile zone: this turn's user input, retrieval results] <- changes frequently

    The supporting engineering practices are: build stable chunking and vector indexing for long documents to avoid re-ingesting the full text on every request; add a semantic cache layer for high-frequency Q&A that returns directly on a hit; and version-control prompt templates to prevent unintended character changes from invalidating the cache entirely.

    5. Rebalancing the Input/Output Cost Structure

    Output prices are generally higher than input prices, and output cannot be cached and reused. So the optimization focus should be on “generating less”: constrain output to structured short results, use tool calls instead of long explanations, break large generations into small steps and validate early, and avoid duplicate billing from failed retries.

    You should also build unit-economics accounting that converts cost into business metrics:

    1. Cost per request = input tokens × input price + output tokens × output price
    2. Cost per 1k Q&A = cost per request × 1000 / cache-hit correction factor
    3. Business gross margin = (price per order - cost per 1k × call volume) / price per order

    6. Observability and Capacity Governance

    Cost optimization must be built on measurement. Recommended metrics to collect include: cache hit rate, average input/output token distribution, share of peak vs. off-peak requests, failed-retry rate, and per-tenant cost ranking. Combined with logging services and monitoring alerts, set budget thresholds and automatic degradation policies—for example, automatically switching to a lighter model version during peak periods, or moving non-critical requests into a queue for delayed execution.

    At the architecture level, you can adopt model routing: simple tasks go to a lightweight model, complex reasoning goes to a stronger model; use a message queue to smooth peaks; use a container platform for elastic scaling; and use object storage to accumulate reusable corpora and result caches.

    7. Deployment Checklist

    1. Inventory tasks, tag their deferability and latency sensitivity, and build a time-shift allowlist.
    2. Refactor prompts with the stable prefix first, measure the cache hit rate, and make it a tracked metric.
    3. Build a semantic cache and result-reuse layer to avoid redundant computation.
    4. Compress output, enforce structure, and reduce ineffective generation and retries.
    5. Integrate a cost observability system and attribute costs by tenant and scenario.
    6. On a platform with a complete cloud product portfolio, such as Baidu AI Cloud, use general-purpose capabilities (container platform, message queue, object storage, logging service, monitoring alerts) to build the scheduling and governance described above.

    8. Conclusion

    When the price of a unit of intelligence drops to the “fraction of a cent” level, competition shifts from whether you can afford it to how refined your architecture is. Time-based pricing and cache-based pricing together turn cost from a fixed expense into a tunable parameter. Whoever builds the time dimension and prefix reuse into their architecture first will gain several times the effective throughput on the same budget.