ZMIME
Comparison · 3 models · Updated Oct 4, 2026

Claude Sonnet 3.7 vs Claude Sonnet 4 vs GPT-4.1

Too close to call on our weighted score (GPT-4.1 53, Claude Sonnet 4 51, Claude Sonnet 3.7 50). The right pick depends on what you value most.

  1. Anthropic

    Claude Sonnet 3.7

    Released Feb 19, 2025

    50/100
    • ECI141.2
    • Price$3.00 / $15.00
    • Context200K
  2. Anthropic

    Claude Sonnet 4

    Released May 22, 2025

    51/100
    • ECI141.7
    • Price$3.00 / $15.00
    • Context200K
  3. OpenAI

    GPT-4.1

    Released Apr 14, 2025

    53/100
    • ECI136.8
    • Price$2.00 / $8.00
    • Context1.05M
01 — Verdict

Too close to call

It is close. Our weighted score puts them within 3 points (GPT-4.1 53/100, Claude Sonnet 4 51/100, Claude Sonnet 3.7 50/100), so choose by what matters most for your work: Claude Sonnet 4 for raw capability, GPT-4.1 on price and GPT-4.1 for long inputs. The score weighs capability 50%, price 25%, inputs & features 15%, context window 10%.

  • CapabilityClaude Sonnet 4Capabilities Index (ECI): Claude Sonnet 4 141.7 · Claude Sonnet 3.7 141.2 · GPT-4.1 136.8
  • Lowest priceGPT-4.1GPT-4.1 $3.50 · Claude Sonnet 3.7 $6.00 · Claude Sonnet 4 $6.00 per 1M tokens (3:1 blend)
  • Longest contextGPT-4.1GPT-4.1 1,047,576 · Claude Sonnet 3.7 200,000 · Claude Sonnet 4 200,000 tokens
  • Widest inputsSame inputsClaude Sonnet 3.7: Text, Images, PDFs · Claude Sonnet 4: Text, Images, PDFs · GPT-4.1: Text, Images, PDFs
  • Self-hostingNo open weightsAll three are available only through APIs
How the score is built
MeasureWeightClaude Sonnet 3.7Claude Sonnet 4GPT-4.1
CapabilityCapabilities Index (ECI)50%676861
Price25%131324
Inputs & features15%707070
Context window10%323261
Overall100%50/10051/10053/100
02 — Side by side

Every spec in one table

Highlighted cells lead their row. Dashes mean the data is not published.

Claude Sonnet 3.7 vs Claude Sonnet 4 vs GPT-4.1 specifications side by side
SpecificationClaude Sonnet 3.7AnthropicClaude Sonnet 4AnthropicGPT-4.1OpenAI
Capability
Capabilities Index (ECI)141.2141.7 (best)136.8
ECI rank#96 of 148#94 of 148 (best)#111 of 148
GPQA DiamondGraduate-level science questions79.7% (best)79.2%66.9%
FrontierMath Tiers 1–3Research-level mathematics——6.0%
OTIS Mock AIME 2024–2025Competition mathematics57.8%71.1% (best)38.3%
SWE-bench VerifiedFixing real GitHub issues61.0% (best)—48.5%
SimpleQA VerifiedShort factual questions——31.1%
Price per million tokens
Input$3.00$3.00$2.00 (best)
Output$15.00$15.00$8.00 (best)
Cached input——$0.50
Blended (3:1)$6.00$6.00$3.50 (best)
Long-context rateSame rateSame rateSame rate
Price sourceMedian of 3 providersMedian of 9 providersOfficial OpenAI API
Limits
Context window200,000 tokens200,000 tokens1,047,576 tokens (best)
Max output64,000 tokens (best)64,000 tokens (best)32,768 tokens
Inputs and features
TextYesYesYes
ImagesYesYesYes
PDFsYesYesYes
AudioNoNoNo
VideoNoNoNo
ReasoningYesYesNo
Tool callingYesYesYes
Structured outputNoNoYes
Availability
WeightsProprietaryProprietaryProprietary
API model ID——gpt-4.1
API providers3925 (best)
ReleasedFeb 19, 2025May 22, 2025Apr 14, 2025
Knowledge cutoffOct 31, 2024Mar 31, 2025Apr 2024
03 — Cost

