Skip to main content
BenchLM
Data

Claude 4 Sonnet vs GPT-5 mini

Updated December 2, 2026. Rank says Claude 4 Sonnet is ahead. Price, access, and your workload can each overturn that. Public scores include evidence status and uncertainty.

Share or export
Share on XLinkedInAPI/MCP

Decision reading

The public evidence has no benchmark result shared by both models, so it does not support a quality verdict. Use the documented cost, context, and runtime rows instead. 0 results are shared. Category rows resting on Estimated evidence or different benchmark sets are marked directional and do not name a winner.

Model A
Anthropic logo

Anthropic

42.5/100

Supported · Public rank #139

Conditional range 34.3–50.6

Model B
OpenAI logo

OpenAI

42/100

Supported · Public rank #142

Conditional range 32.1–51.9

API price per 1M tokens

Claude 4 Sonnet: $3 input / $15 output

GPT-5 mini: $0.25 input / $2 output

Context window

Claude 4 Sonnet: 200K

GPT-5 mini: 128K

Released

Claude 4 Sonnet: May 22, 2025

GPT-5 mini: August 7, 2025

Shared results
0
Claude 4 Sonnet only
4
GPT-5 mini only
1
Like-for-like categories
0 / 8
Supported: Claude 4 Sonnet and GPT-5 mini. Conditional ranges do not establish rank confidence.How the comparison works

Which one for your work

Recommendations appear only when a shared evidence basis or an explicit operating constraint supports the call. Secondary and unsupported use cases stay disclosed below the initial list.

  • Long documents

    Prompts that approach the documented context limit

    Claude 4 Sonnet

    Claude 4 Sonnet has the larger documented context window.

    Confidence: documented
  • Chat turn cost

    1K fresh input + 500 output tokens

    GPT-5 mini

    GPT-5 mini has the lower estimated token cost for this stated workload. Costs use the listed standard API rates.

    Confidence: listed-rates
Show secondary and unsupported calls
  • Repository review cost

    50K fresh input + 3K output tokens

    GPT-5 mini

    GPT-5 mini has the lower estimated token cost for this stated workload. Costs use the listed standard API rates.

    Confidence: listed-rates
  • Coding work

    Code generation, repair, and software-engineering tasks

    Not enough matched evidence

    Claude 4 Sonnet is scored on Estimated evidence for coding, so the reading is directional rather than like-for-like.

    Confidence: limited
  • Agentic work

    Tool use, computer use, and multi-step task completion

    Not enough matched evidence

    GPT-5 mini is scored on Estimated evidence for agentic, so the reading is directional rather than like-for-like.

    Confidence: limited
  • Cache-heavy agent loop cost

    200K cached + 20K fresh input + 10K output tokens

    Not enough matched evidence

    The page does not recommend a cost winner because at least one model cannot fit the stated workload in one request. Claude 4 Sonnet does not fit this workload in one request. GPT-5 mini does not fit this workload in one request. Claude 4 Sonnet has no published cached-input rate, so cached tokens use its listed input rate. GPT-5 mini has no published cached-input rate, so cached tokens use its listed input rate.

    Confidence: rate-fallback

Which one for a specific job

Choose a job from the LLM Selector's task catalog to see the category row it rests on, under the same basis rules as the table below. A directional row stays directional; choosing a job never creates a winner.

The same task catalog as the LLM Selector. Each job names the evidence surface it rests on; nothing here adds a new score.

42.9Claude 4 Sonnet43.5GPT-5 mini

Directional only · BenchAlign v6.0

GPT-5 mini has the higher coding point estimate. Conditional score ranges do not establish rank confidence.

Coding scores combine specific tasks and setups. Match the editor, harness, and effort to your workflow.

Same basis rules as the category table below

Or describe your own job

The LLM Selector reads what you need a model for and returns a shortlist, ranked in the same order the job pages publish.

Describe the task and constraints. This selector recommends models; it cannot carry out the task or access your files and accounts.

We keep what you type here, drafts included, for 180 days, and after that only the job and requirements read from it. Nothing is tied to your IP address or account. Leave out names and other personal details. Privacy

What is actually comparable

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

3 categories rest on Estimated evidence or different evidence sets. Those rows remain visible for coverage context but do not name a winner.

Shape of the matched evidence

Only shared public evidence is shown. Sparse evidence stays a ruled list rather than being closed into a radar shape.

A shared-evidence shape is not available.

BenchLM does not draw a radar or infer missing axes when the matched evidence is too sparse.

Category results, on a stated basis

Each row shows the public-lane category score for both models: the BenchAlign v6.0 lane in every category, with the same rank each model page reports. A row is like-for-like only when both scores rest on Supported evidence. Directional and not-comparable rows remain visible, but they never receive a winner.

