Behind the Doubling of LLM API Prices: Cost Structure and Model Selection Logic

    This article examines why LLM API pricing can rise severalfold even as some competitors cut prices. It breaks down inference cost drivers, input/output pricing gaps, cache-hit economics, capability-premium evaluation, market segmentation, and practical ways developers can manage price volatility through abstraction layers, caching, monitoring, and effective-cost metrics.

    Over the past year or so, the parameter scale of large models has continued to climb. From hundreds of billions to trillions of parameters, the upper bound of model capability has been repeatedly pushed higher. Yet industry pricing has moved in two sharply different directions: some vendors have cut prices aggressively after scaling up their models, using low prices to build an ecosystem; others have raised prices significantly when launching larger models, putting the “capability premium” directly on the bill.

    A recent case illustrates this clearly: a platform’s new-generation flagship model was priced in the hundreds of RMB per million output tokens and tens of RMB per million input tokens, with cache hits at just 1 RMB. Overall, this was several times higher than the previous generation. At the same time, competing models of similar scale were becoming cheaper. This divergence deserves closer analysis.

    2. Why LLM Pricing Can Fluctuate Severalfold

    2.1 Inference Cost Scales Superlinearly with Model Size

    LLM inference cost is mainly determined by three factors: memory footprint, computation, and bandwidth. In the Transformer architecture, for example, the computation of a single forward pass is roughly proportional to the number of parameters. MoE (Mixture-of-Experts) architectures can reduce per-token computation through sparse activation, but they also create greater memory-residency pressure: all expert parameters must be loaded into memory, which lowers the number of concurrent requests a single GPU can serve.

    A rough estimate shows that when a model’s total parameter count rises from 1T to 2.8T:

    • Weight memory footprint increases by roughly 2.8x;
    • Even if the activated-parameter ratio stays unchanged, expert routing increases memory-access overhead;
    • To maintain throughput, the cluster needs more interconnected nodes, so communication cost and failure rates rise as well.

    Taken together, the inference cost per token may be two to three times that of the previous generation. A severalfold price increase is therefore not entirely without cost-side justification.

    2.2 The Input/Output Price Gap Reflects the Real Cost of Generation

    Input tokens require only a single forward computation (the prefill stage, which is highly parallelizable), while output tokens must be generated autoregressively one by one (the decode stage, which is memory-bandwidth-bound and difficult to parallelize). This is why most vendors price output tokens at four to eight times the input price. The pricing structure in the case above—20 RMB for input and 100 RMB for output—is consistent with the industry’s common cost model.

    2.3 The Economics of 1 RMB Cache Hits

    A cache-hit price as low as one-twentieth of the input price is a pricing design that has already been validated in practice. Prefix Caching allows repeated system prompts, few-shot examples, long document contexts, and similar content to avoid recomputing the KV Cache; existing results can be reused directly. The marginal cost is extremely low, so vendors are willing to pass on a very low price while also encouraging users to optimize prompt structure and increase cache-hit rates, thereby reducing the overall load on their clusters.

    For developers, this is also the most direct cost-optimization lever:

    1. Before optimization: every request carries the full system prompt (about 8,000 tokens) → billed at full price
    2. After optimization: keep the prompt prefix stable and place dynamic content at the end of the request
    3. → cached portions are billed at 1/20 of the price
    4. → overall input cost can drop by 50%–90%

    3. Is the Price Increase Reasonable? Capability Premium and Market Dynamics

    3.1 Capability Gains Need Quantifiable Validation

    The core question in judging whether a price increase is reasonable is whether the new model’s capability gain over the previous generation is enough to cover the price increase. The basis for judgment should not come from vendor marketing, but from evaluations in real business scenarios:

    • Build an evaluation set closely tied to your own business, such as code generation, document summarization, or Agent tool calling;
    • Compare pass rates, hallucination rates, and response latency between the old and new models on the same evaluation set;
    • Calculate the cost per unit of “effective output,” rather than looking only at the token unit price.

    If the new model raises the success rate on critical tasks from 70% to 90%, then even if the token price rises 5x, the cost per unit of effective output may actually fall. Manual review cost is often the most expensive hidden overhead in LLM applications.

    3.2 Segmentation Between High-End and Mass-Market Segments

    Pricing divergence in the industry is essentially the result of market segmentation. Vendors cutting prices usually aim to capture the developer ecosystem and application-layer market through mass-market pricing; vendors raising prices target scenarios with extremely high demands on reasoning capability, such as complex reasoning, long-chain Agents, and research-grade tasks. These users are less price-sensitive and more sensitive to the capability ceiling. Neither strategy is inherently superior; the choice depends on a vendor’s own commercialization path.

    3.3 Dynamic Price Adjustment Under Competitive Pressure Is Normal

    The LLM industry is still in a period of rapid iteration, and pricing strategies are highly dynamic. Significant price swings within months of a competitor’s launch are common. For enterprise users, this means architecture design must preserve replaceability and avoid deeply binding the business to a single model or a single vendor.

    4. The Developer Perspective: How to Cope with Price Volatility

    4.1 Build a Model-Agnostic Invocation Abstraction Layer

    Introduce a unified gateway layer in the application architecture to shield differences between model APIs:

    1. class ModelGateway:
    2. def __init__(self, provider, model, fallback=None):
    3. self.provider = provider
    4. self.model = model
    5. self.fallback = fallback
    6. def chat(self, messages, **kwargs):
    7. try:
    8. return self.provider.invoke(self.model, messages, **kwargs)
    9. except RateLimitError:
    10. if self.fallback:
    11. return self.fallback.chat(messages, **kwargs)
    12. raise

    When a model’s price spikes or its capability falls short of expectations, routing can be switched quickly at the gateway layer. Requests can even be routed by characteristics: simple tasks to low-cost models, complex tasks to flagship models.

    4.2 Actively Use Caching and Context Engineering

    • Place stable system prompts and tool definitions at the very front of the message sequence to maximize prefix-cache hit rates;
    • For long documents that are repeated frequently, prefer RAG over stuffing the full text into the context;
    • Compress conversation history to avoid meaningless token growth.

    4.3 Establish a Cost Monitoring System

    Instrument token consumption by business dimension, combine it with common cloud logging and monitoring/alerting capabilities, and set per-request cost and daily budget limits. In many teams, cost blowups do not come from model unit prices but from ineffective retries in Agent loops and uncontrolled context growth.

    4.4 Focus on Effective Unit Cost, Not Unit Price

    When evaluating models, establish the concept of “effective cost”:

    1. Effective cost = token price × tokens consumed ÷ task success rate

    A cheap model that requires multiple retries may cost more in practice than an expensive high-capability model that succeeds on the first attempt.

    5. Conclusion

    Parameter scale continuing to break through the trillion level is a necessary path toward stronger intelligence, and the hard constraint of inference cost means prices cannot fall in one direction forever. The coexistence of severalfold price increases and sharp price cuts shows that the market is moving from a “parameter race” toward a more diverse competition stage focused on efficiency, ecosystem, and commercialization paths.

    For developers and enterprise users, rather than debating the reasonableness of any single price adjustment, it is more useful to focus on three things: building architectural flexibility so models can be replaced, using systematic evaluations to validate capability premiums, and using caching and engineering practices to lower effective unit cost. With these capabilities in place, no matter how the market fluctuates, you can find your own optimal balance between cost and performance.