Cost per task (agent unit economics)
What one finished agent task really costs: tokens, retries, tool calls and the human time to review it, compared with doing it another way.
Cost per task is what one finished agent task really costs: tokens, retries, tool calls and the human time to review it, divided by the tasks that actually passed. It is the number to compare with doing the same work another way, by a person or a different system.
Price per million tokens says little on its own. A cheaper model that needs three attempts and a longer review can cost more per finished task than an expensive one that gets it right once. Measure tasks completed, not calls: total spend and review minutes divided by tasks that passed your checks. That number lets you compare models, harnesses and routing rules, and set a sensible cost cap. Multi-agent designs multiply it. Anthropic reported in its multi-agent research post that its agents used about 4× more tokens than chat and its multi-agent systems about 15×. A fan-out step pays for every parallel worker’s context, and a dynamic workflow can vary in size from run to run, so track the spread as well as the average.
Cost per task is the main input to AI ROI: set it against the cost of the current process, errors included. The common mistake is counting tokens of successful runs only and ignoring failed attempts and review time.
Sources
- Anthropic: How we built our multi-agent research system anthropic.com
Related terms
- Cost cap: A hard spending limit enforced by your code, per user, per day or per month.
- Tokens: The pieces of text models read and write, and the unit you pay for.
- Model routing and fallback: Sending each request to the model that fits it, and to another one when the first fails.
- Trajectory evals: Tests that grade an agent’s whole path to an answer: which tools it called, in what order, how many steps and at what cost, not only the final output.
- Fan-out and fan-in (parallelization): Splitting work into parallel model calls or subagents (fan-out) and merging their results in one step (fan-in).
- Dynamic workflow: An orchestration script the agent writes at run time. A runtime executes it, starting many subagents in phases and combining their results in code.
- ROI of an AI deployment (return on investment): What an AI deployment gives back compared with what it cost: the gain minus the full cost, divided by that cost, over a stated period.
- Multi-agent system (multi-agent orchestration): Several AI agents with separate roles and contexts working on one task, usually coordinated by a lead agent or a fixed workflow.
- Batch API (LLM): Sending many model requests as one job that finishes within hours instead of seconds, usually at a large discount.
