AI Agent Workflow Cost Calculator

Model costs from task volume, model steps, tokens per step, and external tool calls.

Estimated monthly agent cost USD 570.00
Estimated cost per task USD 0.06
Input tokens USD 300.00
Output + tool calls USD 270.00
Inputs
Try:
Rates and amounts use this currency. No foreign-exchange conversion is applied.
tasks / month
Completed agent workflows each month.
steps / task
Average model calls or reasoning steps in a workflow.
tokens / step
Average billed input tokens for each model call.
tokens / step
Average billed output tokens per call.
USD / 1M tokens
Model input price per million tokens.
USD / 1M tokens
Model output price per million tokens.
calls / task
External tools, search, or paid service calls per workflow.
USD / 1,000 calls
Combined cost of paid tool calls per 1,000.
Results & Graph
Estimated monthly agent cost
USD 570.00
Estimated cost per task
USD 0.06
Input tokens
USD 300.00
Output + tool calls
USD 270.00

Agent workflow cost by component

Graph 1 • Model/tool sequence Domain-specific illustration generated from the active calculator inputs.
PlanLLM stepModelLLM stepToolAPI / searchObserveLLM stepModelLLM stepAnswerLLM step6 model steps × 10,000 tasks + paid toolsUSD 570.00
Graph 2 • Token and tool spend Components follow the units and rates entered above.
Input 300 USD Output 240 USD Tools 30 USD
Graph 3 • Cost curve Illustrates how output responds as the workload scales.
0USD 162USD 324USD Input: 300 USD 300 Input Output: 240 USD 240 Output Tools: 30 USD 30 Tools
Summary: Estimated monthly agent cost is USD 570.00.
Summary: The workflow runs 60,000 model steps and 30,000 tool calls per month under these averages.
⚠️ Retries, orchestration, search grounding, memory, and provider-specific tool charges are only represented if included in your entered averages.
Interactive chart & math engine powered by CalculatorGraph

Formula: AI Agent Workflow Cost Calculator

Monthly Cost = Tasks × Steps × (Input Tokens × Input Rate + Output Tokens × Output Rate) ÷ 1M + Tool Calls × Tool Rate ÷ 1,000
Monthly Cost = Tasks × Steps × (Input Tokens × Input Rate + Output Tokens × Output Rate) ÷ 1M + Tool Calls × Tool Rate ÷ 1,000
  • : Monthly workflows and model steps per workflow
  • : Input/output tokens per model call
  • : Tool calls per workflow

Worked example: 10,000 tasks with six model steps each

Estimate token and tool costs using average usage per step.

  1. Calculate monthly model input and output tokens.
  2. Apply the respective per-million rates.
  3. Add paid tools for all workflows.
Result: The total reflects model and user-entered tool costs.

Frequently Asked Questions

How can I improve the estimate?

Use production logs to calculate average billed tokens and paid tool calls per successful task.

Where do I find real tokens per step?

From your provider's usage records or your own request logs. Add up the billed input and output tokens across a sample of completed tasks, then divide each total by the number of model calls in the sample. That gives the two per-step averages this calculator expects. Use a sample of at least a few hundred tasks so long-running outliers are represented.

Why is input cheaper per token but costing more overall?

Because the agent sends far more input than it receives. On the default, each step sends 2500 tokens and gets 500 back, so input volume is five times output. Even at a quarter of the output price, input ends up at $300.00 of the monthly total. Agents resend their history and tool definitions on every step, which keeps input volume high.

Does a cheaper model always reduce the bill?

Not necessarily. A weaker model may need more steps to finish the same task, retry more often, or fail tasks that then have to be rerun. Each of those raises steps per task or lowers the success rate. Compare candidate models on the cost per successful task from a real trial, not on the rate card alone.

How do I model a multi-agent setup?

Treat every model call made for one user task as a step, whichever agent made it. If a planner calls three worker agents that each take two steps, that is at least seven steps per task. If the agents use different models with different prices, run the calculator once per model with its own step count and add the totals.

How do I account for tasks that fail partway?

Failed tasks still consume tokens for every step they ran. If one task in ten fails after about half its steps, the agent burns roughly 5% more tokens than the successful work needs, and if users retry those tasks the cost repeats. Either raise the task count to include retries or divide the monthly total by successful tasks to get the true cost of a completed one.

Should embeddings or retrieval be included?

