aicharts

Gemini 3.8 FlashvsClaude Sonnet 5

Terminal-Bench, Epoch AI scores and cost per taskData checked All comparisons

Answer

Gemini 3.8 Flash passes more of Terminal-Bench: 19.1% in mini-SWE-agent at High effort, against 12.4% for Claude Sonnet 5 in Claude Code.[1][2] Gemini 3.8 Flash's run reported no cost. In output tokens per task, Gemini 3.8 Flash used 206k and Claude Sonnet 5 353k.

Gemini 3.8 FlashClaude Sonnet 5

0%10%20%30%40%50%60%70%$0.25$0.5$1$2$5$10$25$50Pareto frontierCost per task (log)Sonnet 5
Gemini 3.8 Flash in mini-SWE-agent · 19.1% on Terminal-Bench · no cost reportedClaude Sonnet 5 in Claude Code · 12.4% on Terminal-Bench · $29.10 per task
Gemini 3.8 Flash and Claude Sonnet 5 against every current model, one dot per model's Terminal-Bench run. The dashed line is the cost frontier: no model scores higher for less.

At a glance

marks the better value in a row. Terminal-Bench gaps smaller than two tasks, and Epoch AI gaps inside the margin of error, count as level. Epoch AI rows show each model at its best setting.

Gemini 3.8 Flash and Claude Sonnet 5 compared
Gemini 3.8 FlashClaude Sonnet 5
ReleasedSep 2, 2026[5]Google · Superseded Nov 12, 2026Jun 30, 2026[6]Anthropic · Superseded Sep 28, 2026
Terminal-Bench19.1%Higher[1]mini-SWE-agent · High12.4%[2]Claude Code · Max
Cost per taskNot reported$29.10[2]
Output tokens per task206kFewer[1]353k[2]
Minutes per task33 minQuicker[1]109 min[2]
MirrorCode38.9%[3]High · Epoch AI63.3%[3]Max · Epoch AI
GPQA Diamond95.4%Higher[3]High · Epoch AI90.5%[3]XHigh · Epoch AI
FrontierMath Tiers 1–368.4%[3]High · Epoch AI65.6%[3]Max · Epoch AI
API price$0.75/$3.75[4]Per 1M input/output tokens$2/$10[4]Per 1M input/output tokens
Longest input1.05M tokens[4]1M tokens[4]
Frontier starSupersededSuperseded

Choose Gemini 3.8 Flash if…

  • You want the higher Terminal-Bench score: 19.1% against 12.4%.
  • You want fewer output tokens: 206k per task against 353k.
  • You want quicker runs: 33 minutes per task against 109.
  • You need graduate-level science: GPQA Diamond 95.4% against 90.5%.
  • You pay by the token: $0.75/$3.75 per million input/output tokens against $2/$10.
  • You work in Antigravity CLI, Google's own coding agent.
  • You have a setup pinned to it, though Google superseded it on Nov 12, 2026 with Gemini 4 Hydrogen.

Gemini 3.8 Flash benchmarks and pricing

Choose Claude Sonnet 5 if…

  • You work in Claude Code, Anthropic's own coding agent, where its Terminal-Bench run was made.
  • You have a setup pinned to it, though Anthropic superseded it on Sep 28, 2026 with Claude Sonnet 5.5.

Claude Sonnet 5 benchmarks and pricing

In each lab's coding agent: Antigravity CLI vs Claude Code

Questions.

Is Gemini 3.8 Flash better than Claude Sonnet 5 for coding?

Gemini 3.8 Flash passes more of Terminal-Bench: 19.1% in mini-SWE-agent at High effort, against 12.4% for Claude Sonnet 5 in Claude Code. Gemini 3.8 Flash's run reported no cost. In output tokens per task, Gemini 3.8 Flash used 206k and Claude Sonnet 5 353k.

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

Gemini 3.8 Flash: $0.75/$3.75 per million input/output tokens. Claude Sonnet 5: $29.10 per Terminal-Bench task, $2/$10 per million input/output tokens.

How do Gemini 3.8 Flash and Claude Sonnet 5 compare on Epoch AI's benchmarks?

Best scores, Gemini 3.8 Flash first. MirrorCode: 38.9% against 63.3%, within the margin of error. GPQA Diamond: 95.4% against 90.5%. FrontierMath Tiers 1–3: 68.4% against 65.6%, within the margin of error.

When were Gemini 3.8 Flash and Claude Sonnet 5 released?

Google released Gemini 3.8 Flash on Sep 2, 2026; Anthropic released Claude Sonnet 5 on Jun 30, 2026. Google superseded Gemini 3.8 Flash on Nov 12, 2026 with Gemini 4 Hydrogen. Anthropic superseded Claude Sonnet 5 on Sep 28, 2026 with Claude Sonnet 5.5.

Sources and scope

Terminal-Bench results are each model's run on the official leaderboard: the agent attempts all 66 tasks at least five times, errored trials count as failures, and passing trials are checked for reward hacking. Each lab's run uses the agent and setting it was submitted with, and cost per task is what the run reported. Epoch AI's scores test each model alone, under CC BY 4.0. API prices come from LiteLLM's price list. Written by aicharts from data checked Nov 24, 2026. Prices and scores change as labs update their models.

  1. Terminal-Bench leaderboard: mini-SWE-agent with Gemini 3.8 Flash
  2. Terminal-Bench leaderboard: Claude Code with Claude Sonnet 5
  3. Epoch AI, Capabilities & benchmarking (CC BY 4.0)
  4. LiteLLM model prices (MIT)
  5. Google: Gemini 3.8 Flash
  6. Anthropic: Claude Sonnet 5

Open Gemini 3.8 Flash in the explorer