ZMIME
Comparison · 3 models · Updated Nov 18, 2026

Claude Sonnet 4 vs Gemini 2.5 Flash Preview 05-20 vs Gemini 2.5 Pro

Gemini 2.5 Flash Preview 05-20 comes out ahead, 67 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 Preview 05-20

    Released May 20, 2025

    67/100
    • ECI141.6
    • Price$0.142 / $3.33
    • 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 Preview 05-20 is our pick

Gemini 2.5 Flash Preview 05-20 is the better all-round choice, scoring 67/100 against Gemini 2.5 Pro (64) and Claude Sonnet 4 (52). It leads on price. Gemini 2.5 Pro wins on capability and inputs & features. 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 Preview 05-20 141.6
  • Lowest priceGemini 2.5 Flash Preview 05-20Gemini 2.5 Flash Preview 05-20 $0.938 · Gemini 2.5 Pro $3.44 · Claude Sonnet 4 $6.00 per 1M tokens (3:1 blend)
  • Longest contextGemini 2.5 Flash Preview 05-20 and Gemini 2.5 ProGemini 2.5 Flash Preview 05-20 1,048,576 · Gemini 2.5 Pro 1,048,576 · Claude Sonnet 4 200,000 tokens
  • Widest inputsGemini 2.5 Flash Preview 05-20 and Gemini 2.5 ProClaude Sonnet 4: Text, Images, PDFs · Gemini 2.5 Flash Preview 05-20: 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 Flash Preview 05-20Gemini 2.5 Pro
CapabilityCapabilities Index (ECI)50%706973
Price25%124923
Inputs & features15%7090100
Context window10%396565
Overall100%52/10067/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 Preview 05-20 vs Gemini 2.5 Pro specifications side by side
SpecificationClaude Sonnet 4AnthropicGemini 2.5 Flash Preview 05-20GoogleGemini 2.5 ProGoogle
Capability
Capabilities Index (ECI)141.9141.6144.9 (best)
ECI rank#104 of 158#106 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%70.8%84.7% (best)
SWE-bench VerifiedFixing real GitHub issues——57.6%
Price per million tokens
Input$3.00$0.142 (best)$1.25
Output$15.00$3.33 (best)$10.00
Cached input——$0.125
Blended (3:1)$6.00$0.938 (best)$3.44
Long-context rateSame rateSame rateOver 200K: $2.50 / $15.00
Price sourceMedian of 10 providersMedian of 1 providersOfficial 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 outputNoNoYes
Availability
WeightsProprietaryProprietaryProprietary
API model ID——gemini-2.5-pro
API providers11131 (best)
ReleasedMay 22, 2025May 20, 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 Preview 05-20$8.07
  • Gemini 2.5 Pro$32.50
04 — Questions

Which should you choose?

Which is better: Claude Sonnet 4, Gemini 2.5 Flash Preview 05-20 or Gemini 2.5 Pro?

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

Which is cheaper, Claude Sonnet 4, Gemini 2.5 Flash Preview 05-20 or Gemini 2.5 Pro?

Gemini 2.5 Flash Preview 05-20 is cheaper at $0.142 input / $3.33 output per million tokens (median across 1 API provider). 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.938 per million tokens for Gemini 2.5 Flash Preview 05-20 versus $3.44 for Gemini 2.5 Pro (3.7× as much) and $6.00 for Claude Sonnet 4 (6.4× 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 Preview 05-20 141.6 (#106 of 158). Their confidence ranges do not overlap (143.5–146.3 vs 140.3–143.4), so the gap is a real one. On individual benchmarks: OTIS Mock AIME 2024–2025 — Gemini 2.5 Pro 84.7%, Claude Sonnet 4 71.1%, Gemini 2.5 Flash Preview 05-20 70.8%.

Which is better for coding?

There are no published SWE-bench Verified results for Claude Sonnet 4 and Gemini 2.5 Flash Preview 05-20 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 Preview 05-20 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 Preview 05-20 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 Preview 05-20 accepts text, images, PDFs, audio and video; Gemini 2.5 Pro accepts text, images, PDFs, audio and video. Gemini 2.5 Flash Preview 05-20 handles the widest range of inputs.

Are any of these open source?

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

Which is newer?

Gemini 2.5 Pro is the newest, released Jun 17, 2025. Claude Sonnet 4 came out May 22, 2025; Gemini 2.5 Flash Preview 05-20 came out May 20, 2025. Knowledge cutoff: Claude Sonnet 4 Mar 31, 2025, Gemini 2.5 Flash Preview 05-20 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.