Free tool

AI agent cost calculator

Enter how many model calls one task makes, the tokens per call, retries and tasks per day. You get the cost per task, the monthly model bill and the total cost of ownership, using list prices read from each provider's pricing page.

Your agent

Example values
Send some calls to a cheaper model
Total cost of ownership: add the rest
Monthly model bill$2,71930,000 tasks · 8.8 calls each
Cost per task$0.0906$247.20 a month is retries
Fresh input 58% Cached input 3% Output 39%

The same workload on each model, per month

List prices, standard tier, read from each provider's pricing page. Click a model to switch to it. A cheaper model only saves money if it still finishes the task.

Last updated . Part of the AI agent cost control guides.

How to estimate what an AI agent will cost

An agent's bill is a chain of small numbers multiplied together, so a small error in one of them moves the total a lot. Get each one from real runs if you can:

  • Model calls per task. Planning, each tool choice, summaries and any sub-agents all count. Agents usually make more calls than their builders expect.
  • Input tokens per call. The system prompt, tool definitions, conversation history and tool results. In many agents this grows with every step, so use an average across the whole task, not the first call.
  • Share read from cache. Repeated context such as a long system prompt can be cached and billed at a much lower rate. Only count it if your setup actually caches.
  • Output tokens per call. Usually smaller than input, but priced several times higher per token.
  • Retries and loops. Timeouts, failed tool calls and repeated steps. Every one is a paid call.

What goes into AI agent total cost of ownership?

The model bill is the part that is easy to see. Total cost of ownership adds hosting and infrastructure, paid tools and APIs, vector database and observability, and the people time spent building, reviewing outputs and fixing failures. Open “Total cost of ownership” in the calculator to add them, and it shows the full cost per task.

Model prices used

USD per million tokens, standard tier, read from each provider's pricing page on 30 November 2026. Batch discounts, long-prompt tiers and cache-write charges are not included.

ModelInputCached inputOutputSource
Claude Opus 5.5$4$0.2$20Anthropicchecked 2026-11-30
Claude Sonnet 5.5$2$0.1$10Anthropicchecked 2026-11-30
Claude Haiku 5.5Prompts up to 100,000 tokens. Longer prompts are priced higher.$0.1$0.01$0.5Anthropicchecked 2026-11-30
GPT-6.2 Astra$8$0.4$40OpenAIchecked 2026-11-30
GPT-6.2 Sol$2$0.1$10OpenAIchecked 2026-11-30
Gemini 3.1 Pro (preview)Prompts up to 200,000 tokens. Longer prompts are priced higher.$2$0.2$12Googlechecked 2026-11-30
Gemini 3.5 Flash$1.5$0.15$9Googlechecked 2026-11-30
Gemini 3.1 Flash-LiteText, image and video input. Audio input is priced higher.$0.25$0.025$1.5Googlechecked 2026-11-30

From estimate to actual

An estimate tells you whether an agent is worth building. Once it runs, measure cost per task and cost per outcome on real runs, set a budget on the agent, and use the AI spend report to show finance what it bought.

Alpha records the real cost of every traced run against its agent and can pause an agent at its budget. Book a 30-minute teardown to compare this estimate with your agent's actual runs.

FAQ

Common questions

How much does an AI agent cost to run?

Multiply the cost of one model call by the calls each task makes, add retries, then multiply by tasks per month. One call costs its input tokens times the input price, plus cached tokens at the cache price, plus output tokens times the output price. The calculator on this page does that with current list prices.

What is the total cost of ownership of an AI agent?

The model bill plus everything else the agent needs each month: hosting, tools, vector database and observability, and the people time spent building, reviewing and fixing it. For many agents the people time is larger than the model bill, so leaving it out understates the cost.

Why is my real AI agent bill higher than the estimate?

Usually more calls per task than you thought, context that grows with every step, retries and loops, or cache hits lower than expected. Track cost per task on real runs and compare it with the estimate.

How do I lower AI agent cost?

Cut retries and loops first, keep context small, make repeated context cacheable, and move steps to a cheaper model only where the task still succeeds. Then put a budget on each agent so a runaway loop can't run up the bill.

Where do the model prices come from?

From each provider's own pricing page, read on 30 November 2026. They are list prices for the standard tier and the shortest context tier, without batch discounts or cache-write charges.

Want the real number, not an estimate?

In 30 minutes we'll go through one of your agents on real runs and show its actual cost per task, retries included.