Agentic

Directional only
Claude 4 Sonnet
42.9
Supported · #126/183
GPT-5 mini
35.1
Estimated · #162/183
Basis
BenchAlign v6.0 lane · 2 vs 0 public rows
Reading
Directional only

Coding

Directional only
Claude 4 Sonnet
42.9
Estimated · #124/181
GPT-5 mini
43.5
Supported · #116/181
Basis
BenchAlign v6.0 lane · 1 vs 1 public rows
Reading
Directional only

Reasoning

Directional only
Claude 4 Sonnet
40.1
Estimated · #134/161
GPT-5 mini
45.9
Supported · #94/161
Basis
BenchAlign v6.0 lane · 0 vs 0 public rows
Reading
Directional only

Multimodal

Not comparable
Claude 4 Sonnet
Not ranked
GPT-5 mini
44.3
Supported · #92/120
Basis
BenchAlign v6.0 lane · 0 vs 0 public rows
Reading
Not comparable

Knowledge

Not comparable
Claude 4 Sonnet
Not ranked
GPT-5 mini
40.8
Supported · #123/158
Basis
BenchAlign v6.0 lane · 0 vs 0 public rows
Reading
Not comparable

Multilingual

Not comparable
Claude 4 Sonnet
Not ranked
GPT-5 mini
Not ranked
Basis
BenchAlign v6.0 lane · 0 vs 0 public rows
Reading
Not comparable

Instruction following

Not comparable
Claude 4 Sonnet
41.1
Estimated · #108/143
GPT-5 mini
Not ranked
Basis
BenchAlign v6.0 lane · 0 vs 0 public rows
Reading
Not comparable

Math

Not comparable
Claude 4 Sonnet
39.8
Estimated · #101/128
GPT-5 mini
Not ranked
Basis
BenchAlign v6.0 lane · 1 vs 0 public rows
Reading
Not comparable

Ranks count the models scored in each category’s BenchAlign v6.0 lane, so denominators differ by category. Like-for-like rows within 0.5 points read as a practical tie.

Supported evidence per lane · bars run 0–100Methodology

What each workload costs

Three fixed token mixes turn per-token rates into comparable decisions. Each scenario states context fit and whether cached input had to fall back to the published list-input rate.

Chat turn

1K fresh input + 500 output tokens

Claude 4 Sonnet
$0.0105
Fits in one request
GPT-5 mini
$0.00125
Fits in one request

GPT-5 mini has the lower modeled cost

Costs use the listed standard API rates.

Repository review

50K fresh input + 3K output tokens

Claude 4 Sonnet
$0.195
Fits in one request
GPT-5 mini
$0.0185
Fits in one request

GPT-5 mini has the lower modeled cost

Costs use the listed standard API rates.

Cache-heavy agent loop

200K cached + 20K fresh input + 10K output tokens

Claude 4 Sonnet
$0.81
Does not fit in one request
Cached input priced at the published list-input rate
GPT-5 mini
$0.075
Does not fit in one request
Cached input priced at the published list-input rate

Claude 4 Sonnet does not fit this workload in one request. GPT-5 mini does not fit this workload in one request. Claude 4 Sonnet has no published cached-input rate, so cached tokens use its listed input rate. GPT-5 mini has no published cached-input rate, so cached tokens use its listed input rate.

Your workload

Enter a month of tokens to price it at both models’ listed API rates.

Claude 4 Sonnet
$60.00
per month
GPT-5 mini
$6.50
per month

Standard listed rates, no batch or volume discounts.

Cached input falls back to the list input rate only where a cached rate is unpublished

Price against score, among all priced models

Overall score against output price per 1M tokens, one model per family. Pricing as of December 2, 2026.

Claude 4 SonnetGPT-5 mini

20406080100$0.10$0.50$1$5$10$50$100Output price, $ per 1M tokens (log)Overall score
  • 57 models score at least as high as Claude 4 Sonnet for the same price or less. The nearest is Gemini 4 Neon (score 92.1, also $15.00 per 1M output tokens).
  • 12 cheaper models score at least as high as GPT-5 mini. The nearest is Gemini 3.1 Flash-Lite (score 42.6, $1.50 per 1M output tokens).

Gray dots are the other priced models. The dark step line is the efficiency frontier: for a model under it, another model costs no more and scores at least as high.

See GPT-5 mini on the full price vs performance chart

Specification differences

Sourced differences are shown directly. Missing facts stay explicit instead of being inferred from a model name or family.

Context window

Maximum documented context; output-token limits may be lower.

Claude 4 Sonnet

200K

GPT-5 mini

128K

API model ID

Claude 4 Sonnet

Not sourced

GPT-5 mini

