Skip to content
VECTOR WIREAI INTELLIGENCE
UTC

Claude Sonnet 4.5 vs GPT-5.1 Codex

Anthropic · released

Wins 2 of 7 areas

Coding · Long documents

OpenAI · released

Wins 4 of 7 areas

Agents · Reasoning · Images and charts · Following instructions

GPT-5.1 Codex wins more areas, narrowly.Claude Sonnet 4.5 is better at coding.

Scores updated · 20 tests both models report · How we compare

What it costs

Prices per million tokens, roughly 750,000 words. The bars show the cost of a million tokens read plus a million written.

Claude Sonnet 4.5$3.00 to read · $15.00 to write$18Price from Artificial Analysis
GPT-5.1 Codex$1.25 to read · $10.00 to write$11Price from Artificial Analysis

GPT-5.1 Codex costs 38% less for the same work.

The biggest differences

The three tests each model wins by the widest margin. Scores are out of 100.

Where GPT-5.1 Codex pulls ahead

  • Real work tasks from 44 professionsGDPVal+14.1points aheadGPT-5.1 Codex34.6Claude Sonnet 4.520.5
  • Follows unfamiliar, precisely checkable instructionsIFBench+12.7points aheadGPT-5.1 Codex70Claude Sonnet 4.557.3
  • Very hard expert questions across many subjectsHumanity's Last Exam+7.9points aheadGPT-5.1 Codex25.7Claude Sonnet 4.517.8

Where Claude Sonnet 4.5 pulls ahead

  • Avoids making up answers it doesn't knowAA-Omniscience · Non-hallucination+28.1points aheadClaude Sonnet 4.550.9GPT-5.1 Codex22.8
  • Code for real scientific research problemsSciCode+5.5points aheadClaude Sonnet 4.545.7GPT-5.1 Codex40.2
  • Fixes real GitHub issues in Python projectsSWE-bench Verified+3.5points aheadClaude Sonnet 4.577.2GPT-5.1 Codex73.7

Every test, side by side

All 20 tests both models report. The winning score is in its model's colour; marks a score checked independently.

CodingClaude Sonnet 4.5

Full coding ranking

AgentsGPT-5.1 Codex
  • GDPValGPT-5.1 Codex by 14.120.534.6+14.1

Full agents ranking

ReasoningGPT-5.1 Codex

Full reasoning ranking

FactsEven

Full facts ranking

Images and chartsGPT-5.1 Codex
  • MMMU-ProGPT-5.1 Codex by 3.868.772.5+3.8

Full images and charts ranking

Long documentsClaude Sonnet 4.5
  • AA-LCRClaude Sonnet 4.5 by 372.369.3+3

Full long documents ranking

Following instructionsGPT-5.1 Codex
  • IFBenchGPT-5.1 Codex by 12.757.370+12.7

Full following instructions ranking

Other results7 tests, not counted

Tests outside the eight areas. They are not counted above: several are summary scores built from other tests, or the same test under another name.

Questions people ask

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

GPT-5.1 Codex wins four of the seven areas where both have results: agents, reasoning, images and charts and following instructions. Claude Sonnet 4.5 wins coding and long documents. They are level on facts.

Which is better for coding?

Claude Sonnet 4.5. It wins 3 of the 4 coding tests both models report; GPT-5.1 Codex wins none, and 1 is a tie.

Which is cheaper?

Claude Sonnet 4.5 costs $3.00 per million input tokens and $15.00 per million output tokens; GPT-5.1 Codex costs $1.25 and $10.00. That makes GPT-5.1 Codex about 38% cheaper for the same work.

How do you compare the two?

We use the 20 benchmark tests both models have published scores on. The verdict counts the 13 tests in the eight capability areas, and a gap under one point (ten on rating-style scales) counts as a tie. The other 7 are listed but not counted, because several are summary scores or repeat a test. Each score is the one shown on the model's own page.