LLMBenchmark.ai

Enter opens the highlighted result. Esc closes.

Claude Sonnet 4.5 vs GPT-4.1 Mini

Updated October 21, 2026. 61 benchmarks have a result for both. Coding is ranked on the Vibe Coding Index; every other board is shown as published.

Claude Sonnet 4.5Anthropic
Coding
59.1
Overall
20.7
Output $/M
$15.00
60
GPT-4.1 MiniOpenAI
Coding
28.5
Overall
10.2
Output $/M
$1.60
1
vs boards won of 61 shared

Decision reading

Pick Claude Sonnet 4.5 for coding: it scores 59.1 on the Vibe Coding Index against 28.5 for GPT-4.1 Mini.

Pick GPT-4.1 Mini when output tokens cost 9.4x less, or when the context window is larger, 1.05M against 1M tokens.

Shared results
61
Claude Sonnet 4.5 only
31
GPT-4.1 Mini only
23
Like-for-like categories
7 of 9

Shared results can support a head-to-head reading. Results only one model has describe coverage, not superiority.

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 4.5 59.1 from 2 benchmarks, GPT-4.1 Mini 28.5 from 2 benchmarks.
Widest category
Coding, 24.4 points apart on average over 6 shared benchmarks.
Widest single gap
ARC-AGI: Claude Sonnet 4.5 63.7% against GPT-4.1 Mini 3.5%, 60.2 points apart on a 0 to 100 scale.
Output price
Claude Sonnet 4.5 $15.00 against GPT-4.1 Mini $1.60 per million output tokens, 9.4x apart.
Context window
Claude Sonnet 4.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 4.5BarsGPT-4.1 MiniTies
Coding60
Intelligence20
Reasoning100
Math70
Knowledge101
Web design60
General190
All shared boards601
CodingLike-for-likeFour of these boards feed the Vibe Coding Index60
Coding benchmarks for Claude Sonnet 4.5 and GPT-4.1 Mini
BenchmarkClaude Sonnet 4.5GPT-4.1 MiniLeader
Aider polyglotNot measured32.4%Only GPT-4.1 Mini measured
SWE-bench Verified74.8%23.9%Claude Sonnet 4.5
SWE-bench Multilingual67.0%Not measuredOnly Claude Sonnet 4.5 measured
LMArena WebDev1394Not measuredOnly Claude Sonnet 4.5 measured
AA Coding Index52.120.2Claude Sonnet 4.5
LiveCodeBench (Vals AI)73.0%58.2%Claude Sonnet 4.5
SWE-bench Verified (Vals AI)70.0%Not measuredOnly Claude Sonnet 4.5 measured
Vibe Code Bench (Vals AI)22.6%Not measuredOnly Claude Sonnet 4.5 measured
LiveCodeBench (Artificial Analysis run)Not measured48.3%Only GPT-4.1 Mini measured
Terminal-Bench Hard (Artificial Analysis run)Not measured7.6%Only GPT-4.1 Mini measured
Terminal-Bench46.5%Not measuredOnly Claude Sonnet 4.5 measured
GSO-Bench14.7%Not measuredOnly Claude Sonnet 4.5 measured
WeirdML47.7%37.6%Claude Sonnet 4.5
Cybench60.0%Not measuredOnly Claude Sonnet 4.5 measured
LMArena Text: coding14881367Claude Sonnet 4.5
LMArena Text: software and IT14731360Claude Sonnet 4.5
LMArena WebDev: React1386Not measuredOnly Claude Sonnet 4.5 measured
LMArena WebDev: HTML1399Not measuredOnly Claude Sonnet 4.5 measured
Neither model has a result on the other 20 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index20
Intelligence benchmarks for Claude Sonnet 4.5 and GPT-4.1 Mini
BenchmarkClaude Sonnet 4.5GPT-4.1 MiniLeader
AA Intelligence Index20.710.2Claude Sonnet 4.5
Epoch Capabilities Index146.7134.9Claude Sonnet 4.5
Agentic workDirectional onlyPublic boards, shown as published, kept out of the index11 boards, none shared
Agentic work benchmarks for Claude Sonnet 4.5 and GPT-4.1 Mini
BenchmarkClaude Sonnet 4.5GPT-4.1 MiniLeader
AA Agentic Index15.8Not measuredOnly Claude Sonnet 4.5 measured
Design Arena: agents building web apps1060Not measuredOnly Claude Sonnet 4.5 measured
Design Arena: agents building full-stack apps1050Not measuredOnly Claude Sonnet 4.5 measured
Design Arena: agents building mobile apps1137Not measuredOnly Claude Sonnet 4.5 measured
τ²-Bench TelecomNot measured52.9%Only GPT-4.1 Mini measured
METR time horizons67.4%Not measuredOnly Claude Sonnet 4.5 measured
Remote Labor Index2.1%Not measuredOnly Claude Sonnet 4.5 measured
GDPval42.5%Not measuredOnly Claude Sonnet 4.5 measured
DeepResearch Bench52.6%Not measuredOnly Claude Sonnet 4.5 measured
OSWorld62.9%Not measuredOnly Claude Sonnet 4.5 measured
Vending-Bench 2$3,839Not measuredOnly Claude Sonnet 4.5 measured
Neither model has a result on the other 28 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index100
Reasoning benchmarks for Claude Sonnet 4.5 and GPT-4.1 Mini
BenchmarkClaude Sonnet 4.5GPT-4.1 MiniLeader
GPQA Diamond81.6%67.9%Claude Sonnet 4.5
MMMU Pro (Vals AI)79.3%70.5%Claude Sonnet 4.5
GPQA Diamond (Artificial Analysis run)Not measured66.4%Only GPT-4.1 Mini measured
Humanity's Last Exam (Artificial Analysis run)Not measured5.0%Only GPT-4.1 Mini measured
GPQA Diamond (Epoch AI run)82.3%65.8%Claude Sonnet 4.5
ARC-AGI63.7%3.5%Claude Sonnet 4.5
ARC-AGI-213.6%0.0%Claude Sonnet 4.5
SimpleBench54.3%Not measuredOnly Claude Sonnet 4.5 measured
Chess puzzles10.0%1.0%Claude Sonnet 4.5
Mystery game puzzles17.0%7.0%Claude Sonnet 4.5
EBR-bench2.4%Not measuredOnly Claude Sonnet 4.5 measured
VPCT39.8%Not measuredOnly Claude Sonnet 4.5 measured
LMArena Text: hard prompts14621349Claude Sonnet 4.5
LMArena Text: expert14831338Claude Sonnet 4.5
LMArena Text: hard prompts in English14711362Claude Sonnet 4.5
LMArena Vision: diagramsNot measured1182Only GPT-4.1 Mini measured
LMArena Vision: homeworkNot measured1214Only GPT-4.1 Mini measured
Neither model has a result on the other 4 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index70
Math benchmarks for Claude Sonnet 4.5 and GPT-4.1 Mini
BenchmarkClaude Sonnet 4.5GPT-4.1 MiniLeader
AIME88.2%49.4%Claude Sonnet 4.5
MATH 500 (Vals AI)Not measured88.0%Only GPT-4.1 Mini measured
MGSM (Vals AI)94.3%87.8%Claude Sonnet 4.5
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 AIME77.8%44.7%Claude Sonnet 4.5
FrontierMath, tiers 1 to 323.9%6.7%Claude Sonnet 4.5
FrontierMath, tier 42.4%Not measuredOnly Claude Sonnet 4.5 measured
ProofBench19.0%Not measuredOnly Claude Sonnet 4.5 measured
MATH level 597.7%87.3%Claude Sonnet 4.5
LMArena Text: math14491343Claude Sonnet 4.5
LMArena Text: mathematical work14621347Claude Sonnet 4.5
Neither model has a result on the other 1 board here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index101
Knowledge benchmarks for Claude Sonnet 4.5 and GPT-4.1 Mini
BenchmarkClaude Sonnet 4.5GPT-4.1 MiniLeader
MMLU Pro87.4%77.2%Claude Sonnet 4.5
LegalBench (Vals AI)84.1%78.0%Claude Sonnet 4.5
CaseLaw (Vals AI)62.2%Not measuredOnly Claude Sonnet 4.5 measured
CorpFin (Vals AI)62.0%57.9%Claude Sonnet 4.5
TaxEval (Vals AI)73.3%71.9%Claude Sonnet 4.5
MortgageTax (Vals AI)64.0%65.5%GPT-4.1 Mini
MedQA (Vals AI)94.7%84.6%Claude Sonnet 4.5
MedCode (Vals AI)44.1%Not measuredOnly Claude Sonnet 4.5 measured
MMLU Pro (Artificial Analysis run)Not measured78.1%Only GPT-4.1 Mini measured
SimpleQA Verified30.7%12.7%Claude Sonnet 4.5
LMArena Text: science14481328Claude Sonnet 4.5
LMArena Text: medicine and healthcare14441324Claude Sonnet 4.5
LMArena Text: legal and government14511343Claude Sonnet 4.5
LMArena Text: business and finance14401322Claude Sonnet 4.5
Neither model has a result on the other 3 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index60
Web design benchmarks for Claude Sonnet 4.5 and GPT-4.1 Mini
BenchmarkClaude Sonnet 4.5GPT-4.1 MiniLeader
Design Arena: websites1190997Claude Sonnet 4.5
Design Arena: UI components1173961Claude Sonnet 4.5
Design Arena: game dev11661071Claude Sonnet 4.5
Design Arena: data viz11671034Claude Sonnet 4.5
Design Arena: 3D1158837Claude Sonnet 4.5
Design Arena: all code categories1183994Claude Sonnet 4.5
Design Arena: SVG1114Not measuredOnly Claude Sonnet 4.5 measured
Design Arena: ASCII art1204Not measuredOnly Claude Sonnet 4.5 measured
Neither model has a result on the other 1 board here
GeneralLike-for-likePublic boards, shown as published, kept out of the index190
General benchmarks for Claude Sonnet 4.5 and GPT-4.1 Mini
BenchmarkClaude Sonnet 4.5GPT-4.1 MiniLeader
SAGE (Vals AI)36.1%Not measuredOnly Claude Sonnet 4.5 measured
MedScribe (Vals AI)84.5%Not measuredOnly Claude Sonnet 4.5 measured
IFBenchNot measured38.3%Only GPT-4.1 Mini measured
Long context reasoning (AA-LCR)Not measured44.0%Only GPT-4.1 Mini measured
DTBench83.2%68.8%Claude Sonnet 4.5
LMCA38.8%21.1%Claude Sonnet 4.5
Fiction.LiveBenchNot measured44.4%Only GPT-4.1 Mini measured
LMArena Text14381341Claude Sonnet 4.5
LMArena Text: instruction following14591333Claude Sonnet 4.5
LMArena Text: creative writing14421299Claude Sonnet 4.5
LMArena VisionNot measured1181Only GPT-4.1 Mini measured
LMArena Text: English14501356Claude Sonnet 4.5
LMArena Text: non-English14251318Claude Sonnet 4.5
LMArena Text: Chinese14601329Claude Sonnet 4.5
LMArena Text: German14271350Claude Sonnet 4.5
LMArena Text: Japanese13901290Claude Sonnet 4.5
LMArena Text: Korean14021298Claude Sonnet 4.5
LMArena Text: French14591358Claude Sonnet 4.5
LMArena Text: Spanish14581319Claude Sonnet 4.5
LMArena Text: Russian14371324Claude Sonnet 4.5
LMArena Text: Polish14231326Claude Sonnet 4.5
LMArena Text: multi-turn14651354Claude Sonnet 4.5
LMArena Text: longer queries14751344Claude Sonnet 4.5
LMArena Text: writing and language14421319Claude Sonnet 4.5
LMArena Text: entertainment and media14281300Claude Sonnet 4.5
LMArena Vision: EnglishNot measured1191Only GPT-4.1 Mini measured
LMArena Vision: ChineseNot measured1186Only GPT-4.1 Mini measured
LMArena Vision: reading textNot measured1188Only GPT-4.1 Mini measured
LMArena Vision: humorNot measured1182Only GPT-4.1 Mini measured
LMArena Vision: captioningNot measured1174Only GPT-4.1 Mini measured
LMArena Vision: recognizing thingsNot measured1187Only GPT-4.1 Mini measured
LMArena Vision: creative writingNot measured1182Only GPT-4.1 Mini measured
LMArena Document1450Not measuredOnly Claude Sonnet 4.5 measured
Neither model has a result on the other 13 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for Claude Sonnet 4.5 and GPT-4.1 Mini
BenchmarkClaude Sonnet 4.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 4.5$0.011Fits 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 4.5$0.195Fits 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 4.5$0.750Fits 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 4.5 and GPT-4.1 Mini
SpecificationAnthropic Claude Sonnet 4.5OpenAI GPT-4.1 Mini
MakerAnthropicOpenAI
WeightsNo public weights listedNo public weights listed
ReleasedSeptember 29, 2025April 14, 2025
Context window1M1.05M
Input $/Mtok$3.00$0.40
Output $/Mtok$15.00$1.60
Coding index59.128.5
Independent measurements behind it22
Cost per solved task$1.16$1.818
SourceOpenRouter listingOpenRouter listing

