/ tools

AI agent token cost calculator

/ calculator

Calculator

Your workload

calls

tokens

earlier results re-sent per turn

× 30 days for monthly

Priced at Claude Sonnet 5.5: $2 in, $10 out per 1M tokens (retrieved 2026-10-13; edit in Advanced inputs)

Model rates ($ / 1M tokens)

$ / 1M input tokens

$ / 1M output tokens

$ / 1M cached input tokens

Defaults: Claude Sonnet 5.5 standard rates in USD, retrieved 2026-10-13, from the vendor pricing page. Cached-input default is the cache-hit price; batch default is the 50% batch discount. If the vendor page differs from the default, trust the vendor page.

One task

tokens

tokens the model writes to call each tool

tokens the model writes once per worker

Overhead, caching, batching

% of calls re-run

parallel agents

% of input at the cached rate

Independent calls only; the discount applies to input and output

tokens the script returns, for the raw vs. script comparison

Results (30 runs a month)

needs input: Tool result tokens per call, Context replay, Payload size per call, Tool-call output per call, Final answer tokens, Retry rate

Estimate per month
needs input
Monthly low-high range
needs input
Estimate per run (lower bound)
needs input
Input tokens per run
needs input
Output tokens per run
needs input
Tool-call overhead per run
needs input
Orchestration / worker estimate
needs input
/ roi

What the swarm saves

Each lever reads a default we measured in one of our posts, so edit any field to match your setup. The order is dreaming, then Code Mode, then PR review, so no token counts twice.

Code Mode

% of the workload cost above

Default measured: per-run cost roughly halved, one daily triage job (Code Mode token savings)

Saving per month
needs input
Two-model PR review

reviews a month

$ per review today

$ per review with two-model triage

Default measured: $0.26 for 14 PRs, 2026-10-21 (Two small models triage every PR)

Saving per month
needs input
Dreaming

agent instructions sent with every call

% of instruction tokens removed

Default measured: instructions 52% shorter on average, 28 nights (How we got to 60% deterministic dreaming)

Saving per month
needs input
Saving per month
needs input
Saving per year
needs input
Monthly spend: today → with the swarm
needs input
Share of spend saved
needs input

These are our numbers, not yours. The 50% covers one daily triage job, $0.02 per PR came from 14 PRs, and 52% covers our agents' instructions; dreaming's own nightly run cost is not subtracted.

needs input: Tool result tokens per call, Context replay, Payload size per call, Tool-call output per call, Final answer tokens, Retry rate, Script summary size

Raw tool calls
needs input
Calls per worker
needs input
Input tokens
needs input
Output tokens
needs input
Tool-call overhead
needs input
Aggregated script
needs input
Calls per worker
needs input
Input tokens
needs input
Output tokens
needs input
Tool-call overhead
needs input

per worker: input = calls × (instructions + payload + tool result) + replay; output = calls × tool-call output + one final answer; cost = (uncached input × input rate + cached input × cached rate + output × output rate) × batch × (1 + retry). run = workers × per worker. month = run × runs per day × 30. high = caching off, retry × 2, capped at 100%. Aggregated script: one call per worker, its summary read once as input, no replay. Comparison columns are per month. Savings: dreaming = month − month with instructions × (1 − instruction cut); Code Mode = (month − dreaming) × cost cut; PR review = PRs × (your cost − swarm cost), counted only when both are set; total = sum. Dollars round to cents (four decimals under $1); tokens round to whole numbers. Latency and rate-limit waits are not priced.

The calculator models scenarios; it does not measure yours. See the measured Code Mode case.