LLM Cost Per Task Explained: Token Efficiency in Practice
This article breaks down why two large language models with matching intelligence scores can still produce very different bills. It introduces a per-task cost model built on input tokens, reasoning tokens, and output tokens, explains how post-training optimization can increase token consumption, and offers a reusable cost calculation script. It also covers five practical cost-reduction paths and a model selection checklist, helping developers and enterprise users evaluate models by cost per unit of effective output rather than price per million tokens.
1. The Signal: Matching Intelligence, Diverging Bills
A recent industry development is worth a closer look: a new version of a general-purpose large model raised its composite intelligence index from 53 in the previous generation to 60, matching a flagship model with several times the total parameters and a larger activated parameter count per call. More importantly, this jump did not come from rebuilding the base model. The base stayed the same, pricing stayed at the previous generation’s level, and the gains came from continued optimization during post-training.
From an engineering perspective, this is a signal: marginal gains in model capability are increasingly coming from data mixtures, reinforcement learning, and alignment strategies rather than simply adding parameters. But a second signal deserves even more attention from developers: matching intelligence scores do not mean matching cost per task.
2. Cost Model: Breaking the Bill Into Three Variables
The actual cost of any model call can be abstracted as follows:
Cost per task ≈ weighted sum of (input tokens + total reasoning tokens), priced separatelyTotal reasoning tokens = thinking tokens + output tokens
Total reasoning tokens (thinking tokens plus output tokens) is the most easily overlooked variable. It is not determined by the length of the business output, but by the model’s reasoning style. A model that favors long chains of thought consumes many intermediate tokens before the final answer, and those tokens are billed too.
The following illustrative numbers (for demonstrating the calculation logic only, not data for any specific product) show the effect:
| Item | Model A (small activation) | Model B (large activation) |
|---|---|---|
| Total / activated parameters | 753B / 40B | 2.8T / 104B |
| Intelligence index | 60 | 60 |
| Average reasoning tokens per task | 41K | 25K |
| Input price (USD per million tokens) | 1.40 | 3.00 |
| Output price (USD per million tokens) | 4.40 | 15.00 |
| Cost per task | ≈0.68 | ≈0.84 |
On token prices, Model A’s output price is only about 29% of Model B’s, which looks like an overwhelming advantage. But on a per-task basis, the advantage narrows to about 19%. The 1.64x gap in reasoning tokens eats up most of the difference.
The conclusion is simple: token price determines the “list price”; token efficiency determines the “real bill.”
3. Why Post-Training Optimization Pushes Token Consumption Up
This is not a defect, but an explainable trade-off. After post-training introduces stronger reasoning and alignment objectives, the model is incentivized to “think longer”: longer chains of thought usually bring higher accuracy on complex tasks. This creates a typical engineering paradox: capability gains and token efficiency gains do not move in the same direction.
The implication is direct: when two generations of models have similar intelligence indices, cost comparisons must return to the metric of “per unit of effective output” rather than the listed price per million tokens. Ignoring this leads to systematically biased selection conclusions.
4. A Reusable Cost Calculation Method
Teams should turn the calculation into a script, integrate it into CI, and run it every time they switch models:
def task_cost(in_tok, think_tok, out_tok, in_price, out_price):# Prices are in USD per million tokensreturn (in_tok * in_price + (think_tok + out_tok) * out_price) / 1e6# Example: long thinking vs. short thinkingprint(task_cost(2000, 39000, 2000, 1.40, 4.40)) # ≈0.18print(task_cost(2000, 23000, 2000, 3.00, 15.0)) # ≈0.38
Three points matter. First, you must measure the token profile under your own business distribution; public leaderboard averages are only useful for initial screening. Second, instrument “thinking tokens” separately, otherwise you cannot attribute costs. Third, use effective output (pass rate, first-attempt success rate) as the denominator, not the number of requests.
5. Five Cost-Reduction Paths
- Task-tier routing: Send intent recognition, format conversion, and extraction tasks to small models or rules; send only complex reasoning to large models. In practice, this step often delivers the largest savings.
- Context governance: In retrieval-augmented scenarios, control the number of retrieved items and snippet length, and summarize and compress conversation history. Input tokens and reasoning tokens drop together.
- Caching and reuse: Apply prefix caching to stable prefixes (system prompts, tool definitions, knowledge snippets) and semantic caching to high-frequency repeated questions.
- Output constraints: Use structured output and maximum length constraints to suppress redundancy, and write “think clearly, then answer briefly” into prompts and decoding strategies.
- Observability: Using general-purpose logging services, monitoring and alerting, and container platforms available on the cloud, build token and cost dashboards by business line and model version, and set budget threshold alerts.
6. Selection Checklist
- At equal intelligence levels, compare cost per task rather than unit price.
- Pay attention to reasoning token efficiency, and require vendors or your own tests to provide the distribution of thinking and output tokens.
- Run small-sample canary tests on your own evaluation set before looking at the bill at scale.
- Keep an abstraction layer that allows switching between multiple models to avoid being locked into a single interface.
- Include cost metrics in the acceptance criteria for model iteration, weighted equally with accuracy.
7. Conclusion
Parameter scale is no longer the only measure of capability; token efficiency is becoming a core metric on par with accuracy. For developers, the rational approach is to look at the triple of “intelligence index, token efficiency, cost per task” together and make decisions with data rather than list prices. For enterprise users, consolidating this calculation and governance process into the general cloud product capabilities on Baidu AI Cloud is what allows the benefits of model upgrades to actually show up on the bill.
