After the Price War: LLM Applications Shift to Cost-per-Task Competition

    As per-million-token list prices become less useful for judging real spending, this article explains why LLM pricing has moved toward tiered models and cost-per-task measurement. It covers how to calculate task-level costs, five engineering factors that affect them, practical adoption recommendations, and common pitfalls in comparing model costs.

    1. From List-Price Competition to Cost-per-Task Competition

    Over the past two years, the LLM API market mainly competed on list prices per million tokens. Input prices started at around RMB 1 per million tokens, and multiple vendors followed within a short period. At one point, the industry-normalized average price fell to about RMB 6.8.

    A list price is the quoted price at model release; it is not the user’s actual bill. For the same business requirement, different models vary greatly in token consumption, number of calls, retry count, and context length. A model with a lower list price may consume more tokens to complete a task, and the final bill may not be lower. As a result, the industry’s unit of measurement is shifting from “how much per million tokens” to “how much it actually costs to complete one task.”

    2. Why the Price War Ended: Tiered Pricing Replaces Across-the-Board Declines

    After prices fell, the market did not continue to decline uniformly. Instead, it became tiered by model capability. It can be roughly divided into three categories:

    • Budget tier: For high-frequency, simple, latency-sensitive scenarios such as text classification, information extraction, and simple Q&A. Prices remain low, and this is the main choice for batch processing.
    • General tier: For most dialogue and content generation scenarios, with a relatively balanced mix of performance and price.
    • Flagship tier: For complex reasoning, long-chain code tasks, and multi-step agent tasks. Prices are clearly higher. Some vendors use peak/off-peak pricing at different times, with output unit prices during peak hours significantly higher than during off-peak hours.

    Under a consistent measurement methodology, the industry’s normalized average price rose from about RMB 6.8 to about RMB 13.46 in the first half of the year. The main reason for this change was price increases for flagship models, while low prices in the budget tier remained. The coexistence of low-price and high-price models means model selection cannot rely only on unit price; it must be matched to task type.

    3. How to Calculate Cost per Task

    Cost per task is the total model cost incurred to complete one complete business task. It usually includes the following parts:

    1. Input token costs and output token costs for each model call;
    2. Context accumulation overhead from multi-turn calls and tool-call result pass-back;
    3. Retry costs triggered by format errors, timeouts, or quality failures;
    4. Hidden costs of manual review and rework, which can be converted into a cost and included in accounting.

    Accounting should be based on real call logs, not only on list prices at model release. Below is an illustrative calculation function; the price parameters are for demonstration only:

    1. def cost_per_task(calls, price_in, price_out):
    2. """
    3. calls: list of records for all model calls within one task
    4. price_in / price_out: input and output unit price per million tokens (RMB), example values
    5. """
    6. total = 0.0
    7. for c in calls:
    8. total += c["input_tokens"] / 1_000_000 * price_in
    9. total += c["output_tokens"] / 1_000_000 * price_out
    10. return total
    11. # Example: one task contains three calls, two successful and one retry
    12. calls = [
    13. {"input_tokens": 3200, "output_tokens": 800},
    14. {"input_tokens": 4100, "output_tokens": 1200},
    15. {"input_tokens": 4100, "output_tokens": 1150}, # retry call
    16. ]
    17. print(round(cost_per_task(calls, price_in=2.0, price_out=8.0), 4))

    The above accounting method can be grouped by task type to obtain the average cost, cost distribution, and anomalously high-cost samples for each task type, providing a basis for subsequent optimization.

    4. Five Engineering Factors That Affect Cost per Task

    1. Context Length and Cache Hits

    Input tokens usually account for the bulk of call cost. Multi-turn dialogue and long-document processing continuously accumulate context, causing input costs to grow multiplicatively. The following should be done:

    • Keep only historical information relevant to the current step, and summarize or compress it periodically;
    • Place fixed system instructions and templates in the request prefix so that the service provider’s prefix cache can hit;
    • Split and retrieve long documents first, and send only relevant snippets to the model.

    Specific caching rules and discounts are subject to the service provider’s official documentation. Before integration, confirm the benefits with actual measurements.

    2. Output Length Control

    Output token unit prices are usually higher than input tokens. By clearly constraining output format, limiting word count, or using structured fields, invalid output can be reduced. For example, requiring the model to return only JSON fields saves more cost and is easier for programs to parse than generating complete paragraphs.

    3. Model Tier Routing

    Not all tasks need flagship models. Routing can be based on task complexity, latency requirements, and quality standards, sending most simple requests to budget-tier models and a small number of complex requests to flagship models. The routing logic is illustrated below:

    1. def route(task):
    2. if task["complexity"] == "high":
    3. return "flagship" # complex reasoning, multi-step tasks
    4. if task["latency_budget_ms"] < 500:
    5. return "lightweight" # low-latency, simple tasks
    6. return "general" # other routine tasks

    Routing rules should be based on evaluation results, avoiding sacrificing the quality of critical tasks just because the unit price is low.

    4. Retry and Failure Costs

    Failed calls, output format errors, or quality failures all incur extra costs. Set retry limits and classify each failure. If the retry rate for a certain task type remains high, prioritize fixing prompts or output validation logic rather than simply increasing retry counts.

    5. Invocation Method and Deployment Form

    For batch tasks that are not latency-sensitive, asynchronous calls and batch processing can reduce scheduling overhead and smooth peaks. For businesses with high data compliance requirements, the unit cost of localized or private deployment needs to be compared comprehensively with API calling costs, including hardware, operations and maintenance, and labor for model updates.

    5. Practical Recommendations for Enterprise Adoption

    First, build a cost dashboard. Track call volume, token consumption, cost per task, and failure rate by business line, task type, and model tier, ensuring that every expense can be traced to a specific business.

    Second, establish a three-dimensional evaluation mechanism. Whenever a model is changed or routing rules are adjusted, evaluate quality, cost, and latency at the same time. Looking only at a single leaderboard score can easily lead to selection bias. Use evaluation sets close to real business scenarios and ensure the evaluation process is reproducible.

    Third, set up canary releases. Run new models or new pricing plans on a small percentage of traffic first, compare changes in cost per task and quality, and gradually expand the scope after confirming the benefits.

    Fourth, pay attention to price change cycles. Model prices are adjusted frequently, and tiering strategies and budget models need regular review. It is recommended to update the cost baseline once per quarter.

    Fifth, write budgets into system design. Set a cost ceiling for each task. When the ceiling is exceeded, automatically downgrade to a low-cost model or route the task to manual handling, avoiding runaway costs caused by a single anomalous task.

    6. Issues to Note

    • List price only reflects the per-token quote. The bill also depends on call structure and task quality, so cost cannot be judged by unit price alone.
    • The cost per task of a flagship model is not necessarily higher than that of a budget model. If the flagship model completes a task in one pass and does not need retries, the total cost may be lower. This judgment needs to be verified with real task data.
    • When industry statistics use inconsistent methodologies, average price figures are not directly comparable. When citing statistical results, state the methodology and time range.
    • Data compliance is a prerequisite for cost decisions. For businesses involving sensitive data, confirm the data processing method before discussing cost optimization plans.

    After the price war, the focus of cost management shifts from choosing the lowest list price to continuously measuring and optimizing cost per task. Technical teams need to establish measurement methodologies, evaluation mechanisms, and routing strategies, and manage model expenses within the same framework as other engineering metrics.