AI agent cost calculator

Agents call the model many times per task, and each call re-reads everything so far. Enter your loop shape to see cost per task and per month.

ModelPer taskMonthly

How it is calculated

Call i sends starting context + i × tokens added, so total input per task is calls × start + added × calls × (calls − 1) / 2. The cache-hit share is billed at the cached-input price. 30 days per month.

FAQ

Why do agents cost more than chatbots?

Each step resends the whole growing context: instructions, tool definitions and every previous tool result. Input tokens therefore grow roughly with the square of the number of steps.

How do I make agents cheaper?

Enable prompt caching for the stable prefix, trim or summarize old tool results, cap the number of steps, and route easy steps to a smaller model.