AI agent cost calculator
An agent loops: each step re-sends the system prompt, the tools, and every prior step's output and tool result. That growing context is why a 20-step agent can cost far more than it looks. Size it here, and see how much prompt caching claws back.
How to use this
Describe one agent run: tokens in the fixed system and tools prompt, tokens added per step, output per step, and the number of steps. Because each step re-sends the growing context, watch how fast the total climbs. Apply it by capping steps, trimming tool output, and caching the fixed prefix.
Estimated cost
Per task (no cache)—
Per task (cached)—
Monthly—