How to Evaluate the Cost per Task for Large Language Models
Token pricing is only one part of the equation when comparing large language models. This article explains why a model with a lower price per million tokens can end up costing nearly the same per completed task, and presents a reproducible framework for measuring cost per task using capability pass rate, average reasoning tokens, and end-to-end latency. It also covers practical levers such as reasoning budgets, structured output, prompt caching, and tiered model routing.
1. The Question Starts with a Parameter-and-Price Comparison
A recent public benchmark comparison illustrates the problem well. A new-generation general-purpose LLM scored 60 on a public composite capability index, up 7 points from the previous generation and level with a flagship model that has 2.8T total parameters and 104B activated parameters. The new model itself has only 753B total parameters and 40B activated parameters.
Its API pricing stayed at the previous generation’s level: roughly $1.40 per million input tokens and $4.40 per million output tokens. The comparison model charges $3.00 and $15.00 respectively.
Looking at unit price alone, the conclusion seems obvious: the first model is far cheaper. But once you calculate the cost of completing one real task, the gap shrinks to about 19%. The reason is simple: the first model consumes roughly 41K reasoning tokens per task (thinking tokens plus output tokens), while the second consumes about 25K.
This is the technical problem this article addresses: how to build a rigorous cost-per-task evaluation method instead of being misled by token unit price as a single dimension.
2. Three Pairs of Concepts That Are Easy to Confuse
Total Parameters vs. Activated Parameters
In sparse (mixture-of-experts) architectures, total parameters determine the upper bound of the model’s knowledge capacity, while activated parameters determine the actual scale of computation in a single forward pass. Decoupling the two makes it possible to expand knowledge capacity without linearly increasing inference compute. So “fewer activated parameters” usually means cheaper computation per token, but it is not directly equivalent to “lower cost per completed task,” because the latter also depends on how many tokens were generated.
Base Capability vs. Post-Training Gains
The same base model can achieve a substantial improvement on composite capability evaluations through continued refinement in the post-training stage (supervised fine-tuning, preference alignment, reasoning behavior optimization, and so on) without changing the base architecture. This explains the phenomenon of “catching up with far fewer parameters”: post-training is currently a cost-effective way to unlock capability. The tradeoff often shows up at the behavioral level, such as longer chains of thought and more conservative verification strategies, which drive up reasoning token consumption.
Token Unit Price vs. Cost per Task
Token unit price is a pricing dimension; cost per task is a financial dimension. The two are separated by a multiplier called “token efficiency.” Ignore it, and you get conclusions that do not match the actual bill.
3. A General Framework for Converting to Cost per Task
Let a task consume on average In input tokens and Out thinking plus output tokens. Then:
cost per task = In/1e6 * P_in + Out/1e6 * P_outtoken efficiency ratio = Out / capability score
Plugging in the public comparison data (assuming input token volume is roughly comparable):
def task_cost(in_tok, out_tok, p_in, p_out):return in_tok / 1e6 * p_in + out_tok / 1e6 * p_out# Model A: low unit price, high reasoning tokenscost_a = task_cost(6000, 41000, 1.40, 4.40)# Model B: high unit price, low reasoning tokenscost_b = task_cost(6000, 25000, 3.00, 15.00)print(round(cost_a, 3), round(cost_b, 3))# roughly 0.68 and 0.84, a gap of about 19%
Key takeaway: when the output unit price is several times the input unit price, output tokens become the dominant cost item. In that situation, the gains from “thinking a bit less and saying a bit less” can exceed the gains from negotiating a lower unit price.
4. Why Token Efficiency Is the Real Dividing Line
- Reasoning budget mismatched to task complexity: triggering long-chain reasoning on simple tasks is pure waste.
- Output redundancy: formatted restatement, repeated conclusions, and over-explanation all scale output cost linearly.
- Retries and self-correction: when the first-pass success rate is low, multiple retries can turn 41K into more than 80K.
- Context bloat: feeding back the full conversation history and retrieved snippets raises input-side spend.
Common engineering countermeasures include setting caps on the reasoning budget, applying structured output constraints, using prompt caching and context trimming, and routing tasks by difficulty to models of different sizes. These are industry-standard practices, independent of any specific vendor.
5. Selection Advice: Make the Evaluation a Reproducible Benchmark
- Build your own task set: sample 100–300 real business cases covering both high-frequency and long-tail scenarios.
- Record three metrics at the same time: capability pass rate, average reasoning tokens, and end-to-end latency.
- Rank by cost per task, not by unit price.
- Use tiered routing: route high-value complex tasks to models with larger activated parameter counts, and batch simple tasks to lightweight models or recent small high-performance models (for example, 27B-class models can already match the previous generation’s mid-tier flagship on a composite capability index, showing that small models have substitution value in specific ranges).
- Keep regressing: model version iterations change token efficiency, so the benchmark needs to be updated with each version.
6. A General Capability Stack for Running This in the Cloud
To hard-wire the evaluation process above into your own systems, you can close the loop with general cloud product categories: object storage to hold evaluation samples and results, a container platform to run batch inference jobs, a message queue to smooth out traffic spikes, a logging service to retain call details, and monitoring and alerting to track fluctuations in cost per task. Baidu AI Cloud offers corresponding capabilities in these general categories and can serve as the foundation for building an evaluation and cost governance system.
7. Conclusion
“Fewer parameters, lower unit price, matching capability” is an exciting narrative, but what actually determines the bill is token efficiency. Upgrading the evaluation metric from “how much per million tokens” to “how much per completed task,” combined with tiered routing and output constraints, is the sustainable approach to cost engineering.
