LLM Price War Is Over: A Practical Guide to Cutting Costs

    As headline LLM prices stabilize, the real cost battle has shifted to the cost per completed business task. This guide explains why falling per-token rates do not lower bills, how context growth, output-heavy workloads, and retries inflate spending, and how to measure cost at the task level. It then walks through five engineering levers—tiered model routing, context governance, caching and batching, structured outputs with higher first-pass success, and task-level observability—plus a four-stage rollout path and the dual quality-and-cost thresholds needed to keep reliability intact. The approach is vendor-neutral and works on general LLM services and standard cloud building blocks.

    1. From Falling List Prices to Rebuilt Bills: A Shift in How Competition Is Measured

    For the past two years, the main axis of competition in the LLM service market was the steady decline of the quoted price per million tokens. It started when a general-purpose LLM pushed its input price down to one yuan per million tokens, and several cloud providers matched within days, at one point cutting prices on a weekly cadence. By the second half of 2025, industry monitoring showed a normalized average price of roughly 6.8 yuan for domestic token services. That figure deserves a caveat: it is normalized against the list price at each model’s release, which is not the same as the average price users actually pay. It reflects neither call patterns nor the input-to-output ratio, cache hit rate, or the extra consumption caused by failed retries.

    In mid-to-late October 2025, multiple vendors released a new generation of models within ten days. Across five launches, almost no new public price cuts appeared, yet enterprise bills moved more than they had in the previous two years. The reason is not mysterious: the unit of competition changed from the model’s list price to the money a customer actually spends to complete one business task. Once list prices flatten, cost differences can only come from engineering—finishing the same task with fewer tokens, fewer call rounds, and a higher cache reuse rate naturally lowers the bill.

    The market also stratified over the same period. The budget tier kept falling, with some general-purpose chat models dropping more than 90%. The flagship tier moved up collectively: some vendors raised prices several times within the year to restore commercial value, some introduced peak-and-off-peak pricing where output during peak hours costs several times the off-peak rate, and one flagship model’s output price rose to the highest among domestic models without triggering any follow-on moves. The stage of acquiring customers purely on low prices is over. The market now prices by capability tier, and cost competition has moved to the dimension of unit-task economics.

    2. Why a Lower Unit Price Does Not Mean Lower Cost

    In engineering practice, a single user request often triggers multiple model calls: intent recognition, query rewriting, tool selection, code generation, result validation, and retries on failure. If you watch only the unit price, it is easy to miss three amplifying factors.

    The first is context inflation. Multi-turn conversations and long documents repeatedly carry historical content forward, so input tokens grow roughly quadratically with the number of turns. The second is output share. Output tokens are usually billed higher than input, so long answers and the generation of complete code files raise the bill significantly. The third is wasted calls. Retries caused by timeouts, malformed output, or wrong tool arguments multiply consumption.

    The right way to measure cost is therefore:

    1. cost per task = Σ(input tokens per call × input price
    2. + output tokens per call × output price)
    3. / number of tasks completed

    This formula points to every optimization target: reduce the number of calls, compress the tokens in each call, improve cache hits, lower the retry rate, and schedule requests into off-peak windows or lower-cost tiers.

    3. Five Engineering Levers for the Cost Battle

    1. Tiered Model Selection: Route Tasks to the Right Tier

    Do not send all traffic to one flagship model. Split tasks by difficulty: classification and extraction, format conversion, and simple Q&A go to the light tier; multi-step reasoning and complex code go to the flagship tier. The routing layer can combine rules with a small discriminator model:

    1. def route(task):
    2. if task.est_tokens < 800 and task.steps == 1:
    3. return "lite"
    4. if task.requires_code or task.steps >= 3:
    5. return "flagship"
    6. return "standard"

    The key gain from tiering is that most production traffic is simple. Moving that share off the flagship tier typically cuts the overall bill by an order of magnitude while keeping quality loss manageable.

    2. Context Governance: Carry Only What Is Necessary

    Summarize and compress conversation history, rerank and truncate retrieval results, and recall the minimal necessary code snippets by call stack and dependency. In engineering terms, set a hard budget—for example, cap input per request at a configured threshold and compress first if it is exceeded—instead of defaulting to stuffing everything in.

    3. Caching and Batching

    Prefix caching sharply reduces the input cost of repeated system prompts and fixed knowledge snippets; semantic caching intercepts high-frequency repeated questions; for offline workloads, batch APIs finish tasks during off-peak windows, and combined with peak-and-off-peak pricing the cost difference is substantial. Cache design needs an invalidation strategy so stale facts are not frozen into results.

    4. Structured Output and First-Pass Success

    Constrain output with an explicit schema to reduce parse failures and retries:

    1. Requirement: output JSON only; fixed fields; no extra explanation.
    2. Validation: missing fields or wrong types count as failure; retry at most once and fall back to a stricter mode.

    Treat first-pass success rate as a core metric, because it directly determines the actual number of calls.

    5. Observability: Attribute Cost per Task

    A total bill alone cannot localize the problem. Instrument the gateway to aggregate tokens and spend by business identifier, model tier, and scenario, build a drill-down dashboard, and configure budget alerts. A sample record:

    1. {
    2. "task_id": "invoice-parse-8821",
    3. "scene": "document extraction",
    4. "tier": "lite",
    5. "calls": 2,
    6. "input_tokens": 5400,
    7. "output_tokens": 320,
    8. "cache_hit": true,
    9. "retry": 0
    10. }

    With this data you can answer where the cost actually goes at each step instead of tuning parameters by feel.

    4. A Practical Rollout Path

    Stage one is the baseline: connect a unified gateway, collect cost per task, and clarify the current spend distribution across scenarios. Stage two is reduction: ship tiered routing, prefix caching, and context budgets—this stage usually delivers the largest gains. Stage three is optimization: add semantic caching, batching, and peak-and-off-peak scheduling, moving offline tasks into off-peak windows. Stage four is governance: build regression evaluation across model versions, so any change of tier or compression strategy is validated on a fixed evaluation set for no quality regression before a gradual rollout.

    One caution: cost optimization must not come at the expense of reliability. Set a quality floor and a cost ceiling for each scenario and enforce both thresholds at once; when quality drops below the floor, fall back automatically to a higher tier. That is more robust than chasing the lowest price alone.

    5. Conclusion

    The list-price war is cooling, but that does not mean compute and call overhead are solved—it means the focus has moved to unit-task economics. For developers and enterprises, the real dividend comes from engineering: treat the model as a replaceable compute backend, unify the cost measure at the task level, and use caching, compression, routing, and observability to spend every unit of budget where it is needed. This method relies on no vendor-specific proprietary interface. It can be implemented on general LLM services and standard cloud capabilities such as object storage, message queues, container platforms, log services, and monitoring and alerting, and it can be deployed and evolved smoothly in a compliant environment such as Baidu AI Cloud.