Benchmarks tell you which model is smarter. They don't tell you what a working day in Claude Code or Codex CLI costs. So I priced one realistic agent session on four current models, at the official API rates, and showed my working.
Disclosure: I run Model.sale , a prepaid API gateway, so I also show what the same session costs there, including the cases where the official API is cheaper.
The session
A medium refactor in a coding agent:
Tokens Count What it is
Fresh input 150,000 your prompts, newly read files, tool results
Cached input 2,000,000 the same context re-sent on every agent step
Output 60,000 code, explanations, tool calls
That shape is typical. Agents re-send the whole conversation on every step, so cached input dwarfs everything else, and output is small.
Official prices for that session
Rates per 1M tokens (input / cached input / output), checked 2026-10-01 on the Anthropic and OpenAI pricing pages.β¦