Enter opens the highlighted result. Esc closes.

Claude Sonnet 5 vs GPT-4.1 Mini

Claude Sonnet 5 leads GPT-4.1 Mini on the Artificial Analysis Intelligence Index, 38.2 to 10.2, and GPT-4.1 Mini costs 6.3x less per output token ($1.60 vs $10.00 per million). Updated October 21, 2026; 65 benchmarks have a result for both.

Claude Sonnet 5Anthropic
Coding
57.7
Overall
63.2
Output $/M
$10.00
65
GPT-4.1 MiniOpenAI
Coding
No data
Overall
31.9
Output $/M
$1.60
0
vs boards won of 65 shared

Claude Sonnet 5 or GPT-4.1 Mini: which to pick

Only Claude Sonnet 5 has a coding score, 57.7 on the Vibe Coding Index; GPT-4.1 Mini has none, so the two cannot be ranked on coding.

Pick GPT-4.1 Mini for output tokens 6.3x cheaper ($1.60 vs $10.00 per million) and a lower cost per solved task ($1.818 against $1.87).

Shared results
65
Claude Sonnet 5 only
56
GPT-4.1 Mini only
21
Like-for-like categories
7 of 9

Only benchmarks that tested both models count toward a pick; a result only one model has is shown but not compared.

Which one for your work

Each card is decided by one number both models carry. Where only one has it, the card says so and makes no call.

At a glance

Coding index
Claude Sonnet 5 57.7 from 6 benchmarks, GPT-4.1 Mini not benchmarked.
Widest category
Math, 38.0 points apart on average over 4 shared benchmarks.
Widest single gap
FrontierMath, tiers 1 to 3: Claude Sonnet 5 65.6% against GPT-4.1 Mini 6.7%, 58.9 points apart on a 0 to 100 scale.
Output price
Claude Sonnet 5 $10.00 against GPT-4.1 Mini $1.60 per million output tokens, 6.3x apart.
Context window
Claude Sonnet 5 takes 1M tokens, GPT-4.1 Mini 1.05M.

Benchmark by benchmark

First the score: boards each model leads, per category, where both have a result. Then every board, a category to a fold; bars are each result on a 0 to 100 scale, so compare the two in a row, not one row with another.

