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…

openai/gpt-5.2-codex-20260114

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](https://openrouter.ai/docs/use-cases/reasoning-tokens#reasoning-effort-level)

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.

Specifications & capabilities

Input
text, image
Output
text
Context window · tokens
400000
Knowledge cutoff
2025-08-31
Capabilities
multimodal, promptCaching, reasoning, structuredOutputs, toolCalling, visionInput, webSearch
Description source ↗

Evaluations

1–5 / 5

LMArena

1,328.863

source id
lmarena
leaderboard name
LMArena Webdev Webdev React
dimension
coding
metric
Arena rating
rank
125
sample size
4323
evaluated at
2026-11-15T00:00:00.000Z
source model id
GPT-5.2-Codex
confidence lower
1318.218888021514
confidence upper
1339.5068159171292
Original result ↗

LMArena

1,347.492

source id
lmarena
leaderboard name
LMArena Webdev Webdev Html
dimension
coding
metric
Arena rating
rank
129
sample size
2347
evaluated at
2026-11-15T00:00:00.000Z
source model id
GPT-5.2-Codex
confidence lower
1332.1670883496497
confidence upper
1362.8162090930618
Original result ↗

LMArena

1,338.597

source id
lmarena
leaderboard name
LMArena Webdev Webdev
dimension
coding
metric
Arena rating
rank
130
sample size
6674
evaluated at
2026-11-15T00:00:00.000Z
source model id
GPT-5.2-Codex
confidence lower
1329.6051086302023
confidence upper
1347.5886548417388
Original result ↗

LMArena

1,338.597

source id
lmarena
leaderboard name
LMArena Webdev Overall
dimension
coding
metric
Arena rating
rank
130
sample size
6674
evaluated at
2026-11-15T00:00:00.000Z
source model id
GPT-5.2-Codex
confidence lower
1329.6051086302023
confidence upper
1347.5886548417388
Original result ↗

Published prices

1–15 / 15

gpt-5.2-codex ↗

$0.13

Inference provider
cheaperInference
Platform
Cheaper Inference
Unit
cache_read_tokens_per_million
Currency
USD
Billing conditions
zdr
false
protocol
chat_completions
service_tier
standard
Billing label
Cached input tokens (per 1M)

gpt-5.2-codex ↗

$1.28

Inference provider
cheaperInference
Platform
Cheaper Inference
Unit
input_tokens_per_million
Currency
USD
Billing conditions
zdr
false
protocol
chat_completions
service_tier
standard
Billing label
Input tokens (per 1M)

gpt-5.2-codex ↗

$10.22

Inference provider
cheaperInference
Platform
Cheaper Inference
Unit
output_tokens_per_million
Currency
USD
Billing conditions
zdr
false
protocol
chat_completions
service_tier
standard
Billing label
Output tokens (per 1M)

openai/gpt-5.2-codex ↗

$0.18

Inference provider
openRouter
Platform
OpenRouter
Unit
cache_read_tokens_per_million
Currency
USD
Billing conditions

openai/gpt-5.2-codex ↗

$1.75

Inference provider
openRouter
Platform
OpenRouter
Unit
input_tokens_per_million
Currency
USD
Billing conditions

openai/gpt-5.2-codex ↗

$14.00

Inference provider
openRouter
Platform
OpenRouter
Unit
output_tokens_per_million
Currency
USD
Billing conditions

openai/gpt-5.2-codex ↗

$0.18

Inference provider
vercelAIGatewayCatalog
Platform
azure
Unit
cache_read_tokens_per_million
Currency
USD
Billing conditions
endpoint
azure | openai/gpt-5.2-codex
model_type
language
billing_scope
via Vercel AI Gateway
Billing label
Cached input / 1M
Pricing via
Vercel AI Gateway

openai/gpt-5.2-codex ↗

$1.75

Inference provider
vercelAIGatewayCatalog
Platform
azure
Unit
input_tokens_per_million
Currency
USD
Billing conditions
endpoint
azure | openai/gpt-5.2-codex
model_type
language
billing_scope
via Vercel AI Gateway
Billing label
Input tokens / 1M
Pricing via
Vercel AI Gateway

openai/gpt-5.2-codex ↗

$14.00

Inference provider
vercelAIGatewayCatalog
Platform
azure
Unit
output_tokens_per_million
Currency
USD
Billing conditions
endpoint
azure | openai/gpt-5.2-codex
model_type
language
billing_scope
via Vercel AI Gateway
Billing label
Output tokens / 1M
Pricing via
Vercel AI Gateway

openai/gpt-5.2-codex ↗

$0.01

Inference provider
vercelAIGatewayCatalog
Platform
azure
Unit
request
Currency
USD
Billing conditions
charge
web_search
endpoint
azure | openai/gpt-5.2-codex
model_type
language
billing_scope
via Vercel AI Gateway
Billing label
Web search
Pricing via
Vercel AI Gateway

openai/gpt-5.2-codex ↗

$0.18

Inference provider
vercelAIGatewayCatalog
Platform
Vercel AI Gateway
Unit
cache_read_tokens_per_million
Currency
USD
Billing conditions
model_type
language
quote_scope
gateway_catalog
billing_scope
Vercel public catalog; endpoint prices may differ
Billing label
Cached input / 1M
Pricing via
Vercel AI Gateway

openai/gpt-5.2-codex ↗

$1.75

Inference provider
vercelAIGatewayCatalog
Platform
Vercel AI Gateway
Unit
input_tokens_per_million
Currency
USD
Billing conditions
model_type
language
quote_scope
gateway_catalog
billing_scope
Vercel public catalog; endpoint prices may differ
Billing label
Input tokens / 1M
Pricing via
Vercel AI Gateway

openai/gpt-5.2-codex ↗

$14.00

Inference provider
vercelAIGatewayCatalog
Platform
Vercel AI Gateway
Unit
output_tokens_per_million
Currency
USD
Billing conditions
model_type
language
quote_scope
gateway_catalog
billing_scope
Vercel public catalog; endpoint prices may differ
Billing label
Output tokens / 1M
Pricing via
Vercel AI Gateway

openai/gpt-5.2-codex ↗

$0.01

Inference provider
vercelAIGatewayCatalog
Platform
Vercel AI Gateway
Unit
request
Currency
USD
Billing conditions
charge
web_search
model_type
language
quote_scope
gateway_catalog
billing_scope
Vercel public catalog; endpoint prices may differ
Billing label
Web search
Pricing via
Vercel AI Gateway

Provider specifications & access

1–2 / 2

gpt-5.2-codex ↗

source model id
gpt-5.2-codex
hosting
gateway
platforms
  • Cheaper Inference
context length
256000
max output tokens
128000
architecture
input_modalities
  • text
  • image
output_modalities
  • text
capabilities
  • reasoning
  • structuredOutputs
  • toolCalling
  • visionInput
  • webSearch

GPT 5.2 Codex ↗

source model id
openai/gpt-5.2-codex
hosting
vercel-gateway
platforms
  • Vercel AI Gateway
context length
400000
max output tokens
128000
architecture
input_modalities
  • text
  • image
  • pdf
output_modalities
  • text
capabilities
  • promptCaching
  • reasoning
  • structuredOutputs
  • toolCalling
  • visionInput
  • webSearch

Safety assessments

1–1 / 1

Foundation Model Transparency Index 2025 ↗

35 / 100

source id
stanfordFMTI
canonical model id
openai/gpt-5.2-codex-20260114
taxonomy
transparency
hazard category
transparency
hazard name
Organization transparency
policy area
OpenAI
assessment type
organization-level disclosure
metric
disclosure_score
result label
35 / 100
sample size
100
updated at
2026-11-09T18:08:05.227Z

Source specification observations

1–5 / 5

openRouter ↗

field
context_length
value
400000
normalized value
400000
scope
source-model
source id
openRouter
confidence
1

vercelAIGatewayCatalog ↗

field
context_length
value
400000
normalized value
400000
scope
source-model
source id
vercelAIGatewayCatalog
confidence
1

vercelAIGatewayCatalog ↗

field
knowledge_cutoff
reported field
knowledge_cutoff
value
2025-08-31
normalized value
2025-08-31
precision
day
scope
source-model
source id
vercelAIGatewayCatalog
confidence
1

openRouter ↗

field
max_output_tokens
value
128000
normalized value
128000
scope
source-model
source id
openRouter
confidence
1

vercelAIGatewayCatalog ↗

field
max_output_tokens
value
128000
normalized value
128000
scope
source-model
source id
vercelAIGatewayCatalog
confidence
1

Original sources

1–9 / 9

OpenAI · Model reference ↗

OpenRouter · Model page ↗

Vercel AI Gateway · Model page ↗

api.cheaperinference.com · Source snapshot ↗

Epoch AI · Catalog ↗

GitHub · Catalog ↗

LMArena · Catalog ↗

OpenRouter · Catalog ↗

Vercel AI Gateway · Catalog ↗

Source links

1–7 / 7

Explore more models

Models

Loading
EVIDENCE / COMPARISON

Benchmarks

Explore every benchmark

Loading

These charts contain model-linked results. The charts above also include unlinked source profiles. Compare scores within each evaluation. Model quality, usage, transparency and system performance measure different things.

Install TensorTrace