LLM API Pricing Trends and Cost Assessment for Enterprise Model Selection

    This article examines the shift in large language model (LLM) API pricing from low-price competition toward value-based pricing. It explains why output tokens cost more than input tokens, compares API billing with subscription plans, and provides a cost estimation script and architecture practices for enterprise model selection.

    As large language models (LLMs) continue to evolve, the industry is moving from a race to the lowest price toward value-based pricing. Recently, one model’s API price rose to five times the previous generation’s level: CNY 20 per million input tokens, CNY 100 per million output tokens, and CNY 1 per million tokens for cache hits. The change sparked wide discussion among developers and enterprise users. As technical practitioners, we should look beyond the emotional reaction of “expensive” versus “cheap.” Instead, we should analyze the technical cost logic, the trade-offs in cost-effectiveness, and the strategies enterprises can use when selecting models.

    1. Pricing Structure: Why Output Costs 5 Times More Than Input

    Understanding LLM pricing starts with the resources consumed during inference. Mainstream providers typically bill input and output separately, and output is priced significantly higher. In this model, input at CNY 20 and output at CNY 100 (a 5x gap) is driven mainly by the following technical factors:

    1. Computational complexity and KV cache overhead
      In autoregressive generation models, processing the prompt requires one forward pass that computes the Key and Value matrices for each layer, known as the KV cache. During output generation, the model not only uses the KV cache already computed, but also computes and stores new KV cache entries for each newly generated token. As a result, memory use in the output phase grows linearly with sequence length, and the phase involves dense matrix multiplication. High memory bandwidth consumption and heavy compute usage are the root cause of output prices far exceeding input prices.

    2. Cache-hit incentives
      A cache hit costs only CNY 1. This very low price signals that the platform wants developers to optimize their application architecture. In multi-turn conversations or scenarios with fixed system prompts, much of the input is repeated. If the platform can reuse the KV cache for these prefixes, compute costs drop substantially. Low cache pricing encourages developers to design prompts well, placing static instructions at the front, which benefits both sides.

    2. Absolute Price vs. Effective Usage: Subscriptions vs. API Billing

    Looking only at absolute API prices, this model seems expensive for a reason compared with top-tier models. For example, some leading overseas models score highly on benchmarks, and their unit prices are also high. However, when we compare the cost-effectiveness of subscription plans, the problem becomes apparent.

    1. Subsidy effects from leading providers
      Some leading overseas model providers offer a USD 20 monthly subscription that, in practice, can support API usage worth roughly USD 400 to 800. Their USD 200 top tier can reach actual usage of up to USD 10,000. This high value rests on moats built from very large compute clusters, high memory reuse rates, and highly optimized inference frameworks.

    2. Inference efficiency challenges for domestic models
      By contrast, a domestic Chinese model’s CNY 199 subscription corresponds to actual usage of roughly CNY 1,200 to 2,800. In complex tasks such as multi-step agent reasoning, per-task token consumption already approaches that of top-tier models, but the plan’s usage cap falls far short. This suggests that domestic models still face major challenges in inference framework optimization, compute scheduling efficiency, and overall operating costs. To compete with overseas leaders on subscription value, the CNY 99 plan would need to rise to several thousand CNY in usage, and the CNY 699 plan to tens of thousands of CNY. Under current hardware cost constraints, this is extremely difficult.

    3. Cost Estimation and Architecture Design for Enterprise Applications

    Faced with shifting LLM pricing, developers and enterprises should not accept it passively. They need a detailed cost control system.

    1. Practical cost estimation script
      Before integrating any LLM, write a cost estimation tool. Use typical context lengths, output lengths, and cache hit rates from your workload to simulate costs. Below is a simple Python cost estimation example:
    1. class ModelCostEstimator:
    2. def __init__(self, input_price, output_price, cache_price):
    3. # Prices are in CNY per million tokens
    4. self.input_price = input_price
    5. self.output_price = output_price
    6. self.cache_price = cache_price
    7. def calculate_cost(self, input_tokens, output_tokens, cache_hit_ratio=0.0):
    8. """Estimate the cost of a single request"""
    9. # Effective input = total input * (1 - cache hit ratio) + total input * cache hit ratio
    10. # Simplified: split into fresh input and cached input
    11. cached_input = input_tokens * cache_hit_ratio
    12. fresh_input = input_tokens * (1 - cache_hit_ratio)
    13. cost = (fresh_input * self.input_price +
    14. cached_input * self.cache_price +
    15. output_tokens * self.output_price) / 1_000_000
    16. return cost
    17. # Assumed pricing for this model: input 20, output 100, cache 1
    18. estimator = ModelCostEstimator(20, 100, 1)
    19. # Scenario: multi-turn conversation, long context, high cache hit rate
    20. daily_cost = estimator.calculate_cost(input_tokens=8000, output_tokens=2000, cache_hit_ratio=0.8)
    21. print(f"Estimated cost per request: {daily_cost:.4f} CNY")
    1. Building a multi-model routing and caching architecture
      Enterprises should avoid tying their business deeply to a single model. We recommend using general-purpose cloud platforms such as Baidu AI Cloud to build an AI application gateway with multi-model routing capability.
    • Semantic caching: Before requests reach an LLM, use a vector database to intercept similar requests and return previous results directly. This substantially reduces call volume.
    • Tiered task routing: Route simple tasks, such as text summarization or classification, to low-cost smaller models. Call the higher-priced, more capable LLM only for complex reasoning and code generation.
    • Cloud-native elastic scheduling: Use the cloud provider’s container platform and log service to monitor API call volume and token consumption in real time. When costs approach a set threshold, trigger automatic circuit breaking or degradation to keep services stable and budgets under control.

    4. Conclusion

    The rise in LLM API prices is fundamentally a step toward a sustainable commercial cycle for the industry. As developers and enterprise decision-makers, we should look beyond absolute price comparisons and understand the compute cost structure behind them. Through careful architecture design, caching, and multi-model coordination on mature cloud infrastructure such as Baidu AI Cloud, enterprises can keep total cost of ownership (TCO) under control while fully realizing the productivity value of LLMs. Model strength matters, but the larger challenge is scheduling these models cost-effectively to solve real problems.