OpenAI: GPT-5.2-Codex
Analysis Summary
GPT-5.2-Codex is OpenAI's coding-focused model with an intelligence index of 49, placing it at the top of the excellent range. Coding and agentic scores are both strong, and it supports vision input alongside tool use and function calling across a 400K context window. Long-context reasoning and instruction following are both above average.
For businesses, this model is well suited to software engineering agents, code review over large repositories, and complex multi-step reasoning tasks. Vision support adds utility for document and diagram analysis. Its breadth of capability, combining coding, agentic reliability, vision, and large context, makes it a strong all-round production model.
Output pricing at $14 per million tokens is expensive, making it best reserved for high-value tasks where accuracy justifies the cost. Teams already in the OpenAI ecosystem building coding agents or complex reasoning pipelines will find it a compelling option.
Assessed June 6, 2026
Editorial notes
GPT-5.2-Codex from OpenAI delivers excellent reasoning, strong coding and agentic performance, vision support, and a 400K context window, though output pricing is high.
Rankings consider pricing, capabilities, benchmarks, and real-world applicability and are refreshed as new models launch. Feedback?
Performance Profile
How OpenAI: GPT-5.2-Codex compares
OpenAI: GPT-5.2-Codex ranks #24 of 378 AI models we track for overall intelligence, #27 of 315 for coding, #37 of 289 for agentic tasks. Its 400K-token context window is larger than 85% of the models we list. At $1.75 per million input tokens it is cheaper than 17% of comparable models.
About 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..
Capabilities
Performance Indices
Source: Artificial Analysis
Benchmark Scores
Intelligence
Technical
Content
Benchmark data from Artificial Analysis and Hugging Face
How does OpenAI: GPT-5.2-Codex stack up?
Compare side-by-side with other professional models.
Model Information
| OpenRouter ID |
openai/gpt-5.2-codex
|
| Provider | openai |
| Release Date | January 14, 2026 |
| Context Length | 400,000 tokens |
| Max Completion | 128,000 tokens |
| Status | Active |
Pricing
| Token Type | Cost per 1M tokens | Cost per 1K tokens |
|---|---|---|
| Input | $1.75 | $0.001750 |
| Output | $14.00 | $0.014000 |
Live Performance
Live endpoint metrics, refreshed every 30 minutes.
Leaderboard Categories
External Resources
Explore Related Models
Frequently asked questions about OpenAI: GPT-5.2-Codex
How much does OpenAI: GPT-5.2-Codex cost?
OpenAI: GPT-5.2-Codex costs $1.75 per million input tokens and $14.00 per million output tokens.
What is the context window of OpenAI: GPT-5.2-Codex?
OpenAI: GPT-5.2-Codex has a context window of 400,000 tokens (400K).
Is OpenAI: GPT-5.2-Codex good for coding?
On our coding benchmark index, OpenAI: GPT-5.2-Codex ranks #27 of 315 models, placing it in the top quartile of the field for code generation and debugging.
What can OpenAI: GPT-5.2-Codex do?
OpenAI: GPT-5.2-Codex supports image/vision input, tool use, and function calling.
Who created OpenAI: GPT-5.2-Codex?
OpenAI: GPT-5.2-Codex is developed by OpenAI and was released on January 14, 2026.
Data sourced from OpenRouter API, Artificial Analysis and Hugging Face Open LLM Leaderboard. Scores are editorially curated by our team.
Last updated: June 11, 2026 8:38 pm