Your AI bill rises while token prices fall because the bill is price times tokens, and agents push the token side up faster than price comes down. Stanford's 2025 AI Index found the price of GPT-3.5-level performance fell from $20 to $0.07 per million tokens between November 2022 and October 2024, a drop of more than 280 times, but teams moved to frontier models that did not get that cheap. Anthropic measured single agents using about 4 times the tokens of a chat and multi-agent systems about 15 times. Agents also resend their growing history on every step: in traces vLLM published in May 2026, context grew from 12K to 80K tokens over a median of 33 turns, with 131 input tokens for every output token. Newer tokenizers add more: Claude 4.7 and later produce about 30 percent more tokens for the same text. The fix is to report cost per resolved task and pull four levers in order: prompt caching, model routing, hard spend caps, and unit-economics tracking.
Your AI bill rises while token prices fall because the bill is price multiplied by tokens, and agents grow the token side faster than price shrinks. A chatbot answered in one call. An agent plans, calls tools, reads results, retries and resends its entire history on every step, and every one of those steps goes through the meter.
The price decline is real. Stanford's 2025 AI Index found that the price of a model matching GPT-3.5 on MMLU fell from $20 per million tokens in late 2022 to $0.07 by October 2024, more than 280 times cheaper in under two years. But that is the price of a fixed, now-modest capability level. Most teams did not stay there: they moved to frontier models and then to agents, which is where agentic AI token cost comes from.
This post takes the bill apart into the forces that move it, puts numbers on how agents spend tokens, and ranks the levers that bring cost per task back down. The metric that ties it together is cost per resolved task, not cost per million tokens.
Price fell, volume rose: the bill has three terms
Decompose the invoice and the contradiction goes away.
Two of the four forces push the bill up, and both are volume. The two pushing down are both price, and the steep one applies to capability levels you are no longer buying. The same AI Index notes that price declines range from 9 to 900 times per year depending on the task, which is a wide band to forecast a budget on. Volume per task is the term you control, so it is the term to manage.
| Force | Direction | Rough magnitude | Source |
|---|---|---|---|
| Price per token at fixed capability | Falling | Over 280x (GPT-3.5 level, Nov 2022 to Oct 2024) | Stanford AI Index 2025 |
| Price per token for the models you actually use | Falling more slowly | Frontier tiers remain far above old tiers | Stanford AI Index 2025 |
| Tokens per task | Rising | About 4x (single agent) and 15x (multi-agent) vs a chat | Anthropic, June 2025 |
| Number of tasks | Rising | Every workflow you automate | Your own adoption |
Where an agent spends its tokens
Anthropic's engineering team measured this on its own research system in June 2025: agents typically use about 4 times more tokens than chat interactions, and multi-agent systems about 15 times more. In the same evaluation, token usage alone explained 80 percent of the variance in performance. The extra tokens are not pure waste; they are where the capability comes from. That is exactly why they need managing rather than eliminating.
The tokens go to five places:
Multi-agent designs add a sixth: each sub-agent keeps its own context, which is how 4 times becomes 15 times.
Same agent, same model, same answer: over five times cheaper because the repeated part of each prompt hits the cache. Multiply by thousands of tasks a month and caching is the largest single decision in agent economics. It is also fragile: one changing value near the front of the prompt, such as a timestamp, breaks it for every turn after.
What resending history does to cost
The first item dominates on long tasks. Traces vLLM published in May 2026, 610 coding-agent runs from SWE-bench Pro, had a median of 33 turns, with context growing from 12K to 80K tokens per trace, and 131 input tokens for every output token. Agent cost is an input problem, not an output problem. Picture one task with that shape. The context averages about 46K tokens across 33 turns, so the task processes roughly 1.5 million input tokens and about 11,600 output tokens. At Sonnet 4.6 list prices ($3 per million input, $15 output, $0.30 per million for cached input):
| Scenario | Input cost | Output cost | Cost per task |
|---|---|---|---|
| No caching | 1.52M x $3 = $4.55 | $0.17 | about $4.72 |
| Repeated history cached, about 2,200 new tokens per turn | $0.43 cached reads + $0.28 cache writes | $0.17 | about $0.88 |
Why your bill rose without any new workload
Some cost growth comes from upgrades, not usage. Three effects show up on invoices without anyone changing a workflow:
None of these is a reason to avoid upgrading. All of them are reasons to compare models on cost per request with your real traffic, not on the price sheet.
Cost per resolved task: the number to report
Cost per resolved task is total model spend for a period divided by the number of tasks the agent completed successfully. It ties spend to a unit of work rather than a unit of infrastructure, and it is the only common metric that counts failures.
The difference is decisive when comparing options. A model that is 30 percent cheaper per token but fails 40 percent of runs can cost more per finished task than a pricier model that succeeds first time. Per-token dashboards make the cheaper model look like an obvious win.
Picture an invoice-review agent that resolves 6,000 of 10,000 attempts in a month. The 4,000 failures still burned tokens, so the denominator is 6,000, not 10,000, and the real unit cost is two-thirds higher than the naive average.
Building the metric is mostly instrumentation:
The same unit is what lets you compare agent pricing models from vendors, which we work through in per-seat vs per-resolution agent pricing.
Why per-token pricing hid the increase from finance
Procurement, vendor price sheets and internal cost models are all denominated in dollars per million tokens, and that number has gone down for years. A leader who tracks the price sheet sees steady progress. Meanwhile the workload moved from single calls to multi-step agents, and total volume climbed on a curve no dashboard tracked.
The failure is not choosing the wrong vendor. It is that price per token is an input cost, and nobody measured the output: cost per unit of work delivered. That is the same gap that lets a pilot look affordable in a demo and expensive in production. If a pilot's success metric is price per token rather than cost per resolved task, it is measuring the one number guaranteed to look good.
The levers that bring agent cost down, in order
Pull them in sequence, because each changes the numbers you need for the next decision.
1. Prompt caching
Keep the system prompt and tool definitions identical across calls, add new content at the end rather than inserting it, and keep volatile values out of the front of the prompt. On most Anthropic models a cache read bills at a tenth of the input price; OpenAI caches automatically on supported models with discounts of up to 95 percent. For teams serving their own models, the same principle has a twist: the chat template can rewrite history between turns, which we cover in vLLM prefix cache misses on multi-turn agents.
2. Model routing
Most agent steps are easy: classify, extract, decide which tool to call. Send those to a small model and keep the large one for genuinely hard steps. Haiku 4.5 lists at $1 input and $5 output per million tokens, a third of Sonnet 4.6. Decide the split by grading a few hundred real steps on both models, not by assuming a share. The full set of levers, with a worked monthly bill, is in our guide to reducing LLM token costs.
3. Spend controls
Put hard limits where a human would be too slow: a cap on steps and tokens per task, a monthly budget per team or customer, and a circuit breaker on retry loops. An agent stuck in self-correction can spend more in an hour than a healthy one spends in a week. How agents should handle failing tools without looping is in AI agent tool failure recovery.
4. Unit-economics tracking
Report cost per resolved task, per workflow. This is the lever that tells you whether the other three worked, and occasionally it tells you to spend more per token: a better model that lifts the resolution rate can lower cost per finished task.
| Lever | What it does | When it pays most |
|---|---|---|
| Prompt caching | Bills repeated input at a fraction of the price | Long agent runs with a stable prefix |
| Model routing | Sends easy steps to a cheaper model | Mixed workloads with an easy majority |
| Spend controls | Caps steps, tokens and budgets | Any autonomous agent in production |
| Unit-economics tracking | Prices spend against resolved tasks | Deciding which change actually helped |
| Batch processing | Half price for work no one is waiting on | Overnight runs, evaluations, backfills |
Self-hosted agents: the same math in GPU-hours
For organizations that keep agents inside their own perimeter, which is the norm when prompts carry patient records, client portfolios or controlled engineering data, the bill arrives as GPU capacity rather than an invoice, but the arithmetic is the same. Agents resend history, so they fill KV cache memory and GPU time at the same 4 to 15 times rate. Prefix caching saves compute instead of dollars. Routing easy steps to a smaller model frees capacity on the large one. Step caps protect throughput for everyone else on the cluster.
The difference is that the cost is fixed until you add hardware. A self-hosted fleet sized for chat traffic will saturate when agents arrive, and the symptom is latency, not a bill. Size for agent token volume per task, not request count. The break-even between your own GPUs and an API is in self-host LLM vs API break-even, and the per-user view in local LLM vs Claude for companies.
What to do this week
Pick your highest-spend agent workflow and compute two numbers for last month: the share of its input tokens that were cached, and its cost per resolved task. If the cached share is under half, fix the prompt order before anything else. If you cannot compute cost per resolved task because runs are not tagged with outcomes, that tagging is the first job. Both are a few days of work and they change every later decision. If you want help setting up the measurement or the levers, our AI consulting team does exactly this review, and the wider picture of cost and adoption decisions sits in the AI for business pillar.
FAQ
Quick answers to the questions this post tends to raise.



