Skip to content
VECTOR WIREAI INTELLIGENCE
UTC

Claude Sonnet 4.5 vs GPT-5.1 Codex mini

Anthropic · released

Wins 4 of 7 areas

Coding · Reasoning · Facts · Long documents

OpenAI · released

Wins 2 of 7 areas

Agents · Following instructions

Claude Sonnet 4.5 wins more areas, narrowly.GPT-5.1 Codex mini is cheaper and better at agents.

Scores updated · 18 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 mini$0.25 to read · $2.00 to write$2.25Price from Artificial Analysis

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

The biggest differences

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

Where Claude Sonnet 4.5 pulls ahead

  • Answers hard knowledge questions correctlyAA-Omniscience · Accuracy+9.7points aheadClaude Sonnet 4.532.9GPT-5.1 Codex mini23.2
  • Reasons across sets of long documentsAA-LCR+5.6points aheadClaude Sonnet 4.572.3GPT-5.1 Codex mini66.7
  • Code for real scientific research problemsSciCode+3.1points aheadClaude Sonnet 4.545.7GPT-5.1 Codex mini42.6

Where GPT-5.1 Codex mini pulls ahead

  • Follows unfamiliar, precisely checkable instructionsIFBench+10.6points aheadGPT-5.1 Codex mini67.9Claude Sonnet 4.557.3
  • Real work tasks from 44 professionsGDPVal+7.2points aheadGPT-5.1 Codex mini27.7Claude Sonnet 4.520.5

Every test, side by side

All 18 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 mini
  • GDPValGPT-5.1 Codex mini by 7.220.527.7+7.2

Full agents ranking

ReasoningClaude Sonnet 4.5

Full reasoning ranking

FactsClaude Sonnet 4.5

Full facts ranking

Images and chartsEven

Full images and charts ranking

Long documentsClaude Sonnet 4.5
  • AA-LCRClaude Sonnet 4.5 by 5.672.366.7+5.6

Full long documents ranking

Following instructionsGPT-5.1 Codex mini
  • IFBenchGPT-5.1 Codex mini by 10.657.367.9+10.6

Full following instructions ranking

Other results6 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 mini?

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

Which is better for coding?

Claude Sonnet 4.5. It wins 3 of the 3 coding tests both models report; GPT-5.1 Codex mini wins none.

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 mini costs $0.25 and $2.00. That makes GPT-5.1 Codex mini about 88% cheaper for the same work.

How do you compare the two?

We use the 18 benchmark tests both models have published scores on. The verdict counts the 12 tests in the eight capability areas, and a gap under one point (ten on rating-style scales) counts as a tie. The other 6 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.