CompareLLM.ai
Live
Leaderboard
Models
Compare
Best of & Stacks
Research & News
…
CompareLLM.ai
Precision Benchmarks

Programmatic, dated AI model benchmarks, head-to-head comparisons, and Stack Engine presets.

Daily ingest · 06:00 UTC

Analytics & Benchmarks

  • AI Model Leaderboard
  • Head-to-Head Compare Hub
  • Models Directory
  • Stack Engine Presets
  • Frontier Models
  • Open Weights Catalog

Guides & Intent Lists

  • Best LLM Lists (2026)
  • Best Coding LLM
  • Best Cheap LLM
  • Fastest Low-Latency LLM
  • Claude vs GPT Benchmark
  • What is Elo?
  • Methodology Guides
  • News & Dispatches

Transparency & API

  • Evaluation Methodology
  • Benchmark Changelog
  • Public JSON API
  • llms.txt Specification
  • Privacy Policy
  • Sign In / Account

© 2026 CompareLLM. Public benchmark data aggregated from Arena Elo, LiveBench, SWE-bench & OpenRouter.

Every score has a dated snapshot.

Theme:
Currency:
  1. Home
  2. Comparisons
  3. Claude Sonnet 4 vs GPT-5 mini

Pairwise benchmark snapshot · Aug 1, 2026

Claude Sonnet 4 vs GPT-5 mini benchmark

In this head-to-head showdown, Claude Sonnet 4 delivers higher overall intelligence and human-preferred responses (Elo 1,455 vs 1,410), while Claude Sonnet 4 leads in SWE-bench software engineering benchmarks (62.8%), while GPT-5 mini is more budget-friendly at $2/1M per 1M output tokens. Review the complete breakdown below to determine which model best fits your performance and budget requirements.

Executive Comparison Verdict

Bottom Line: Choose Claude Sonnet 4 if your priority is peak reasoning, complex code generation, and top preference Elo. Choose GPT-5 mini if you are optimizing for low latency, high throughput, and cost-efficient API deployment.
Share Analysis:
WhatsAppTelegramXLinkedInReddit

Verified Head-to-Head Advantage Breakdown

10 direct benchmark disciplines evaluated across capability, speed, and cost

Claude Sonnet 4 (5)GPT-5 mini (5)
Claude Sonnet 4
5 of 10 Wins
✓Preference Elo✓Coding Elo✓LiveBench✓SWE-bench✓GPQA Diamond
GPT-5 mini
5 of 10 Wins
✓Time to first token✓Output speed✓Input price✓Output price✓Context window
Anthropic
Leads 5 of 10 metrics
Claude Sonnet 4

First Sonnet 4 generation. Bridge between 3.5/3.7 and Sonnet 5.

Elo 1,455$15/1M out
OpenAI
Leads 5 of 10 metrics
GPT-5 mini

Cost-efficient GPT-5 distill for high-volume agents.

Mini DistillElo 1,410$2/1M out
Top Rival Showdowns for Claude Sonnet 4
All Matchups
Compare vs:vs GPT-5vs Gemini 3 Provs Grok 4.6vs DeepSeek V4 Provs Qwen 3 Max
Preference LeaderClaude Sonnet 4 Wins

Claude Sonnet 4

Δ 45 Arena Elo pts

Throughput LeaderGPT-5 mini Wins

GPT-5 mini

155 tok/s

Value per Dollar LeaderGPT-5 mini Wins

GPT-5 mini

$2 / 1M output

Capability Percentiles

Relative percentile scores computed across all active models in the benchmark catalog.

Multi-Dimensional Capability Radar

Leaders Matchup Capability Radar

Comparing top Western standard models with China's leading frontier rival across 6 skill dimensions. Tap any spoke or dot to inspect.

Tap any node to inspect
Percentile 0–100
Head-to-Head Comparison

Overall Matchup Breakdown

Category wins across reasoning intelligence, generation speed, and token cost.

Claude Sonnet 4 (5)vsGPT-5 mini (5)
Claude Sonnet 4: 5W (50%)Overall: Even matchupGPT-5 mini: 5W (50%)
← Claude Sonnet 4GPT-5 mini →
🏆Claude Sonnet 4(5/5)

Intelligence & Reasoning

Preference Elo, Coding proficiency, SWE-bench & LiveBench accuracy

Benchmark
Claude Sonnet 4vsGPT-5 mini
Preference Elo
1,455vs1,410+45
Coding Elo
1,468vs1,395+73
SWE-bench
62.8%vs52.4%+10.4%
LiveBench
63.2%vs61.2%+2%
GPQA Diamond
76.4%vs72%+4.4%
Claude Sonnet 4: 5WGPT-5 mini: 0W
🏆GPT-5 mini(2/2)

Speed & Latency

Generation throughput and time to first token responsiveness

