Methods noteAgentic systems

What an agent costs per finished task

Agent cost per task, worked out from public rate cards: tokens per step, steps per task, cache discounts, tool fees and the extra attempts that failures add.

Cover of the full report: What an agent costs per finished task
The research behind this article, with every source listed. 19 pages.

Key points

From the Summary of the full report

  1. Each step of an agent loop is a new model call that bills the conversation so far as input again [2, 3]. In a 10-step example worked here at $2 input and $10 output per million tokens, input was 90.6% of the cost, and 20 steps used 3.1 times the input tokens of 10 (this note's arithmetic) [4].
  2. Prompt caching bills a repeated prompt prefix at a fraction of the input price. On rate cards viewed 8 November 2026, cache reads cost 0.025 to 0.1 times base input, and caching cut a 10-step example attempt at $2 input and $10 output per million tokens from $0.639 to $0.192 in this note's arithmetic, 70% less [4, 5, 6, 7].
  3. Tool definitions and tool results are billed as input on every call that carries them. A model developer counted 58 tools taking about 55,000 tokens before a conversation began [8], and each family's current web search tool costs $10 to $14 per 1,000 searches [4, 5, 6].

Agent cost per task is the cost of one attempt divided by the share of attempts that finish the task [1]. One attempt costs the tokens of every step at a rate card's prices, plus any per-call tool fees and runtime [4, 5, 6]. An estimate made before an agent is built needs four numbers: tokens per step, steps per task, the cache discount and the success rate.

On rate cards viewed 8 November 2026, a 10-step attempt worked through in this note costs $0.639 at $2 input and $10 output per million tokens, and $0.192 with prompt caching (this note's arithmetic) [4, 6]. At an 84.43% success rate it costs $0.227 per finished task, and $0.266 if failed attempts cost about twice as much as successful ones, as one 2024 study's median and mean costs suggest (this note's arithmetic) [9, 10]. One rate card lists the same input and output prices doubling from 1 December 2026 [5].

Agent cost per task: the formula

  • Cost per attempt = the sum over steps of uncached input, cache writes, cache reads and output, each times its price, plus tool fees and runtime
  • Cost per finished task = cost per attempt / p
  • With failures priced apart = c_s + c_f × (1 - p) / p

p is the share of attempts that finish, and c_s and c_f are the costs of a successful and a failed attempt. Output includes reasoning tokens, which all three model families priced here bill as output [5, 19, 20]. The second line is cost-of-pass, the expected cost of a correct result, which takes 1/p attempts per success "assuming independent trials" [1]. The formula also assumes that every failure is detected and retried.

Why an agent costs more to run than a chat

Each step is a new model call that bills the whole conversation so far as input again [2, 3]. A model developer measured its agents at about 4 times the tokens of a chat and its multi-agent research system at about 15 times, figures from its own system [11]. A 2026 study of eight models on SWE-bench Verified found agentic coding using 1000 times the tokens of code chat, with input tokens driving the overall cost more than output [14]. The same study found runs of one task differing by up to 30 times in tokens, and models underestimating their own token use [14].

Steps vary too. In a study of deployed agents, "68% execute at most 10 steps before human intervention" [22]. In SWE-agent's 2024 study, successful runs took a median of 12 steps and failed runs a mean of 21 [10].

Context growth and prompt caching

Because every step resends the context, input grows with the square of the step count. Take a 12,000-token fixed prompt of instructions and about 10 tool definitions, 3,000 tokens of task input, 600 output tokens a step and a 2,500-token tool result a step, the size one rate card gives for an average web page [4, 8]. Ten steps send 289,500 input tokens, and input is 90.6% of the uncached cost (this note's arithmetic). Twenty steps send 889,000, 3.1 times as many, and forty send 3,018,000 (this note's arithmetic).

Prompt caching bills a repeated prefix at a discount. On these rate cards, cache reads cost 0.025 to 0.1 times base input, and the two families that list a cache-write price charge 1.25 to 2.5 times [4, 5, 7]. Family C's page lists no cache-write price, and its caching applies when a request hits the cache, with no assurance that one does [5, 25].

A cache breaks when its prefix changes. At Family B, modifying tool definitions "invalidates the entire cache" [2], and changing the thinking budget breaks cache breakpoints [20]. Caching shrinks the bill without removing context as a cost: in one family's coding-agent traces, cache-read tokens made up more of the usage than any other category [14].

Tool definitions, results and fees

Tool definitions are input on every call. A model developer counted 58 tools taking about 55,000 tokens before a conversation started, and reported an 85% reduction in token usage with a tool search feature [8]. Tool results add up as well. Having the agent write code that calls tools, so it loads only the tool definitions a task needs and keeps intermediate results out of the context, cut one example from 150,000 tokens to 2,000, a saving of 98.7%, at the price of running a sandbox [27].

Some tools carry their own fees. The current web search tools cost $10 per 1,000 at Families A and B, plus the search content as tokens, and Family C charges $14 per 1,000 after 5,000 free requests a month [4, 5, 6]. Five searches add $0.05 to the cached $0.192 attempt, about 26% (this note's arithmetic). Some providers also bill runtime, such as $0.08 per session-hour for one family's managed agent sessions [4].

Retries: divide by the success rate

At one open-weight model's one-try success rates in four τ-bench domains, from 97.81% down to 9.79% (a March 2026 submission, banking re-graded in July 2026), the formula gives 1.02 to 10.2 attempts per success, and $0.196 to $1.96 per finished task for the cached attempt (this note's arithmetic) [9]. The same submission shows why one pooled success rate misleads. In retail, 84.43% success on one try would mean 50.8% success on all four tries if every task had that same chance, against 59.65% measured (this note's arithmetic) [9]. The gap fits some tasks being solved every time and others failed every time, and on those a retry rarely helps (this note's reading). pass^k, the share of tasks solved on all k tries, measures this, and the report on how reliable agents are on repeated runs collects the published results.

Failures also cost more. SWE-agent's successful runs had "a median cost of $1.21 and 12 steps", and its failed runs "a mean of $2.52 and 21 steps" [10]. Its headline cost is averaged over solved tasks only [10], so failed attempts drop out of it. A cap bounds the damage: SWE-agent set a $4 budget per task, and 93.0% of the tasks it solved were submitted before reaching it [10]. How cost per success sits beside pass@k and pass^k is set out in agent evaluation metrics and what each one tells you.

Single agent or several

Applying the developer's 15 times against 4 times to the cached attempt gives about $0.72 for a multi-agent design, if its token mix stayed the same (this note's arithmetic, illustrative only) [11]. One cloud provider's architecture guidance says multi-agent costs rise "because each agent processes redundant context and communication overhead multiplies with agent count", and advises validating cost benefits by prototyping first [29]. A 2026 study at matched reasoning tokens counted 7.2 turns per task for a single agent and 26.1 to 44.3 for coordinated multi-agent designs [12]. When the extra agents pay off is covered in when a multi-agent system beats a single agent.

A worked example on three rate cards

Rate card row, viewed 8 November 2026 Uncached attempt Cached attempt
Family B model, $2 / $10, 5-minute cache writes $0.639 $0.192
Family A model, $2 / $10, 30-minute cache writes $0.639 $0.192
Family C model, $2 / $10 through 30 November 2026 $0.639 $0.171
Family C model, $4 / $20 from 1 December 2026 $1.278 $0.341

This note's arithmetic from [4, 5, 6]. Prices are per million input and output tokens. Family C's cached figure assumes every prefix hits the cache.

All three families sell batch processing at half price, for requests that can wait [4, 5, 6, 33]. One family's managed agent sessions have no batch mode, because "Sessions are stateful and interactive" [4].

Prices move both ways

Epoch AI measured the price of reaching a fixed performance level falling 9x to 900x a year, and cautioned that the steep drops of the year before its analysis may not persist [13]. Tokens per task rise at the same time: reasoning responses grew about 5 times a year in Epoch AI's sample [23], and one family's newer tokenizer counts about 30% more tokens for the same text [4]. List prices also rise on dated schedules, as with Family C's doublings on 1 December 2026 and 1 January 2027 [5]. Whether an API or your own GPUs costs less for the same tokens is a separate calculation, set out in self-hosted LLM vs API cost: a break-even method.

Prices and tokenizers differ by model version [4], and one rate card routes requests for older models to newer ones, billed at the newer models' rates, from 1 December 2026 [5]. On the agentic systems we build, model families are chosen per project and versions are pinned, so every run can be replayed.

Read the full report

The full report adds the three families' caching rules side by side, the context-growth arithmetic at 10, 20 and 40 steps, every tool fee with its listed price, the retry arithmetic with failures priced apart, the price trends and the complete source list.

The full report

What an agent costs per finished task

The research behind this article, with every source listed. 19 pages.

  1. Summary
  2. Background
  3. Method
  4. Findings
  5. Implications
  6. Limits of this analysis
  7. Sources

Sources

  1. Cost-of-Pass: An Economic Framework for Evaluating Language Models. Mehmet Hamza Erol, Batu El, Mirac Suzgun, Mert Yuksekgonul and James Zou, arXiv:2504.13359, version 2, 26 February 2026 (first version 17 April 2025), viewed 8 November 2026. https://arxiv.org/abs/2504.13359
  2. Prompt caching, Claude Platform documentation. Anthropic, viewed 8 November 2026. https://platform.claude.com/docs/en/build-with-claude/prompt-caching
  3. Conversation state, OpenAI API documentation. OpenAI, viewed 8 November 2026. https://developers.openai.com/api/docs/guides/conversation-state
  4. Pricing, Claude Platform documentation. Anthropic, viewed 13 November 2026. https://platform.claude.com/docs/en/about-claude/pricing
  5. Gemini Developer API pricing, Google AI Studio documentation. Google, viewed 8 November 2026. https://aistudio.google.com/docs/pricing
  6. Pricing, OpenAI API documentation. OpenAI, viewed 8 November 2026. https://developers.openai.com/api/docs/pricing
  7. Prompt caching, OpenAI API documentation. OpenAI, viewed 8 November 2026. https://developers.openai.com/api/docs/guides/prompt-caching
  8. Introducing advanced tool use on the Claude Developer Platform. Bin Wu, Anthropic Engineering, 24 November 2025, viewed 8 November 2026. https://www.anthropic.com/engineering/advanced-tool-use
  9. τ-bench leaderboard submission qwen3.5-397b-a17b-think_sierra_2026-03-02, submission.json. Sierra, 2 March 2026, viewed 8 November 2026. https://sierra-tau-bench-public.s3.us-west-2.amazonaws.com/submissions/qwen3.5-397b-a17b-think_sierra_2026-03-02/submission.json
  10. SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering. John Yang, Carlos E. Jimenez, Alexander Wettig and others, arXiv:2405.15793, version 3, 11 November 2024 (first version 6 May 2024), viewed 8 November 2026. https://arxiv.org/abs/2405.15793
  11. How we built our multi-agent research system. Jeremy Hadfield, Barry Zhang, Kenneth Lien and others, Anthropic Engineering, 13 June 2025, viewed 8 November 2026. https://www.anthropic.com/engineering/multi-agent-research-system
  12. Towards a Science of Scaling Agent Systems. Yubin Kim, Ken Gu, Chanwoo Park and others, arXiv:2512.08296, version 3, 8 April 2026 (first version 9 December 2025), viewed 8 November 2026. https://arxiv.org/abs/2512.08296
  13. LLM inference prices have fallen rapidly but unequally across tasks. Ben Cottier, Ben Snodin, David Owen and Tom Adamczewski, Epoch AI, 12 March 2025, viewed 8 November 2026. https://epoch.ai/data-insights/llm-inference-price-trends
  14. How Do AI Agents Spend Your Money? Analyzing and Predicting Token Consumption in Agentic Coding Tasks. Longju Bai, Zhemin Huang, Xingyao Wang and others, arXiv:2604.22750, version 3, 2 October 2026 (first version 24 April 2026), viewed 8 November 2026. https://arxiv.org/abs/2604.22750
  15. Reasoning models, OpenAI API documentation. OpenAI, viewed 8 November 2026. https://developers.openai.com/api/docs/guides/reasoning
  16. Extended thinking, Claude Platform documentation. Anthropic, viewed 8 November 2026. https://platform.claude.com/docs/en/build-with-claude/extended-thinking
  17. Measuring Agents in Production. Melissa Z. Pan, Negar Arabzadeh, Riccardo Cogo and others, ICML 2026, arXiv:2512.04123, version 4, 4 June 2026 (first version 2 December 2025), viewed 8 November 2026. https://arxiv.org/abs/2512.04123
  18. LLM responses to benchmark questions are getting longer over time. Luke Emberson, Ben Cottier, Josh You, Tom Adamczewski and Jean-Stanislas Denain, Epoch AI, 17 April 2025, viewed 8 November 2026. https://epoch.ai/data-insights/output-length
  19. Context caching, Google AI Studio documentation. Google, viewed 8 November 2026. https://aistudio.google.com/docs/caching
  20. Code execution with MCP: building more efficient agents. Adam Jones and Conor Kelly, Anthropic Engineering, 4 November 2025, viewed 8 November 2026. https://www.anthropic.com/engineering/code-execution-with-mcp
  21. Choosing Between Building a Single-Agent System or Multi-Agent System, Cloud Adoption Framework. Microsoft Learn, 1 December 2025, last updated 10 December 2025, viewed 8 November 2026. https://learn.microsoft.com/en-us/azure/cloud-adoption-framework/ai-agents/single-agent-multiple-agents
  22. Batch processing, Claude Platform documentation. Anthropic, viewed 8 November 2026. https://platform.claude.com/docs/en/build-with-claude/batch-processing

Notices

Superintelligence (SI) outputs can be wrong. Important decisions should include human review.

Bring us a workflow and its data.

Tell us the workflow, the sources it draws on and the decisions it supports, and we scope the agents, tools and tests around them.

Discuss a build