How to Rationally Evaluate a 5x Increase in LLM API Pricing

    A practical framework for assessing large language model API price increases: how token structure, cache hit rates, average per-task consumption, and billing models determine real cost, plus engineering tactics to keep spending under control.

    1. The Phenomenon: A 5x Unit Price Increase May Lead to the Opposite Conclusion

    The industry has recently seen a new round of price adjustments: a next-generation large model charges roughly five times the output unit price of the previous generation, input prices have also risen significantly, and a very low-cost cache hit price is offered alongside them. Most developers’ first reaction is “it got more expensive,” but comparing unit prices alone easily leads to the wrong conclusion.

    The reason is that an API bill is never determined by unit price alone. It is jointly determined by four variables: token structure, cache hit rate, average consumption per task, and billing model. If the unit price rises fivefold while the cache hit rate and context reuse both improve, the cost per task may rise only one to two times, or even fall in long-context scenarios.

    So the core argument of this article is this: evaluating model pricing requires returning to the metric of cost per task, rather than stopping at unit price per million tokens.

    2. Breaking Down the Billing Structure: Four Token Types and Three Billing Models

    Billing for mainstream LLM APIs typically consists of four parts:

    • Input tokens: prompts and context;
    • Output tokens: generated content, usually the most expensive;
    • Cache hit tokens: repeated prefixes billed at an extremely low rate;
    • Cache write/storage: some schemes charge extra for the initial cache write or bill for storage over time.

    There are three common billing models: pay-as-you-go, subscription plans (with a credit pool), and enterprise resource packages. These three must be converted to the same metric before any comparison is meaningful.

    A schematic cost model can be written as:

    1. def task_cost(in_tok, out_tok, hit_ratio, p_in, p_out, p_cache):
    2. hit = in_tok * hit_ratio
    3. miss = in_tok - hit
    4. return (miss * p_in + hit * p_cache + out_tok * p_out) / 1_000_000

    This function reveals a key fact: input-side pricing is far less sensitive than output-side pricing, because the output unit price is usually several times the input price, and output tokens cannot be reused through caching.

    3. Cache Hits: The Real Lever in This Pricing Round

    Pushing the cache hit price down to an extremely low level essentially shifts the cost of the “repeated prefix” away. Typical scenarios that benefit include:

    1. A long system prompt plus multi-turn conversation;
    2. Repository-level code context, where file contents stay largely unchanged;
    3. Batch document processing, where templates and instructions are identical;
    4. Structured extraction tasks, where the schema definition is fixed.

    For caching to actually take effect, engineering practice requires a few rules: put stable content at the very front of the prompt and volatile content (timestamps, user input) at the end; avoid inserting random IDs or timestamps into the stable prefix; keep the prefix length within the chunking granularity the platform allows.

    1. [Stable prefix: system instructions + tool definitions + reference docs] ← cacheable
    2. [Semi-stable zone: conversation summary] ← partially cacheable
    3. [Volatile zone: current user input] ← not cached

    Once the prefix is polluted, the hit rate drops off a cliff, and at that point the negative impact of the fivefold unit price is fully amplified.

    4. Subscription Plans vs. Pay-As-You-Go: Don’t Compare List Prices Directly

    The core confusion in the original discussion is comparing “plan price” together with “usable credit” as if they were the same thing. The correct approach is to first calculate the conversion ratio: how much pay-as-you-go credit each unit of currency inside the plan buys.

    • If the conversion ratio is close to 1:1, the plan offers almost no leverage and is merely prepayment;
    • If the conversion ratio reaches 1:5 to 1:10, the plan has a genuine cost advantage;
    • A high conversion ratio usually comes with constraints such as rate limits, queuing, context length, or concurrency caps.

    Hidden costs must also be accounted for: the human time lost to queue waits, retry amplification caused by rate limiting, and waste from expiring credits. Only after folding these in can you judge whether something is “expensive” or “cheap.”

    5. Cost per Task: The Only Reliable Basis for Comparison

    The “average consumption per task” published by evaluation organizations is more informative than unit price. If a model’s per-task consumption is close to that of a high-priced model while its unit price is several times higher, then its cost per task really is significantly higher, and there is no need to avoid saying so.

    Teams are advised to build a small benchmark set of their own that covers their actual business distribution:

    1. bench = [
    2. {"name": "Long-document summarization", "in": 12000, "out": 800, "hit": 0.9},
    3. {"name": "Code completion", "in": 6000, "out": 300, "hit": 0.6},
    4. {"name": "Multi-turn Q&A", "in": 3000, "out": 500, "hit": 0.4},
    5. ]

    Running the same set of tasks across different models and outputting “cost per task + quality score,” then computing a cost-performance curve, is far closer to real decision-making than any benchmark ranking.

    6. A Checklist of Cost-Reduction Engineering Tactics

    • Context compression: replace full-text injection with summaries and retrieved snippets;
    • Output constraints: limit structure and length to reduce wasted generation;
    • Tiered routing: send simple tasks to small models and complex tasks to large models;
    • Batching and asynchronous processing: improve throughput and lower cost per unit of time;
    • Full-chain observability: use logging services and monitoring alerts to locate abnormal token consumption;
    • Elastic resources: container platforms to host the inference gateway, object storage to retain corpora and results.

    On platforms such as Baidu AI Cloud, these capabilities are typically offered as general-purpose categories and can be combined into a complete cost-control chain.

    7. Conclusion

    A fivefold unit price does not mean fivefold cost. Rational evaluation takes three steps: convert everything to the cost-per-task metric, quantify the cache hit rate, and fold the plan conversion ratio and hidden constraints into the total. Only a product that offers a high conversion ratio at a low plan price has genuine product strength; otherwise, even the highest benchmark score can hardly support long-term use.