Questions

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

Pick Claude Sonnet 4.5 for coding: it scores 59.1 on the Vibe Coding Index against 28.5 for GPT-4.1 Mini. Pick GPT-4.1 Mini when output tokens cost 9.4x less, or when the context window is larger, 1.05M against 1M tokens.

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

Claude Sonnet 4.5 costs $3.00 per million input tokens and $15.00 per million output tokens; GPT-4.1 Mini costs $0.40 and $1.60. Per solved SWE-bench Verified task, Claude Sonnet 4.5 costs $1.16 and GPT-4.1 Mini $1.818.

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

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

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

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

Compare next

Embed this comparison on your site

Free under CC BY 4.0, while the source link stays visible. Preview the frame · Terms and other embeds

<iframe src="https://llmbenchmark.ai/embed/compare/claude-sonnet-4-5-vs-gpt-4-1-mini" title="Claude Sonnet 4.5 vs GPT-4.1 Mini, LLMBenchmark.ai" width="100%" height="360" style="border:0;max-width:100%" loading="lazy"></iframe>
<p style="font:13px/1.4 sans-serif;margin:6px 0 0">Source: <a href="https://llmbenchmark.ai/compare/claude-sonnet-4-5-vs-gpt-4-1-mini">LLMBenchmark.ai, Claude Sonnet 4.5 vs GPT-4.1 Mini</a></p>