Why LLM Inference Pricing Varies So Much

    A technical look at why two models with similar benchmark scores can differ by an order of magnitude in output token pricing, covering the four cost drivers behind inference pricing—activated parameters, memory bandwidth, cache reuse, and engineering utilization—plus a simplified cost estimation framework and practical strategies for tiered routing, prefix caching, and cost observability.

    1. Same Tier, Wildly Different Prices

    When choosing a large language model, developers often run into something that looks contradictory: two models with similar benchmark scores can differ by an order of magnitude in output price per million tokens. Dismissing this as “different vendor pricing strategies” hides the real technical reasons.

    To understand the gap, start with one premise: the per-token price is not an inherent property of a model. It is the combined result of unit inference cost, target gross margin, and commercial positioning. Unit inference cost is determined by compute volume, memory footprint, and memory access pressure, while compute volume is closely tied to total parameters, activated parameters, context length, and whether the cache is hit.

    A common mistake is estimating cost directly from total parameter count. In sparse (Mixture-of-Experts) architectures, only a small subset of expert networks actually participates in each forward pass. Total parameters therefore mainly affect memory footprint and weight-loading overhead, while activated parameters are a much closer proxy for actual compute consumption. This explains why two models whose total parameter counts differ by several times may differ in inference cost by only three to four times.

    2. Four Key Variables Behind the Cost

    2.1 The Ratio of Total to Activated Parameters

    The core benefit of a sparse architecture is decoupling capacity from compute: total parameters determine the model’s knowledge capacity, while activated parameters determine the compute intensity per token. For example, a model with 2.8T total parameters and 100B activated parameters versus one with 1.6T total and 49B activated has an activation ratio of roughly 2:1, and the real compute gap falls in that same range rather than the simple 1.75x suggested by total parameters.

    2.2 Memory Access and Memory Bandwidth

    Autoregressive decoding is memory-access intensive: every generated token requires moving weights from memory to the compute units. The larger the activated parameter count and the smaller the batch size, the lower the bandwidth utilization and the higher the fixed per-token overhead. This is also why unit prices tend to be higher in low-concurrency, small-batch scenarios.

    2.3 Cache Reuse Rate

    Prefix caching—reusing the computed KV results of repeated system prompts, long documents, and few-shot examples—can significantly amortize the cost of long-context workloads. For workloads with a high cache hit rate, the effective average unit price may be only a fraction of the list price. Conversely, calls that send a brand-new long context every time can multiply the cost.

    2.4 Engineering Utilization

    On the same hardware, differences in batching strategy, continuous batching scheduling, quantization schemes, and tensor-parallel partitioning can make effective throughput vary by several times. A platform with mature engineering can produce more tokens from the same GPU hours, giving it more room to lower prices.

    3. Working Backward from Cost to a “Reasonable Price Range”

    A simplified estimation framework helps build intuition (the numbers are illustrative only and do not represent any real product):

    1. Unit output cost ≈ (activated params / baseline activated params) × baseline unit cost × (1 - cache savings ratio) / engineering utilization
    2. Suggested price ≈ unit output cost / (1 - target gross margin)

    If the baseline model’s cost is about RMB 2 per million output tokens and the target gross margin is 70%–80%, a model with roughly twice the activated parameters would cost about RMB 4–6, putting its suggested price in the RMB 15–25 range. This shows that a high-performing model priced at a dozen or so RMB may simply be a normal cost-plus result, while a model priced around RMB 6 implies either a more aggressive margin strategy or higher engineering utilization.

    4. Model Selection and Cost Reduction Tips for Developers

    • Tiered routing: classify requests by difficulty, send simple tasks to smaller models and complex reasoning to higher-capability models. Overall cost can typically drop by more than half.
    • Structure prompts for prefix reuse: place stable instructions and knowledge snippets at the very front of the request to improve the chance of a cache hit.
    1. # Example: stable prefix first, variable content last, to favor prefix cache reuse
    2. messages = [
    3. {"role": "system", "content": STABLE_PROMPT_AND_KNOWLEDGE},
    4. {"role": "user", "content": dynamic_query},
    5. ]
    • Improve concurrency and batching efficiency: where the business allows, merge requests to reduce the bandwidth waste caused by small-batch decoding.
    • Control output length: output tokens are usually more expensive than input tokens, so limiting max_tokens and enforcing structured output constraints is the lowest-cost optimization available.
    • Build observability: use logging services and monitoring alerts to track token consumption, cache hit rate, and per-request cost, and let data drive optimization instead of picking models by intuition.

    5. Conclusion

    The price differences among large models are fundamentally the combined result of activated parameters, memory access efficiency, cache reuse, and engineering utilization—not simple brand premiums. Once you understand this cost model, you no longer have to be led by the unit price alone when selecting a model. Instead, factor in task difficulty, context characteristics, and concurrency patterns, and build an architecture with tiered calls and cache reuse. If you need elastic compute and complete observability, you can consider the general-purpose container platform, object storage, and monitoring and alerting infrastructure offered by Baidu AI Cloud, so you can focus your energy on the business and the results themselves.