Model comparison

Claude Sonnet 4.5 vs GPT-5.1-Codex

Claude Sonnet 4.5 is the stronger model overall, scoring 44.1 to 38.6 on the Noometry Index. GPT-5.1-Codex costs 1.7× less per token, which makes it the better buy when Claude Sonnet 4.5's lead doesn't matter for your workload.

Last verified . 6 shared benchmarks.

Claude Sonnet 4.5 Anthropic

44.1

Rank #81 Confirmed

GPT-5.1-Codex OpenAI

38.6

Rank #186 Reported

Summary

  • They share 6 benchmarks with published results for both. Claude Sonnet 4.5 scores higher in 3 categories and GPT-5.1-Codex in 0 categories; 2 gaps are clear of the uncertainty.
  • The widest gap is in coding, where Claude Sonnet 4.5 leads 47.3 to 41.9.
  • The biggest single-benchmark swing is Terminal-Bench: 46.5% for Claude Sonnet 4.5 and 60.4% for GPT-5.1-Codex.
  • GPT-5.1-Codex is cheaper at $1.25 / $10 per million input/output tokens, against $3 / $15 for Claude Sonnet 4.5.
  • GPT-5.1-Codex accepts more context: 400K tokens versus 200K.

Side by side

Claude Sonnet 4.5 and GPT-5.1-Codex specifications
Claude Sonnet 4.5GPT-5.1-Codex
ProviderAnthropicOpenAI
Noometry Index44.138.6
Released2025-09-292025-11-12
WeightsProprietaryProprietary
Context window200K400K
Max output64K128K
Input $ / M tokens$3$1.25
Output $ / M tokens$15$10
Results tracked736

Sponsored placements are available on pages like this one. Advertise on Noometry

Category by category

Coding Claude Sonnet 4.5 leads

Claude Sonnet 4.5: 47.3 (#61), GPT-5.1-Codex: 41.9 (#116)

Coding benchmarks
BenchmarkClaude Sonnet 4.5GPT-5.1-Codex
SWE-bench Verified (bash only)71.4%66%
LMArena WebDev13931337
ALE-Bench796.151,245
SWE-bench Verified71.3%—
SWE-bench Multilingual67%—
SciCode44.7%—
GSO14.7%—
WeirdML47.7%—
LMArena Coding1489—
AlgoTune1.52—

Agentic & Tool Use Too close to call

Claude Sonnet 4.5: 38.3 (#32), GPT-5.1-Codex: 38.0 (#33)

Agentic & Tool Use benchmarks
BenchmarkClaude Sonnet 4.5GPT-5.1-Codex
Terminal-Bench46.5%60.4%
METR Time Horizons67.4%70.8%
Berkeley Function Calling Leaderboard73.2%—
GDPval42.5%—
Remote Labor Index2.1%—
τ²-bench Airline72%—
τ²-bench Banking25.3%—
τ²-bench Retail72.4%—
τ²-bench Telecom84.9%—
Cybench60%—
DeepResearch Bench52.6%—
OSWorld62.9%—
LMArena Search1159—
Vending-Bench 23,839—

Reasoning Not comparable

Claude Sonnet 4.5: 26.9 (#125), GPT-5.1-Codex: —

Reasoning benchmarks
BenchmarkClaude Sonnet 4.5GPT-5.1-Codex
ARC-AGI-213.6%—
SimpleBench54.3%—
Kagi LLM Benchmark57.9%—
NYT Connections (extended)37.3%—
ARC-AGI-163.7%—
CritPt1.1%—
Chess Puzzles12%—
EnigmaEval6%—
EBR-Bench2.4%—
LMArena Hard Prompts1462—
Mystery Game Puzzles17%—
DTBench83.2%—
LMCA38.8%—
Epoch Capabilities Index146.84—
ForecastBench61.9—

Math Claude Sonnet 4.5 leads

Claude Sonnet 4.5: 32.3 (#216), GPT-5.1-Codex: 30.3 (#235)

Math benchmarks
BenchmarkClaude Sonnet 4.5GPT-5.1-Codex
ProofBench19%9%
FrontierMath (Tiers 1-3)23.9%—
FrontierMath Tier 42.4%—
OTIS Mock AIME 2024-202577.8%—
Omni-MATH55.3%—
LMArena Math1449—
MATH Level 597.7%—
FrontierMath (Feb 2025 set)15.2%—
FrontierMath Tier 4 (v1)4.2%—

Knowledge Not comparable

Claude Sonnet 4.5: 48.4 (#76), GPT-5.1-Codex: —

Knowledge benchmarks
BenchmarkClaude Sonnet 4.5GPT-5.1-Codex
GPQA Diamond82.3%—
Humanity's Last Exam13.7%—
SimpleQA Verified30.7%—
MMLU-Pro86.9%—
Vectara Hallucination Rate12%—
GPQA (HELM)68.6%—
LMArena Expert1482—

Multimodal Not comparable

Claude Sonnet 4.5: 34.8 (#89), GPT-5.1-Codex: —

Multimodal benchmarks
BenchmarkClaude Sonnet 4.5GPT-5.1-Codex
VPCT39.8%—
LMArena Document1450—

Multilingual Not comparable

Claude Sonnet 4.5: 53.4 (#69), GPT-5.1-Codex: —

Multilingual benchmarks
BenchmarkClaude Sonnet 4.5GPT-5.1-Codex
LMArena Non-English1425—
LMArena Chinese1459—
LMArena French1458—
LMArena German1427—
LMArena Japanese1390—
LMArena Korean1403—
LMArena Russian1437—
LMArena Spanish1457—

Instruction Following Not comparable

Claude Sonnet 4.5: 75.0 (#78), GPT-5.1-Codex: —

Instruction Following benchmarks
BenchmarkClaude Sonnet 4.5GPT-5.1-Codex
IFEval85%—
LMArena Instruction Following1459—

Long Context Not comparable

Claude Sonnet 4.5: 45.2 (#46), GPT-5.1-Codex: —

Long Context benchmarks
BenchmarkClaude Sonnet 4.5GPT-5.1-Codex
LMArena Longer Query1476—

Writing & Preference Not comparable

Claude Sonnet 4.5: 66.5 (#34), GPT-5.1-Codex: —

Writing & Preference benchmarks
BenchmarkClaude Sonnet 4.5GPT-5.1-Codex
LMArena Text1439—
LMArena Creative Writing1442—
EQ-Bench Creative Writing1678—
WildBench85.4%—
LMArena Multi-Turn1465—

Frequently asked questions

Is Claude Sonnet 4.5 better than GPT-5.1-Codex?

Claude Sonnet 4.5 is the stronger model overall, scoring 44.1 to 38.6 on the Noometry Index. GPT-5.1-Codex costs 1.7× less per token, which makes it the better buy when Claude Sonnet 4.5's lead doesn't matter for your workload.

Which is cheaper, Claude Sonnet 4.5 or GPT-5.1-Codex?

GPT-5.1-Codex is cheaper. It lists at $1.25 per million input tokens and $10 per million output tokens; Claude Sonnet 4.5 lists at $3 and $15.

Is Claude Sonnet 4.5 or GPT-5.1-Codex better for coding?

Claude Sonnet 4.5 scores higher on coding benchmarks: 47.3 versus 41.9 in the Noometry coding category.

Which has the bigger context window?

GPT-5.1-Codex does, with 400K tokens against 200K.

How many benchmarks do Claude Sonnet 4.5 and GPT-5.1-Codex share?

6 benchmarks have published results for both models. Claude Sonnet 4.5 has 73 scored results on Noometry and GPT-5.1-Codex has 6.

Related comparisons

Go deeper