OpenAI: GPT-5.2-Codex

OpenAI: GPT-5.2-Codex

openai · Released Jan 14, 2026 Professional
Intelligence #10 / 576
82.0 Our Score
Speed #102 / 271
124.2 tokens / sec
Input #477 / 577
$1.75 per 1M tokens
Output #520 / 577
$14.00 per 1M tokens
Context #86 / 577
400,000 tokens

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

Intelligence7.2Technical7.2Value6.5Content8.8
Intelligence 7.2/10
Technical 7.2/10
Content 8.8/10
Value 6.5/10

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

Tool Use Function Calling Vision

Performance Indices

Source: Artificial Analysis

49 Intelligence Index
43 Coding Index
64.6 Agentic Index

Benchmark Scores

Intelligence

GPQA Diamond 89.9% Graduate-level scientific reasoning
HLE 33.5% Humanity's Last Exam
SciCode 54.6% Scientific computing

Technical

TerminalBench Hard 37.1% Agentic terminal tasks
τ²-Bench 92.1% Conversational agent benchmark

Content

IFBench 77.6% Instruction following
LCR 75.7% Long-context reasoning

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.

Compare Models

Model Information

OpenRouter ID openai/gpt-5.2-codex
Provideropenai
Release Date January 14, 2026
Context Length400,000 tokens
Max Completion128,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.

3,049ms
Best Latency (TTFT)
65 tok/s
Best Throughput
0/2
Active Endpoints
Available via: OpenAI, Azure

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.