Not in the model step fields, which assume chat-style input and output pricing. If each task queries a vector database or creates embeddings through a paid API, count those as tool calls with their own per-thousand rate. The retrieved text that gets pasted into the prompt does belong in the input-token average, since you pay for it as input.

What does Output + tool calls mean?

It is the output token cost and the paid tool cost added together, $270.00 on the default. The calculator does not show them separately. To split them, multiply tool calls per month by the rate per thousand: 30,000 calls at 1 per 1,000 is $30, so the remainder is output tokens. If tools are a large share, look at them first.

How should I budget for growth?

Run the calculator at the volume you expect at the end of the budget period, not today's. The presets show how directly cost follows volume: 15,000 tasks costs $855.00 against $570.00 for 10,000 tasks. Then add a margin for retries and longer contexts, since agent workflows tend to gain steps as features are added.

Does the calculator handle cached input tokens?

Not directly. It uses one input rate for every token. If a large part of each prompt is a cached prefix billed at a discount, replace the input rate with a blended figure: the cached rate times the cached share plus the full rate times the rest. That keeps the arithmetic right without a separate field.

Why do the three presets have the same cost per task?

Only the task count changes between them. Steps, tokens, rates and tool calls per task are identical, so each task costs the same 5.7 cents, shown rounded as $0.06. To see the cost per task move, change one of the per-task inputs, such as steps or tokens per step, instead of the monthly volume.

Are infrastructure and hosting costs included?

No. The total covers model tokens and paid tool calls only. Servers running the orchestration code, queues, databases, logging, monitoring and any vector store are separate. For a small workload those can rival the model bill, so add them from your cloud invoice when you build a full cost per task for pricing or a business case.

Can I use this for a single agent run instead of a month?

Yes. Set tasks per month to 1 and the total becomes the cost of one run, although the panel rounds to cents, so small runs may show $0.06 or less with little detail. For more precision, enter 1,000 tasks and read the total as the cost per thousand runs, then divide mentally.

$570 a month for 10,000 agent runs

The default describes a modest production agent. It handles 10,000 tasks a month. Each task takes 6 model steps, and each step sends 2500 input tokens and gets 500 output tokens back. Input is priced at 2 per million tokens and output at 8 per million. On top of that, every task makes 3 calls to a paid tool billed at 1 per 1,000 calls. The result is an estimated monthly cost of $570.00 for the month.

The interpretation line spells out the volume behind that figure: 60,000 model steps and 30,000 tool calls in a month. Those two counts are worth checking against your logs before trusting any cost estimate, because they are where most forecasting errors start.

The rates in the default are placeholders for the arithmetic, not the price of any particular model. Replace them with the rates on your provider's current price sheet, in the same units the fields ask for: per million tokens for the model, per thousand calls for tools.

Underneath the total, the panel splits the bill in two. Input tokens cost $300.00 of it. Output tokens and tool calls together cost $270.00 of it. That second line combines two different things, and pulling them apart is the first useful thing to do with the result.

Input tokens take $300 of the bill

Output is priced four times higher than input in the default, yet input is the larger share of the bill. The reason is volume. Over the month the agent sends a hundred and fifty million input tokens, five times the thirty million output tokens it receives.

Split the $270.00 line by hand and output tokens come to two hundred and forty dollars while tool calls add only $30. So the real ranking is input first, output close behind, tools a distant third.

This pattern is typical of agents. A chat reply might have a short prompt and a long answer. An agent step usually has the reverse shape: the system prompt, tool definitions, the task, and everything that happened in earlier steps go in, and a short tool call or decision comes out. A 5:1 input to output ratio, like the default, is mild for an agent with a long tool list.

Because of this, levers that cut input often matter more than switching to a model with cheaper output. Trimming tool descriptions, summarising earlier steps instead of replaying them, and caching a fixed prompt prefix all attack the biggest line.

Choosing the 2500-token average when context grows each step

The calculator multiplies a single input-token figure by every step, but in a real agent loop the context is not constant. Step one sends the instructions and the task. Step two sends all of that plus the first tool result. By step six the prompt holds the whole history of the task, so the last call can be several times larger than the first.

What the field needs is the average over all steps, not the size of the first call and not the size of the last. If the context grows by a roughly fixed amount each step, the average is about halfway between the first and the last call. If one tool returns a large document early in the task, every later step carries it, and the average is much closer to the final size.

