Compare/GPT-5.2 Codex (xhigh) vs Claude 3 Sonnet

GPT-5.2 Codex (xhigh)vsClaude 3 Sonnet

Side-by-side comparison of pricing, 12 benchmarks, and generation speed.

OpenAI

GPT-5.2 Codex (xhigh)

Input
$1.75/M
Output
$14/M
Speed
122 tok/s
TTFT
1.07s
Anthropic

Claude 3 Sonnet

Input
$3/M
Output
$15/M
Speed
TTFT

Winner by Category

Cheaper
GPT-5.2 Codex (xhigh)
Faster (tok/s)
GPT-5.2 Codex (xhigh)
Lower Latency
Claude 3 Sonnet
Benchmarks (6-3)
GPT-5.2 Codex (xhigh)

Pricing Comparison

MetricGPT-5.2 Codex (xhigh)Claude 3 Sonnet
Input ($/M tokens)$1.75$3
Output ($/M tokens)$14$15
Cost for 1M input + 100K output tokens:
GPT-5.2 Codex (xhigh)$3.15
Claude 3 Sonnet$4.50

Speed Comparison

Output Speed (tokens/s) — higher is better
GPT-5.2 Codex (xhigh)
122 tok/s
Claude 3 Sonnet
Time to First Token (seconds) — lower is better
GPT-5.2 Codex (xhigh)
1.07s
Claude 3 Sonnet

Benchmark Comparison

Data from Artificial Analysis API — 12 benchmarks

Intelligence Index
40.14.7
Coding Index
Math Index
GPQA Diamond
89.9%40.0%
MMLU-Pro
57.9%
LiveCodeBench
17.5%
AIME 2025
MATH-500
41.4%
Humanity's Last Exam
33.5%3.8%
SciCode
54.6%22.9%
IFBench
77.6%
TerminalBench
37.1%
GPT-5.2 Codex (xhigh)6 wins
3 winsClaude 3 Sonnet

Frequently Asked Questions

Which is cheaper, GPT-5.2 Codex (xhigh) or Claude 3 Sonnet?

GPT-5.2 Codex (xhigh) is cheaper overall. Its blended price (3:1 input/output ratio) is $4.81/M tokens vs $6.00/M for Claude 3 Sonnet.

Which model performs better on benchmarks?

GPT-5.2 Codex (xhigh) wins 6 out of 12 benchmarks compared to 3 for Claude 3 Sonnet. See the detailed benchmark chart above for per-category results.

Which is faster for real-time applications?

GPT-5.2 Codex (xhigh) generates tokens faster at 122 tok/s vs 0 tok/s. However, Claude 3 Sonnet has lower time-to-first-token (0.00s vs 1.07s).

When should I use GPT-5.2 Codex (xhigh) vs Claude 3 Sonnet?

Choose based on your priorities: GPT-5.2 Codex (xhigh) for lower cost, GPT-5.2 Codex (xhigh) for stronger benchmark performance, and GPT-5.2 Codex (xhigh) for faster generation. For latency-sensitive apps, check the TTFT comparison above.