The cost of an AI agent is not just the price of tokens: it adds up calls to the model, the platform, paid tools, and then less visible items like testing, human supervision and maintenance. In our example of a support agent handling 2,000 tickets per month, model calls cost less than 200 dollars, while supervision and maintenance, estimated on explicit assumptions, reach 800 euros. The right metric is therefore the full cost per successful task, compared to the cost of current processing.
The prices quoted were taken on November 14, 2026 from the publishers’ official pages; they change often and must be rechecked before any budget. To place the cost within the overall design process of an agent, our reference guide on AI agents and automation outlines the upstream steps.
Visible costs: tokens, connectors and platform
An agent doesn’t make one model call, but a series of calls: at each step, it re-reads its instructions, the description of its tools, the history and the results already obtained. The input volume therefore grows with each round, and the cost of a task increases faster than its number of steps. Anthropic measured the order of magnitude in a technical article published in June 2025: its agents consume about four times more tokens than a conversation, and its multi-agent systems about fifteen times more.
The unit price varies greatly from one model to another. On Anthropic’s official pricing grid, Claude Sonnet 5.5 costs 2 dollars per million input tokens and 10 dollars for output, Claude Haiku 5.5 costs 0.10 and 0.50 dollars respectively for requests under 100,000 tokens. At Google, the Gemini API pricing page shows Gemini 3.8 Flash at 0.75 dollars input and 3.75 dollars output until December 31, 2026, then double from January 1, 2027. Also note that Anthropic indicates that the tokenizer of its recent models produces about 30% more tokens for the same text: measure your volumes on the target model rather than transposing them.
To this are added tools billed per use. Web search costs 10 dollars per 1,000 searches on Anthropic’s API; at Google, grounding on Google Search is billed 14 dollars per 1,000 requests beyond 5,000 free requests per month. Finally, the orchestration platform has its own pricing: n8n charges 50 euros per month for 10,000 workflow executions in its Pro plan (annual billing), while Zapier counts in tasks and bills its agents in ‘activities’.
Cost reduction levers built into APIs
Two mechanisms significantly reduce the bill. Prompt cache bills the re-reading of a prefix already sent at a fraction of the normal price: 0.10 dollars per million tokens for Claude Sonnet 5.5, or 5% of the input price. Batch processing, for tasks that can wait, halves the token price at Anthropic. The broader question of LLM API pricing and their comparison between providers will be covered in a dedicated article.
Hidden costs: tests, supervision, security and maintenance
The heaviest items do not appear on any pricing page. Testing first: a set of representative cases must be re-run with each modification of instructions, tools or the model, and its results reviewed. Supervision next: review of a sample, handling of cases transferred to a human, validation of sensitive actions. Security: access management, logs, permission review. Maintenance, finally: the APIs of connected software change, and models are replaced.
This last point is not theoretical. Google’s pricing page indicates that Gemini 2.5 Pro is deprecated and its requests will be redirected to Gemini 3.8 Flash from December 1, 2026: an agent built on the old model changes behavior and price without its team having modified anything. Each migration of this type requires re-running tests, which assumes knowing how to measure an agent’s reliability in a repeatable way. To go further, read our article ‘How to Measure the Reliability of an AI Agent? Tests and Metrics’.
Examples with figures and explicit assumptions
Take a support agent that handles 2,000 tickets per month. Assumptions: 6 model calls per ticket, a fixed prefix (instructions and tools) of 5,000 tokens, 1,900 tokens added to the context at each step (tool results and response), 400 tokens generated per step, 10% retries. The total input then reaches 58,500 tokens per ticket, of which 30,000 correspond to the prefix re-read at each step, and the output 2,400 tokens.
| Configuration (prices taken in November 2026) | Cost per ticket | Cost for 2,000 tickets |
|---|---|---|
| Claude Sonnet 5.5 without cache | about 0.155 dollars | about 310 dollars |
| Claude Sonnet 5.5, prefix served by cache | about 0.092 dollars | about 185 dollars |
| Claude Haiku 5.5 without cache | about 0.008 dollars | about 16 dollars |
The gap between models is spectacular, but it says nothing about quality: a model twenty times cheaper that solves fewer tickets can cost more in human rework. Let’s now add the other items, still based on assumptions.
| Monthly item | Assumption | Amount |
|---|---|---|
| Model calls | Claude Sonnet 5.5 with cache | about 185 dollars |
| Platform | n8n Pro, 10,000 executions | 50 euros |
| Supervision | 10% of tickets reviewed, 3 minutes each, 40 euros loaded hourly rate | 400 euros |
| Maintenance and tests | one day per month at 400 euros | 400 euros |
| Initial development amortized | 10 days at 400 euros, over 12 months | about 333 euros |
In this scenario, tokens weigh less than 15% of the total. To simulate your own parameters (number of steps, sub-agents, cache share, daily volume), the site’s AI agent cost calculator re-runs this calculation on the day’s public rates and compares several models.
How to cap and monitor spending
Unbounded consumption is among the top ten risks in the OWASP 2025 ranking for LLM applications. The danger is concrete: according to an IDC study cited in our article on agent cost and budget, 67% of surveyed companies exceeded their compute and model budget for their agents by more than 10% over twelve months. The same article describes a prospecting agent whose cost per lead quadrupled after a modification of its instructions.
Caps must be set at several levels:
- per task: maximum number of steps, tokens and tool calls, with stop and alert on exceeding;
- per agent: a dedicated API key, to isolate its consumption and be able to cut it without affecting other uses;
- per period: a daily and monthly budget, with an alert before reaching the limit;
- per unit of value: a maximum cost per ticket, per lead or per report, which pauses the agent if exceeded.
Errors that make the bill explode
The most frequent one is monitoring the monthly bill rather than the cost per task: a drift goes unnoticed for weeks. Next are loops on a broken tool, unlimited automatic retries and conversation histories never summarized, which inflate each call. An innocuous modification of instructions can also change the number of steps: compare the average cost per task before and after each change.
When automation becomes profitable
The break-even threshold is calculated simply: monthly fixed costs divided by the savings made on each task. Let’s revisit our example. Assumption: a ticket handled by a human costs 4 euros (6 minutes at 40 euros per hour), and the agent resolves 60% without intervention. The average saving per ticket is about 2.40 euros, from which the cost of model calls, less than 10 euro cents, must be subtracted, leaving about 2.30 euros net.
Fixed costs (platform, supervision, maintenance, amortization) reach about 1,183 euros per month. The threshold is therefore around 515 monthly tickets: below that, the agent costs more than it saves; at 2,000 tickets, the net gain is around 3,400 euros per month. Volume and autonomous resolution rate are the two variables that tip the calculation, well before the choice of model. The cases described in ‘AI Agents in Business: Ten Truly Useful Use Cases’, where these two variables are favorable, are the best candidates.
Verify the calculation on real data
These figures remain assumptions until they have been measured. During a pilot, record for each task the tokens consumed, the result (success, failure, transfer to a human) and the review time. Then divide the total cost by the number of successful tasks, not by the number of tasks launched. The limitation of the exercise lies in volume: over a few hundred tasks, rare and costly cases may not yet have appeared.
