calc.dev.br

How much does Codex cost per month on the API?

Prices updated October 2026agent-cost.ts
Answer
$237.95 a month on GPT-5.6 Sol: 4 sessions/day, 40 steps, 22 days

Running Codex with GPT-5.6 Sol on the API, each step (60K context tokens, 90% cached, 800 output) costs $0.0676; a 40-step session, $2.70. At 4 sessions a day over 22 days: $237.95 a month.

agent-cost.ts

adjust the values

Each file read, command or edit is one request.

tokens

tokens

%

Examples
Silicon wafer, the basis of computer chips
Silicon wafer, the basis of computer chips. Photo: Maxence Pira / Unsplash

Plan or API?

On a plan, the agent is covered by the fixed price within usage limits; on the API you pay every token. People who code with an agent all day usually save with a Max plan; CI automation fits the API better.

Where the cost comes from

Every step resends instructions, history and the files read so far. Without caching the bill would be several times higher, which is why short, focused sessions cost less.

Open the full calculator: Agent cost

More questions like this

Frequently asked questions

How do I cut agent costs?

Start fresh sessions for new tasks, keep the instructions file short and use a smaller model for mechanical work.

Are the plans unlimited?

No. Claude and ChatGPT cap usage per time window (on Claude, 5-hour windows plus weekly limits). Bigger plans give more usage.

Estimate based on public prices as of October 2026. Token counts vary with the text and the model; check the official pricing page before you decide.