Skip to main content
Launching the open-source gateway

Claude Sonnet 5 vs Gemini 3.8 Flash

SpecClaude Sonnet 5Gemini 3.8 Flash
Respan Index46.7 (#39)54.6 (#22)
Blended price per 1M$4$0.75
Context window1M1.0M
Input / output per 1M$2 / $10$0.375 / $1.88
Max output128K66K
Inputtext, visiontext, vision, audio
Released2026-06-302026-09-02

Respan Index by category

Each category is scored 0 to 100, and how far ahead the winner is. Leads under a point are close to even.

CategoryClaude Sonnet 5Gemini 3.8 Flash
Coding26.9 Claude Sonnet 536.7 Gemini 3.8 Flash
Agents62.8 Claude Sonnet 566.2 Gemini 3.8 Flash
Reasoning51.0 Claude Sonnet 553.7 Gemini 3.8 Flash
Knowledge & language34.0 Claude Sonnet 570.9 Gemini 3.8 Flash
Human preference54.4 Claude Sonnet 555.8 Gemini 3.8 Flash

How the Respan Index works

Benchmarks both report

Gemini 3.8 Flash leads on 17 of the 25 benchmarks both report. Higher is better. Each score links to where it was published.

BenchmarkClaude Sonnet 5Gemini 3.8 Flash
Chess Puzzles (Epoch AI)45%58%
LMArena Agent (LMArena)0.02940.0265
LMArena Elo14621496
LMArena WebDev (LMArena)15401583
LMArena Vision (LMArena)12621291
Terminal-Bench 4.0 (Vals AI)10.6%19.7%
APEX-Agents (Mercor)54.5%64.3%
DeepSWE v1.1 (Datacurve)53.8%73.8%
FrontierMath Tier 4 v2 (Epoch AI)29.3%22%
FrontierMath Tiers 1-3 v2 (Epoch AI)65.6%68.4%
GPQA Diamond90.5%95.4%
LiveBench Agentic Coding (LiveBench)59.4%54.2%
LiveBench Coding (LiveBench)80.7%72.5%
LiveBench Data Analysis (LiveBench)71.7%54%
LiveBench Instruction Following (LiveBench)63.9%81.4%
LiveBench Language (LiveBench)75%87.8%
LiveBench Mathematics (LiveBench)92.9%91.6%
LiveBench Reasoning (LiveBench)88.7%89.3%
Mystery Game Puzzles (Epoch AI)35%47%
OTIS Mock AIME 2024-2025 (Epoch AI)94.7%98.9%
SAGE (Vals AI)48.9%35.1%
SimpleQA Verified33.7%69.7%
Vending-Bench 2 (Andon Labs)6377.75093.79
WeirdML (Håvard Tveit Ihle)68.8%84.8%
SimpleBench (SimpleBench)60.6%82.4%

FAQ

Is Claude Sonnet 5 better than Gemini 3.8 Flash?

Gemini 3.8 Flash scores 54.6 on the Respan Index (#22), ahead of Claude Sonnet 5 at 46.7 (#39). Gemini 3.8 Flash leads on 17 of the 25 benchmarks both report.

Which is cheaper, Claude Sonnet 5 or Gemini 3.8 Flash?

Claude Sonnet 5 lists at $2 input and $10 output per 1M tokens; Gemini 3.8 Flash at $0.375 and $1.88. Gemini 3.8 Flash is 5.3x cheaper per token at list price.

Which has the larger context window?

Claude Sonnet 5 accepts 1M tokens and Gemini 3.8 Flash 1.0M tokens.

Compare other models

vs

Built for AI agents.
Break less.
Ship more.