Token Usage Down, Task Costs Up: Why LLM Cost Accounting Needs More Than a Token Count

    Lower token consumption does not necessarily mean lower task cost. This article separates token usage from billing, breaks agent costs into useful output, retries, and context replay, and explains how context management changes one side of the cost equation while unit prices and workload mix change the other. It also provides a practical method for comparing models by cost per unit of effective output rather than sticker price per token.

    1. Separate the Two Metrics That Are Often Confused

    Discussions of large-model costs often make the same mistake: treating “consumption” and “the bill” as two names for the same thing. Their relationship can be written as a minimal identity:

    1. Cost per task = Σ(token usage by category × corresponding unit price) - cache/discount credits

    Token consumption describes how much material is burned to complete a piece of work; unit price describes how much each unit of material costs; and task structure—input/output mix, number of turns, cache hit rate—determines how the two multiply. Any evaluation conclusion that reports only one of these numbers is incomplete.

    Take the framing of a public evaluation: a next-generation flagship model used about one-third as many tokens as the previous generation on coding-agent tasks, while its input and output unit prices were both raised to roughly 2.5 times those of the previous generation. Both figures can be true. The divergence appears after multiplication.

    Aligning units is the first step. Coding-agent evaluations usually score by task completion and count tokens from task start to task finish, including every trial and error, every tool call, and every resend of history. Chat-style evaluations often count only the final answer. Applying the cost intuition of the latter to the former is bound to distort the picture.

    2. Decompose Token Consumption into Three Layers

    A blanket “total tokens” figure has little optimization value. It must be broken down:

    1. Useful output tokens: final answer, required code, necessary tool parameters. There is little room to compress this.
    2. Trial-and-error and rework tokens: incorrect assumptions, failed calls, rollbacks, and rewrites. This is the main cost source in agent scenarios.
    3. Context replay tokens: in multi-turn calls, historical conversation and tool results are resent repeatedly. The more turns, the faster this part grows, often at nearly quadratic growth.

    Here is a minimal accounting skeleton for cost attribution:

    1. def attribute_cost(trace, price_in, price_out, cache_hit_price=0.0):
    2. useful = retry = replay = 0
    3. for i, step in enumerate(trace):
    4. replay += step.context_tokens # portion of history resent in later turns
    5. if step.is_retry:
    6. retry += step.in_tokens + step.out_tokens
    7. else:
    8. useful += step.out_tokens
    9. step.cost = (step.in_tokens * price_in
    10. + step.out_tokens * price_out
    11. - step.cached_tokens * cache_hit_price)
    12. return {"useful": useful, "retry": retry,
    13. "replay": replay, "total_cost": sum(s.cost for s in trace)}

    With this attribution table, the optimization direction becomes immediately clear: if rework is high, change the workflow and constraints; if replay is high, change context management and caching strategy. Do not simply “switch to a cheaper model” as a blanket response.

    3. The Drop in Consumption Comes from Context Management, Not Just Better Coding

    Engineers who have run long tasks know the feeling: the biggest source of rework is not code that is wrong, but the loss—after context compression—of the reason why a change was made. The model then spends twice as many tokens falling into the same trap again.

    On this point, the progress of the new generation is architectural: it can retain structured work notes across context windows, turning verified conclusions, failed hypotheses, and interface constraints into a portable rule table instead of relying on one-shot conversation memory. The scratchpad can travel with the task, so repeated trial and error naturally declines. This explains a reduction of roughly that magnitude—down to about one-third.

    Reusable engineering practices follow the same structure:

    • Externalize task state into a structured file with three sections—conclusions, constraints, and items pending verification—and backfill only the necessary fragments each turn.
    • Use retrieval instead of resending everything, pressing replay tokens from near-quadratic growth back to linear growth.
    • Explicitly account for failed paths and prohibit resubmission of solutions that have already been rejected.
    • Enable context caching so repeated prefixes are billed at discounted rates.

    4. Why Unit Prices Move in the Opposite Direction: A Typical Product-Line Split

    Token consumption falls by two thirds while the unit price rises to 2.5 times; the result splits completely by scenario:

    Scenario Token change Unit-price change Task-cost trend
    Coding agents (many turns, high replay) Large decrease Increase Broadly flat or effectively lower
    Long-form and knowledge tasks (few turns) Down about 10% Increase Clearly higher

    The key point is that the benefits and the price increase fall on different user groups. Coding agents are token-intensive and have a high replay share, so the efficiency dividend is enough to absorb the price increase. Long-form and knowledge tasks have few turns, save little token consumption, but bear the full unit-price increase. Put both scenarios into the same report and average them, and the composite conclusion is that “each task costs 75% more”—which is not contradictory to “tokens are cut by two-thirds”; it simply weights different workloads differently.

    Looked at across the industry price spectrum, as general-purpose small models continue to get cheaper and open-source options approach zero marginal cost, the flagship tier can choose to segment upward: concentrate the capability premium in high-value scenarios, then use a headline efficiency figure to cover price changes in other scenarios. This is product strategy, not an evaluation error.

    5. A Reusable Method for Model-Selection Accounting

    Do not compare unit prices; compare cost per unit of effective output:

    1. Cost per unit of effective output = Cost per task / Task success rate

    A model that is 40% cheaper but 20% lower in success rate can have a higher real cost, because failed tasks also consume tokens. A suggested evaluation workflow is:

    1. Build a set of 30–50 representative tasks from your own business samples, covering high-frequency and long-tail cases.
    2. Record token attribution (useful, retry, replay) and the final score for each task.
    3. Calculate cost per unit of effective output for the two models, rather than comparing unit prices.
    4. Run a break-even analysis: the efficiency gain must be large enough relative to the price multiple to reduce cost. In the example above, 1/3 × 2.5 ≈ 0.83, or about a 17% decrease. If a task type saves only 10% of tokens, then 0.9 × 2.5 = 2.25, more than double the cost—consistent with the upward direction of the report’s aggregate measure. Actual values are affected by the input/output mix and cache discounts.

    6. Subscription Users and Team Budgets: Different Lenses

    Subscriptions are not billed by token; they are limited by quota or turn count. Here, a 70% improvement in token efficiency means the same quota can complete nearly three times the work—a genuine benefit independent of unit-price increases. Team budgets, by contrast, should include both model calls and common cloud components such as context storage, logs, and monitoring/alerting. The share of the latter in long tasks is often underestimated.

    7. Conclusion

    To evaluate the cost of a model generation, look at three numbers at once: tokens per task, price per token, and task-structure weights. Media headlines present only the first; the invoice reflects how the third plays out. The real criterion is not whether tokens are saved, but whether cost per unit of effective output falls. If you make cost accounting an attributable, reproducible engineering process, you will not need to rely on second-hand summaries of any evaluation conclusion.