Why LLM API Prices Went Up: The Cost Logic Behind the Change

    This article breaks down a recent LLM API price adjustment that was widely misread as an across-the-board 11x increase. By separating billing items, it explains why the "11x" figure applies only to cached input during peak hours, while other items rose 3x and 4.5x. It then unpacks the underlying cost structure: the compute-bound prefill stage versus the memory-bandwidth-bound decode stage, why cached input is a reuse discount rather than a separate low-cost product, and how long context reduces effective cluster throughput. Finally, it covers peak/off-peak pricing as a scheduling signal and practical developer responses such as prefix stability, layered context supply, output length control, semantic caching, and observability.

    1. The Phenomenon: Why One Price Change Was Misread

    A recent LLM service raised its API prices while open-sourcing a new-generation model framework. Public information mentioned a “maximum increase of about 11x.” As the news spread, that number was simplified into “an across-the-board 11x increase,” which in turn fueled speculation that a “low-price butcher” had started harvesting its users.

    But the conclusion changes completely once you break the billing items apart. The publicly stated adjustment looks roughly like this (values are illustrative, used only to show the structure):

    1. Billing item Before After (peak) Multiple
    2. Cached input hit 0.025 CNY 0.30 CNY 12x
    3. Cache-miss input 3 CNY 9 CNY 3x
    4. Output 6 CNY 27 CNY 4.5x
    5. Off-peak hours — peak price × 0.5 halved again

    As you can see, “11x” applies only to “cached input hit + peak hours.” The other items are 3x and 4.5x respectively, and if a workload can be moved to off-peak hours, all three are cut in half again. So the accurate description is “structural repricing + peak/off-peak time-of-use pricing,” not “an across-the-board 11x increase.”

    Two design choices are more noteworthy. First, the price of cached input was raised to nearly the same magnitude as cache-miss input. Second, peak/off-peak pricing was reintroduced. Neither is a marketing move; both are the cost structure projected onto the price sheet.

    2. Cost Breakdown: Not All Tokens Are the Same Commodity

    To understand the price change, you first have to accept a frequently overlooked fact: even when both are called “tokens,” the provider’s cost can differ by one to two orders of magnitude.

    1. The prefill stage is compute-intensive. The model must run a forward pass over all input tokens to produce context tensors. Compute consumption grows roughly linearly with input length and is hard to reuse.
    2. The decode stage is memory-access-intensive. During token-by-token autoregressive generation, every step reads all model weights and the ever-growing context. The bottleneck is memory bandwidth rather than compute, so the per-token cost structure is completely different.
    3. Cached input is cheap because the prefix computation result is reused, so the provider skips most of the prefill compute. It is essentially a “discount for resource reuse,” not an independent low-price product.
    4. Long context amplifies memory usage and scheduling difficulty. The longer the context, the more memory a single request occupies, the fewer requests can run concurrently, and the lower the cluster’s effective throughput.

    This leads to a key judgment: when the cache hit rate is very high, the provider pays almost no prefill cost; once the hit rate drops, cost snaps back to the cache-miss level. Pricing cached input extremely low amounts to assuming “the hit rate will always be high,” which is not commercially sustainable. Raising the hit price to nearly the miss level actually corrects that implicit assumption.

    3. Peak/Off-Peak Pricing: Handing Load Balancing to Price Signals

    Peak/off-peak pricing is not a new concept. It is common in cloud resources, electricity, and transportation, and its core idea is to let price take on a scheduling role.

    • Peak hours (the morning and afternoon work periods in local time) concentrate a large volume of interactive requests. Cluster utilization approaches saturation, and marginal cost is highest.
    • During off-peak hours, resources sit idle and marginal cost is close to zero, so lowering prices buys higher utilization.
    • For developers, this means “deferrable batch jobs” and “real-time interactive tasks” should be treated differently.

    A typical tiering strategy looks like this:

    1. Real-time interaction (chat, completion) -> peak hours, accept peak price
    2. Near-real-time (summarization, moderation, clustering) -> tolerates minute-level latency, run off-peak
    3. Offline batch (evaluation, data cleaning) -> off-peak hours, cost can drop to half of peak

    In engineering terms, this requires the task queue to support “delay, don’t drop”: write non-critical tasks into a message queue, have consumers pull them in batches during off-peak windows, and combine exponential backoff with rate limiting to avoid instantly exhausting the quota.

    4. Direct Impact on Developers and How to Respond

    A change in price structure changes the cost-effectiveness ranking of architectures. “Just stuff the entire context in” used to be the easiest option; now it needs to be redesigned.

    1. Prioritize prefix stability. Caching typically relies on exact prefix matching, so any timestamp, random ID, or user nickname in the system prompt will invalidate the cache. Dynamic content should be moved to the end:
    1. [Stable segment] Role definition + tool descriptions + output spec + a few examples
    2. [Semi-stable segment] Domain knowledge, long documents
    3. [Dynamic segment] User question, timestamp, session ID
    1. Supply context in layers. First use retrieval or summarization to compress long documents into candidate snippets, then hand them to the model; avoid replaying the full history every turn.
    2. Govern output length. The output unit price is usually several times the input price. Capping maximum generation length, using structured output, and avoiding verbose explanations are often more effective than switching models.
    3. Semantic caching. Build a vector retrieval layer for high-frequency similar questions; return directly on a hit and call the model only on a miss.
    4. Observability first. Instrumentation should cover at least cache hit rate, input/output token distribution, P95 latency, and cost per request, aggregated by business line.

    A simplified cost estimation formula:

    1. Cost per call = hit input × hit price + miss input × miss price + output × output price
    2. Optimization priority = raise hit rate > compress input > compress output > off-peak scheduling

    5. Why Open Source and a Price Increase Can Coexist

    Open-sourcing a model framework and raising API prices are not contradictory; they operate at different layers. Open weights and frameworks lower the deployment barrier and make capabilities auditable and privately deployable, while a managed API sells stability, elasticity, operations, and security compliance. Prices returning to a sustainable range is a necessary step as a service moves from “subsidized customer acquisition” to “long-term operation.”

    The advice for technology decision-makers is to keep a dual track: on one hand, wrap model calls in a unified abstraction layer to avoid tight coupling to a single interface; on the other hand, keep replaceable alternatives for critical paths, and treat cost, latency, and quality as configurable policies rather than hard-coded assumptions. Baidu AI Cloud offers general-purpose capabilities across model services and engineering support, such as container platforms, message queues, object storage, logging services, and monitoring and alerting, which can serve as reference general components for building a cost-controllable architecture like this.

    6. Conclusion

    The “maximum 11x increase” is an extreme item within a structural repricing, not an across-the-board conclusion. The real methodology is: understand the cost difference between prefill and decode, treat cache hit rate as a first-class performance metric, use peak/off-peak scheduling to move deferrable workloads out of peak hours, and preserve bargaining and replacement room through a unified abstraction layer. Low prices bring users, but only a sustainable cost structure retains the business.