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 $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 · 12 months ago
Knowledge Cutoff · 2 years ago
Deprecation Date
Benchmarks
Intelligence Index
#84
Math Index
#2
MMLU-Pro
#19
GPQA
#113
HLE
#85
LiveCodeBench
#21
IFBench
#36
Time to First Token
#248
SciCode
#123
AIME 2025
#2
LCR
#77
TerminalBench Hard
#51
TAU2
#86
Output TPS
#480

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$10.00$0.125
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
OpenRouter logo
OpenRouter
openrouter/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-5.6 Sol1.1M$2.00$10.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.25Available
GPT-5.41.1M$2.50$15.00Available
GPT-5.3 Codex400K$1.75$14.00Available
GPT-5.2 Codex400K$1.75$14.00Deprecated
GPT-5.2410K$1.75$14.00Available
GPT-5 Codex400K$0.125$10.00Current

Model IDs

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