Favicon for openai

OpenAI: GPT-5.1-Codex

openai/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.

Modalities
In / out price
$1.25 / $10per 1M
Context
400K
Released
Nov 13, 2025

Providers

This model is hosted by one provider. OpenRouter forwards every request without routing.

Pricing

The average price customers actually pay for this model, next to the prices providers post. Caching and discounts mean the price actually paid is often well below the listed one.

Weighted average

Input
$0.1862/M tokens
Output
$10/M tokens
Price history
No effective price data for this selection

Performance

Throughput is how fast the model writes (tokens per second — higher is better). Latency is total round-trip time (lower is better). TTFT is time-to-first-token — how long before you see anything appear (lower is better).

Throughput
63tok/s

P50, best across providers

Latency
2.20s

P50, best provider

Uptime

Uptime is the percentage of the past 3 days that at least one provider was responding to requests. Availability is the percentage of time that inference was successfully served. OpenRouter continuously monitors and uses the next-best provider when one returns an error.

Uptime (3d)The model was reachable. Request routed to a provider.
100.00%
Availability (3d)The model returned inference from any provider. Errors and empty responses count against it.
99.91%

Availability over the last 3 days

Last 72 hours
Availability 99.91%
3 Days Ago2 Days AgoYesterdayNow

Availability over the last 24 hours

OpenRouter Availability
99.87%

When an error occurs in an upstream provider, we can recover by routing to another healthy provider, if your request filters allow it. You can access per-provider uptime data programmatically through the Endpoints API. Learn more about our load balancing and provider routing options.

Benchmarks

Scores on standardized evaluations and this model’s own outputs on shared benchmark prompts. Higher percentages are better — and each rank shows where this model lands among the models evaluated on that source.

Benchmark score summary for OpenAI: GPT-5.1-Codex (Artificial Analysis, Design Arena and Vals AI)
SourceBenchmarkScore
Artificial AnalysisGPT-5.1 Codex (High) GPQA Diamond86.0%
Artificial AnalysisGPT-5.1 Codex (High) HLE25.7%
Artificial AnalysisGPT-5.1 Codex (High) IFBench70.0%
Artificial AnalysisGPT-5.1 Codex (High) τ²-Bench Telecom83.0%
Artificial AnalysisGPT-5.1 Codex (High) AA-LCR69.3%
Artificial AnalysisGPT-5.1 Codex (High) CritPt5.7%
Artificial AnalysisGPT-5.1 Codex (High) LiveCodeBench84.9%
Artificial AnalysisGPT-5.1 Codex (High) Terminal-Bench Hard34.8%
Artificial AnalysisGPT-5.1 Codex (High) MMLU-Pro86.0%
Artificial AnalysisGPT-5.1 Codex (High) AIME 202595.7%
Design ArenaGPT-5.1 Codex Agents Arena Full Stack Elo1086
Design ArenaGPT-5.1 Codex Agents Arena Mobile Apps Elo1191
Design ArenaGPT-5.1 Codex Agents Arena Webapps Elo995
Design ArenaGPT-5.1 Codex Models Arena Code Categories Elo1142
Design ArenaGPT-5.1 Codex Models Arena Data Visualization Elo1210
Design ArenaGPT-5.1 Codex Models Arena Game Development Elo1127
Design ArenaGPT-5.1 Codex Models Arena UI Component Elo1227
Design ArenaGPT-5.1 Codex Models Arena Website Elo1154
Vals AIGPT 5.1 Codex IOI v13.7%
Vals AIGPT 5.1 Codex LiveCodeBench85.5%
Vals AIGPT 5.1 Codex Terminal-Bench 1.057.5%
Vals AIGPT 5.1 Codex Vibe Code Bench v1.113.1%

Apps

Public apps that send the most traffic to this model. Good signal for what real production workloads look like — and a hint at which use cases this model is best suited for.

1.
Favicon for https://nousresearch.com
Hermes Agent
118Mtokens
2.
Favicon for https://roocode.com/
Roo Code
76.4Mtokens
3.
61.4Mtokens
4.
Favicon for https://pi.dev/
pi
61Mtokens
5.
Favicon for https://kilocode.ai/
Kilo Code
59.3Mtokens
Rest of OpenRouter
81.8M
Top 5 Apps
23.1M

Activity

Token volume and request traffic to this model over time.

API

Drop-in code to call this model. OpenRouter's API is OpenAI-compatible — most SDKs work by just swapping the base URL. The only thing that changes between models is the model slug below.

Not currently available through EU in-region routing. In-region routing docs

Frequently asked questions