How Falling LLM API Costs Are Rewriting AI Pricing

    A practical breakdown of how declining inference costs are reshaping LLM API pricing, including the three-tier model structure, cache-hit discounts, an effective-cost calculation example, and architecture patterns for reducing real spending.

    1. Introduction: The Technical Roots of a Rewritten Price List

    Over the past two years, LLM API price lists have been redrawn almost every few months. On the surface this looks like the result of commercial competition, but from an engineering perspective the real driver is the continuous decline in unit inference cost: more efficient attention implementations, more mature quantization and sparsification approaches, better KV cache reuse mechanisms, and improved hardware utilization and scheduling efficiency. When the marginal cost per million tokens drops by an order of magnitude, pricing inevitably shifts from “charging for a scarce resource” to “charging by value tier.”

    One phenomenon worth attention recently: a new version of a Chinese LLM entered the market at an extremely low API price. Its pricing is clearly lower than some overseas flagship models, yet it is not the cheapest when compared across the whole market. This shows that “low price” is a relative concept, and only becomes meaningful when discussed within a specific capability tier and billing structure.

    2. Dissecting a Real Price List: Tiers and Caching Are What Matter

    Pricing on mainstream platforms is no longer “one model, one price.” It generally follows a three-tier structure.

    The first tier is the flagship version, with the highest unit price, usually held flat relative to the previous generation. Its selling point has shifted from “cheaper” to “more effective work carried per token,” meaning higher output density per token. A typical range is $5 per million input tokens and $30 per million output tokens.

    The second tier is the balanced version, priced at roughly half the flagship, at $2.5 per million input tokens and $15 per million output tokens, suitable for the main path of most applications.

    The third tier is the lightweight version, at $1 per million input tokens and $6 per million output tokens, used for high-concurrency, low-complexity scenarios.

    Another pricing strategy is “low input price plus a cache bonus”: $2 per million text input tokens and $6 per million output tokens. Some platforms push the input price down to $1.25, dropping further to $0.15 on a cache hit, with an output price of $4.25. The gap between the cache-hit price and the regular input price is often close to tenfold, making it the most easily overlooked line on the entire price list and the one that most affects the real bill.

    In addition, some overseas vendors did not cut prices on their new-generation models: high-end models kept their original prices, while mid-tier models received a limited-time discount slightly below comparable balanced versions on the market. This suggests that changes to the price list are structural rather than a blanket reduction.

    3. Cost Estimation: Look at Effective Cost, Not Unit Price

    The most common mistake developers make is estimating budgets directly from unit prices. Real cost should be based on effective token volume:

    1. def estimate_cost(in_tokens, out_tokens,
    2. price_in, price_out,
    3. cache_hit_ratio=0.0, cache_price_in=None):
    4. """Estimate the cost of a single call based on tiered pricing and cache hit ratio (USD per million tokens)"""
    5. cache_price_in = cache_price_in if cache_price_in is not None else price_in
    6. billed_in = (in_tokens * cache_hit_ratio * cache_price_in
    7. + in_tokens * (1 - cache_hit_ratio) * price_in) / 1_000_000
    8. billed_out = out_tokens * price_out / 1_000_000
    9. return billed_in + billed_out
    10. # Example: long-context, high-reuse document Q&A scenario
    11. cost = estimate_cost(
    12. in_tokens=800_000, out_tokens=20_000,
    13. price_in=1.25, price_out=4.25,
    14. cache_hit_ratio=0.8, cache_price_in=0.15
    15. )
    16. print(round(cost, 4))

    Three conclusions are worth remembering. Input and output are priced asymmetrically, with output typically 3 to 6 times the input, so controlling generation length is more effective than compressing prompts. Every 10 percentage point increase in cache hit ratio can cut total cost in long-context scenarios by a substantial margin. And the cost difference introduced by model tiering is often larger than the difference introduced by prompt tuning.

    4. Architecture: Build Cost Optimization into the System

    1. Tiered routing. Use a lightweight classification step to judge request complexity: simple requests go to the lightweight version, complex reasoning goes to the flagship. In engineering terms, combine rules with a small-model cascade so that not all traffic hits the expensive model.

    2. Prefix stabilization. Keep the system prompt, tool definitions, and few-shot examples fixed at the very front of the request and byte-for-byte unchanged so the prefix cache can be reused; place volatile content such as timestamps and random IDs at the end.

    3. Context governance. Control input size through summary compression, reranking of retrieved snippets, and trimming of historical turns, while storing long documents in object storage and sending only the necessary snippets to the model.

    4. Observability. Build cost dashboards in your logging service and monitoring/alerting system by business line, model tier, and cache hit ratio, set budget threshold alerts, and close the loop between usage, cost, and quality.

    5. Quality guardrails. Configure an offline evaluation set and online sampling checks for every downgraded route, so that cost optimization does not come at the expense of accuracy.

    5. What This Means for Industry Price Lists

    Low-cost inference supply will rewrite price lists in three ways. First, the price gap between flagship and lightweight tiers will widen, producing more pronounced stratification. Second, cache and batch discounts will become a standard configuration rather than a promotional tactic. Third, the billing unit may shift further from tokens to outcome-based pricing for completed tasks. For consumers of these APIs, real competitiveness lies not in securing the lowest unit price, but in whether they have the system capability to turn a unit price into a low effective cost. In related practice, Baidu AI Cloud also emphasizes controlling overall spend by combining model tiering, cache reuse, and full-chain observability, an approach that applies equally to self-built solutions.