GPT-5.1 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.1 variant purpose-built for agentic coding tasks in Codex environments, available exclusively via the Responses API.
Specifications
Canonical IDopenai-gpt-5-1-codex
TypeLanguage
StatusDeprecated
CreatorOpenAIOpenAI
Providers
Context Window400K tokens
Max Output128K tokens
Input ModalitiesImagePDFText
Output ModalitiesText
Reasoning Effortsdefaultminimal
Release Date · 11 months ago
Knowledge Cutoff · 2 years ago
Deprecation Date
Benchmarks
Intelligence Index
#132
Math Index
#10
MMLU-Pro
#24
GPQA
#88
HLE
#116
LiveCodeBench
#19
IFBench
#67
Time to First Token
#554
SciCode
#169
AIME 2025
#10
LCR
#156
TerminalBench Hard
#73
TAU2
#108
Output TPS
#91

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
ProviderStandardFast
Input
$ / 1M
Output
$ / 1M
Cache Read
$ / 1M
Web Search
$ / request
Input
$ / 1M
Output
$ / 1M
Cache Read
$ / 1M
Azure AI Foundry logo
Azure AI Foundry
azure/eu/gpt-5.1-codex
$1.38$11.00$0.138N/AN/AN/AN/A
Azure AI Foundry logo
Azure AI Foundry
azure/gpt-5.1-codex
$1.25$10.00$0.125N/AN/AN/AN/A
Azure AI Foundry logo
Azure AI Foundry
azure/gpt-5.1-codex-2025-11-13
————$2.50$20.00$0.25
OpenAI logo
OpenAI
gpt-5.1-codex
$1.25$10.00$0.125N/A———
OpenRouter logo
OpenRouter
openai/gpt-5.1-codex
$1.25$10.00$0.13$0.010———
Vercel AI Gateway logo
Vercel AI Gateway
openai/gpt-5.1-codex
$1.25$10.00$0.13N/A———

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.1 Codex400K$1.25$10.00Current

Model IDs

azure/eu/gpt-5.1-codex
azure/global/gpt-5.1-codex
azure/gpt-5.1-codex
azure/gpt-5.1-codex-2025-11-13
azure/us/gpt-5.1-codex
gpt-5-1-codex
gpt-5.1-codex
openai-gpt-5-1-codex
openai/gpt-5.1-codex
openrouter/openai/gpt-5.1-codex