LANGUAGE MODEL OpenAI Last updated:

GPT-5.2 Codex (xhigh)

GPT-5.2 Codex (xhigh) is an API model from OpenAI. It’s positioned for general text tasks—work that benefits from iteration, not just one-shot answers.

Intelligence
Top 10%
Speed
Medium
116 tok/s output
Cost
High
$1.75 in / $14.00 out
Context
400K
Up to 400,000 tokens
How are Intelligence, Speed & Cost bucketed?
Intelligence and Speed buckets are percentile ranks on Artificial Analysis. Cost buckets are fixed dollar thresholds keyed off output-token price ($/M out).
Intelligence
  • Top 1%≤ 1%
  • Top 5%≤ 5%
  • Top 10%≤ 10%
  • Good≤ 25%
  • Medium≤ 50%
  • Below avg> 50%
Speed
  • Top 1%≥ 345 tok/s
  • Top 5%≥ 237 tok/s
  • Top 10%≥ 196 tok/s
  • Good≥ 146 tok/s
  • Medium≥ 90 tok/s
  • Slow< 90 tok/s
Cost
  • Freeopen weights · self-host
  • Low< $1 / M out
  • Moderate$1–5 / M out
  • High≥ $5 / M out

Core Capabilities

Coding
Strong real-world software engineering.
Long Documents
Handles entire codebases, books, and multi-doc RAG.

Context Window

400k tokens
≈ 308+ pages
4k Chat 聊天
32k Long docs 长文档
128k Books 整本书
400k This model 本模型
1M Codebase 整个代码库
10M

Availability

API
Available
Product / App
Not available
Open Source
Not released
Enterprise
Contact sales

Pricing Model

Pay per token
Input and output billed separately.
Pay-per-token

Capability / Performance

Where this model sits relative to the middle 60% of models in the tree. All scores are 0–10 (higher is better).

Lower 20% Upper 80% This model
Reasoning
AA Intelligence Index · scaled to 10
1.7
5.6
7.0
Coding
SciCode · scaled to 10
1.8
4.3
5.5
Agentic tasks
Terminal-Bench Hard · scaled to 10
0.2
3.6
3.7
Context / memory
Context window size · log-scaled
6.0
9.0
7.7
Cost efficiency
Input price ($/M tokens) · cheaper scores higher
6.2
10.0
6.6
Lower 20% 20th percentile — 20% of models score below this This model Where the current model lands Upper 80% 80th percentile — only 20% of models score above this Percentile boundaries are computed across every model in the tree that reports the underlying benchmark for each capability.

What it feels like

  • Codex-specialised variant — tuned for SWE-bench Pro / coding agents.
  • Pro variant hits 93.2% on GPQA Diamond and 40.3% on FrontierMath Tier 1-3 — new state-of-the-art on hard math/science
  • 400K-token context window — biggest OpenAI window yet, designed for long-running agents
  • GDPval state-of-the-art — outperforms industry professionals on well-specified tasks across 44 occupations

Best use cases

  • Hardest math/science research where Pro/Thinking modes pull ahead of every competitor
  • Long-running professional agent workflows (400K context + GDPval-leading task quality)
  • Knowledge work spanning 44 occupations — spreadsheets, presentations, multi-step projects

Tools to try

Not ideal for

  • Casual chat or creative writing — Instant tier feels muted compared to GPT-5.1
  • Cost-sensitive bulk inference — 40% price hike vs 5.1 with no automatic upgrade win

Model Evolution

GPT is OpenAI's language model family.

View full evolution tree →