GPT-5 Codex is
OpenAI's language model with a 400K context window and up to 128K output tokens, available from 4 providers, starting at $1.25 / 1M input and $10.00 / 1M output. A GPT-5 variant optimized for agentic coding tasks in Codex and similar environments, available exclusively through the Responses API.
openai-gpt-5-codex |
| Language |
| Active |
| 400K tokens |
| 128K tokens |
| ImagePdfText |
| Text |
| defaultminimal |
| · 7 months ago |
44.6#11 |
38.9#17 |
98.7#1 |
0.9#7 |
0.8#25 |
0.3#12 |
0.8#6 |
0.7#9 |
8.51s#320 |
0.4#30 |
1.0#1 |
0.7#9 |
0.4#13 |
0.9#27 |
180.2#22 |
Capabilities
Input3/5
✓
✓
·
·
✓
Output1/5
✓
·
·
·
·
Capabilities7/13
✓
·
✓
✓
✓
✓
✓
·
·
·
·
✓
·
Pricing by Provider
| Provider | Standard | ||
|---|---|---|---|
| Input $ / 1M | Output $ / 1M | Cache Read $ / 1M | |
Azure AI Foundry | $1.25 | $10.00 | $0.125 |
OpenAI | $1.25 | $10.00 | $0.125 |
OpenRouter | $1.25 | $10.00 | $0.125 |
Vercel AI Gateway | $1.25 | $10.00 | $0.125 |
Regional pricing
Provider-specific pricing that varies by region.
Azure AI Foundry
13 regions
| Region | Standard | ||
|---|---|---|---|
| Input $ / 1M | Output $ / 1M | Cache Read $ / 1M | |
| Global | |||
| Global | $1.25 | $10.00 | $0.125 |
| Europe | |||
| France Central (Paris)/ francecentral | $1.38 | — | — |
| Germany West Central (Frankfurt)/ germanywestcentral | $1.38 | — | — |
| Poland Central (Warsaw)/ polandcentral | $1.38 | — | — |
| Spain Central (Madrid)/ spaincentral | $1.38 | — | — |
| Sweden Central (Gävle)/ swedencentral | $1.38 | — | — |
| West Europe (Netherlands)/ westeurope | $1.38 | — | — |
| US | |||
| East US (Virginia)/ eastus | $1.38 | — | — |
| East US 2 (Virginia)/ eastus2 | $1.38 | — | — |
| North Central US (Illinois)/ northcentralus | $1.38 | — | — |
| South Central US (Texas)/ southcentralus | $1.38 | — | — |
| West US (California)/ westus | $1.38 | — | — |
| West US 3 (Phoenix)/ westus3 | $1.38 | — | — |
Cost Calculator
Preset:
Compares every provider & tier in USD
Versions
| Version | Released | Context | Input / 1M | Output / 1M | Status |
|---|---|---|---|---|---|
| GPT-5.4 Mini | 1.1M | $0.750 | $4.50 | Available | |
| GPT-5.4 Nano | 1.1M | $0.200 | $1.25 | Available | |
| GPT-5.4 | 1.1M | $2.50 | $15.00 | Available | |
| GPT-5.4 Pro | 1.1M | $30.00 | $180.00 | Available | |
| GPT-5.4 3.5 | — | 1.1M | — | — | Available |
| GPT-5.4 Pro 3.5 | — | 1.1M | — | — | Available |
| GPT-5.3 Chat | 128K | $1.75 | $14.00 | Available | |
| GPT-5.3 Codex | 400K | $1.75 | $14.00 | Available | |
| GPT-5.3 Codex Spark | — | 128K | — | — | Available |
| GPT-5.3 Instant | — | 128K | — | — | Available |
| GPT-5 Codex | 400K | $1.25 | $10.00 | Current |