Compare/GPT-5.2 Codex (xhigh) vs Claude 4 Sonnet (Non-reasoning)

GPT-5.2 Codex (xhigh)vsClaude 4 Sonnet (Non-reasoning)

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 4 Sonnet (Non-reasoning)

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 4 Sonnet (Non-reasoning)
Benchmarks (6-5)
GPT-5.2 Codex (xhigh)

Pricing Comparison

MetricGPT-5.2 Codex (xhigh)Claude 4 Sonnet (Non-reasoning)
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 4 Sonnet (Non-reasoning)$4.50

Speed Comparison

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

Benchmark Comparison

Data from Artificial Analysis API — 12 benchmarks

Intelligence Index
40.125.5
Coding Index
Math Index
38.0
GPQA Diamond
89.9%68.3%
MMLU-Pro
83.7%
LiveCodeBench
44.9%
AIME 2025
38.0%
MATH-500
93.4%
Humanity's Last Exam
33.5%4.0%
SciCode
54.6%37.3%
IFBench
77.6%45.4%
TerminalBench
37.1%27.3%
GPT-5.2 Codex (xhigh)6 wins
5 winsClaude 4 Sonnet (Non-reasoning)

Frequently Asked Questions

Which is cheaper, GPT-5.2 Codex (xhigh) or Claude 4 Sonnet (Non-reasoning)?

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 4 Sonnet (Non-reasoning).

Which model performs better on benchmarks?

GPT-5.2 Codex (xhigh) wins 6 out of 12 benchmarks compared to 5 for Claude 4 Sonnet (Non-reasoning). 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 4 Sonnet (Non-reasoning) has lower time-to-first-token (0.00s vs 1.07s).

When should I use GPT-5.2 Codex (xhigh) vs Claude 4 Sonnet (Non-reasoning)?

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.