AI agent cost
Know what each AI agent costs, and stop paying for waste
Provider invoice
Same spend, per workflow
3 cost layers
Model usage, runtime, human review: we measure all three
Weekly
Cost review so token drift is caught before the invoice
Per workflow
Cost per completed task, not one provider total
Cost architecture
Your bill is three costs, and the invoice only shows one
Model usage
Variable, biggest lever
Tokens, context size, retries and fallback calls. Usually the biggest and the easiest to cut.
Runtime
Mostly fixed
Hosting, queues, orchestration and logging. Mostly fixed. Size it to real volume.
Ops
Falls as accuracy rises
The people who review outputs and handle exceptions. Falls as accuracy rises.
Where spend leaks
Six reasons your agent costs more than it should
Where it leaks: Session design: long sessions keep re-sending old context.
Fix: Session limits and summaries between steps.
Where it leaks: Context and tokens: whole documents go into every prompt.
Fix: Tighter retrieval that sends only the passages needed.
Where it leaks: Tool strategy: the agent calls tools “just in case”.
Fix: A tool-call policy that limits which tools run at each step.
Where it leaks: Model routing: a premium model classifies simple emails.
Fix: Route easy steps to a smaller model, keep the large one for judgment calls.
Where it leaks: Pipeline orchestration: failed steps retry in loops.
Fix: Retry caps, clean handoffs and a human exception queue.
Where it leaks: Operational discipline: nobody looks until the invoice arrives.
Fix: A weekly cost review per workflow with an owner.
What we change in your agent
We audit one live workflow, tag every model call, tool call and retry to that workflow, then apply the fixes above in order of cost impact. You get a live dashboard and a weekly review cadence.
Book an agent cost reviewBefore
Every loop is paid for.
After
One retry, then a person.
Live tracking example
See spend by agent, model, and day
Screenshot from the cost dashboard on ATI Lab's own internal agent setup.
- Time window. Spend today, last 7 days and last 30 days, so drift shows up within the week.
- Spend by agent. Cost and call count per agent, so you know which workflow drives the bill.
- Spend by model. Cost per model, so you can see whether a cheaper model could take more of the work.
Practical framework
Five steps to track agent cost per workflow
Map steps
Every workflow step becomes a measurable cost event.
Log usage
Tokens, retries and tool calls per task.
Separate baseline
Baseline volume apart from exception volume.
Tag value
Mark high-value actions so cuts stay outcome-led.
Review weekly
By workflow, not only by provider invoice.
Owner
Typical cost bands
Prices and measured cost
What do AI models cost per million tokens, and what does an agent cost per month to run?
As of 18 October 2026, the main API models cost $0.10 to $10 per million input tokens and $0.50 to $50 per million output tokens. An agent's monthly cost is tasks per month × tokens per task × those rates, plus tool fees such as web search at about $10 per 1,000 searches. In our own measurement, tokens per task moved the bill more than the rate card did: a one-sentence question grew to 14,000–25,000 input tokens once the model added web search results.
API list prices, 18 October 2026
| Model | Provider | Input per 1M tokens | Output per 1M tokens |
|---|---|---|---|
| Claude Fable 5.1Top tier | Anthropic | $10 | $50 |
| Claude Opus 5.5 | Anthropic | $4 | $20 |
| Claude Sonnet 5.5 | Anthropic | $2 | $10 |
| Claude Haiku 5.5$0.50 / $2.50 for prompts over 100,000 tokens | Anthropic | $0.10 | $0.50 |
| gpt-6-astraTop tier | OpenAI | $10 | $50 |
| gpt-6.1-sol | OpenAI | $2 | $10 |
| gpt-5.6-solPromotional price, at least through 21 Nov 2026 | OpenAI | $4 | $20 |
| gpt-5.6-terra | OpenAI | $2 | $12 |
| gpt-6-luna | OpenAI | $0.10 | $0.50 |
| gemini-4-argonRises to $4 / $20 on 1 Dec 2026 | $2 | $10 | |
| gemini-3.1-pro-preview$4 / $18 for prompts over 200,000 tokens | $2 | $12 | |
| gemini-3.8-flashDoubles on 1 Jan 2027 | $0.75 | $3.75 | |
| gemini-3.5-flash-lite | $0.30 | $2.50 |
Sources: Anthropic pricing, OpenAI pricing, Gemini API pricing, all checked 18 October 2026. Web search costs $10 per 1,000 calls on OpenAI and Anthropic, plus the tokens the results add. Google includes 5,000 grounded searches a month, then charges $14 per 1,000. Claude on Amazon Bedrock and Google Cloud is priced regionally and separately from Anthropic's own list, so check those pages before you budget.
What one agent task cost us, by model
On 18 October 2026 we ran 161 web-research tasks through five models via Cloudflare AI Gateway. Each task was one buyer question with web search switched on. The costs are the token counts each API reported, multiplied by the list prices.
| Model | Input tokens per task | Output tokens per task | Cost per task | Per 1,000 tasks |
|---|---|---|---|---|
| Claude Opus 5.5 | 25,410 | 1,332 | $0.140 | $140 |
| gpt-5.6-sol | 22,008 | 1,343 | $0.135 | $135 |
| Claude Sonnet 5.5 | 22,675 | 1,220 | $0.068 | $68 |
| gpt-5.6-terra | 13,950 | 1,005 | $0.052 | $52 |
| gpt-5.6-luna | 15,037 | 1,291 | $0.018 | $18 |
An agent handling 2,000 of these tasks a month would cost about $35 in model fees on gpt-5.6-luna and about $280 on Claude Opus 5.5. Hosting, logging and human review come on top; those are the runtime and ops layers above. Two things decided the bill more than the list price. Search results made up nearly all of the input, because the questions themselves were under 30 words. And the most expensive model cost 8 times more per task than the cheapest for the same job. That gap is why we route simple, retrieval-heavy steps to a smaller model and keep the large one for judgment calls.
FAQ
AI agent cost questions
How much does an AI agent cost?
It depends on volume and design, so there is no honest flat price. The biggest swing factors are context size, model choice per step, and retries, all of which can be reduced after launch. Tracking cost per completed task is the fastest way to get a real number for your own workflow.
Can you reduce the cost of an agent we already run?
Yes. We add per-workflow tracking first, then change routing, context and retry rules in order of savings. Your existing stack stays in place.
What drives AI agent cost the most?
Oversized context, unnecessary tool calls, a premium model on every step, and retry or fallback loops created by weak orchestration. Each has a specific fix, listed above.
Is AI agent cost fixed or variable?
Mostly variable. Even with fixed platform fees, total spend moves with workload volume, task complexity, human handoffs, and how efficiently sessions, tokens and tools are used.
How do we track AI agent cost in real time?
Tag every model call, tool call and retry to the workflow that caused it, then report cost per completed task by agent, model and day. That shows where context is bloated, where tools are over-called and where orchestration creates avoidable spend.
How often should we review AI agent cost?
Weekly for active deployments. Monthly review is usually too slow to catch token drift, tool-call creep and retry loops before they compound.
Next step
