OpenAI's Codex is an AI coding agent integrated into ChatGPT that runs tasks in a cloud sandbox — reading repositories, writing code, running tests, and producing pull requests autonomously. Pricing changed in April 2026 when OpenAI switched from per-message billing to token-based billing.
What is included in each ChatGPT plan?
Codex agent access comes with existing ChatGPT subscriptions. You do not need a separate product or credit purchase to use it.
| Plan | Monthly Cost | Codex Access |
|---|---|---|
| Free | $0 | Limited Codex Mini access with daily cap |
| Plus | $20 | Usage-limited; purchase additional credits if exhausted |
| Pro | $100 | 5x usage vs. Plus; all Pro features |
| Pro | $200 | 20x usage vs. Plus; highest subscription limits |
| Business | ~$30/user | Org-wide access, admin controls, data not used for training |
| Enterprise | Custom | No fixed rate limits; scales with purchased credits |
Starting April 2, 2026, Codex usage bills based on API token consumption rather than message counts. Additional credits can be purchased if you exhaust plan limits.
What are the Codex API token rates?
API access bills per million tokens with separate input and output pricing:
| Model | Input per 1M tokens | Output per 1M tokens |
|---|---|---|
| GPT-5.1-Codex-Mini | $0.25 | $2.00 |
| GPT-5.3-Codex | $1.75 | $14.00 |
| GPT-5.4 Mini | $0.75 | $4.50 |
| GPT-5.4 | $2.50 | $15.00 |
| GPT-5.5 | $5.00 | $30.00 |
Pricing via OpenRouter. Rates update automatically.
For most coding tasks, GPT-5.4-Mini offers the best cost-to-performance ratio. GPT-5.3-Codex and GPT-5.4 handle complex multi-file reasoning and agentic loops, while GPT-5.5 is reserved for the highest-stakes tasks where maximum capability matters.
Cached input tokens — context that repeats across turns in a session — cost approximately 10% of the standard input rate. In agentic coding sessions where repository context is carried across many turns, caching is the most impactful cost optimization available.
How much does Codex cost in practice?
Published data from enterprise deployments shows average spend of $100–$200 per developer per month, with significant variance based on workflow intensity.
In ChatGPT auth mode (the default), Codex usage draws from your plan's included limits at no extra charge. If you switch to API key mode, you are billed at standard token rates.
The Codex Pro 2x promotional pricing ended May 31, 2026. Users on the Pro plan at $200/month saw effective capacity halve from June 1 at the same price.
What are common mistakes to avoid?
- Using GPT-5.4 or GPT-5.5 via the API for tasks that GPT-5.1 Codex mini or GPT-5.4-Mini handles adequately
- Not enabling prompt caching for sessions where repository context repeats across many turns
- Switching to API key mode without tracking per-session token costs
- Running Codex in a loop without iteration limits, which can exhaust plan credits rapidly
- Not purchasing additional credits before hitting hard limits in production workflows
