LLM Token Consumption and Cost Accounting: Why Token Efficiency Is Not Cost Efficiency
Token efficiency and cost efficiency are not the same thing. This guide breaks down how per-token pricing, task shape, and call volume determine real LLM bills, shows why coding agents can get cheaper while long-document tasks get more expensive under the same model, and provides a reusable cost calculation script, subscription quota conversion logic, and an optimization checklist covering model routing, context management, caching, and observability.
1. The Overlooked Second Number: Token Efficiency Is Not Cost Efficiency
Claims that a new generation of large models “uses two-thirds fewer tokens” resurface almost every year. The problem is that such a claim describes only the numerator, not the denominator. What actually determines your bill is the product of two quantities:
cost per task = (input tokens × input price + output tokens × output price) × number of calls
The scenario in the source material is representative: a new-generation model uses roughly one-third of the tokens of its predecessor, but its price rises to 2.5× (input from 4 to 10, output from 20 to 50, per million tokens). Multiply the two numbers and the conclusion splits:
- If token usage drops to 1/3 and price rises to 2.5×, cost is about 0.83× the original, a decrease of roughly 17%.
- If token usage drops only 10% and price rises to 2.5×, cost is about 2.25× the original, an increase of 125%.
Same model, same pricing rules, opposite directions — purely because the task shape differs. That is the core of this article: token efficiency is a technical metric, cost efficiency is an economic one, and neither substitutes for the other.
2. Why Two Categories of Tasks Reach Opposite Conclusions
1. Coding agent workloads: high output share amplifies the efficiency gain
Coding agent tasks are characterized by long chains, many tool calls across multiple turns, and context that is repeatedly rewritten. In this kind of workload, output tokens (generated code, patches, tests) and repeated context make up the bulk. When the model completes the same reasoning and generation with fewer tokens, the saving is structural rather than marginal.
Hence the conclusion in the source material: at the highest tier, cost is essentially on par with the previous generation while benchmark scores are 2 points higher; at equal scores, cost per task is less than half that of the previous generation. For developers who write code, run refactors, and fill in tests every day, this amounts to a disguised price cut.
2. Long-document and knowledge tasks: limited token savings, full price increase
Tasks such as long-document summarization, literature reviews, and structured extraction have input length dictated by the source material, so there is little room for the model to compress. Tokens drop by only about 10%, yet the 2.5× price applies in full, making each task roughly 75% more expensive than the previous generation. The saved tokens are entirely eaten by the higher price.
3. Industry view: a clear product line split
Zooming out, the industry trend this year is that inference prices keep falling and open-weight models approach the free range. A price increase against that trend only holds if “capability improvement” is bound to “scenario selection”: bet the progress on the single high-value scenario of coding agents, then use the generic headline “two-thirds fewer tokens” as cover for price increases elsewhere.
This is not a moral issue but a product strategy issue. The requirement for users is: do not budget with the headline, budget with the bill.
3. A Reusable Cost Accounting Method
Teams should turn the calculation into a script or spreadsheet and run it for every model change:
def task_cost(in_tok, out_tok, in_price, out_price, calls=1):# price unit: per million tokensreturn (in_tok * in_price + out_tok * out_price) / 1_000_000 * calls# Scenario A: coding agent (output-intensive)old_a = task_cost(120_000, 60_000, 4, 20)new_a = task_cost(40_000, 20_000, 10, 50)# Scenario B: long-document knowledge task (input-intensive)old_b = task_cost(200_000, 8_000, 4, 20)new_b = task_cost(180_000, 7_000, 10, 50)print(old_a, new_a, new_a / old_a) # ~0.83print(old_b, new_b, new_b / old_b) # ~2.25
Three metrics that must be read together:
- Cost per task: the real business measure, not the per-million-token price;
- Cost per unit of quality: cost ÷ benchmark or acceptance pass rate, which avoids “cheap but reworked”;
- End-to-end latency and retry rate: one retry doubles the cost, and this item is often left out.
4. Correct Conversion for Subscription and Quota Scenarios
Subscription plans do not bill by token; they work on usage quotas within a period. Here a token efficiency gain of about 70% means the same quota can accomplish nearly three times the work. The conversion logic is simple:
tasks completed ≈ total quota ÷ token consumption per task
When the denominator shrinks to about 1/3, the quotient grows to about 3×. For teams on a fixed budget, this is a real capacity benefit and is unaffected by price adjustments — provided your workload is genuinely token-intensive.
5. Optimization Checklist: Bringing Cost Back Under Control
- Tiered routing: send simple intent classification and format conversion to lightweight models or a rules engine, and reserve flagship models for complex reasoning;
- Context governance: deduplicate retrieved snippets, compress with summaries, and trim history by turn to prevent unbounded context growth;
- Cache reuse: apply prefix caching to stable system prompts and specification documents to reduce billing for repeated input;
- Output constraints: use structured output and maximum length limits to suppress redundant generation;
- Observability: track tokens and spend by business label in logging and monitoring/alerting, forming a per-scenario cost dashboard;
- Canary and regression: before switching models, run cost and quality curves on shadow traffic, then roll out fully.
6. Conclusion
“Two-thirds fewer tokens” is a real but one-sided metric. It determines the numerator of the cost formula, while price determines the denominator, and the final bill is settled by both. Output-intensive workloads such as coding agents benefit, while long-document and knowledge workloads may become noticeably more expensive. The rational approach is to base accounting on cost per task and cost per unit of quality, offset price increases with tiered routing and context governance, and make sure the quota benefit under subscription plans actually lands on token-intensive workloads.