What would a month cost?

Enter your expected volume in millions of tokens. List prices only; caching and batch discounts would lower these.

  • Claude Sonnet 3.7$60.00
  • Claude Sonnet 4$60.00
  • GPT-4.1$36.00
04 — Questions

Which should you choose?

Which is better: Claude Sonnet 3.7, Claude Sonnet 4 or GPT-4.1?

It is close. Our weighted score puts them within 3 points (GPT-4.1 53/100, Claude Sonnet 4 51/100, Claude Sonnet 3.7 50/100), so choose by what matters most for your work: Claude Sonnet 4 for raw capability, GPT-4.1 on price and GPT-4.1 for long inputs. The score weighs capability 50%, price 25%, inputs & features 15%, context window 10%.

Which is cheaper, Claude Sonnet 3.7, Claude Sonnet 4 or GPT-4.1?

GPT-4.1 is cheaper at $2.00 input / $8.00 output per million tokens (official OpenAI API price). Claude Sonnet 3.7 costs $3.00 input / $15.00 output per million tokens (median across 3 API providers); Claude Sonnet 4 costs $3.00 input / $15.00 output per million tokens (median across 9 API providers). At a typical mix of three input tokens to one output token, that is $3.50 per million tokens for GPT-4.1 versus $6.00 for Claude Sonnet 3.7 (1.7× as much) and $6.00 for Claude Sonnet 4 (1.7× as much).

Which scores higher on benchmarks?

Claude Sonnet 4 scores higher on the Capabilities Index (ECI): Claude Sonnet 4 141.7 (#94 of 148), Claude Sonnet 3.7 141.2 (#96 of 148) and GPT-4.1 136.8 (#111 of 148). The confidence ranges of the top two overlap (139.2–142.9 vs 138.7–142.9), so treat the gap as small. On individual benchmarks: GPQA Diamond — Claude Sonnet 3.7 79.7%, Claude Sonnet 4 79.2%, GPT-4.1 66.9%; OTIS Mock AIME 2024–2025 — Claude Sonnet 4 71.1%, Claude Sonnet 3.7 57.8%, GPT-4.1 38.3%.

Which is better for coding?

There are no published SWE-bench Verified results for Claude Sonnet 4 yet, so there is no like-for-like coding score. On overall capability, Claude Sonnet 4 leads, which tends to carry over to coding, but test on your own codebase. All three support tool calling for agent workflows.

Which has the bigger context window?

GPT-4.1 has the largest context window at 1,047,576 tokens, against 200,000 for Claude Sonnet 3.7 and 200,000 for Claude Sonnet 4. Maximum output per response: Claude Sonnet 3.7 up to 64,000, Claude Sonnet 4 up to 64,000, GPT-4.1 up to 32,768 tokens.

Which can read images, PDFs, audio or video?

Claude Sonnet 3.7 accepts text, images and PDFs; Claude Sonnet 4 accepts text, images and PDFs; GPT-4.1 accepts text, images and PDFs. They handle the same number of input types.

Are any of these open source?

No. Claude Sonnet 3.7, Claude Sonnet 4 and GPT-4.1 are proprietary and only available through APIs and apps.

Which is newer?

Claude Sonnet 4 is the newest, released May 22, 2025. GPT-4.1 came out Apr 14, 2025; Claude Sonnet 3.7 came out Feb 19, 2025. Knowledge cutoff: Claude Sonnet 3.7 Oct 31, 2024, Claude Sonnet 4 Mar 31, 2025, GPT-4.1 Apr 2024.

How do you decide the winner?

Each model gets a 0–100 score on capability (50%, independent benchmark results); price (25%, blended price per million tokens (3 input : 1 output), log scale); inputs & features (15%, image, PDF, audio and video input, tool calling, structured output and reasoning); context window (10%, maximum tokens per request, log scale). Dimensions missing for any model are dropped and the remaining weights rescaled, so every model is judged on the same evidence. Specs and prices come from public model listings and the labs’ own API pages; capability scores come from independent benchmark runs. Data updated Oct 4, 2026.