Boards won, where both have a result
CategoryClaude Sonnet 5BarsGPT-4.1 MiniTies
Coding50
Intelligence20
Reasoning120
Math40
Knowledge100
Web design60
General260
All shared boards650
CodingLike-for-likeSix of these boards feed the Vibe Coding Index50
Coding benchmarks for Claude Sonnet 5 and GPT-4.1 Mini
BenchmarkClaude Sonnet 5GPT-4.1 MiniLeader
Aider polyglotNot measured32.4%Only GPT-4.1 Mini measured
SWE-bench VerifiedNot measured23.9%Only GPT-4.1 Mini measured
LiveBench coding74.7%Not measuredOnly Claude Sonnet 5 measured
LMArena WebDev1540Not measuredOnly Claude Sonnet 5 measured
AA Coding Index71.520.2Claude Sonnet 5
LiveCodeBench (Vals AI)82.4%58.2%Claude Sonnet 5
SWE-bench Verified (Vals AI)79.6%Not measuredOnly Claude Sonnet 5 measured
Terminal-Bench 4 (Vals AI)10.6%Not measuredOnly Claude Sonnet 5 measured
Vibe Code Bench (Vals AI)81.3%Not measuredOnly Claude Sonnet 5 measured
Code migration (Vals AI)44.4%Not measuredOnly Claude Sonnet 5 measured
ProgramBench (Vals AI)0.0%Not measuredOnly Claude Sonnet 5 measured
IOI (Vals AI)45.0%Not measuredOnly Claude Sonnet 5 measured
Terminal-Bench 2.1 (Vals AI)74.5%Not measuredOnly Claude Sonnet 5 measured
Vibe Code Bench 1-100 (Vals AI)13.8%Not measuredOnly Claude Sonnet 5 measured
SkillsBench (Vals AI)46.5%Not measuredOnly Claude Sonnet 5 measured
CyberBench (Vals AI)70.3%Not measuredOnly Claude Sonnet 5 measured
LiveCodeBench (Artificial Analysis run)Not measured48.3%Only GPT-4.1 Mini measured
SciCode54.3%Not measuredOnly Claude Sonnet 5 measured
Terminal-Bench Hard (Artificial Analysis run)Not measured7.6%Only GPT-4.1 Mini measured
FrontierCode42.7%Not measuredOnly Claude Sonnet 5 measured
GSO-Bench37.3%Not measuredOnly Claude Sonnet 5 measured
WeirdML68.8%37.6%Claude Sonnet 5
ALE-Bench1463.1Not measuredOnly Claude Sonnet 5 measured
LMArena Text: coding14831367Claude Sonnet 5
LMArena Text: software and IT14741360Claude Sonnet 5
LMArena WebDev: React1541Not measuredOnly Claude Sonnet 5 measured
LMArena WebDev: HTML1527Not measuredOnly Claude Sonnet 5 measured
LMArena WebDev: from an image1540Not measuredOnly Claude Sonnet 5 measured
SciCode10.7%Not measuredOnly Claude Sonnet 5 measured
Neither model has a result on the other 10 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index20
Intelligence benchmarks for Claude Sonnet 5 and GPT-4.1 Mini
BenchmarkClaude Sonnet 5GPT-4.1 MiniLeader
AA Intelligence Index38.210.2Claude Sonnet 5
Epoch Capabilities Index156.9134.9Claude Sonnet 5
Agentic workDirectional onlyPublic boards, shown as published, kept out of the index23 boards, none shared
Agentic work benchmarks for Claude Sonnet 5 and GPT-4.1 Mini
BenchmarkClaude Sonnet 5GPT-4.1 MiniLeader
AA Agentic Index43.6Not measuredOnly Claude Sonnet 5 measured
Design Arena: agents building web apps1245Not measuredOnly Claude Sonnet 5 measured
Design Arena: agents building full-stack apps1249Not measuredOnly Claude Sonnet 5 measured
Design Arena: agents building mobile apps1215Not measuredOnly Claude Sonnet 5 measured
Design Arena: agents building Android apps1225Not measuredOnly Claude Sonnet 5 measured
Design Arena: agents building Godot games1225Not measuredOnly Claude Sonnet 5 measured
Design Arena: agents building games1227Not measuredOnly Claude Sonnet 5 measured
Design Arena: HTML slides1218Not measuredOnly Claude Sonnet 5 measured
Design Arena: PowerPoint slides1216Not measuredOnly Claude Sonnet 5 measured
Design Arena: spreadsheets1021Not measuredOnly Claude Sonnet 5 measured
LiveBench research82.8%Not measuredOnly Claude Sonnet 5 measured
LiveBench browser72.0%Not measuredOnly Claude Sonnet 5 measured
LiveBench long agentic39.0%Not measuredOnly Claude Sonnet 5 measured
SREBench (Vals AI)0.4%Not measuredOnly Claude Sonnet 5 measured
Finance Agent (Vals AI)53.9%Not measuredOnly Claude Sonnet 5 measured
Tax Agent Bench (Vals AI)29.4%Not measuredOnly Claude Sonnet 5 measured
Legal Research Bench (Vals AI)41.8%Not measuredOnly Claude Sonnet 5 measured
Excel Modeling Benchmark (Vals AI)66.3%Not measuredOnly Claude Sonnet 5 measured
Terminal-Bench-Science (Vals AI)5.7%Not measuredOnly Claude Sonnet 5 measured
τ²-Bench TelecomNot measured52.9%Only GPT-4.1 Mini measured
APEX-Agents54.5%Not measuredOnly Claude Sonnet 5 measured
Vending-Bench 2$6,378Not measuredOnly Claude Sonnet 5 measured
Berkeley Function Calling Leaderboard (BFCL)Not measured50.4%Only GPT-4.1 Mini measured
Neither model has a result on the other 18 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index120
Reasoning benchmarks for Claude Sonnet 5 and GPT-4.1 Mini
BenchmarkClaude Sonnet 5GPT-4.1 MiniLeader
GPQA Diamond88.9%67.9%Claude Sonnet 5
LiveBench reasoning88.7%Not measuredOnly Claude Sonnet 5 measured
MMMU Pro (Vals AI)83.0%70.5%Claude Sonnet 5
GPQA Diamond (Artificial Analysis run)91.1%66.4%Claude Sonnet 5
Humanity's Last Exam (Artificial Analysis run)41.3%5.0%Claude Sonnet 5
GPQA Diamond (Epoch AI run)90.5%65.8%Claude Sonnet 5
ARC-AGINot measured3.5%Only GPT-4.1 Mini measured
ARC-AGI-2Not measured0.0%Only GPT-4.1 Mini measured
SimpleBench60.6%Not measuredOnly Claude Sonnet 5 measured
Chess puzzles45.0%1.0%Claude Sonnet 5
Mystery game puzzles35.0%7.0%Claude Sonnet 5
LMArena Text: hard prompts14611349Claude Sonnet 5
LMArena Text: expert14891338Claude Sonnet 5
LMArena Text: hard prompts in English14641362Claude Sonnet 5
LMArena Vision: diagrams12931182Claude Sonnet 5
LMArena Vision: homework13111214Claude Sonnet 5
Kagi LLM BenchmarkNot measured48.6%Only GPT-4.1 Mini measured
Neither model has a result on the other 5 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index40
Math benchmarks for Claude Sonnet 5 and GPT-4.1 Mini
BenchmarkClaude Sonnet 5GPT-4.1 MiniLeader
AIMENot measured49.4%Only GPT-4.1 Mini measured
MATH 500 (Vals AI)Not measured88.0%Only GPT-4.1 Mini measured
MGSM (Vals AI)Not measured87.8%Only GPT-4.1 Mini measured
AA Math IndexNot measured46.3Only GPT-4.1 Mini measured
AIME 2025 (Artificial Analysis run)Not measured46.3%Only GPT-4.1 Mini measured
OTIS Mock AIME94.7%44.7%Claude Sonnet 5
FrontierMath, tiers 1 to 365.6%6.7%Claude Sonnet 5
FrontierMath, tier 429.3%Not measuredOnly Claude Sonnet 5 measured
ProofBench77.0%Not measuredOnly Claude Sonnet 5 measured
MATH level 5Not measured87.3%Only GPT-4.1 Mini measured
LMArena Text: math14671343Claude Sonnet 5
LMArena Text: mathematical work14811347Claude Sonnet 5
Neither model has a result on the other 1 board here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index100
Knowledge benchmarks for Claude Sonnet 5 and GPT-4.1 Mini
BenchmarkClaude Sonnet 5GPT-4.1 MiniLeader
MMLU Pro87.5%77.2%Claude Sonnet 5
LegalBench (Vals AI)83.9%78.0%Claude Sonnet 5
CorpFin (Vals AI)67.0%57.9%Claude Sonnet 5
TaxEval (Vals AI)75.6%71.9%Claude Sonnet 5
MortgageTax (Vals AI)70.0%65.5%Claude Sonnet 5
MedQA (Vals AI)Not measured84.6%Only GPT-4.1 Mini measured
MedCode (Vals AI)47.5%Not measuredOnly Claude Sonnet 5 measured
MMLU Pro (Artificial Analysis run)Not measured78.1%Only GPT-4.1 Mini measured
SimpleQA Verified33.7%12.7%Claude Sonnet 5
LMArena Text: science14601328Claude Sonnet 5
LMArena Text: medicine and healthcare14421324Claude Sonnet 5
LMArena Text: legal and government14541343Claude Sonnet 5
LMArena Text: business and finance14361322Claude Sonnet 5
Neither model has a result on the other 5 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index60
Web design benchmarks for Claude Sonnet 5 and GPT-4.1 Mini
BenchmarkClaude Sonnet 5GPT-4.1 MiniLeader
Design Arena: websites1274997Claude Sonnet 5
Design Arena: UI components1280961Claude Sonnet 5
Design Arena: game dev12781071Claude Sonnet 5
Design Arena: data viz12511034Claude Sonnet 5
Design Arena: 3D1261837Claude Sonnet 5
Design Arena: all code categories1276994Claude Sonnet 5
Design Arena: SVG1193Not measuredOnly Claude Sonnet 5 measured
Design Arena: ASCII art1207Not measuredOnly Claude Sonnet 5 measured
LiveBench design82.0%Not measuredOnly Claude Sonnet 5 measured
GeneralLike-for-likePublic boards, shown as published, kept out of the index260
General benchmarks for Claude Sonnet 5 and GPT-4.1 Mini
BenchmarkClaude Sonnet 5GPT-4.1 MiniLeader
LiveBench data analysis71.7%Not measuredOnly Claude Sonnet 5 measured
Public Benefits Bench (Vals AI)66.0%Not measuredOnly Claude Sonnet 5 measured
SAGE (Vals AI)48.9%Not measuredOnly Claude Sonnet 5 measured
MedScribe (Vals AI)76.0%Not measuredOnly Claude Sonnet 5 measured
Vals Multimodal Index68.8%Not measuredOnly Claude Sonnet 5 measured
IFBenchNot measured38.3%Only GPT-4.1 Mini measured
Long context reasoning (AA-LCR)82.0%44.0%Claude Sonnet 5
DTBench92.5%68.8%Claude Sonnet 5
LMCA50.0%21.1%Claude Sonnet 5
Fiction.LiveBenchNot measured44.4%Only GPT-4.1 Mini measured
Surface Evolver Bench60.0%Not measuredOnly Claude Sonnet 5 measured
LMArena Text14421341Claude Sonnet 5
LMArena Text: instruction following14521333Claude Sonnet 5
LMArena Text: creative writing14161299Claude Sonnet 5
LMArena Vision12731181Claude Sonnet 5
LMArena Text: English14501356Claude Sonnet 5
LMArena Text: non-English14311318Claude Sonnet 5
LMArena Text: Chinese14781329Claude Sonnet 5
LMArena Text: German14421350Claude Sonnet 5
LMArena Text: Japanese14221290Claude Sonnet 5
LMArena Text: Korean14121298Claude Sonnet 5
LMArena Text: French14631358Claude Sonnet 5
LMArena Text: Spanish14381319Claude Sonnet 5
LMArena Text: Russian14501324Claude Sonnet 5
LMArena Text: Polish14251326Claude Sonnet 5
LMArena Text: multi-turn14531354Claude Sonnet 5
LMArena Text: longer queries14621344Claude Sonnet 5
LMArena Text: writing and language14361319Claude Sonnet 5
LMArena Text: entertainment and media14111300Claude Sonnet 5
LMArena Vision: English12751191Claude Sonnet 5
LMArena Vision: Chinese13311186Claude Sonnet 5
LMArena Vision: reading text12881188Claude Sonnet 5
LMArena Vision: humor12611182Claude Sonnet 5
LMArena Vision: captioningNot measured1174Only GPT-4.1 Mini measured
LMArena Vision: recognizing thingsNot measured1187Only GPT-4.1 Mini measured
LMArena Vision: creative writing12461182Claude Sonnet 5
LMArena Document1466Not measuredOnly Claude Sonnet 5 measured
Neither model has a result on the other 9 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for Claude Sonnet 5 and GPT-4.1 Mini
BenchmarkClaude Sonnet 5GPT-4.1 MiniLeader
Neither model has a result on 5 boards here