Benchmark
Claude Sonnet 4vsGPT-5 mini
Output speed
92 tok/svs155 tok/s+63 tok/s
Time to first token
220 msvs140 ms+80 ms
Claude Sonnet 4: 0WGPT-5 mini: 2W
🏆GPT-5 mini(3/3)

Pricing & Capacity

Cost per million tokens and max context window length

Benchmark
Claude Sonnet 4vsGPT-5 mini
Output price
$15/1Mvs$2/1M+$13/1M
Input price
$3/1Mvs$0.25/1M+$2.75/1M
Context window
200kvs400k+200k
Claude Sonnet 4: 0WGPT-5 mini: 3W

Side-by-Side Benchmark Matrix

Preference Elo+45
Claude Sonnet 41,455
seed-bootstrap · Aug 1, 2026
GPT-5 mini1,410
seed-bootstrap · Aug 1, 2026
Coding Elo+73
Claude Sonnet 41,468
seed-bootstrap · Aug 1, 2026
GPT-5 mini1,395
seed-bootstrap · Aug 1, 2026
LiveBench+2%
Claude Sonnet 463.2%
seed-bootstrap · Aug 1, 2026
GPT-5 mini61.2%
seed-bootstrap · Aug 1, 2026
SWE-bench+10.4%
Claude Sonnet 462.8%
seed-bootstrap · Aug 1, 2026
GPT-5 mini52.4%
seed-bootstrap · Aug 1, 2026
GPQA Diamond+4.4%
Claude Sonnet 476.4%
seed-bootstrap · Aug 1, 2026
GPT-5 mini72%
seed-bootstrap · Aug 1, 2026
Time to first token+80 ms
Claude Sonnet 4220 ms
seed-bootstrap · Aug 1, 2026
GPT-5 mini140 ms
seed-bootstrap · Aug 1, 2026
Output speed+63 tok/s
Claude Sonnet 492 tok/s
seed-bootstrap · Aug 1, 2026
GPT-5 mini155 tok/s
seed-bootstrap · Aug 1, 2026
Input price+$2.75/1M
Claude Sonnet 4$3/1M
seed-bootstrap · Aug 1, 2026
GPT-5 mini$0.25/1M
seed-bootstrap · Aug 1, 2026
Output price+$13/1M
Claude Sonnet 4$15/1M
seed-bootstrap · Aug 1, 2026
GPT-5 mini$2/1M
seed-bootstrap · Aug 1, 2026
Context window+200k
Claude Sonnet 4200k
seed-bootstrap · Aug 1, 2026
GPT-5 mini400k
seed-bootstrap · Aug 1, 2026
BenchmarkClaude Sonnet 4GPT-5 miniAdvantage Delta
Preference Elo
1,455
seed-bootstrap · Aug 1, 2026
1,410
seed-bootstrap · Aug 1, 2026
+45
Coding Elo
1,468
seed-bootstrap · Aug 1, 2026
1,395
seed-bootstrap · Aug 1, 2026
+73
LiveBench
63.2%
seed-bootstrap · Aug 1, 2026
61.2%
seed-bootstrap · Aug 1, 2026
+2%
SWE-bench
62.8%
seed-bootstrap · Aug 1, 2026
52.4%
seed-bootstrap · Aug 1, 2026
+10.4%
GPQA Diamond
76.4%
seed-bootstrap · Aug 1, 2026
72%
seed-bootstrap · Aug 1, 2026
+4.4%
Time to first token
220 ms
seed-bootstrap · Aug 1, 2026
140 ms
seed-bootstrap · Aug 1, 2026
+80 ms
Output speed
92 tok/s
seed-bootstrap · Aug 1, 2026
155 tok/s
seed-bootstrap · Aug 1, 2026
+63 tok/s
Input price
$3/1M
seed-bootstrap · Aug 1, 2026
$0.25/1M
seed-bootstrap · Aug 1, 2026
+$2.75/1M
Output price
$15/1M
seed-bootstrap · Aug 1, 2026
$2/1M
seed-bootstrap · Aug 1, 2026
+$13/1M
Context window
200k
seed-bootstrap · Aug 1, 2026
400k
seed-bootstrap · Aug 1, 2026
+200k
Interactive Simulator (USD)

Workload Cost & Savings Calculator

Simulate monthly production API costs in USD (US Dollar).

Save up to 88% with GPT-5 mini
Monthly Volume50M tokens/mo
Quick Presets:
Token Ratio (In vs Out)70% In / 30% Out
RAG / Search (10% out)Coding / Chat (50% out)
Claude Sonnet 4$330.00 / mo
In: $105Out: $225
GPT-5 mini$38.75 / mo
In: $8.75Out: $30
Estimated Cost Delta

GPT-5 mini is estimated to save $291.25/month ($3,495/year).

