Compare / head-to-head

Claude Sonnet 4.6vsGPT-5.1-Codex

Claude Sonnet 4.6 leads 3 of 3 shared benchmarks. GPT-5.1-Codex is 1.6x cheaper per token. Claude Sonnet 4.6 has the larger context window (1M tokens).

Benchmarks from cited public sources; pricing from official pages; status from official provider feeds.

Shared benchmarks
3 – 0
Claude Sonnet 4.6 leads
Cheaper per token
GPT-5.1-Codex
1.6x cheaper, input + output
Larger context
Claude Sonnet 4.6
1M tokens
Providers
2 providers
Anthropic · OpenAI
Claude Sonnet 4.6
Anthropic · released 2026-02-17
textvision
Context
1M
Max out
128K
Input /1M
$3 ↗
Output /1M
$15 ↗
Cached /1M
$0.3
Scores
41 · 10 core
GPT-5.1-Codex
OpenAI · released 2025-11-13
textvision
Context
400K
Max out
128K
Input /1M
$1.25 ↗
Output /1M
$10 ↗
Cached /1M
$0.125
Scores
4 · 2 core
Quality

Benchmark matrix

BenchmarkClaude Sonnet 4.6GPT-5.1-CodexΔEdge
Reported by both · 3
SWE-bench Verified79.6% ↗73.7% ↗+5.9 ptClaude Sonnet 4.6
LMArena WebDev (LMArena)1521.4 ↗1337.1 ↗+184.3Claude Sonnet 4.6
Terminal-Bench 2.059.1% ↗52.8% ↗+6.3 ptClaude Sonnet 4.6
Only Claude Sonnet 4.6 reports · 32
GPQA Diamond89.9% ↗not reported——
Humanity's Last Exam (no tools)33.2% ↗not reported——
LMArena Elo1458.3 ↗not reported——
APEX-Agents (Mercor)43% ↗not reported——
ARC-AGI-2 (Verified)58.3% ↗not reported——
Chess Puzzles (Epoch AI run)13% ↗epoch runnot reported——
DeepSWE v1.1 (Datacurve)29.9% ↗not reported——
GDPval-AA1633 ↗not reported——
Humanity's Last Exam (with tools)49% ↗not reported——
LiveBench Agentic Coding (LiveBench)42.6% ↗not reported——
LiveBench Coding (LiveBench)79.3% ↗not reported——
LiveBench Data Analysis (LiveBench)77.9% ↗not reported——
LiveBench Instruction Following (LiveBench)63.2% ↗not reported——
LiveBench Language (LiveBench)76.1% ↗not reported——
LiveBench Mathematics (LiveBench)87% ↗not reported——
LiveBench Reasoning (LiveBench)84.8% ↗not reported——
LMArena Vision (LMArena)1275.2 ↗not reported——
MCP Atlas61.3% ↗not reported——
MMMLU89.3% ↗not reported——
MMMU-Pro (no tools)74.5% ↗not reported——
MMMU-Pro (with tools)75.6% ↗not reported——
Mystery Game Puzzles (Epoch AI run)16% ↗epoch runnot reported——
OSWorld-Verified72.5% ↗not reported——
OSWorld-Verified (XLANG)72.1% ↗not reported——
OTIS Mock AIME 2024-2025 (Epoch AI run)85.8% ↗epoch runnot reported——
SAGE (Vals AI)46.6% ↗not reported——
SimpleQA Verified35.5% ↗epoch runnot reported——
SWE-bench Verified (Epoch AI run)75.2% ↗epoch runnot reported——
Tau2-bench Retail91.7% ↗not reported——
Tau2-bench Telecom97.9% ↗not reported——
Vending-Bench 2 (Andon Labs)7204.14 ↗not reported——
WeirdML (Håvard Tveit Ihle)66.1% ↗not reported——
Only GPT-5.1-Codex reports · 1
SWE-Lancer IC SWEnot reported66.3% ↗——
Scores tagged "epoch" or "matharena" are independent runs, used only where the lab has not published its own; ⚠ marks rows MathArena flags as released after the competition. Higher is better on every row. Δ is Claude Sonnet 4.6 minus GPT-5.1-Codex in the benchmark's own unit. "Not reported" means the lab has not published that figure; it is not a zero. ↗ opens the source.
Specs & pricing

Side by side

SpecClaude Sonnet 4.6GPT-5.1-CodexEdge
Context window1M tokens400K tokensClaude Sonnet 4.6
Max output128K tokens128K tokensTie
Input price / 1M$3 ↗$1.25 ↗GPT-5.1-Codex
Output price / 1M$15 ↗$10 ↗GPT-5.1-Codex
Cached input / 1M$0.3 ↗$0.125 ↗GPT-5.1-Codex
Input + output / 1M
Lower is cheaper. List prices; batch, tool and regional fees excluded.
$18$11.25GPT-5.1-Codex
Modalitiestext · visiontext · visionTie
Released2026-02-172025-11-13—
Cited benchmark scores414—
Reliability

Provider status

All providers →
More matchups

Claude Sonnet 4.6 vs …

Built by Respan
Which one wins on your data?

Public benchmarks are a starting point. Run Claude Sonnet 4.6 and GPT-5.1-Codex on your own prompts with Respan evals, or route to either through one gateway key with automatic failover.