LLM API Price Increases: Understanding the Inference Cost Structure

    Higher LLM API prices do not affect every workload equally. This article examines how cached input, uncached input, and output pricing shape inference costs, compares two developer usage patterns, and explains how caching, model selection, and token monitoring can help control spending.

    New generations of large language models are arriving faster, and developers are watching more than capability improvements. API pricing is becoming just as important.

    A recent update to an unnamed flagship model illustrates the issue. Output pricing rose from approximately RMB 27 to RMB 100 per million tokens—nearly four times the previous rate. Uncached input increased from RMB 6.5 to RMB 20 per million tokens, while cached input rose from RMB 1.1 to RMB 2.

    At first glance, this looks like an across-the-board price increase. A closer look, however, reveals a more differentiated structure: the financial impact depends heavily on how an application uses context caching and how much output it generates.

    1. Three Signals in the New Pricing Structure

    Absolute prices tell only part of the story. The ratios between pricing tiers reveal how the provider is positioning different workloads.

    The gap between cached and uncached input is widening

    Previously, uncached input cost roughly six times as much as cached input. The new pricing raises that ratio to ten.

    This creates a stronger financial incentive to reuse cached context. Processing a cached prefix requires substantially less computation than processing the entire prefix again. A wider price gap makes that cost difference more explicit.

    Output is becoming more expensive relative to cached input

    The ratio of output pricing to cached-input pricing increased from approximately 25:1 to 50:1.

    This is consistent with a greater cost burden in the decoding stage, although pricing alone does not establish the underlying compute cost. Output tokens are generated sequentially, with each token requiring a forward pass and access to the key-value cache, or KV cache. That makes decoding a major component of inference costs.

    The increases are uneven across tiers

    Cached input saw the smallest increase, at approximately 1.8 times the previous rate. Output saw the largest, at nearly four times the previous rate.

    The structure favors applications that frequently reuse stable prefixes and maintain ongoing conversations. Workloads built around fresh prompts and large amounts of generated output face a much steeper bill.

    This is a relative pricing advantage, not a reduction from the previous generation’s prices.

    2. One Model, Two Very Different Effective Costs

    The practical effect becomes clearer when applied to specific workloads. Consider two illustrative scenarios.

    All prices below are in RMB per million tokens. The blended rate is calculated across total input and output tokens.

    Scenario 1: An enterprise coding agent

    Suppose an enterprise coding agent has an input-to-output token ratio of 20:1. Such a pattern is common in workflows involving long code contexts and tool calls.

    Because system prompts and historical context are heavily reused, assume that 90% of input tokens qualify for cached-input pricing.

    The effective input rate is:

    1. Effective input rate = 2 × 0.9 + 20 × 0.1
    2. = RMB 3.8 per million input tokens

    With output priced at RMB 100 per million tokens, the blended rate is:

    1. Blended rate = (20 × 3.8 + 1 × 100) / 21
    2. ≈ RMB 8.4 per million total tokens

    Scenario 2: An independent developer with occasional requests

    Now consider an independent developer who calls the model occasionally and uses different prompts each time. Assume that only 20% of input tokens receive cached-input pricing and that the input-to-output ratio is 5:1.

    The effective input rate is:

    1. Effective input rate = 2 × 0.2 + 20 × 0.8
    2. = RMB 16.4 per million input tokens

    The blended rate becomes:

    1. Blended rate = (5 × 16.4 + 1 × 100) / 6
    2. ≈ RMB 30.3 per million total tokens

    Under these assumptions, the enterprise workload pays less than one-third of the independent developer’s blended per-token rate for the same model.

    The difference reflects both cache reuse and the input-to-output mix. It does not mean that enterprise customers necessarily spend less overall.

    What appears to be a uniform price increase therefore creates distinct usage tiers. Applications with stable system prompts and highly reusable prefixes receive a much lower effective rate, while infrequent requests with little prefix reuse remain closer to the full uncached rate.

    3. Why Higher Prices Can Have a Technical Basis

    There are technical reasons why newer models and agent workloads may cost more to serve.

    Agent workloads change the economics of inference

    A conventional chat interaction may consume anywhere from a few dozen to several thousand tokens. At that scale, users may pay relatively little attention to individual request costs.

    Agent workloads can be very different. Provider disclosures describe complex tasks involving thousands of tool-use steps, hundreds of thousands of tokens, and hundreds of agents running in parallel for days.

    These workloads place sustained pressure on GPU memory, KV-cache storage, and decoding bandwidth. As context grows, these resource requirements can increase linearly or, for some aspects of processing, more steeply.

    If prices remain unchanged while resource requirements rise, some long-context requests may become uneconomical to serve.

    Larger models introduce costs beyond active computation

    The newer model architecture described in this pricing discussion uses a larger sparse mixture-of-experts design. Activating only a subset of experts at each step helps control computation, but it does not eliminate other infrastructure costs.

    Those costs include:

    • Keeping a larger set of model weights resident in accelerator memory.
    • Handling cross-device communication associated with expert routing.
    • Optimizing operators for newer hybrid-attention mechanisms.

    These requirements still demand hardware investment and engineering work. Aligning inference prices more closely with serving costs is part of the industry’s move toward more sustainable economics.

    That does not mean every price increase can be explained entirely by hardware costs. It does mean that a price comparison without considering workload structure leaves out important context.

    4. How Developers Can Control Costs

    Developers are not limited to accepting the headline rates. Application architecture can materially change the effective cost.

    1. Maximize prefix reuse

    Place stable content—such as system instructions, tool definitions, and reusable knowledge-base material—at the beginning of the prompt. Put changing content toward the end.

    Keeping the shared prefix consistent improves the opportunity for cache hits.

    2. Route tasks to appropriately sized models

    Use smaller models for straightforward work such as intent classification, formatting, and summarization. Reserve the flagship model for tasks that require more advanced reasoning.

    The objective is to avoid paying premium inference rates for work that a smaller model can handle.

    3. Reduce unnecessary output tokens

    Ask for concise, structured results rather than verbose prose when the application does not need it. Avoid requesting intermediate reasoning text unless it serves a practical purpose.

    When output is the most expensive pricing tier, reducing unnecessary generation directly lowers the bill.

    4. Reuse context within conversations

    Where supported by the provider’s caching behavior, reuse stable conversation prefixes within the relevant cache window.

    The goal is to make repeated context eligible for cached-input pricing rather than repeatedly paying to process it as new input. A continuing conversation should not be assumed to guarantee cache hits; the actual billing behavior matters.

    5. Monitor token costs by task

    Use logging, monitoring, and alerts to track token consumption and cache-hit rates at the task level.

    This makes it easier to identify unexpected output growth, falling cache reuse, or other changes that cause spending to increase.

    5. The Bigger Picture: Effective Cost Matters More Than the Headline Rate

    This pricing shift points toward an industry moving away from acquisition-driven subsidies and toward pricing that more closely reflects resource consumption.

    For enterprise applications, strong cache reuse can soften the impact of higher headline rates. Independent developers with less predictable prompts need to pay closer attention to context reuse and output length.

    The next stage of LLM competition will not be defined by capability alone. It will also depend on how much useful work an application gets from its token budget.

    Understanding the cost structure behind a price table is therefore more useful than judging a model solely by its advertised per-token rate.