Why LLM Token Costs per Task Rise Even as Token Usage Falls
Token efficiency and cost efficiency are not the same thing. This article explains how to set measurement boundaries for LLM cost analysis (input vs. output tokens, full agent execution traces, context growth), shows with a formula how lower token usage and higher per-task cost can both be true, breaks down why cost changes differ across coding, long-document, and simple tasks, and outlines how to build a credible token-efficiency benchmark—plus a practical order for reducing cost and why subscription quotas cannot be converted directly into token savings.
1. The Core Distinction: Token Efficiency Is Not Economic Efficiency
The most common mistake in evaluating an LLM’s token consumption is treating “how many tokens the model used” as equivalent to “how much the user paid.”
The two metrics are related but not identical. Token usage measures the scale of information the model processes, while the cost of a task also depends on input and output unit prices, how caching is billed, the number of execution turns, and other resource overhead. What enterprises actually care about is whether the money spent produced an acceptable result.
So any discussion of whether a model is “cheaper” needs to separate three layers:
- Resource efficiency: how many tokens, tool calls, and how much time a task consumes.
- Billing efficiency: how much a task costs at actual prices.
- Delivery efficiency: the total model cost, compute resources, and human effort required to complete a task that meets quality requirements.
The same model can improve on resource efficiency, get worse on billing efficiency, and still improve delivery efficiency by reducing human rework. Conversely, a low-token approach can carry a higher total cost because of a higher failure rate.
The right object of evaluation is not an isolated token count, but the complete execution process for a specified task at a specified quality threshold.
2. Setting Measurement Boundaries: One Response Is Not One Task
2.1 Count Input and Output Separately
A token is the basic unit a model uses to process text and other information; it is not a fixed number of Chinese characters, words, or characters. Tokenization method, content type, and language all affect how many tokens the same content maps to.
In cost analysis, start by separating input tokens from output tokens. Input typically includes the user request, system constraints, conversation history, retrieved material, and tool results; output is the content the model generates. Some services also apply specific billing rules to internal reasoning consumption—whether it is counted and how it is priced should follow the actual billing documentation.
You cannot measure only the length of the final answer. A short answer does not mean the process that produced it was cheap.
2.2 Agentic Tasks Must Cover the Full Execution Trace
A single agentic coding task may involve understanding requirements, reading files, editing code, running tests, locating errors, and fixing them again. Each call produces new input and output, and tool results may enter the next turn’s context.
Task-level token usage should therefore count every call from start of execution to final acceptance, not just the last response.
It must also be explicit whether failed tasks, timed-out tasks, and automatic retries are included. Reporting average usage for successful tasks only, while ignoring a large number of failed attempts, will deviate substantially from real production cost.
2.3 Context Growth Causes Repeated Input
In multi-turn tasks, early information may reappear in later requests. The same requirements document, code snippet, and test log may be fed in multiple times.
Task consumption is therefore not only “how much new content was generated,” but also “how many times old information was reprocessed.” Effective context management often reduces repeated input, but a cache hit does not necessarily show up as a lower token count—it may show up mainly as lower cost. The two must be recorded separately.
3. The Formula: How Falling Consumption and Rising Cost Both Hold
Assume a task involves multiple model calls. Model cost can be written as:
C_model = Σ[uncached input tokens × input price + cached input tokens × cached price + output tokens × output price] ÷ 1,000,000
This assumes prices are quoted per million tokens. If the actual service has other billing items, add them to the formula; do not assume they are already included in input or output charges.
If we temporarily ignore changes in input/output structure, caching, and other charges, and assume all token prices are adjusted by the same ratio, then:
new task cost ÷ old task cost ≈ token usage ratio × price ratio
The following is a mathematical example only and does not represent any real product’s pricing or benchmark results:
- Token usage drops to one third of the original;
- Unit price rises to 2.5× the original;
- Task cost is then about 0.833× the original, a decrease of roughly 16.7%.
If token usage falls by only 10% while unit price rises to 2.5×, cost is about 2.25× the original, an increase of 125%.
This shows that you cannot accept any conclusion about task cost based only on two headline numbers—how much tokens fell and how much prices rose.
If a report’s task cost change differs from simple multiplication, check further:
- Whether both sets of numbers come from the same task set;
- Whether the same execution budget and configuration were used;
- Whether the input/output token ratio changed;
- Whether the cache hit rate differed;
- Whether additional billing items are included;
- Whether the figure is per-call cost or full task cost including retries;
- Whether the ratio of total costs was used, or the average of per-task cost ratios.
The last point matters especially: different aggregation methods can produce different results. An evaluation should state its methodology, not just report a single average percentage.
4. Why Cost Changes Can Go in Opposite Directions Across Tasks
4.1 Coding and Tool-Use Tasks: Less Trial and Error Can Pay Off Substantially
For complex tasks, the main consumption is usually not in the final answer but in the execution process.
Take code repair as an example. An inefficient trace may include repeatedly reading irrelevant files, editing code too early, missing constraints, running ineffective tests back to back, and forgetting hypotheses already ruled out. If a system can locate the problem more accurately and cut wasted round trips, task-level token usage may drop markedly.
Such improvement may come from model capability, or from context organization, tool design, prompting strategy, and the execution framework. A token reduction alone is not proof of an architectural breakthrough.
A rigorous evaluation must control variables such as tool permissions, task environment, and stopping conditions before attributing the improvement.
4.2 Long-Document Tasks: Input Volume Is Hard to Compress Much
Tasks such as document review and material summarization often require reading large amounts of source material. Even if the model’s comprehension improves, the necessary input still exists.
If quality requirements include full coverage, evidence citation, and detail verification, cutting input too aggressively can reduce reliability. Here the room for token-efficiency gains may be smaller than in multi-turn trial-and-error tasks, and a unit price increase is more likely to translate into higher task cost.
4.3 Simple Tasks: Capability Gains Do Not Always Become Economic Gains
Format conversion, short-text classification, and information extraction with clear rules can often already be done reliably at low cost. Moving to a more capable, more expensive model does not necessarily deliver enough quality gain.
Enterprises should therefore not migrate every task to the same model tier. A more sensible approach is to route by complexity, risk level, and quality requirement, while keeping an escalation path for hard tasks.
5. What Context Management Can and Cannot Guarantee
A common problem in long tasks is that task state degrades after multiple turns: the system keeps conclusions but loses the conditions under which they hold; it records what was changed but not why.
Structured working notes can mitigate this. For example, continuously maintaining:
- Current goal and acceptance criteria;
- Confirmed facts and where the evidence is;
- Paths already tried that failed;
- Completed changes and test results;
- Hypotheses still to be verified;
- Next action and stopping conditions.
These notes reduce repeated exploration, but they are not a cost-free “permanent memory.” Generating, updating, storing, and re-injecting the notes all incur overhead, and a summary can itself omit critical details.
The engineering approach is a compact state record plus on-demand reads of source evidence, rather than appending the full history to the context indefinitely. For high-risk decisions, go back to the original material; a summary must not be the only source of truth.
6. Enterprises Should Track Total Cost per Successful Task
A cheap single task does not mean a cheap successful task.
For a fixed evaluation batch, one practical metric is:
model cost per successful task = total model cost across all tasks ÷ number of tasks meeting acceptance criteria
This counts failed consumption in the cost. If the number of successful tasks is zero, the metric has no finite value, and you should report directly that the system does not meet usability requirements.
Extending to production delivery:
total cost per successful task = (model cost + tool and compute cost + human review cost + rework cost) ÷ number of successfully delivered tasks
For example, an approach with a slightly higher model bill but a large reduction in human inspection and editing time may still be more economical. However, human savings must be measured in the actual workflow, not inferred from model scores.
Success criteria must be defined in advance. For coding tasks, do not look only at whether code was produced; also consider whether tests pass, the scope of changes, and whether new problems were introduced. For document tasks, examine factual accuracy, coverage, and citation reliability.
7. How to Design a Credible Token-Efficiency Evaluation
7.1 Build Test Sets by Task Type
Test sets should reflect real workloads: simple tasks, complex tasks, long-input tasks, multi-turn tasks, and high-failure-risk tasks.
Report results by group so that a large volume of easy tasks does not mask cost problems on complex ones. Model selection depends on business structure, and an overall ranking detached from task distribution has limited value.
7.2 Fix the Environment and Quality Requirements
Compared approaches should use the same task material, tool permissions, acceptance criteria, and timeout rules. If execution budgets differ, state it explicitly and plot the quality–cost relationship rather than comparing a single configuration.
Comparing cost at equal quality and comparing quality at equal budget answer two different questions and must not be mixed.
7.3 Record Both Averages and Tail Behavior
At minimum, record input and output tokens, number of calls, cache behavior, completion rate, cost, elapsed time, and number of human interventions.
Beyond the mean, look at the median and high percentiles. A few tasks stuck in repeated retries can consume a large share of the budget and cause noticeable latency. For production systems, this tail risk often matters more than average performance.
7.4 Maintain a Traceable Task Ledger
Each task should link to its execution trace, configuration version, billing details, and acceptance result. Only then can you tell whether a cost change came from a model update, a prompt change, a data change, or a caching policy adjustment.
Without traceable records, cost optimization easily becomes subjective judgment based on a few cases.
8. A Practical Order for Reducing Cost
First, eliminate unnecessary work. Defining task boundaries and acceptance criteria is more effective than simply asking the model to “say less.”
Second, optimize the input. Remove irrelevant material, cap tool log length, read files on demand, and avoid repeatedly passing large blocks of fixed content. If you use caching, evaluate hit rate and actual cost benefit separately.
Third, cut wasted loops. Set sensible limits on turns, budget, and stopping conditions. When the system fails repeatedly, repeats the same operation, or lacks required permissions, hand off to a human instead of retrying indefinitely.
Finally, implement tiered routing. Simple, low-risk tasks go through a cheaper path; complex or high-risk tasks escalate, with sampled review to verify that routing has not hurt quality.
All optimizations should watch cost and success rate together. Shorter outputs, compressed context, or fewer checks can simply convert visible cost into hidden cost if they increase rework.
9. Subscription Quotas Do Not Convert Directly into Token Savings
Monthly subscription services may impose limits based on message counts, time windows, compute resources, feature access, or dynamic usage allowances, and do not necessarily meter strictly by token quota.
So a two-thirds reduction in token usage does not generally imply that “the same subscription can complete three times as many tasks.” That approximation holds only if the allowance is genuinely deducted in the same token terms, other limits stay unchanged, and task quality is held constant.
For subscription users, a more reliable metric is: how many acceptable tasks can be completed under the actual allowance and waiting-time constraints.
Conclusion
Evaluating LLM token consumption is not about judging whether a number got smaller. It is about building a complete causal chain of cost: what information the task needs, which calls the execution makes, how each kind of consumption is billed, and whether the final result meets quality requirements.
A token reduction can reflect real efficiency progress, but it is neither a promise of lower prices nor sufficient evidence of better capability. For developers and enterprises, the metric most worth tracking continuously is total cost per successful task at equal quality—and whether that cost stays stable and controllable across task types and extreme cases.
