What an AI agent costs to run, and how to cap the bill
An AI agent's running cost is mostly tokens: how many steps it takes, how much it rereads and which model it uses. Cap it with hard spend limits, step limits, smaller models and caching.
The running cost of an AI agent is mostly a usage bill from the model provider, charged per token: the text the agent reads and the text it writes. Agents are harder to budget than a chatbot because one task is many model calls. The agent reads, decides, calls a tool, reads the result and goes round again, and every round adds to the bill. Anthropic reports that agents typically use about four times more tokens than chat interactions, and multi-agent systems about fifteen times more.
You cap that cost in layers: a hard monthly spend limit at the provider, a separate budget for each agent, limits on steps and output inside each task, the smallest model that does the job, and caching for the text the agent rereads on every call. Set those before the agent goes live, then measure the cost of each finished task, not the price per token.
How much does it cost to run an AI agent?
There is no honest single figure, because the bill depends on the task, not on the agent. Prices also change often. What we can show is the range. These are list prices in US dollars, as of November 2026, taken from Anthropic's pricing page and OpenAI's API pricing page (OpenAI's standard tier, short context):
| Model | Input, per million tokens | Output, per million tokens |
|---|---|---|
| Anthropic Claude Haiku 5.5 (prompts up to 100,000 tokens) | $0.10 | $0.50 |
| Anthropic Claude Opus 5.5 | $4 | $20 |
| Anthropic Claude Fable 5.2 | $8 | $40 |
| OpenAI gpt-6-luna | $0.10 | $0.50 |
| OpenAI gpt-6.2-astra | $8 | $40 |
The point of the table is the spread. With both providers, the largest model listed here costs eighty times as much per token as the smallest. Model choice is the biggest single lever on the bill.
For a sense of scale, Anthropic's pricing page works through one example of its Managed Agents service: a one hour coding session on Claude Opus 5.5 that uses 50,000 input tokens and 15,000 output tokens comes to $0.58, of which $0.08 is session runtime. Treat that as an illustration, not a forecast.
What drives the cost of an AI agent?
Five things, roughly in order of impact.
- The model. The same task can cost many times more on a large model.
- The number of steps. Every loop is another call. An agent that searches five times and rereads three documents costs more than one that finds the answer first time.
- What it rereads on every step. Each call sends the instructions, the tool descriptions and the history so far. Anthropic counts tool names, descriptions and schemas as input tokens, and the results that tools return as well. Its pricing page says web search results keep counting as input tokens in later turns of the same conversation.
- Paid tools. Some tools charge on top of tokens. On Anthropic's API, web search costs $10 per 1,000 searches, as of November 2026.
- Output length. On every model in the table, output costs five times as much as input. A verbose agent is an expensive agent.
A token is not a fixed unit either. Anthropic says its newer models use a tokenizer that produces about 30 percent more tokens for the same text. When you compare or switch models, compare the cost of a finished task, not the price per token.
How do you stop an AI agent from running up a huge bill?
The risk is not the average day. It is the loop that goes wrong at night: an agent that retries the same failing step, or keeps fetching pages, until somebody notices. Put caps at several levels so one failure cannot become an expensive one.
- A hard spend limit at the provider. Both major providers offer one, but they behave differently. On Anthropic's platform you can set an organization spend limit below your tier's cap, and separate spend limits for each workspace. When a limit you set is reached, requests fail until you raise it or access resumes, according to its rate limits page. On OpenAI, the spend limits guide is blunt: "Spend alerts do not enforce a cap." A hard limit has to be switched on, at organization or project level, and OpenAI warns that enforcement is not instantaneous, so spend can slightly exceed it.
- One budget per agent. Give each agent its own workspace or project and its own key. A runaway agent then hits its own ceiling, not everyone's, and you can see what each one costs. Avoid the default workspace: Anthropic notes that a spend limit there might not count or stop some usage.
- Limits inside the task. Set a maximum number of steps, tool calls and output tokens per task, plus a time-out. When the agent hits one, it stops and hands the task to a person. Some tools have their own brake: Anthropic's web fetch tool takes a
max_content_tokenssetting to stop one large page from filling the context. - Alerts before the ceiling. Set alerts well below the hard limit, so a person looks at the trend before the agent stops working.
This is the same thinking as our rule that agents never move money on their own: decide in advance where the agent must stop.
Which model should an AI agent use?
Usually more than one. Anthropic's own cost advice is to use Haiku for simple tasks, Sonnet for most production work and Opus for the most complex reasoning. In practice that means a small model sorts and extracts, and a larger one handles the exceptions.
Test on real cases before you decide. A cheap model that needs three attempts, or a person's correction every time, is not cheap. And not every step needs a model at all: if the input always looks the same, a plain rule is cheaper and more predictable. We wrote about that split in AI agent, chatbot or automation.
Does prompt caching reduce AI agent costs?
Often by more than anything else, because agents resend the same instructions and tool descriptions on every call. Caching stores the start of the prompt and charges much less when it is read again. On Anthropic, as of November 2026, a cache read costs 0.1 times the base input price on most models (0.05 times on Opus 5.5 and Sonnet 5.5), writing to the five minute cache costs 1.25 times, and the page says the five minute cache pays for itself after one read. OpenAI lists cached input separately: on gpt-6.2-astra it is $0.40 per million tokens against $8 uncached.
The practical rule: keep the stable part of the prompt (instructions, tool definitions, reference documents) at the start and unchanged, and put what changes at the end.
Work that can wait also costs less. Both providers offer a batch mode at 50 percent off standard prices, as of November 2026.
What should you measure?
Cost per finished task, next to the corrections a person had to make. Cost per invoice processed or per report drafted tells you whether the agent pays its way; price per token does not.
That is how we run agentic implementation: agents work inside fixed budgets with an audit log of every action, so every cost is known in advance, and from the first week we track what the agent did, what a person corrected and what it cost. The synthetic colleague we gave a product team works the same way: it stays inside a fixed budget, and nothing ships without human sign off.
Where to start
Before the agent goes live:
- Switch on a hard spend limit at the provider, below what you could afford to lose in a bad month.
- Give the agent its own workspace or project, key and budget.
- Set limits on steps, tool calls, output and time per task, with a hand-off to a person when one is hit.
- Start on the smallest model that passes your test cases, and cache the stable part of the prompt.
- Review cost per finished task every week, together with the corrections.
If you want a second pair of eyes on what an agent would cost in your setup, and where to put the caps, get in touch.
Insights
Agent washing: how to tell if a vendor's AI agent is real
2026-11-23Agent washing is selling a chatbot, assistant or scripted automation as an AI agent. Ask what it decides alone, test it on your own messy inputs, and write its limits into the contract.
How cultural institutions can adopt AI without losing their voice
2026-11-23Keep your voice by writing it down, deciding which content AI may draft and who signs it off, and leaving curatorial judgment with named people. Here is how to set that up.
AI for NGOs: what to automate in donor relations, and what never to
2026-11-23Let AI agents do the preparation in donor relations: records, sorting, drafts and reminders. Keep people on every message sent, every gift decision and anything that profiles a donor.
Have a workflow in mind?
Tell us what takes too much of your team's time.
info@newkinco.com