AI agent cost per task
An AI agent calls the model many times to finish one task, and sends the whole conversation again each time. Enter how your agent works to see what one task costs, and the same task on every other model.
Cost per task
$0.317
On Claude Sonnet 5.5
Per month
$1,904
6,000 tasks in 30 days
Tokens per task
146,700
143,700 input + 3,000 output
Last step sends
19,950
tokens, 5 times as many as step 1
How the context grows
Step 1 sends 4,000 tokens. Step 12 sends 19,950 tokens, because the model gets the whole conversation again on every step.
78% of this cost is the model re-reading text it already saw on an earlier step. Prompt caching makes text that repeats much cheaper.
See what prompt caching savesThe same task on other models
Cost of one task, cheapest first. Price only: test how well a model uses tools before you switch.
- 1Qwen3.7 FlashAlibaba Qwen$0.0047$28.21 a month
- 2Nova MicroAmazon Nova$0.0054$32.70 a month
- 3Command R7BCohere$0.0058$35.03 a month
- 4GPT-OSS 20BGroq$0.012$70.07 a month
- 5Ministral 3 3BMistral AI$0.015$88.02 a month
- 6Step-3.5 FlashStepFun$0.015$91.62 a month
- 7Llama 3.3 70BDeepInfra$0.015$91.98 a month
- 8Seed 2.0 MiniByteDance Seed$0.016$93.42 a month
- 9GPT-6 LunaOpenAI$0.016$95.22 a month
- 10Claude Haiku 5.5Anthropic Claude$0.016$95.22 a month
- 62Claude Sonnet 5.5Anthropic Claude$0.317$1,904 a month
Questions
Why does the cost grow faster than the number of steps?
The model does not remember earlier steps. The agent sends the whole conversation again every time, and the conversation gets longer with each step. So twice as many steps means close to four times as many input tokens, not twice as many.
How can I make my agent cheaper?
Use fewer steps, for example by letting the agent call several tools at once. Keep tool results short: send the part of a web page or file that matters, not all of it. Turn on prompt caching, so text the model has already seen costs less. Use a cheaper model for simple steps and keep the expensive one for the hard parts.
What counts as a step?
One call to the model. In a typical step the model asks for a tool, your code runs the tool, and the result goes back to the model on the next call. Planning and checking the work count as steps too.
How close is this to my real bill?
It is an estimate that assumes every step adds the same amount of text. Real agents vary, and some shorten or summarise old messages to keep the context small. Your provider's usage page shows the real input and output tokens for each call. Prompt caching and wholesale prices (50% off list price) can lower the bill further.
More free tools
Estimates from each provider's official list price on aitoken.trading/models, updated every 5 minutes. Your real bill depends on how you use each model. AI Token is not affiliated with the AI providers named.