GPT-5.1 Codex

GPT-5.1-Codex is a specialized version of GPT-5.1 optimized for software engineering and coding workflows. It is designed for both interactive development sessions and long, independent execution of complex engineering tasks. The model supports building projects from scratch, feature development, debugging, large-scale refactoring, and code review. Compared to GPT-5.1, Codex is more steerable, adheres closely to developer instructions, and produces cleaner, higher-quality code outputs. Reasoning effort can be adjusted with the reasoning.effort parameter. Read the docs here

Codex integrates into developer environments including the CLI, IDE extensions, GitHub, and cloud tasks. It adapts reasoning effort dynamically—providing fast responses for small tasks while sustaining extended multi-hour runs for large projects. The model is trained to perform structured code reviews, catching critical flaws by reasoning over dependencies and validating behavior against tests. It also supports multimodal inputs such as images or screenshots for UI development and integrates tool use for search, dependency installation, and environment setup. Codex is intended specifically for agentic coding applications.

openai/gpt-5.1-codex
Organization
OpenAI
Family
gpt-codex
Providers
10
Context
400,000
Output limit
128,000
Knowledge
2024-09-30
Release
2025-11-13
Updated
2025-11-13
Weights
Closed
Input
text, image
Output
text
Capabilities
Tools, Reasoning, Structured

Providers

Compare every cataloged offer for this model, including its provider, route, token limits, price, and capabilities.

10 offers · USD per million tokens
ProviderModel IDContextOutputInput / output · 1MReasoningToolsStructuredDetails
Abacus
gpt-5.1-codex
400,000128,000$1.25 / $10.00YesYesYes
View
DevPass (LLM Gateway)
gpt-5.1-codex
400,000128,000$1.25 / $10.00YesYesYes
View
Eden AI
azure/gpt-5.1-codex
272,000128,000$1.25 / $10.00YesYesYes
View
Impossibl
openai/gpt-5.1-codex
400,000128,000$1.25 / $10.00YesYesYes
View
Kilo Gateway
openai/gpt-5.1-codex
400,000128,000$1.25 / $10.00YesYesYes
View
LLM Gateway
azure/gpt-5.1-codex
400,000272,000$1.25 / $10.00YesYesNo
View
NanoGPT
openai/gpt-5.1-codex
400,000128,000$1.25 / $10.00YesNoNo
View
Azurevia OpenRouter
openai/gpt-5.1-codex
unknown
400,000128,000$1.25 / $10.00YesYesYes
View
OrcaRouter
openai/gpt-5.1-codex
400,000128,000$1.25 / $10.00YesYesYes
View
Vercel AI Gateway
openai/gpt-5.1-codex
400,000128,000$1.25 / $10.00YesYesYes
View

Prices and limits apply to each offer. A dash means the value is not provided. OpenRouter offers show the hosting provider and routing channel separately.

Pricing

Compare token rates and cache charges across available routes and hosting configurations.

USD per million tokens
Input from$1.25Per 1M input tokens
Output from$10.00Per 1M output tokens
Available offers10Across 10 providers

Lowest listed input and output prices across the offers above; they may belong to different providers. These are base rates, before conditional pricing, discounts or additional fees.

Endpoint price comparisonLatest observed snapshot · 1 lowest-priced configuration
InputOutput
Azureazure
$1.25$10.00
openai/gpt-5.1-codexObserved
Input
$1.25
Output
$10.00
Cache read
$0.13
Additional fees and pricing conditions
web search
$0.01 / search
Hosting prices through OpenRouter All endpoints and cache rates
EndpointInput / 1MOutput / 1MCache read / 1MCache write / 1M
Azureazure$1.25$10.00$0.13—

Each row is a hosting configuration. Open an offer in Providers for its full pricing conditions and additional fees. Endpoint observations may differ from the routing catalog's base price.

Performance

Review reported latency and output-throughput percentiles from the latest observed rolling window.

Latest 30-minute observation

Time to first token · milliseconds

