GPT-5 Codex is OpenAI's language model with a 400K context window and up to 128K output tokens, available from 3 providers, starting at $0.125 / 1M input and $10.00 / 1M output. A GPT-5 variant optimized for agentic coding tasks in Codex environments, available via the Responses API with regularly updated snapshots.
Specifications
Canonical IDopenai-gpt-5-codex
TypeLanguage
StatusDeprecated
CreatorOpenAIOpenAI
Providers
Context Window400K tokens
Max Output128K tokens
Input ModalitiesImagePDFText
Output ModalitiesText
Reasoning Effortsdefaultminimal
Release Date · 1 year ago
Knowledge Cutoff · 2 years ago
Deprecation Date
Benchmarks
Intelligence Index
#121
Math Index
#2
MMLU-Pro
#19
GPQA
#122
HLE
#108
LiveCodeBench
#21
IFBench
#35
Time to First Token
#552
SciCode
#151
AIME 2025
#2
LCR
#132
TerminalBench Hard
#51
TAU2
#85
Output TPS
#53

Capabilities

Input3/5
Text✓
Image✓
Audio·
Video·
PDF✓
Output1/5
Text✓
Image·
Audio·
Video·
Embedding·
Capabilities7/13
Reasoning✓
Adaptive Reasoning·
Function Calling✓
Parallel Function Calling✓
Structured Outputs✓
Native JSON Schema✓
Web Search✓
URL Context·
Computer Use·
Code Execution·
File Search·
Prompt Caching✓
Assistant Prefill·

Pricing by Provider

US Dollar ($)
Per 1M tokens
ProviderStandard
Input
$ / 1M
Output
$ / 1M
Cache Read
$ / 1M
Azure AI Foundry logo
Azure AI Foundry
openai:gpt5codex
$1.25$11.00$0.138
Azure AI Foundry logo
Azure AI Foundry
openai:gpt5codexccchd
$0.125N/AN/A
OpenAI logo
OpenAI
gpt-5-codex
$1.25$10.00$0.125
Vercel AI Gateway logo
Vercel AI Gateway
openai/gpt-5-codex
$1.25$10.00$0.13

Cost Calculator

US Dollar ($)
Preset:

Versions

VersionReleasedContextInput / 1MOutput / 1MStatus
GPT-6.1 Sol1.1M$2.00$10.00Available
GPT-6 Sol1.1M$2.00$10.00Available
GPT-6 Luna1.1M$0.100$0.500Available
GPT-6 Astra1.1M$10.00$50.00Available
GPT-5.6 Sol1.1M$4.00$20.00Available
GPT-5.6 Terra1.1M$2.00$12.00Available
GPT-5.6 Luna1.1M$0.200$1.20Available
GPT-5.51.1M$5.00$30.00Available
GPT-5.4 Mini400K$0.750$4.50Available
GPT-5.4 Nano400K$0.200$1.25Deprecating
GPT-5 Codex400K$0.125$10.00Current

Model IDs

azure/eu/gpt-5-codex
azure/gpt-5-codex
azure/us/gpt-5-codex
gpt-5-codex
openai-gpt-5-codex
openai/gpt-5-codex
openai/gpt-5-codex:batch
openrouter/openai/gpt-5-codex