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.

openai/gpt-5.2-codex
Organization
OpenAI
Family
gpt-codex
Providers
11
Context
400,000
Output limit
128,000
Knowledge
2025-08-31
Release
2025-12-11
Updated
2025-12-11
Weights
Closed
Input
text, image, pdf
Output
text
Capabilities
Tools, Reasoning, Structured

Providers

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

11 offers · USD per million tokens
ProviderModel IDContextOutputInput / output · 1MReasoningToolsStructuredDetails
Abacus
gpt-5.2-codex
400,000128,000$1.75 / $14.00YesYesYes
View
DevPass (LLM Gateway)
gpt-5.2-codex
400,000128,000$1.75 / $14.00YesYesYes
View
Eden AI
azure/gpt-5.2-codex
272,000128,000$1.75 / $14.00YesYesYes
View
Impossibl
openai/gpt-5.2-codex
400,000128,000$1.75 / $14.00YesYesYes
View
Kilo Gateway
openai/gpt-5.2-codex
400,000128,000$1.75 / $14.00YesYesYes
View
LLM Gateway
azure/gpt-5.2-codex
400,000128,000$1.75 / $14.00YesYesNo
View
NanoGPT
openai/gpt-5.2-codex
400,000128,000$1.75 / $14.00YesYesYes
View
Ofox
openai/gpt-5.2-codex
400,000128,000$1.40 / $11.20YesYesYes
View
Azurevia OpenRouter
openai/gpt-5.2-codex
unknown
400,000128,000$1.75 / $14.00YesYesYes
View
OrcaRouter
openai/gpt-5.2-codex
400,000128,000$1.75 / $14.00YesYesYes
View
Vercel AI Gateway
openai/gpt-5.2-codex
400,000128,000$1.75 / $14.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.40Per 1M input tokens
Output from$11.20Per 1M output tokens
Available offers11Across 11 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.75$14.00
openai/gpt-5.2-codexObserved
Input
$1.75
Output
$14.00
Cache read
$0.175
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.75$14.00$0.175—

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
2,708–14,401.4 ms
All latency percentiles 1 endpoints
EndpointP50P75P90P99
Azureazure2,708 ms5,216.75 ms10,582.8 ms14,401.4 ms

Output throughput · tokens per second

Throughput distributionRolling 30-minute snapshot · 1 endpoint
P50P75P90P99
Azureazure
60–102.2 t/s
All throughput percentiles 1 endpoints
EndpointP50P75P90P99
Azureazure60 t/s63 t/s77 t/s102.2 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.2-codexObserved
Design ArenaCategoryEloWin rateRank
agentsandroidnative1,17647.5%20
agentsfullstack99137.2%41
agentsgodotgamedev1,14247.8%24
agentsmobileapps1,08746.6%40
agentswebapps1,04339.6%38

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

Technical details & API

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

Current route specifications
openai/gpt-5.2-codexObserved
Context
400,000
Maximum output
128,000
Tokenizer
GPT
Input
text, image
Output
text
Moderation
No
Added to OpenRouter
2026-01-14
Base URLhttps://openrouter.ai/api/v1
Model IDopenai/gpt-5.2-codex
Version IDopenai/gpt-5.2-codex-20260114

Reasoning

Required
Yes
Enabled by default
Not reported
Default effort
medium
Supported efforts
xhigh, 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.2 Codex cost?

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

Which providers offer GPT-5.2 Codex?

There are 11 cataloged offers across 11 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.

  • · d83d97316d4b
  • · 9accbdbc8bbf