No longer available
The publisher shut this model down on July 23, 2026. It can no longer be used from its own API. Recommended replacement: gpt-5.6-sol. Publisher notice
- input
- $1.75
- cached
- $0.175
- output
- $14.00
- Context
- 400Ktokens
- Released
- 11mo ago
Cost/1M tokens
GPT-5.2-Codex is a version of OpenAI's GPT-5.2 adapted for agentic coding in the Codex environment. OpenAI's announcement presents it as the company's most advanced agentic coding model to date, citing improved long-horizon work through context compaction, stronger performance on large code changes such as refactors and migrations, better results in Windows environments, and stronger cybersecurity capabilities. The model is built for professional software engineering and defensive cybersecurity work.
- Multimodal model
- Accepts images
- Reasoning
- Tools
- Structured output
How it compares
Score vs. costArena WebDev
Each model at its best score · Dashed: the best score at each cost
- OpenAI
- Anthropic
- Google DeepMind
- Qwen
- Moonshot AI
- Meta
- Tencent
- Thinking Machines Lab
- DeepSeek
- Z.ai
- Xiaomi
FlagshipThe lab's most capable generally available line, priced for hard tasks.
Flagship models from other labs
Add the models you use to see how this one compares.
Sign inAdditional source evidence
- Source model
- openai/gpt-5.2-codex
- Source family
- gpt-codex
- Last updated
- 2025-12-11
- Knowledge cutoff
- 2025-08-31
- Model context
- 400K
- Maximum input
- 272K
- Model output limit
- 128K
- Open weights
- No
- File attachments
- Yes
- Reasoning
- Yes
- Tool calling
- Yes
- Temperature control
- No
Published benchmarks
| Benchmark | Score | Evaluation details | Evidence |
|---|---|---|---|
| SWE-Bench Pro | 41.04 · resolve rate | public | Source |
Complete source record (JSON)
{
"id": "openai/gpt-5.2-codex",
"name": "GPT-5.2 Codex",
"description": "Code-specialist GPT for repository edits, reviews, and long-running software agents",
"family": "gpt-codex",
"last_updated": "2025-12-11",
"knowledge": "2025-08-31",
"attachment": true,
"reasoning": true,
"tool_call": true,
"temperature": false,
"modalities": {
"input": [
"text",
"image",
"pdf"
],
"output": [
"text"
]
},
"limit": {
"context": 400000,
"input": 272000,
"output": 128000
},
"benchmarks": [
{
"name": "SWE-Bench Pro",
"score": 41.04,
"source": "https://labs.scale.com/leaderboard/swe_bench_pro_public",
"metric": "resolve rate",
"dataset": "public"
}
],
"release_date": "2025-12-11",
"open_weights": false
}Text provenance
EU · product-scopedOpenAI textGrain watermarking
In the EU, ChatGPT-generated text uses textGrain. OpenAI says API customers can opt in globally for select models, so watermarking depends on the product surface and configuration.
Official explanationFrequently asked questions
API and pricing
GPT-5.2-Codex is listed at $1.75 per 1M input tokens and $14.00 per 1M output tokens.
Yes, cached input for GPT-5.2-Codex costs $0.175 per 1M tokens, compared with $1.75 for uncached input, a 90% discount.
A request with 10,000 input tokens and 1,000 output tokens costs about $0.0315 with GPT-5.2-Codex at the cheapest provider, Azure.
1 of 1 tracked GPT-5.2-Codex endpoints had 99% uptime or better over the last day. The best was Azure at 100.0%.
Privacy and data
Azure offers zero data retention for GPT-5.2-Codex, so prompts are not stored after the request.
Capabilities and specs
GPT-5.2-Codex has a 400K token context window. It can write up to 128K output tokens per response.
Yes, GPT-5.2-Codex accepts images as input alongside text.
Yes, GPT-5.2-Codex supports tool calling (function calling), so it can request calls to tools you define.
Yes, GPT-5.2-Codex supports structured output, so responses can be constrained to JSON.
Yes, GPT-5.2-Codex has a reasoning mode that is always on. Effort levels are xhigh, high, medium and low, with medium as the default. 1 of 1 tracked providers expose it.
GPT-5.2-Codex has a knowledge cutoff of 2025-08-31, so it does not know about later events unless you provide them.
Quality and benchmarks
GPT-5.2-Codex ranks #135 on Arena WebDev, using Arena's published ranks.
Mostly yes: on 2 shared benchmarks, GPT-5.2-Codex is ahead of GPT-5.1-Codex on 1, behind on 0 and level on 1. It leads on Terminal Bench.
Similar models from other labs include Sonar Pro Search (Perplexity), Gemini 3.1 Pro Preview (Google DeepMind) and Gemini 3.1 Pro Preview Custom Tools (Google DeepMind). They are the closest matches by kind, price and release date.
Sonar Pro SearchGPT-5.2-Codex vs Sonar Pro SearchGemini 3.1 Pro PreviewGPT-5.2-Codex vs Gemini 3.1 Pro PreviewGemini 3.1 Pro Preview Custom ToolsGPT-5.2-Codex vs Gemini 3.1 Pro Preview Custom Tools
Kimi K3 is the highest-ranked open-weight model on Arena Text (#22), so it is the strongest open alternative to GPT-5.2-Codex by that measure.
Versions and lineage
GPT-5.2-Codex costs $1.75 input and $14.00 output per 1M tokens, versus $1.75 and $14.00 for GPT-5.2. Both have a 400K token context window.
Yes, GPT-5.2-Codex has been retired as of July 23, 2026, and GPT-5.6 Sol is its replacement.
Licensing and access
No, GPT-5.2-Codex is a closed model: OpenAI has not published its weights, so it is available only through APIs and apps.
Yes, GPT-5.2-Codex is available on Azure. We do not track an endpoint on Amazon Bedrock or Google Vertex AI for it.
Basics
GPT-5.2-Codex was made by OpenAI. It was released on December 11, 2025.
No, GPT-5.2-Codex is a paid API model, listed at $1.75 per 1M input tokens and $14.00 per 1M output tokens.
Generated from Vertical Tabs data, updated November 24, 2026.

Discussion
No comments yet
Be the first to share your thoughts.