OpenAI logo

GPT-5.1 Codex Max


GPT-5.1 Codex Max is OpenAI logoOpenAI's language model with a 400K context window and up to 128K output tokens, available from 5 providers, starting at $1.25 / 1M input and $10.00 / 1M output. The highest-capability tier of GPT-5.1 Codex, purpose-built for demanding agentic coding workflows and available only via the Responses API.
Spec
Canonical IDopenai-gpt-5-1-codex-max
TypeLanguage
StatusActive
CreatorOpenAIOpenAI
Providers
Context Window400K tokens
Max Output128K tokens
Input ModalitiesImagePdfText
Output ModalitiesText
Reasoning Effortsdefaultminimalxhigh
Release Date · 5 months ago
Knowledge Cutoff

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

ProviderStandardBatch
Input
$ / 1M
Output
$ / 1M
Cache Read
$ / 1M
Input
$ / 1M
Cache Read
$ / 1M
Azure AI Foundry logo
Azure AI Foundry
gpt-5.1-codex-max
$1.25$10.00$0.125$0.625$0.063
GitHub Models logo
GitHub Models
gpt-5.1-codex-max
$1.25$10.00$0.125
OpenAI logo
OpenAI
gpt-5.1-codex-max
$1.25$10.00$0.125
OpenRouter logo
OpenRouter
openai/gpt-5.1-codex-max
$1.25$10.00$0.125
Vercel AI Gateway logo
Vercel AI Gateway
openai/gpt-5.1-codex-max
$1.25$10.00$0.125

Regional pricing

Provider-specific pricing that varies by region.
Azure AI Foundry logo
Azure AI Foundry
27 regions
RegionStandardBatch
Input
$ / 1M
Output
$ / 1M
Cache Read
$ / 1M
Input
$ / 1M
Cache Read
$ / 1M
Global
Global$1.25$10.00$0.125
Africa
South Africa North (Johannesburg)/ southafricanorth$1.25$0.125$0.625$0.063
Asia Pacific
Australia East (New South Wales)/ australiaeast$1.25$0.125$0.625$0.063
Japan East (Tokyo, Saitama)/ japaneast$1.25$0.125$0.625$0.063
Korea Central (Seoul)/ koreacentral$1.25$0.125$0.625$0.063
South India (Chennai)/ southindia$1.25$0.125$0.625$0.063
Canada
Canada East (Quebec)/ canadaeast$1.25$0.125$0.625$0.063
Europe
France Central (Paris)/ francecentral$1.38$0.138$0.625$0.063
Germany West Central (Frankfurt)/ germanywestcentral$1.25$0.138$0.688$0.063
Norway East (Norway)/ norwayeast$1.25$0.125$0.625$0.063
Poland Central (Warsaw)/ polandcentral$1.38$0.138$0.688$0.063
Spain Central (Madrid)/ spaincentral$1.25$0.125$0.625$0.069
Sweden Central (Gävle)/ swedencentral$1.25$0.138$0.625$0.069
Switzerland North (Zurich)/ switzerlandnorth$1.25$0.125$0.625$0.063
UK South (London)/ uksouth$1.25$0.125$0.625$0.063
West Europe (Netherlands)/ westeurope$1.38$0.125$0.625$0.069
Middle East
UAE North (Dubai)/ uaenorth$1.25$0.125$0.625$0.063
South America
Brazil South (Sao Paulo State)/ brazilsouth$1.25$0.125$0.625$0.063
US
Central US (Iowa)/ centralus$1.25$0.138$0.625$0.063
East US (Virginia)/ eastus$1.38$0.138$0.688$0.063
East US 2 (Virginia)/ eastus2$1.38$0.125$0.625$0.063
North Central US (Illinois)/ northcentralus$1.38$0.125$0.625$0.069
South Central US (Texas)/ southcentralus$1.38$0.125$0.625$0.069
US Gov Arizona/ usgovarizona$1.72$0.172
US Gov Virginia/ usgovvirginia$1.72$0.172
West US (California)/ westus$1.38$0.138$0.625$0.069
West US 3 (Phoenix)/ westus3$1.38$0.125$0.625$0.069

Cost Calculator

Preset:
Compares every provider & tier in USD

Versions

VersionReleasedContextInput / 1MOutput / 1MStatus
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.4 Pro1.1M$30.00$180.00Available
GPT-5.4 3.51.1MAvailable
GPT-5.4 Pro 3.51.1MAvailable
GPT-5.3 Chat128K$1.75$14.00Available
GPT-5.3 Codex400K$1.75$14.00Available
GPT-5.3 Codex Spark128KAvailable
GPT-5.3 Instant128KAvailable
GPT-5.1 Codex Max400K$1.25$10.00Current

Model IDs