The cost of an AI agent is not the price of a token: it is tokens × steps × retries, plus human review and errors. In our example using public prices, the same case costs $0.78 with an agent that chains 12 calls and about $0.05 when orchestrated with fixed steps and only 3 model calls.
How much does an AI agent cost?
An AI agent costs whatever it consumes for each case it handles. Models are billed per million input tokens (what is sent to it: instructions, the document, history, tool results) and per million output tokens (what it generates). Output is usually considerably more expensive than input.
For reference, Anthropic’s official pricing page lists, as of 28 November 2026, $2 per million input tokens and $10 per million output tokens for Claude Sonnet 5.5, and $0.10 and $0.50 for Claude Haiku 5.5 with prompts of up to 100,000 tokens. Other providers publish similar tables: large models are expensive, small models far cheaper.
At those prices a single call looks negligible: cents or fractions of a cent. The problem is that an agent does not make one call per case. It plans, calls tools, rereads its context, corrects itself and tries again. So the useful question is not what a token costs, but what a finished case costs.
Beyond the model, total cost includes the platform, integration with your systems, the time of the people who review and the cost of the errors that slip through. We cover the cost of automation in general in how much it costs to automate processes (in Spanish).
Why AI agent costs spiral
Costs spiral because they grow with the product of four factors that barely show in a pilot: tokens per call, calls per case, retries and case volume. Double two of them and the invoice quadruples.
- Context that grows at every step. In an agent loop, every call resends the instructions, the tool definitions and everything that came before. The tenth call can weigh several times as much as the first.
- Steps that never needed AI. Validating a VAT number, checking a status or routing by amount are rules. Ask the model to do them and you pay tokens for something a rule does for free, the same way every time.
- Loops and retries. A failing tool, a malformed response or an ambiguous goal makes the agent repeat itself. Without a step limit, one stuck case can burn what a hundred normal cases do.
- The most expensive model for everything. Classifying an email does not need the same model as drafting a complex reply, yet many pilots use just one.
- Costs that never appear on the model invoice. Human review time and error correction are also cost per case, and often the largest share.
Analysts see it the same way. In a press release on 25 June 2025, Gartner warned that over 40% of agentic AI projects will be cancelled by the end of 2027 because of escalating costs, unclear business value or inadequate risk controls. Its Predicts 2027 report on agentic automation, published on 10 November 2026, adds that soaring costs, hallucinations and poor process visibility threaten ROI, and that scaling requires context grounding, structured orchestration and targeted cost governance.
Cost drivers and the levers that control them
Every cost driver has a specific lever. The table summarises the six that weigh most on an agent working inside a business process:
| Driver | Why it adds cost | Lever | Where it applies |
|---|---|---|---|
| Tokens per call | Long instructions, whole documents and history resent at every step | Send only the fields needed; cache repeated instructions | Design of the agent step |
| Calls per case | The agent decides step by step what could be fixed | Deterministic steps (rules, integrations) for everything that does not need AI | Process model (BPMN) |
| Retries and loops | Tool errors or ambiguous goals repeating endlessly | Step and retry limits; escalate to a person when exceeded | Process engine |
| Model price | A large model for simple tasks | Small model to classify or extract; large one only where it adds value | Per-task configuration |
| Human review | Reviewing everything, or reviewing without the evidence to hand | Confidence threshold: only uncertain cases go to a person | Human task in the process |
| Errors that slip through | Rework, complaints, accounting corrections | Rule-based checks after the agent, plus sampling | Control steps |
Three of the six levers sit in the process, not the model. That is why an agent’s cost is better controlled by whoever designs the workflow than by whoever picks the provider. Human review has its own guide: human in the loop for AI agents.
How structured orchestration cuts cost
Structured orchestration cuts cost because it takes the model out of everything that does not need judgement. The process fixes the path; the agent acts only in the steps where text has to be interpreted, data extracted from a document or something drafted.
- Map the whole process before adding the agent. Separate the steps with a clear rule (validate, route, look up, notify) from those that need interpretation.
- Make the rule-based steps deterministic. A business rule or an integration costs the same on case one thousand as on case one, and it does not fail differently every time.
- Put the agent only where it adds value and give it a narrow task, with just the input it needs and a fixed output format.
- Choose the model per task. The cheapest one that delivers the quality that specific task needs.
- Set limits. A maximum number of steps and retries per case; once exceeded, the case goes to a person instead of continuing to spend.
- Give each process a budget and check actual consumption against it every month, like any other cost line.
This split between fixed steps and AI steps is known as Adaptive Process Orchestration. It is also the most common reason a pilot that works never reaches production: nobody worked out the cost at real volume, as we explain in how to take an AI pilot to production.
Worked example: the same case with and without orchestration
The figures in this example are hypothetical: they show the order of magnitude, not a budget. Prices are those published by Anthropic on 28 November 2026 (Claude Sonnet 5.5: $2 / $10 per million input / output tokens; Claude Haiku 5.5: $0.10 / $0.50). The case is receiving a supplier invoice, at 2,000 invoices a month.
| Item | Free-running agent | Orchestrated process |
|---|---|---|
| Model calls per case | 12, all on Sonnet 5.5 | 1 on Haiku 5.5 (classify) + 2 on Sonnet 5.5 (extract and propose) |
| Tokens per call (input / output) | 20,000 / 1,000 on average, because context grows | Haiku: 3,000 / 100; Sonnet: 8,000 / 800 |
| Cost per call | $0.04 + $0.01 = $0.05 | Haiku: $0.00035; Sonnet: $0.016 + $0.008 = $0.024 |
| Retries | 30% extra calls, no limit | 5%, at most one per step |
| Model cost per case | 12 × $0.05 × 1.3 = $0.78 | ($0.00035 + 2 × $0.024) × 1.05 ≈ $0.051 |
| Model cost per month (2,000 cases) | $1,560 | ≈ $102 |
In the orchestrated process, validating the VAT number, matching against the purchase order, routing by amount and sending the notification are deterministic steps: they consume no tokens. The difference, roughly 15 times less model spend, comes almost entirely from there and from the retry limit.
Two caveats. The example leaves out the platform, the integration and human review time, which in many processes outweigh the model. And prices change: recalculate with your provider’s current table and with tokens measured in your own pilot, not estimated.
What to measure: cost per completed case, not per token
The metric that matters is cost per completed case: everything spent on a process divided by the cases that finished successfully. The FinOps Foundation puts it this way: the token is the billing unit, but the business measures value in outcomes; and failed or discarded runs still cost money.
| Metric | What it tells you | Warning sign |
|---|---|---|
| Cost per completed case | The real cost of each useful result, including model, review and rework | It rises as volume rises, instead of falling |
| Model calls per case | Whether the agent is doing steps that should be rules | It creeps up with no change to the process |
| Cases hitting the step limit | Loops, failing tools or ambiguous goals | More than a handful per hundred |
| Escalation rate to a person | How much human work is still needed | Very high: the agent saves nothing; very low with later errors: the threshold is too loose |
| Consumption against budget per process | Whether each process stays within plan | Overruns nobody can attribute to a process |
Attributing spend requires knowing which process, step and model generated each call. When employees use AI tools on their own, that spend does not even show up: see shadow AI at work.
How Dokuflex handles it: the agent is a step in the process
Dokuflex, the AI low-code BPM platform, starts from the idea that runs through this guide: the process fixes the path and the agent acts only in the steps where it adds value. That limits, by design, how often the model is called.
- BPMN processes with rules, human tasks, deadlines and integrations in Dokuflex BPM low-code: steps with a clear rule run without AI.
- Configurable confidence threshold per agent. Below the level of certainty you set, the case escalates automatically to a human reviewer instead of the agent trying again.
- Traceability for every action. Each agent action records the input, the model and its version, the reasoning, the sources, the output and any human validation. That is the basis for knowing which step consumes what, and why.
- Explicit permissions by domain. The agent only accesses the documents, data and APIs it has been authorised for, as described on the governed AI agents page.
- Reversibility and human veto, with data processed in European data centres by default.
What no platform decides for you is which steps genuinely need a model, or how much you are willing to pay per case. That is what we look at in the first session: bring a process and we will review it in 30 minutes. We explain the five pillars of agent governance in governed AI agents with BPM.
Frequently asked questions
How much does an AI agent cost?
It depends on the tokens it consumes per case, the number of model calls, retries and the model’s price. At public prices in November 2026, a case can cost anything from a few cents to almost a dollar in model usage, before adding the platform, integration and human review.
Why do AI agent costs spiral?
Because cost multiplies tokens per call, calls per case, retries and volume. In an agent loop the context grows at every step, expensive models get used for simple tasks and stuck cases repeat without limit. At real volume, those factors show up on the invoice.
What is FinOps for AI?
It applies cloud financial management to AI spend: measuring consumption, attributing it to each process or team, setting budgets and optimising. The FinOps Foundation recommends measuring in business units, such as cost per query or per successful outcome, not just cost per token.
How do you reduce the cost of an AI agent?
By taking out of the model everything a rule can do, sending only the context that is needed, using a cheaper model for simple tasks, limiting steps and retries and escalating uncertain cases to a person instead of letting the agent keep trying.
Which metric should you use for agentic AI costs?
Cost per completed case: everything spent on a process, including the model, human review and rework, divided by the cases that finished successfully. Cost per token is useful for billing, but it does not tell you whether the agent pays off.
Sources
Consulted on 28 November 2026. From Gartner we cite the open publications; the full reports are paywalled. Model prices change often.
- Gartner, Predicts 2027 on agentic automation (10 November 2026): soaring costs, hallucinations and poor process visibility as threats to ROI; structured orchestration and cost governance to scale. We cite the public abstract; the full report is paywalled.
- Gartner, press release of 25 June 2025: over 40% of agentic AI projects will be cancelled by the end of 2027.
- Anthropic, Claude API pricing: per-million-token input and output prices used in the example.
- FinOps Foundation, “Managing AI Token Costs from Direct Model Provider APIs” (updated 28 October 2026): the token as the billing unit and cost per successful outcome.
Work out the cost per case before scaling the agent
Bring a real process. In 30 minutes we mark which steps a rule can handle, which need an agent and where to set the limits. Or create a free account and start on your own.