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
StatusActive
CreatorOpenAIOpenAI
Providers
Context Window400K tokens
Max Output128K tokens
Input ModalitiesImagePDFText
Output ModalitiesText
Reasoning Effortsdefaultminimal
Release Date · 7 months ago
Knowledge Cutoff · 2 years ago
Benchmarks
Intelligence Index
34.7
#54
Math Index
MMLU-Pro
0.9
#21
GPQA
0.9
#45
HLE
0.2
#55
LiveCodeBench
0.8
#15
IFBench
0.7
#59
Time to First Token
4.38s
#441
SciCode
0.4
#89
AIME 2025
1.0
#8
LCR
0.7
#39
TerminalBench Hard
0.3
#64
TAU2
0.8
#101
Output TPS

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
Web Search
$ / request
Azure AI Foundry logo
Azure AI Foundry
azure/gpt-5.1-codex
$1.25$10.00$0.125N/A
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.125N/A

Cost Calculator

US Dollar ($)
Preset:

Versions

VersionReleasedContextInput / 1MOutput / 1MStatus
GPT-5.51.1M$5.00$30.00Available
GPT-5.4 Mini1.1M$0.750$4.50Available
GPT-5.4 Nano1.1M$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.00Available
GPT-5.2410K$1.75$14.00Available
GPT-5.1 Codex400K$1.25$10.00Current
GPT-5.1410K$1.25$10.00Available
GPT-5.1 Codex Mini400K$0.250$2.00Available
GPT-5 Codex400K$0.125$10.00Available

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