The LLM Price War Is Over—The Real Battle Is Cost per Task
As LLM API prices bottom out and the market splits into budget tiers and premium-priced flagship models, token sticker prices no longer reflect what enterprises actually spend. This article explains why "cost per successful task" is becoming the true metric for model selection, shows how to calculate it with Python, and offers practical engineering techniques—tiered routing, context control, caching, output constraints, and evaluation monitoring—to keep real-world LLM costs under control.
1. After Prices Bottomed Out, the Market Started to Split
Over the past two years, LLM services in China went through a sustained round of price cuts. In May 2024, one leading vendor dropped its input price to roughly 1 CNY per million tokens, and other vendors followed within a week. The cuts did not stop there: some general-purpose chat products became free, and some API prices fell to about one percent of comparable overseas flagship models.
The price war pulled down the industry-wide average. According to third-party monitoring, in the second half of 2025 the normalized average price of LLM token services in China was about 6.8 CNY per million tokens. This figure is normalized based on list prices at model release; it is not the average users actually see on their bills. Real bills depend on call volume, model tier, and the input-to-output ratio, so the two numbers often diverge significantly.
Once the average price bottomed out, the market did not keep falling in unison. Instead, it split by model tier. Budget-tier models stayed cheap and are well suited for high volumes of simple Q&A, text rewriting, and classification tasks. Flagship models gradually raised their prices—some vendors increased rates several times within a year and introduced higher pricing during peak hours. The normalized average on the same basis rose from about 6.8 CNY to about 13.46 CNY, an increase of nearly 98%. Low prices and price hikes coexisting means a single “lowest price” no longer captures the market’s pricing logic.
2. From List Price to Cost per Task
A model’s list price is a per-token unit rate; it describes the vendor’s pricing rule. What an enterprise actually cares about is how much a business task ends up costing—for example, one code fix, one generated report, or one resolved support ticket. The gap between the two comes from several factors:
- Number of calls: A task may involve multiple inference rounds and tool calls, and each call multiplies the cost.
- Context length: Long documents, conversation history, and retrieved passages all increase input tokens.
- Output length: Output tokens usually cost more than input tokens, and reasoning-heavy tasks produce especially long outputs.
- Pricing policy: Peak/off-peak pricing, tiered pricing, and cache-hit rules all change actual spend.
- Failed retries: Repeated calls after a failed task multiply the cost.
As a result, the unit of competition is shifting from per-token price to “the average cost of completing one acceptable task.” A cheap model with a low success rate can end up more expensive than a pricier model that succeeds on the first attempt.
3. How to Calculate Cost per Task
The example below shows how to convert the token usage of each call into cost, and how to spread the cost of failed tasks across the successful ones. The prices are placeholders; in practice, use the current rates of your chosen model and the real usage recorded in your logs.
from dataclasses import dataclass@dataclassclass CallRecord:input_tokens: intoutput_tokens: intinput_price: float # CNY per million tokens, from the model's current pricingoutput_price: float # CNY per million tokens, from the model's current pricingdef call_cost(r: CallRecord) -> float:return (r.input_tokens * r.input_price + r.output_tokens * r.output_price) / 1_000_000def cost_per_success(task_calls: list[list[CallRecord]], succeeded: list[bool]) -> float:"""Each task is a group of calls; the spend on failed tasks also counts toward total cost."""total = sum(call_cost(c) for calls in task_calls for c in calls)wins = sum(succeeded)return total / wins if wins else float("inf")
Two points matter in this metric. First, the numerator includes every call, including failed tasks and retry consumption. Second, the denominator counts only successful tasks. When the success rate drops, cost per task rises quickly—so quality metrics and cost metrics must be evaluated in the same table.
4. Cost-Reduction Practices on the Enterprise Side
1. Route tasks by difficulty. Send simple tasks like classification and extraction to lightweight models, and reserve flagship models for multi-step reasoning and code generation. Routing rules can start with keywords or a simple classifier, then be refined based on offline evaluation results.
2. Control context size. Return only question-relevant passages at retrieval time, summarize conversation history periodically, and cap the length of tool outputs. Halving the context typically cuts input costs noticeably.
3. Fix the prefix to improve cache hits. Place unchanging content—system prompts, fixed instructions—at the front of the request and variable user input at the end. Whether cache-based billing discounts apply depends on the vendor’s rules, so confirm this before going live.
4. Constrain the output format. Ask the model to output in a fixed structure, such as JSON or predefined fields, and set a maximum output length. Cutting unnecessary explanatory text directly reduces output costs and post-processing effort.
5. Reduce wasted retries. For results that can be validated programmatically—format, field completeness, numeric ranges—validate first and then decide whether to retry. Classify error types, retry only transient errors (such as timeouts), and set a retry limit.
6. Build evaluation and monitoring. Maintain an offline evaluation set covering real business scenarios. Every time you change the model, prompt, or routing rules, record quality, latency, and cost per task together. Wire cost metrics into monitoring alerts so abnormal growth is caught early.
7. Include deployment costs in the total. For scenarios where data cannot leave your environment, private deployment costs include compute, storage, operations, and staffing. Comparing options by API unit price alone leads to one-sided conclusions; convert all spending into a per-task figure.
5. A Framework for Model Selection
Model selection can be organized around five dimensions:
- Quality pass rate: The pass rate on your own data, not public leaderboard scores.
- Cost per task: Calculated using the method above.
- Response latency: Affects user experience and concurrency capacity.
- Data compliance: Whether data is allowed to leave your environment and whether industry regulations are met.
- Version stability: Model update frequency, whether versions can be pinned, and the deprecation cycle of older versions.
The recommended approach is to run a small-scale pilot first to collect real data, then decide on the primary and fallback models. After launch, pin the model version, set budget alerts, and retest periodically to avoid cost or quality drifting due to version changes.
6. Conclusion
With the price war over, the benchmark for comparing model services has changed. Simply chasing the lowest quote cannot handle tiered pricing and does not reflect actual spending. Technical teams should treat cost per task, success rate, and delivery timeliness as core metrics, and continuously reduce real costs through engineering practices such as tiered routing, context control, output constraints, and evaluation monitoring. The focus going forward is completing each category of task with the right model at high quality—and making cost changes part of everyday engineering management.