What each workload costs

Three fixed token mixes at each model's listed price, so per-token rates become a bill.

Chat turn

1K input + 500 output tokens

Claude Sonnet 5$0.0070Fits in one request
GPT-4.1 Mini$0.0012Fits in one request

GPT-4.1 Mini costs less

Repository review

50K input + 3K output tokens

Claude Sonnet 5$0.130Fits in one request
GPT-4.1 Mini$0.025Fits in one request

GPT-4.1 Mini costs less

Agent loop

200K input + 10K output tokens

Claude Sonnet 5$0.500Fits in one request
GPT-4.1 Mini$0.096Fits in one request

GPT-4.1 Mini costs less

Listed OpenRouter rates, without cache or batch discounts. A workload that does not fit a model's context window would need splitting.

Specification differences

The leading value in a row is marked; a row with a missing value names no leader. Our two rows are marked in red.

Specifications of Claude Sonnet 5 and GPT-4.1 Mini
SpecificationAnthropic Claude Sonnet 5OpenAI GPT-4.1 Mini
MakerAnthropicOpenAI
WeightsNo public weights listedNo public weights listed
ReleasedJune 30, 2026April 14, 2025
Context window1M1.05M
Input $/Mtok$2.00$0.40
Output $/Mtok$10.00$1.60
Coding index57.7Not benchmarked
Independent measurements behind it60
Cost per solved task$1.87$1.818
SourceOpenRouter listingOpenRouter listing

Questions

Is Claude Sonnet 5 better than GPT-4.1 Mini for coding?

Only Claude Sonnet 5 has a coding score, 57.7 on the Vibe Coding Index; GPT-4.1 Mini has none, so the two cannot be ranked on coding. Pick GPT-4.1 Mini for output tokens 6.3x cheaper ($1.60 vs $10.00 per million) and a lower cost per solved task ($1.818 against $1.87).

Which is cheaper, Claude Sonnet 5 or GPT-4.1 Mini?

Claude Sonnet 5 costs $2.00 per million input tokens and $10.00 per million output tokens; GPT-4.1 Mini costs $0.40 and $1.60. Per solved SWE-bench Verified task, Claude Sonnet 5 costs $1.87 and GPT-4.1 Mini $1.818.

Which has the bigger context window, Claude Sonnet 5 or GPT-4.1 Mini?

GPT-4.1 Mini, with 1.05M tokens against 1M.

How many benchmarks is the Claude Sonnet 5 vs GPT-4.1 Mini comparison based on?

65 benchmarks have a result for both models as of October 21, 2026. Claude Sonnet 5's coding index rests on 6 independent benchmarks and GPT-4.1 Mini's on 0. Where only one model has a result, the page says so instead of naming a winner.

Compare next