An AI agent costs between a fraction of a cent and a few dollars per run to operate. At November 2026 list prices, the four agents worked through below range from $0.0002 per run for a single-call classifier to $5.70 per run for a 30-call research agent, which comes to $171 to $480 a month each before prompt caching and $62 to $345 a month with it.
Those figures are model tokens only, and they are the cost of running an agent, not building one. AI agent development cost is a separate question about engineering time and is not covered here. Every number below is computed from the list prices on our LLM API pricing page, checked against the providers' own pricing pages on 19 November 2026, in US dollars per million tokens. Change the assumptions and the answer changes, so the assumptions are stated for each example.
The formula
Providers bill per token, with one price for input (everything you send) and a higher one for output (everything the model writes).
- Cost per run = (input tokens x input price + output tokens x output price) / 1,000,000
- Cost per month = cost per run x runs per day x 30
This is the same sum the token cost calculator does, so you can reproduce the uncached figures there. An agent run is several model calls, and each call re-sends its context, so input tokens per run is calls per run multiplied by the average input per call. Where a share of the input is served from the provider's prompt cache, that share bills at the cached input price in place of the input price.
The prices used
| Model | Input | Cached input | Output |
|---|---|---|---|
| GPT-5.4 Mini | $0.75 | $0.075 | $4.50 |
| Claude Sonnet 5.5 | $2.00 | $0.10 | $10.00 |
| Claude Opus 5.5 | $4.00 | $0.20 | $20.00 |
| Gemini 3.5 Flash-Lite | $0.30 | $0.03 | $2.50 |
Prices are per million tokens at the standard tier. The full lists are on the Claude, OpenAI and Gemini pricing pages.
Four worked examples
The assumptions:
| Agent | Model | Calls per run | Input per call | Output per call | Input cached | Runs per day |
|---|---|---|---|---|---|---|
| Support triage | GPT-5.4 Mini | 4 | 3,000 | 300 | 50% | 500 |
| Pull request review | Claude Sonnet 5.5 | 8 | 20,000 | 1,000 | 70% | 40 |
| Nightly research report | Claude Opus 5.5 | 30 | 40,000 | 1,500 | 80% | 1 |
| High-volume classification | Gemini 3.5 Flash-Lite | 1 | 600 | 20 | 0% | 50,000 |
And what they cost:
| Agent | Per run, no caching | Per run, cached | Per month, no caching | Per month, cached |
|---|---|---|---|---|
| Support triage | $0.0144 | $0.0104 | $216.00 | $155.25 |
| Pull request review | $0.40 | $0.19 | $480.00 | $224.64 |
| Nightly research report | $5.70 | $2.05 | $171.00 | $61.56 |
| High-volume classification | $0.00023 | $0.00023 | $345.00 | $345.00 |
Support triage agent
Reads an incoming ticket, looks up the customer, classifies the issue and drafts a routing note. Four calls at 3,000 input and 300 output tokens each is 12,000 input and 1,200 output tokens per run. On GPT-5.4 Mini that is 12,000 x $0.75 plus 1,200 x $4.50, divided by a million: $0.0090 of input and $0.0054 of output, $0.0144 per run. At 500 tickets a day it is $7.20 a day and $216 a month. With half the input (the system prompt and tool definitions) read from cache at $0.075, the run drops to $0.0104 and the month to $155.25.
Pull request review agent
Reads the diff, pulls in surrounding files, runs a few checks and writes review comments. Eight calls averaging 20,000 input and 1,000 output tokens is 160,000 input and 8,000 output tokens per run. On Claude Sonnet 5.5 that is $0.32 of input and $0.08 of output: $0.40 per review. Forty reviews a day for 30 days is $480 a month, less if your team only opens pull requests on working days. With 70% of the input cached at $0.10, the run is $0.1872 and the month $224.64.
Nightly research report agent
Runs once a night, searches, reads sources and writes a report. Thirty calls averaging 40,000 input and 1,500 output tokens is 1.2 million input and 45,000 output tokens per run. On Claude Opus 5.5 that is $4.80 of input and $0.90 of output: $5.70 per run and $171 a month. This is the agent where caching matters most, because each call re-reads nearly everything the previous one saw. With 80% of the input cached at $0.20, the run is $2.05 and the month $61.56.
High-volume classification agent
One call per item: a 600-token prompt in, a 20-token label out. On Gemini 3.5 Flash-Lite that is $0.00018 of input and $0.00005 of output, $0.00023 per run, which looks like nothing. At 50,000 items a day it is $11.50 a day and $345 a month, the second-largest monthly bill of the four. No caching is assumed: the prompt is short, and Gemini bills cache storage by the hour instead of per token.
One caveat on the cached columns. They bill the uncached share at the plain input price. Anthropic charges 1.25x the input price to write a token into the cache, so if every uncached token were also a cache write, the pull request review would cost $0.2112 per run ($253.44 a month) and the research report $2.29 per run ($68.76 a month). Real bills land between the two figures.
What drives the bill
Model choice. Across the 13 models in the calculator, input prices run from $0.05 per million tokens (GPT-5 Nano) to $5.00 (GPT-5.5), a 100x spread, and output from $0.40 to $30.00, a 75x spread. Inside one provider's range the gaps are still large: Claude Opus 5.5 is 2x the price of Sonnet 5.5 and 40x the price of Haiku 5.5.
Output tokens. Output costs 5x input on the Claude 5.5 models, 6x on the GPT-5.4 family and 8x on GPT-5 Nano. In the pull request review example, output is 4.8% of the tokens and 20% of the uncached cost.
Calls per run, and context that grows. Every call re-sends the conversation so far. A ten-call run that starts with a 4,000-token prompt and adds 2,000 tokens of tool results per step sends 130,000 input tokens in total, not 40,000. That is 3.25x the naive estimate: $0.26 of input on Sonnet 5.5 where a flat estimate says $0.08.
Retries. A retried run is billed twice. If 10% of the support triage runs are retried once, the month goes from $216.00 to $237.60 with no change in the work done.
Caching. Cached input bills at 0.1x the input price on GPT-5.4 Mini and Claude Haiku 5.5, and at 0.05x on Claude Sonnet 5.5 and Opus 5.5. It only applies to a prefix that is identical from call to call, so prompt layout decides how much of it you get.
Batch discounts. OpenAI, Anthropic and Gemini all price their batch APIs at 50% of the standard rate. It suits work that does not need an answer straight away, such as overnight classification.
Long prompts. Some models charge more above a prompt-length threshold. Claude Haiku 5.5 bills prompts over 100,000 tokens at 5x its base rates, and GPT-5.4 bills prompts over 272,000 input tokens at 2x input and 1.5x output.
The costs that are not tokens
- Failed runs. A run that fails or gives a wrong answer still burned its tokens. The honest unit is cost per successful run: cost per run divided by the success rate. At an 85% success rate the triage agent's $0.0144 becomes $0.0169 per successful run, and $32.40 of the $216 month bought nothing. There is more on this in cost per successful run.
- Tool and API calls. Web search, code sandboxes, vector databases and third-party APIs are billed by whoever provides them, on their own meters. They do not appear in a token estimate, and for a search-heavy agent they can be a meaningful share of the run.
- Human review. If a person checks the agent's output before it ships, their time is part of the cost of the run. It is often the largest part and the one nobody writes down.
None of these has a list price, which is why they are missing from every estimate, this one included.
How to cut it
Each lever below is priced with the same formula and the same price list, using the uncached figures as the baseline.
| Lever | Example | Before | After | Change |
|---|---|---|---|---|
| Cache the stable prefix | Pull request review, 80% of input cached | $0.40 per run | $0.1568 per run | 60.8% lower |
| Route routine steps to a small model | Research report, 20 of 30 calls moved from Opus 5.5 to Haiku 5.5 | $5.70 per run | $1.995 per run | 65% lower |
| Use the smallest model that passes | Support triage on GPT-5 Nano in place of GPT-5.4 Mini | $0.0144 per run | $0.00108 per run | 92.5% lower |
| Use the batch API | Classification through Gemini batch | $345.00 a month | $172.50 a month | 50% lower |
| Trim the context | Pull request review, 20,000 down to 14,000 input tokens per call | $0.40 per run | $0.304 per run | 24% lower |
Model choice cuts both ways. The same triage run on GPT-5.4 costs $0.048, 3.3x the GPT-5.4 Mini figure, or $720 a month against $216. The classification workload costs $345 a month on Gemini 3.5 Flash-Lite, $105 on Claude Haiku 5.5 and $57 on GPT-5 Nano.
Two of these levers carry no quality risk: caching and batching change the price of the same tokens. Trimming context and moving steps to a smaller model change what the model sees or which model sees it, so measure output quality before and after. Prompt caching: the discount you are not claiming covers how to lay out a prompt so the cache hits, and 7 ways to cut AI agent costs without touching quality puts the levers in order of risk.
Estimating your own agent
Count the calls in one run, then the input and output tokens of each. If you do not know how many tokens a prompt is, paste it into the token counter. Put the totals into the token cost calculator with your model and daily volume, and compare models on the LLM API pricing page.
Treat the result as a floor. An estimate assumes every run looks like the average one, and real runs retry, loop and grow their context. If the invoice is already well above the estimate, why your token bill keeps growing lists the usual causes.
Agent Ping measures this from the other direction. Each real run reports its model and token counts, and the cost is priced per run and broken down per agent, per customer and per feature, so the estimate can be checked against what happened.