ZMIME
Comparison · 3 models · Updated Nov 18, 2026

Claude Sonnet 4 vs Gemini 2.5 Flash vs Gemini 2.5 Pro

Gemini 2.5 Flash comes out ahead, 69 to 64 and 52 on our weighted score, and it is the cheaper option too.

Price in rating: Included · Exclude price

  1. Anthropic

    Claude Sonnet 4

    Released May 22, 2025

    52/100
    • ECI141.9
    • Price$3.00 / $15.00
    • Context200K
  2. Our pick

    Google

    Gemini 2.5 Flash

    Released Jun 17, 2025

    69/100
    • ECI140.8
    • Price$0.30 / $2.50
    • Context1.05M
  3. Google

    Gemini 2.5 Pro

    Released Jun 17, 2025

    64/100
    • ECI144.9
    • Price$1.25 / $10.00
    • Context1.05M
01 — Verdict

Gemini 2.5 Flash is our pick

Gemini 2.5 Flash is the better all-round choice, scoring 69/100 against Gemini 2.5 Pro (64) and Claude Sonnet 4 (52). It leads on price. Gemini 2.5 Pro wins on capability. The score weighs capability 50%, price 25%, inputs & features 15%, context window 10%.

  • CapabilityGemini 2.5 ProCapabilities Index (ECI): Gemini 2.5 Pro 144.9 · Claude Sonnet 4 141.9 · Gemini 2.5 Flash 140.8
  • Lowest priceGemini 2.5 FlashGemini 2.5 Flash $0.85 · Gemini 2.5 Pro $3.44 · Claude Sonnet 4 $6.00 per 1M tokens (3:1 blend)
  • Longest contextGemini 2.5 Flash and Gemini 2.5 ProGemini 2.5 Flash 1,048,576 · Gemini 2.5 Pro 1,048,576 · Claude Sonnet 4 200,000 tokens
  • Widest inputsGemini 2.5 Flash and Gemini 2.5 ProClaude Sonnet 4: Text, Images, PDFs · Gemini 2.5 Flash: Text, Images, PDFs, Audio, Video · Gemini 2.5 Pro: Text, Images, PDFs, Audio, Video
  • Self-hostingNo confirmed open weightsAll three are available only through APIs
How the score is built
MeasureWeightClaude Sonnet 4Gemini 2.5 FlashGemini 2.5 Pro
CapabilityCapabilities Index (ECI)50%706973
Price25%125123
Inputs & features15%70100100
Context window10%396565
Overall100%52/10069/10064/100
02 — Side by side

Every spec in one table

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

Claude Sonnet 4 vs Gemini 2.5 Flash vs Gemini 2.5 Pro specifications side by side
SpecificationClaude Sonnet 4AnthropicGemini 2.5 FlashGoogleGemini 2.5 ProGoogle
Capability
Capabilities Index (ECI)141.9140.8144.9 (best)
ECI rank#104 of 158#111 of 158#92 of 158 (best)
GPQA DiamondGraduate-level science questions79.2%—85.3% (best)
FrontierMath Tiers 1–3Research-level mathematics——24.6%
OTIS Mock AIME 2024–2025Competition mathematics71.1%—84.7% (best)
SWE-bench VerifiedFixing real GitHub issues——57.6%
Price per million tokens
Input$3.00$0.30 (best)$1.25
Output$15.00$2.50 (best)$10.00
Cached input—$0.03 (best)$0.125
Blended (3:1)$6.00$0.85 (best)$3.44
Long-context rateSame rateSame rateOver 200K: $2.50 / $15.00
Price sourceMedian of 10 providersOfficial Google APIOfficial Google API
Limits
Context window200,000 tokens1,048,576 tokens (best)1,048,576 tokens (best)
Max output64,000 tokens65,536 tokens (best)65,536 tokens (best)
Inputs and features
TextYesYesYes
ImagesYesYesYes
PDFsYesYesYes
AudioNoYesYes
VideoNoYesYes
ReasoningYesYesYes
Tool callingYesYesYes
Structured outputNoYesYes
Availability
WeightsProprietaryProprietaryProprietary
API model ID—gemini-2.5-flashgemini-2.5-pro
API providers1131 (best)31 (best)
ReleasedMay 22, 2025Jun 17, 2025Jun 17, 2025
Knowledge cutoffMar 31, 2025Jan 2025Jan 2025
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 4$60.00
  • Gemini 2.5 Flash$8.00
  • Gemini 2.5 Pro$32.50
04 — Questions

Which should you choose?

Which is better: Claude Sonnet 4, Gemini 2.5 Flash or Gemini 2.5 Pro?

Gemini 2.5 Flash is the better all-round choice, scoring 69/100 against Gemini 2.5 Pro (64) and Claude Sonnet 4 (52). It leads on price. Gemini 2.5 Pro wins on capability. The score weighs capability 50%, price 25%, inputs & features 15%, context window 10%.

Which is cheaper, Claude Sonnet 4, Gemini 2.5 Flash or Gemini 2.5 Pro?

Gemini 2.5 Flash is cheaper at $0.30 input / $2.50 output per million tokens (official Google API price). Gemini 2.5 Pro costs $1.25 input / $10.00 output per million tokens (official Google API price); Claude Sonnet 4 costs $3.00 input / $15.00 output per million tokens (median across 10 API providers). At a typical mix of three input tokens to one output token, that is $0.85 per million tokens for Gemini 2.5 Flash versus $3.44 for Gemini 2.5 Pro (4× as much) and $6.00 for Claude Sonnet 4 (7.1× as much).

Which scores higher on benchmarks?

Gemini 2.5 Pro scores higher on the Capabilities Index (ECI): Gemini 2.5 Pro 144.9 (#92 of 158), Claude Sonnet 4 141.9 (#104 of 158) and Gemini 2.5 Flash 140.8 (#111 of 158). Their confidence ranges do not overlap (143.5–146.3 vs 140.3–143.4), so the gap is a real one.

Which is better for coding?

There are no published SWE-bench Verified results for Claude Sonnet 4 and Gemini 2.5 Flash yet, so there is no like-for-like coding score. On overall capability, Gemini 2.5 Pro 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?

Gemini 2.5 Flash and Gemini 2.5 Pro have the largest context windows (1,048,576 and 1,048,576 tokens), against 200,000 for Claude Sonnet 4. Maximum output per response: Claude Sonnet 4 up to 64,000, Gemini 2.5 Flash up to 65,536, Gemini 2.5 Pro up to 65,536 tokens.

Which can read images, PDFs, audio or video?

Claude Sonnet 4 accepts text, images and PDFs; Gemini 2.5 Flash accepts text, images, PDFs, audio and video; Gemini 2.5 Pro accepts text, images, PDFs, audio and video. Gemini 2.5 Flash handles the widest range of inputs.

Are any of these open source?

No. Claude Sonnet 4, Gemini 2.5 Flash and Gemini 2.5 Pro are proprietary and only available through APIs and apps.

Which is newer?

Gemini 2.5 Flash is the newest, released Jun 17, 2025. Gemini 2.5 Pro came out Jun 17, 2025; Claude Sonnet 4 came out May 22, 2025. Knowledge cutoff: Claude Sonnet 4 Mar 31, 2025, Gemini 2.5 Flash Jan 2025, Gemini 2.5 Pro Jan 2025.

How do you decide the winner?

This rating uses 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 Nov 18, 2026.