Coding agent cost calculator

Compare two sets of token counts at the same rates. Total input includes cached input. Enter output separately.

Token usage and rates
Baseline
Comparison
Credits per million tokens
Baseline estimate
11.23 credits
Comparison estimate
10.75 credits
Cost change
4.31% lower0.48 credits lower

How the estimate works

Subtract cached tokens from total input to get uncached input. Multiply each of the three token counts by its rate per million, then add the three costs.

The starting values come from 24 Codex runs, 12 with the default instructions and 12 with shorter ones. The rates are the Standard-tier credits I recorded on October 1, 2026. Use your own rates to compare another workload. See the experiment and its results.