Getting this wrong has a direct effect. Doubling input tokens per step from 2500 to twice that lifts the cost per task from $0.06 to $0.09 on the default, and the input line doubles from $300.00 as well. The best source is production logs: total billed input tokens for a batch of tasks, divided by the number of model calls.

Steps per task multiply both token lines

Model steps sit inside the token formula, so changing them scales input and output together. Double the default from 6 to 12 steps and the cost per task roughly doubles to $0.11. The tool calls stay at 30,000 a month, because the calculator counts them separately per task, not per step.

In practice more steps usually also means a longer average context, since each extra step adds history. So an agent that drifts from 6 steps to 12 often costs more than twice as much, once you update the input-token field to match. The calculator will only show that if you change both inputs.

Going the other way, a three-step version of the default workflow halves the token spend while keeping the same tool calls. Step count is often the cheapest thing to reduce: merging a planning step into the first action, or stopping as soon as the task is done instead of running a fixed loop, can remove steps without changing the model.

Watch the tail. An average of 6 steps can hide a few tasks that loop dozens of times before failing. Setting a maximum step count protects the budget from those.

Paid tool calls at 1 per 1,000 calls

The default tool rate is deliberately low, the sort of figure a cheap search or lookup API might charge. At 3 calls per task it contributes $30 of the $570.00 total, about 5%.

Not every tool is that cheap. Raise the rate to 10 per 1,000 calls and the cost per task climbs from $0.06 to $0.08, with tools now a meaningful share. Web search with grounding, code execution sandboxes, browser automation and third-party data APIs can all cost far more per call than a simple lookup.

Only paid calls belong in this field. A tool that runs inside your own infrastructure, such as a database query, costs compute rather than a per-call fee, and that cost lives in your hosting budget. Set tool calls to 0 if your agent only uses internal tools; the cost per task on the default then falls to $0.05.

Remember that a tool result also costs tokens. The text a tool returns is fed back as input on the next step, so a tool that returns a long page adds to the input-token average even if the call itself is free.

6,000, 10,000 and 15,000 tasks a month

Task volume is a pure multiplier. The Lower preset at 6,000 tasks costs $342.00, split into $180.00 of input and $162.00 of output plus tools, from 36,000 model steps and 18,000 tool calls. The Higher preset at 15,000 tasks costs $855.00, with $450.00 of input and $405.00 of output plus tools, from 90,000 steps and 45,000 calls.

Each preset shows the same cost per task, $0.06, because nothing per task has changed. That makes per-task cost the figure to negotiate and optimise, and monthly volume the figure to forecast.

For a budget, run the calculator at a realistic range rather than one point. If you expect between 6,000 and 15,000 tasks next quarter, the spend runs from $342.00 to $855.00 a month on the default rates. Put the upper figure into the budget and set a spending alert at the lower one, so a sudden jump in volume or a runaway loop shows up early.

Why the cost per task reads $0.06

The exact per-task figure on the default is $570 divided by 10,000 tasks, which is 5.7 cents. The panel rounds to whole cents, so it shows $0.06. That rounding is harmless for a monthly total but misleading if you multiply the displayed per-task figure back up: 10,000 tasks at $0.06 would suggest thirty dollars more than the real total.

For pricing a product, work from the monthly total divided by the task count, not from the rounded line. If you plan to charge per task, carry at least four decimal places.

The figure is also per attempted task. If some tasks fail and get retried by the user, or abandoned after a few steps, the cost per successful task is higher. Divide the monthly total by successful tasks, not by attempts, when you compare the agent's cost with the value of the work it completes.

Retries, cached prompts and orchestration overhead

The formula covers only what you enter: model steps, tokens and paid tools. Several real costs sit outside it unless you fold them into those inputs.

Retries come first. A call that times out or returns malformed output and is sent again is billed twice. If roughly one call in twenty is retried, raise the steps per task by that share, so 6 becomes about 6.3.

Prompt caching cuts the other way. Many providers bill a cached prompt prefix at a lower input rate, and a long fixed system prompt plus tool definitions is the ideal candidate. The calculator has a single input rate, so to approximate caching, lower the input rate to a weighted average of the cached and uncached prices for your mix.

Reasoning models add another wrinkle. Where a model produces internal reasoning tokens, providers generally bill them as output even though you never see them, so measure output from billed usage, not from the visible reply.

Finally, the Display Currency menu changes only the symbol. Choosing EUR shows €570.00, the same number. Enter the rates in the currency you want the answer in; the calculator does not convert.