Latency distributionRolling 30-minute snapshot · 1 endpoint
P50P75P90P99
Azureazure
1,993–16,621.26 ms
All latency percentiles 1 endpoints
EndpointP50P75P90P99
Azureazure1,993 ms4,502.75 ms9,972.2 ms16,621.26 ms

Output throughput · tokens per second

Throughput distributionRolling 30-minute snapshot · 1 endpoint
P50P75P90P99
Azureazure
93–122.56 t/s
All throughput percentiles 1 endpoints
EndpointP50P75P90P99
Azureazure93 t/s105 t/s115 t/s122.56 t/s

Percentiles describe the observed request distribution. These are snapshots of a rolling window, not a historical time series.

Uptime

Compare successful request rates across the latest 5-minute, 30-minute, and 24-hour observations.

Successful requests by window
Availability by endpointCurrent overlapping windows · 1 endpoint
Endpoint5 minutes30 minutes24 hours
Azureazure

Reported by OpenRouter at the time of collection; rate-limited requests are excluded. A dash means no measurement was reported. This is not a live availability check.

Benchmarks

Review attributed evaluation results on each source's original scale.

External evaluations
openai/gpt-5.1-codexObserved
Design ArenaCategoryEloWin rateRank
agentsfullstack1,08644.5%30
agentsmobileapps1,19153.4%18
agentswebapps1,01144%40
modelscodecategories1,15854.6%73
modelsdataviz1,22255.9%47
modelsgamedev1,15150.5%70
modelsuicomponent1,24460%39
modelswebsite1,16856.1%76

Sources: Artificial Analysis and Design Arena, via OpenRouter. Scores retain their original scales and are not OpenAI Suite ratings.

Detailed evaluations

EvaluationConfigurationSourceResultsDetails
models · gamedevGPT-5.1 Codexopenai/gpt-5.1-codex-20251113Design Arena1,151 Elo
Details
models · websiteGPT-5.1 Codexopenai/gpt-5.1-codex-20251113Design Arena1,168 Elo
Details
models · datavizGPT-5.1 Codexopenai/gpt-5.1-codex-20251113Design Arena1,222 Elo
Details
models · codecategoriesGPT-5.1 Codexopenai/gpt-5.1-codex-20251113Design Arena1,158 Elo
Details
models · uicomponentGPT-5.1 Codexopenai/gpt-5.1-codex-20251113Design Arena1,244 Elo
Details

Sources: Artificial Analysis, Design Arena and OpenRouter. Evaluation configurations and scales differ; results are not interchangeable. Updated Oct 4, 2026.

Technical details & API

Explore specifications, supported parameters, reasoning controls, and API identifiers for each OpenRouter route.

Current route specifications
openai/gpt-5.1-codexObserved
Context
400,000
Maximum output
128,000
Tokenizer
GPT
Input
text, image
Output
text
Moderation
No
Added to OpenRouter
2025-11-13
Base URLhttps://openrouter.ai/api/v1
Model IDopenai/gpt-5.1-codex
Version IDopenai/gpt-5.1-codex-20251113

Reasoning

Required
Yes
Enabled by default
Not reported
Default effort
medium
Supported efforts
high, medium, low

Supported parameters

  • include_reasoning
  • max_completion_tokens
  • reasoning
  • reasoning_effort
  • response_format
  • seed
  • structured_outputs
  • tool_choice
  • tools
  • verbosity

Frequently asked questions

Answers based on the model metadata and serving offers currently in the catalog.

How much does GPT-5.1 Codex cost?

Listed rates start at $1.25 per million input tokens and $10.00 per million output tokens. Prices vary by provider and configuration; see Pricing for details.

Which providers offer GPT-5.1 Codex?

There are 10 cataloged offers across 10 providers. Compare model IDs, prices and limits in Providers.

What is the context window?

The cataloged model context is 400,000 tokens. Each serving endpoint may apply a different limit.

Does it support tools and structured output?

Tool calling: Yes. Structured output: Yes. Support can vary by endpoint.

Catalog history · 2 recorded revisions

Metadata observations since this model was first cataloged. These are not model release versions.

  • · 71664858efe1
  • · 5c41ce58c613