Favicon for openai

OpenAI: GPT-5.2-Codex

openai/gpt-5.2-codex

GPT-5.2-Codex is an upgraded version of GPT-5.1-Codex 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, 5.2-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.75 / $14per 1M
Context
400K
Released
Jan 14, 2026

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.378/M tokens
Output
$14/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
55tok/s

P50, best across providers

Latency
1.45s

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.44%

Availability over the last 3 days

Last 72 hours
Availability 99.44%
3 Days Ago2 Days AgoYesterdayNow

Availability over the last 24 hours

OpenRouter Availability
99.53%

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.2-Codex (Artificial Analysis, Design Arena and Vals AI)
SourceBenchmarkScore
Artificial AnalysisGPT-5.2 Codex (Xhigh) GPQA Diamond89.9%
Artificial AnalysisGPT-5.2 Codex (Xhigh) HLE35.7%
Artificial AnalysisGPT-5.2 Codex (Xhigh) IFBench77.6%
Artificial AnalysisGPT-5.2 Codex (Xhigh) τ²-Bench Telecom92.1%
Artificial AnalysisGPT-5.2 Codex (Xhigh) AA-LCR82.3%
Artificial AnalysisGPT-5.2 Codex (Xhigh) CritPt8.7%
Artificial AnalysisGPT-5.2 Codex (Xhigh) Terminal-Bench Hard37.1%
Design ArenaGPT-5.2 Codex Agents Arena Androidnative Elo1176
Design ArenaGPT-5.2 Codex Agents Arena Full Stack Elo965
Design ArenaGPT-5.2 Codex Agents Arena Godotgamedev Elo1142
Design ArenaGPT-5.2 Codex Agents Arena Mobile Apps Elo1082
Design ArenaGPT-5.2 Codex Agents Arena Webapps Elo1027
Vals AIGPT 5.2 Codex LiveCodeBench88.0%
Vals AIGPT 5.2 Codex SWE-bench72.4%
Vals AIGPT 5.2 Codex Vibe Code Bench v1.137.9%

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://openai.com/codex
Codex
151Mtokens
2.
Favicon for https://nousresearch.com
Hermes Agent
124Mtokens
3.
Favicon for https://openwebui.com/
Open WebUI
87.7Mtokens
4.
Favicon for https://openrouter.ai/images/apps/cline.png
Cline
78.4Mtokens
5.
Favicon for https://kilocode.ai/
Kilo Code
74.2Mtokens
Rest of OpenRouter
28.4M
Top 5 Apps
477K

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