Skip to the content

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.

As stated
18 steps
$0.7304 cached$3.50 uncached
A long task
35 steps, stated
$1.62 cached$11.56 uncached
Ceiling
the loop cap, 60 steps
$31.82, nothing cached

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.

Prompt, in tokensCost so far
80,1000
$0.7304$0
turn 1turn 18
Read from cacheNew this turnCost so far, right axis
Every turn, as a table
TurnPromptReadNewThis turnSo far
112,100012,100$0.0705$0.0705
216,10012,1004,000$0.03242$0.10292
320,10016,1004,000$0.03322$0.13614
424,10020,1004,000$0.03402$0.17016
528,10024,1004,000$0.03482$0.20498
632,10028,1004,000$0.03562$0.2406
736,10032,1004,000$0.03642$0.27702
840,10036,1004,000$0.03722$0.31424
944,10040,1004,000$0.03802$0.35226
1048,10044,1004,000$0.03882$0.39108
1152,10048,1004,000$0.03962$0.4307
1256,10052,1004,000$0.04042$0.47112
1360,10056,1004,000$0.04122$0.51234
1464,10060,1004,000$0.04202$0.55436
1568,10064,1004,000$0.04282$0.59718
1672,10068,1004,000$0.04362$0.6408
1776,10072,1004,000$0.04442$0.68522
1880,10076,1004,000$0.04522$0.73044
Turn 18
prompt80,100 tokens
read from cache76,100 × $0.20 / 1M
written4,000 × $5.00 / 1M
output500 × $20.00 / 1M
task so far$0.73044
this turn$0.04522

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

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.