Based on 50M tokens (30% gen)

Key Selection Recommendations

  • 1
    Claude Sonnet 4:Pick Claude Sonnet 4 when repo-level coding accuracy is the constraint.
  • 2
    GPT-5 mini:Pick GPT-5 mini when you are optimizing output cost.
  • 3
    GPT-5 mini:Pick GPT-5 mini when time-to-first-token matters more than peak Elo.

Recommended Workload Routing

Repo / coding agentsClaude Sonnet 4

Higher SWE-bench (62.8%).

High-volume chatGPT-5 mini

Lower output list price ($2/1M).

Voice / low-latency UIGPT-5 mini

Lower TTFT (140 ms).

Long-document RAGGPT-5 mini

Larger window (400k).

Screenshots / visionClaude Sonnet 4

Both accept images. Defaulting to the higher-Elo side (Claude Sonnet 4).

Target WorkloadRecommended PickEvaluation Rationale
Repo / coding agentsClaude Sonnet 4Higher SWE-bench (62.8%).
High-volume chatGPT-5 miniLower output list price ($2/1M).
Voice / low-latency UIGPT-5 miniLower TTFT (140 ms).
Long-document RAGGPT-5 miniLarger window (400k).
Screenshots / visionClaude Sonnet 4Both accept images. Defaulting to the higher-Elo side (Claude Sonnet 4).

Related Editorial Dispatches & Benchmark Notes

View all news
launchAug 8, 2025

GPT-5 mini: the 2025 distill still useful as a cheap OpenAI baseline

High-volume agents that cannot pay Sol. Compare to Luna before you assume the new cheap SKU wins.

Community Sentiment

Cast Your Matchup Vote

0 total votes

Community Discussions (0)

Sign in to cast your verified vote, bookmark models, and participate in benchmark discussions.Sign In to Post

No comments posted on this matchup yet. Be the first to share an evaluation note!

Social Share Card Preview

Dynamic OpenGraph banner generated at /compare/claude-sonnet-4-vs-gpt-5-mini/opengraph-image

Save PNG

CompareLLM AI Matrix

Verified Head-to-Head Telemetry

LIVE BENCHMARK
VS
Anthropic

Claude Sonnet 4

Elo 1,455
SWE-bench62.8%
Speed (tok/s)92 tok/s
Input / 1M Tokens$3/1M
Output / 1M Tokens$15/1M
OpenAI

GPT-5 mini

Elo 1,410
SWE-bench52.4%
Speed (tok/s)155 tok/s
Input / 1M Tokens$0.25/1M
Output / 1M Tokens$2/1M

Frequently Asked Questions

Which is better overall, Claude Sonnet 4 or GPT-5 mini?
Claude Sonnet 4 has the higher preference Elo in our latest snapshot (1,455). “Better” still depends on coding, price, and latency — see the table.
Which is better at coding, Claude Sonnet 4 or GPT-5 mini?
Claude Sonnet 4 leads SWE-bench at 62.8% vs 52.4%. SWE-bench is one harness, not your repo.
Which is cheaper to run in production?
GPT-5 mini output tokens are $2/1M versus $15/1M. Input prices and retry rates still move the real bill.
Which is faster, Claude Sonnet 4 or GPT-5 mini?
GPT-5 mini has the lower time-to-first-token (140 ms vs 220 ms). Tokens/sec is a separate column if you care about long completions.
Which has the larger context window?
GPT-5 mini accepts 400k tokens versus 200k.
Can I self-host either model?
Neither model is marked open-weights here. You are comparing hosted APIs.
Are these scores from CompareLLM’s own evals?
No. V1 aggregates public leaderboards (and optional first-party latency pings). Each cell names its source and date. Read /methodology.
What does preference Elo mean on this page?
Preference Elo is a crowd vote from LMArena / Arena. People see two hidden answers and pick the one they like more. The model that wins more often gets a higher Elo. That means people preferred it — not that it passed a school test. It is not SWE-bench, not accuracy, and not a number we invent. Claude Sonnet 4 and GPT-5 mini Elo cells are dated snapshots from the named source — we do not compute Arena ourselves.

Related news

  • launch · Aug 8, 2025

    GPT-5 mini: the 2025 distill still useful as a cheap OpenAI baseline

Similar Head-to-Head Comparisons

All Claude Sonnet 4 matchups →|All GPT-5 mini matchups →
Claude Sonnet 4 vs Claude 3.7 Sonnet (previous sonnet)Claude Sonnet 4 vs Claude Sonnet 4.5 (next sonnet)GPT-5 mini vs OpenAI o3-mini (previous gpt-mini)GPT-5 mini vs GPT-5.6 Luna (next gpt-mini)GPT-4.5 Orion vs Claude Sonnet 4GPT-5.6 Terra vs Claude Sonnet 4