Not sourced

Cached-input rate

A missing cached-input rate falls back to the listed input rate only in the stated workload estimate.

Claude 4 Sonnet

Not published

GPT-5 mini

Not published

Provider availability

Claude 4 Sonnet

Not sourced

GPT-5 mini

Not sourced

Reasoning profile

Claude 4 Sonnet

Non-Reasoning

GPT-5 mini

Reasoning

Weight access

Claude 4 Sonnet

Proprietary

GPT-5 mini

Proprietary

License

Claude 4 Sonnet

Proprietary

GPT-5 mini

Proprietary

Release date

Claude 4 Sonnet

2025-05-22

GPT-5 mini

2025-08-07

If you already use one of these models

Deployment change
The models list different providers, so authentication, endpoint behavior, limits, and feature support may change.
Quality signal
The public evidence has no benchmark result shared by both models, so it does not support a quality verdict.
Workload cost
Repository review: $0.195 vs $0.0185. Cache-heavy agent loop: $0.81 vs $0.075.
Context tradeoff
Claude 4 Sonnet has the larger documented window (200K).
Run the same representative tasks against both endpoints before changing production traffic.

Questions

Which is better, Claude 4 Sonnet or GPT-5 mini?

The public evidence has no benchmark result shared by both models, so it does not support a quality verdict. The page therefore keeps the decision tied to the specific documented workload.

Which is better for coding, Claude 4 Sonnet or GPT-5 mini?

GPT-5 mini scores higher for coding on the public lane, 43.5 to 42.9. Claude 4 Sonnet is scored on Estimated evidence for coding, so the reading is directional rather than like-for-like. BenchLM does not name a winner for coding from a directional reading; read the shared benchmark rows directly and test the models on the same task set.

Which is better for agentic tasks, Claude 4 Sonnet or GPT-5 mini?

Claude 4 Sonnet scores higher for agentic tasks on the public lane, 42.9 to 35.1. GPT-5 mini is scored on Estimated evidence for agentic tasks, so the reading is directional rather than like-for-like. BenchLM does not name a winner for agentic tasks from a directional reading; read the shared benchmark rows directly and test the models on the same task set.

Which costs less, Claude 4 Sonnet or GPT-5 mini?

For the stated presets, chat costs $0.0105 on Claude 4 Sonnet and $0.00125 on GPT-5 mini; repository review costs $0.195 and $0.0185; the cache-heavy agent loop costs $0.81 and $0.075. Claude 4 Sonnet does not fit this workload in one request. GPT-5 mini does not fit this workload in one request. Claude 4 Sonnet has no published cached-input rate, so cached tokens use its listed input rate. GPT-5 mini has no published cached-input rate, so cached tokens use its listed input rate.

Which has the larger context window, Claude 4 Sonnet or GPT-5 mini?

Claude 4 Sonnet has the larger documented context window: 200K, compared with 128K.

Benchmark evidence

The full public result ledger is available for audit without forcing a wide desktop table onto a phone.

Browse raw public benchmark evidence10 rows

Agentic

  • Gert Labs

    Claude 4 Sonnet27.74%
    Source
    GPT-5 mini—

    Not directly comparable

  • JobBench

    Claude 4 Sonnet18.4%
    Source
    GPT-5 mini—

    Not directly comparable

Coding

  • SWE-bench Verified

    Claude 4 Sonnet72.7%
    Source
    GPT-5 mini—

    Not directly comparable

  • Vibe Code Bench

    Claude 4 Sonnet—
    GPT-5 mini14.17%
    Source

    Not directly comparable

  • CompileBench

    Shown only
    Claude 4 Sonnet—
    GPT-5 mini75.6%
    Source

    Not directly comparable

Reasoning

  • Chess Puzzles

    Shown only
    Claude 4 Sonnet—
    GPT-5 mini24.0%
    Source

    Not directly comparable

  • Game Arena Go

    Shown only
    Claude 4 Sonnet—
    GPT-5 mini0
    Source

    Not directly comparable

  • Mystery Game Puzzles

    Shown only
    Claude 4 Sonnet—
    GPT-5 mini5.0%
    Source

    Not directly comparable

Knowledge

  • FailureSensorIQ

    Shown only
    Claude 4 Sonnet—
    GPT-5 mini65.3%
    Source

    Not directly comparable

Math

  • AIME 2025

    Claude 4 Sonnet33.1%
    Source
    GPT-5 mini—

    Not directly comparable

5 public results · 0 shared

Watch Claude 4 Sonnet vs GPT-5 mini

One weekly email when material rank, price, or benchmark evidence changes make this matchup worth revisiting.

Read a sample issue

Join 7,500+ subscribers.

Last updated December 2, 2026