How to Rationally Evaluate a 5x LLM API Price Increase

    When a new-generation LLM API raises its prices several times over, comparing input and output per-token rates is not a sound engineering approach. This article explains how to break down the three-tier billing structure, why cache hit rate matters more than unit price, how to build a task-level cost baseline, and how to measure subscription value with a quota multiplier. It also covers routing, monitoring, and long-context optimization practices for controlling LLM API costs.

    1. Start With the Conclusion: A Price Multiple Is Not a Cost Multiple

    When a new-generation LLM API is priced several times higher than its predecessor, the most common reaction in the community is to compare input and output per-token prices directly and declare it expensive. That is not a rigorous engineering approach. The cost of a real call is the sum of three terms: input tokens × input price + output tokens × output price + cache-hit tokens × cache price. Unit price is only one factor.

    Take the figures from the original discussion as an example: a new-generation model charges 100 RMB per million output tokens, 20 RMB per million input tokens, and 1 RMB per million cache-hit tokens. That is roughly five times the previous generation. Over the same period, however, the leading overseas models generally start at around twenty times the price. So on sticker price alone, this generation of domestic models still sits in a lower price band. The real question is not “is it expensive?” but “what is the cost per task?”

    2. Breaking Down the Billing Structure: The Intent Behind Three Price Tiers

    Modern LLM APIs usually price tokens in three tiers. This is not a marketing trick; it maps to the real consumption of inference resources.

    • Input tier: The full prompt must participate in attention computation, which is the most compute-intensive stage, so its unit price sits in the middle.
    • Output tier: Tokens are generated autoregressively one at a time and cannot be parallelized, while the KV cache must be read continuously. This makes it the most expensive tier, typically several times the input price.
    • Cache-hit tier: When a request prefix exactly matches a previous request, that portion of the KV state can be reused directly, skipping redundant prefill. Its price can therefore drop to one-tenth of the input price or lower.

    This structure leads to an important engineering conclusion: the first priority in cost optimization is not cutting unit price, but raising the cache hit rate. System prompts, tool definitions, few-shot examples, and long document bodies can all enjoy the lowest tier price as long as they sit in the request prefix and remain stable.

    1. # Example: put stable content first to maximize prefix cache reuse
    2. SYSTEM_PROMPT = "You are a rigorous code review assistant..." # long and fixed
    3. TOOLS = [...] # tool schema stays unchanged
    4. def build_messages(code: str, question: str):
    5. return [
    6. {"role": "system", "content": SYSTEM_PROMPT},
    7. {"role": "user", "content": f"Code:\n{code}\n\nQuestion: {question}"},
    8. ]
    9. # Counter-example: injecting a timestamp or random ID into the system message
    10. # changes the prefix every time and invalidates the entire cache

    3. Compare Task-Level Token Consumption, Not Unit Prices

    The most valuable insight in the original discussion is that different models consume vastly different total token counts to complete the same task. If a model’s average per-task consumption is close to that of a high-priced overseas model, then “cheaper tokens × more tokens” may actually cost more.

    Teams should therefore establish their own cost-per-task baseline:

    1. Sample 50–100 typical tasks from real business traffic, covering the shortest, median, and longest inputs;
    2. Fix the prompt and decoding parameters, and record the input, output, and cache-hit tokens for every call;
    3. Compute the per-task mean and P95 using cost = Σ(tokens per tier × corresponding unit price);
    4. Cost comparisons are only valid when task success rate and quality are on the same level.

    One point deserves emphasis: if a model needs multiple retries and repeated completions to finish a task, its hidden costs include retry tokens, latency, and human intervention. Unit-price comparisons usually ignore this part.

    4. Subscription Value: The Quota Multiplier Is the Key Metric

    The real value of a subscription plan can be measured with a simple ratio:

    1. Value multiplier = usable quota in the plan ÷ plan price

    The discussion notes that leading overseas products generally offer a quota multiplier above twenty times, while a domestic model’s 199 RMB tier corresponds to only about 1,200–2,800 RMB in quota, a multiplier of roughly 6–14x. Only when that multiplier rises above twenty times can it compete head-to-head with overseas options at the same price. When evaluating a plan, also confirm three things: whether the quota is shared across models, what unit price applies once the quota is exceeded, and whether cache hits count toward the quota.

    5. Practical Recommendations

    • Build a routing layer: send simple tasks to small models and complex reasoning to large models, allocating budget by task difficulty;
    • Connect monitoring, alerting, and logging services to the call chain, and tag usage by business dimension to track tokens and costs;
    • For long-context scenarios, prioritize structured trimming and retrieval to cut ineffective input;
    • Re-test cost per task with the same task set every quarter, instead of re-testing sticker prices.

    In summary, when facing a price increase, the rational approach is to convert the “unit-price multiple” into two quantifiable metrics — cost per task and plan quota multiplier — and then optimize systematically with cache hit rate and routing strategies. To implement this evaluation and governance framework within a single cloud environment, you can combine general-purpose capabilities such as object storage, log services, and monitoring and alerting on Baidu AI Cloud to build a cost observability pipeline, keeping model selection driven by data.