Skip to main content

Model comparison

Claude 4 Sonnet vs GPT-5.1-Codex

Data verified

Head-to-head evidence from 15 shared benchmark results across 6 categories. Overall scores shown here use the public BenchAlign v5 ranking lane.

42.79/100
Margin
9.9pts
winning →
52.72/100
0 category wins0 category wins

Public leaderboard positions: Claude 4 Sonnet #158 (Supported); GPT-5.1-Codex #99 (Estimated). Intervals and evidence labels describe ranking uncertainty, not a guarantee for a specific workload.

Evidence parity. Claude 4 Sonnet and GPT-5.1-Codex share 15 comparable benchmark results. 0 of 8 categories are comparable. 1 result is unique to Claude 4 Sonnet; 1 to GPT-5.1-Codex.

Updated July 23, 2026
Shared results
15
Claude 4 Sonnet only
1
GPT-5.1-Codex only
1
Comparable categories
0 / 8

Benchmark data for Claude 4 Sonnet and GPT-5.1-Codex is coming soon on BenchLM.

Confidence note. This is a partial-evidence comparison with 15 shared benchmark results across 6 evidence categories; 0 of 8 categories currently have scoreable aggregates for both models. Treat the verdict as directional until coverage is more balanced.

Why this result

BenchLM has partial data for these models, but not enough overlapping benchmark coverage to produce a fair score-level comparison yet.

GPT-5.1-Codex has the larger context window at 400K, compared with 200K for Claude 4 Sonnet.

Category breakdown

Exact category averages are shown below. Not measured means BenchLM does not have enough sourced public coverage for that model and category.

Category scores and score margins for Claude 4 Sonnet and GPT-5.1-Codex
CategoryClaude 4 SonnetΔGPT-5.1-Codex
CodingClaude 4 Sonnet72.7MarginNo overlapGPT-5.1-CodexNot measured

Operational comparison

Runtime and commercial metrics are compared only when both models have a complete sourced value.

MetricClaude 4 SonnetGPT-5.1-CodexComparison
Input / output priceUSD per 1M tokensClaude 4 Sonnet$3 input / $15 outputGPT-5.1-CodexNot availableA complete price comparison is not available.
Generation speedtokens per secondClaude 4 Sonnet40 tok/sGPT-5.1-CodexNot availableA complete speed comparison is not available.
First-answer latencyseconds to first tokenClaude 4 Sonnet1.33 sGPT-5.1-CodexNot availableA complete latency comparison is not available.
Context windowmaximum listed tokensClaude 4 Sonnet200KGPT-5.1-Codex400KGPT-5.1-Codex lists the larger context window.

Benchmark Deep Dive

Agentic
BenchmarkClaude 4 SonnetGPT-5.1-CodexResult
τ²-bench resultsSource 52.3%83%GPT-5.1-Codex leads
Gert LabsSource 39.66%49.68%GPT-5.1-Codex leads
JobBenchSource 18.4%26.2%GPT-5.1-Codex leads
Coding
BenchmarkClaude 4 SonnetGPT-5.1-CodexResult
SWE-bench VerifiedSource 72.7%Not comparable
AA-SciCodeSource 37.3%40.2%GPT-5.1-Codex leads
Vibe Code BenchSource 13.12%Not comparable
Reasoning
BenchmarkClaude 4 SonnetGPT-5.1-CodexResult
AA-LCRSource 44.3%67.3%GPT-5.1-Codex leads
CritPtSource 1.1%5.7%GPT-5.1-Codex leads
Knowledge
BenchmarkClaude 4 SonnetGPT-5.1-CodexResult
Artificial Analysis Intelligence IndexSource 25.5%34.7%GPT-5.1-Codex leads
AA-GPQA DiamondSource 68.3%86.0%GPT-5.1-Codex leads
AA-HLESource 4.0%23.4%GPT-5.1-Codex leads
AA-Omniscience IndexSource -9.2%-6.0%GPT-5.1-Codex leads
AA-Omniscience AccuracySource 22.4%39.2%GPT-5.1-Codex leads
AA-Omniscience Hallucination RateSource 40.8%74.4%Claude 4 Sonnet leads
Multimodal
BenchmarkClaude 4 SonnetGPT-5.1-CodexResult
AA-MMMU-ProSource 62.4%72.5%GPT-5.1-Codex leads
Design Arena WebsiteSource 11751191GPT-5.1-Codex leads
Inst. Following
BenchmarkClaude 4 SonnetGPT-5.1-CodexResult
AA-IFBenchSource 45.4%70.0%GPT-5.1-Codex leads
Frequently Asked Questions (3)

Can I compare Claude 4 Sonnet and GPT-5.1-Codex on BenchLM yet?

Not fully yet. BenchLM is tracking both models, but the sourced benchmark breakdown for this comparison is still coming soon.

Why does this comparison show “coming soon”?

BenchLM only shows category winners and benchmark-level calls when we have sourced results that can be compared fairly. For these models, the public benchmark coverage is not complete enough yet.

What data is available for Claude 4 Sonnet and GPT-5.1-Codex today?

Claude 4 Sonnet: $3.00 input / $15.00 output per 1M tokens Both model pages still include creator, context window, reasoning mode, and other metadata while benchmark coverage fills in.

Related Comparisons

Last updated: July 23, 2026

Choose a model with this week’s evidence

Join 2,000+ readers for ranking moves, pricing changes, and the claims that still need proof.

One email each week. Unsubscribe anytime.