Estimate an agent's loop
State the loop: how many steps, and how much each one adds. This prices every turn at your providers' own rates and shows where the bill bends: a long-prompt price tier, the model's context window, a cache that expired. It does not predict how many steps your agent will take. Nobody can. No account.
This is a reference loop, priced on two example providers on catalog 2026-12-05.1. Choose yours, or change a number, and it becomes your loop.
One task, 18 steps
between $0.7304 and $3.50
Each figure is two bounds: every turn read from the cache, and nothing cached. With a working cache your bill lies between them; where depends on how often turns arrive inside the cache's life.
On anthropic:claude-opus-5-5, priced from curated:anthropic as of 2026-11-17.
One axis for every figure, on a log scale. The ceiling is exposure with no other brake, not an expectation.
What each turn sends
Each bar is one request. It carries everything before it, so the prompt grows each turn and the bill grows faster than the steps do.
Every turn, as a table
| Turn | Prompt | Read | New | This turn | So far |
|---|---|---|---|---|---|
| 1 | 12,100 | 0 | 12,100 | $0.0705 | $0.0705 |
| 2 | 16,100 | 12,100 | 4,000 | $0.03242 | $0.10292 |
| 3 | 20,100 | 16,100 | 4,000 | $0.03322 | $0.13614 |
| 4 | 24,100 | 20,100 | 4,000 | $0.03402 | $0.17016 |
| 5 | 28,100 | 24,100 | 4,000 | $0.03482 | $0.20498 |
| 6 | 32,100 | 28,100 | 4,000 | $0.03562 | $0.2406 |
| 7 | 36,100 | 32,100 | 4,000 | $0.03642 | $0.27702 |
| 8 | 40,100 | 36,100 | 4,000 | $0.03722 | $0.31424 |
| 9 | 44,100 | 40,100 | 4,000 | $0.03802 | $0.35226 |
| 10 | 48,100 | 44,100 | 4,000 | $0.03882 | $0.39108 |
| 11 | 52,100 | 48,100 | 4,000 | $0.03962 | $0.4307 |
| 12 | 56,100 | 52,100 | 4,000 | $0.04042 | $0.47112 |
| 13 | 60,100 | 56,100 | 4,000 | $0.04122 | $0.51234 |
| 14 | 64,100 | 60,100 | 4,000 | $0.04202 | $0.55436 |
| 15 | 68,100 | 64,100 | 4,000 | $0.04282 | $0.59718 |
| 16 | 72,100 | 68,100 | 4,000 | $0.04362 | $0.6408 |
| 17 | 76,100 | 72,100 | 4,000 | $0.04442 | $0.68522 |
| 18 | 80,100 | 76,100 | 4,000 | $0.04522 | $0.73044 |
Each line is tokens at the rate they bill at, per 1M, before fees. This turn's figure is the server's, after the provider's fees and retries where those apply.
The whole task:
18 turns: (80,100 cache write × 5.00 + 9,000 output × 20.00 + 749,700 cache read × 0.20) / 1M = 0.73044
Where the cached bill goes
- Tool definitions, sent on every turn10%$0.0756
- System prompt3%$0.0210
- Earlier turns, sent again15%$0.1108
- New tokens47%$0.3430
- Output25%$0.1800
A month is never priced on a guessed volume. State tasks a month in the form to see one.
Assumed
- The model is chosen for the purpose agent-with-tools: this form names none.
- No cache life was stated: the cached figure writes at the 5-minute rate.
- A tool the provider runs itself (its web search, its code execution) is billed by the call or the session on top of tokens: no such fee is in any figure.
How a loop is priced: what each turn is billed at, and the two bounds.