AI Agent Experiment Cost Calculator

Agent building is early: you iterate on prompts, tools, memory, and loops, and every iteration burns tokens. Simulate context growth per step and see what your experiments cost per run, per day, and per month across models.

Model pricing

Sample prices are illustrative. Edit to match current provider pricing ($ per 1M tokens).

ModelInput $/1MOutput $/1M

Loop simulator

Presets (worked examples, assumptions applied to all fields):

Context growth

Live costs

How this is calculated
input(step i) = system_prompt + history_before_step_i
full history:   history grows by (input_of_prev_user_turns + outputs)
sliding window: history = min(accumulated, window_size)
cost(run) = sum_i[ input_i * in_price/1e6 + out_tokens * out_price/1e6 ]
cost(day) = cost(run) * runs_per_experiment * experiments_per_day
cost(month) = cost(day) * 30

Monthly comparison

Export

FAQ

Why do agent loops get expensive?

Every step in an agent loop re-sends the system prompt, tool schemas, and the whole conversation so far. A 10-step run does not cost 10x one call; it costs far more, because input tokens compound each step.

How does context growth multiply cost?

With full history, step N pays for everything from steps 1..N-1 again as input. Input cost grows roughly quadratically with step count. Sliding windows cap that growth at the window size, trading recall for a linear cost curve.

Enjoy this tool? Build your own with Super