GPT-5.2-Codex Deprecated
GPT-5.2-Codex is a model from OpenAI, listed under Language models. It was released on Jan 14, 2026. It accepts up to 400k tokens per request.
This model is scheduled for retirement. Plan a migration.
- Headline price
- No data
- Context window
- 400k tokens
- Max output
- 128k
- Knowledge cutoff
- Aug 2025
Current prices
No public API price
This model is distributed as open weights. Running cost depends on your own hardware.
Price history
No price change recorded for this model yet.
How it compares
Show data
| Model | Value |
|---|---|
| GPT-6 Astra | 1.05M |
| GPT-6.1 Sol | 1.05M |
| GPT-6 Luna | 1.05M |
| GPT-6 Sol | 1.05M |
| GPT-5.6 Sol | 1.05M |
| GPT-5.6 Terra | 1.05M |
| GPT-5.6 Luna | 1.05M |
| GPT-6 Astra Pro | 1.05M |
| GPT-6 Luna Pro | 1.05M |
| GPT-6 Sol Pro | 1.05M |
| GPT-6.1 Sol Pro | 1.05M |
| GPT-6.1 Terra | 1.05M |
| GPT-6.1 Terra Pro | 1.05M |
| GPT-5.4 | 1.05M |
| GPT-5.4 Pro | 1.05M |
| GPT-5.5 | 1.05M |
| GPT-5.5 Pro | 1.05M |
| Gemini 4 Argon | 1.05M |
| Gemini 3.8 Flash | 1.05M |
| Gemini Omni Flash | 1.05M |
| Muse Wonder | 1.05M |
| Gemini 3.5 Flash-Lite | 1.05M |
| Gemini 3.7 Flash | 1.05M |
| DeepSeek V4 Flash 0731 | 1.05M |
| Muse Spark 1.3 | 1.05M |
| Kimi K3.1 Pro | 1.05M |
| Qwen3.8 2.4T A95B | 1.05M |
| Gemini 3.1 Pro | 1.05M |
| DeepSeek V4 Flash Vision Exp | 1.05M |
| Gemini 3.6 Flash | 1.05M |
| Gemini 3.1 Flash-Lite | 1.05M |
| Gemini 3 Flash | 1.05M |
| Gemini 2.5 Pro | 1.05M |
| Gemini 2.5 Flash | 1.05M |
| Gemini 2.5 Flash-Lite | 1.05M |
| Muse Spark 1.1 | 1.05M |
| Muse Spark 1.2 | 1.05M |
| GPT-4.1 | 1.05M |
| GPT-4.1 Mini | 1.05M |
| GPT-4.1 nano | 1.05M |
| Claude Fable 5.1 | 1M |
| Claude Opus 5.5 | 1M |
| Claude Sonnet 5.5 | 1M |
| Claude Haiku 5.5 | 1M |
| Grok 4.3 | 1M |
| DeepSeek V4 Pro | 1M |
| DeepSeek V4.1 Flash | 1M |
| Kimi K3 | 1M |
| Claude Mythos 5.1 | 1M |
| Grok 4.20 Reasoning | 1M |
| Grok 4.20 Non-Reasoning | 1M |
| Grok 4.20 Multi-Agent | 1M |
| Z.ai GLM 5.3 (on Mistral) | 1M |
| Qwen3.8 27B | 1M |
| Qwen3.8 Max Prime | 1M |
| Mistral Large 4 | 1M |
| Claude Fable 5 | 1M |
| Claude Mythos 5 | 1M |
| Claude Opus 5 | 1M |
| Claude Sonnet 5 | 1M |
| Claude Opus 4.8 | 1M |
| Claude Opus 4.7 | 1M |
| Claude Opus 4.6 | 1M |
| Claude Sonnet 4.6 | 1M |
| Grok 4.7 | 500k |
| Grok 4.6 | 500k |
| Grok 4.5 | 500k |
| GPT-5.6 Cyber | 400k |
| Chat Latest | 400k |
| GPT-5 | 400k |
| GPT-5 Mini | 400k |
| GPT-5 nano | 400k |
| GPT-5 Pro | 400k |
| GPT-5.2 | 400k |
| GPT-5.2 Pro | 400k |
| GPT-5.4 Mini | 400k |
| GPT-5-Codex | 400k |
| GPT-5.1 | 400k |
| GPT-5.1-Codex | 400k |
| GPT-5.1-Codex Mini | 400k |
| GPT-5.1-Codex-Max | 400k |
| GPT-5.3-Codex | 400k |
| GPT-5.4 nano | 400k |
| Grok Build 0.1 | 256k |
| Mistral Medium 3.5 | 256k |
| Mistral Small 4 | 256k |
| Ministral 3 14B | 256k |
| Ministral 3 8B | 256k |
| Ministral 3 3B | 256k |
| Command A | 256k |
| Command A Reasoning | 256k |
| North Mini Code | 256k |
| Kimi K2.7 Code | 256k |
| Mistral Large 3 | 256k |
| Kimi K2.6 | 256k |
| Claude Opus 4.5 | 200k |
| Claude Haiku 4.5 | 200k |
| o3 | 200k |
| o3-pro | 200k |
| Claude Sonnet 4.5 | 200k |
| codex-mini-latest | 200k |
| o1 | 200k |
| o1-pro | 200k |
| o3-deep-research | 200k |
| o3-mini | 200k |
| o4-mini | 200k |
| o4-mini-deep-research | 200k |
| gpt-oss-120b | 131k |
| gpt-oss-20b | 131k |
| Command A+ | 128k |
| Codestral | 128k |
| Aya Expanse 32B | 128k |
| Command A Vision | 128k |
| Command R7B | 128k |
| Command R (08-2024) | 128k |
| Command R+ (08-2024) | 128k |
| ChatGPT-4o | 128k |
| GPT-4 Turbo | 128k |
| GPT-4 Turbo Preview | 128k |
| GPT-4.5 Preview | 128k |
| GPT-4o | 128k |
| GPT-4o Mini | 128k |
| GPT-4o Mini Search Preview | 128k |
| GPT-4o Search Preview | 128k |
| GPT-5 Chat | 128k |
| GPT-5.1 Chat | 128k |
| GPT-5.2 Chat | 128k |
| GPT-5.3 Chat | 128k |
| o1 Preview | 128k |
| o1-mini | 128k |
| Command R | 128k |
| Command R+ | 128k |
| Voxtral Small | 32k |
| GPT-3.5 Turbo | 16k |
| babbage-002 | 16k |
| davinci-002 | 16k |
| Aya Vision 32B | 16k |
| computer-use-preview | 8k |
| GPT-4 | 8k |
| Tiny Aya Earth | 8k |
| Tiny Aya Global | 8k |
| GPT-5.2-Codex | 400k |
Benchmarks
| Benchmarks | Score |
|---|---|
| Terminal-Bench Hard Hard command-line tasks (building software, configuring systems, fixing environments) completed autonomously in a real terminal. A direct test of agentic coding. | 37.1% |
| GPQA Diamond Graduate-level questions in biology, physics and chemistry, written to be resistant to web search. PhD holders in the relevant field score around 65%, so scores above that indicate genuine domain reasoning rather than recall. | 89.9% |
| Humanity's Last Exam About 2,500 expert-written questions at the frontier of human knowledge across maths, science and the humanities. Even the best models answer well under two thirds. | 35.7% |
| IFBench (instruction following) Precise, verifiable formatting and content constraints the model has not seen in training. Measures how faithfully it follows instructions. | 77.6% |
| τ²-Bench (agentic tool use) Simulated customer-support conversations where the model must use tools and follow policy while a simulated user acts on their side. Measures reliable multi-turn tool use. | 92.1% |
| MMMU-Pro (visual reasoning) College-level questions that require reading charts, diagrams and figures, with distractors that defeat text-only guessing. | 76.3% |
| Long-context reasoning (AA-LCR) Questions that require reasoning across several long documents at once (around 100k tokens), not just finding one passage. | 82.3% |
Independent evaluations by Artificial Analysis, run the same way for every model, at the reasoning setting shown. Percentages unless marked as an index. Source
Alternatives
Same category, closest price, other providers first.
More from OpenAI
| # | Model | Input | Output | Context | Released | Capabilities | Price change |
|---|---|---|---|---|---|---|---|
| 1 |
GPT-6 Astra
OpenAI
|
$10.00 | $50.00 | 1.05M | Sep 3, 2026 | VisionReasoningTool calling | |
| 2 |
GPT-6.1 Sol
OpenAI
|
$2.00 | $10.00 | 1.05M | Sep 29, 2026 | VisionReasoningTool calling | |
| 3 |
GPT-6 Luna
OpenAI
|
$0.10 | $0.50 | 1.05M | Sep 22, 2026 | VisionReasoningTool calling | |
| 4 |
GPT-6 Sol
OpenAI
|
$2.00 | $10.00 | 1.05M | Sep 22, 2026 | VisionReasoningTool calling | |
| 5 |
GPT-5.6 Sol
OpenAI
|
$4.00 | $20.00 | 1.05M | Jul 9, 2026 | VisionReasoningTool calling | |
| 6 |
GPT-5.6 Terra
OpenAI
|
$2.00 | $12.00 | 1.05M | Jul 9, 2026 | VisionReasoningTool calling |
Spotted something wrong? Report it
Frequently asked questions
What is the context window of GPT-5.2-Codex?
GPT-5.2-Codex accepts up to 400k tokens per request. It can write up to 128k tokens in one response.
Is GPT-5.2-Codex still available?
It still works, but it is deprecated: OpenAI plans to retire it.
When was GPT-5.2-Codex released?
GPT-5.2-Codex was released in Jan 14, 2026.
What is the API model ID for GPT-5.2-Codex?
Use gpt-5.2-codex when calling the OpenAI API.
What are the alternatives to GPT-5.2-Codex?
Models in the same category at a similar price include Gemini 3.1 Pro (Google), Tiny Aya Global (Cohere), Ministral 3 14B (Mistral AI) and Ministral 3 8B (Mistral AI).