aicharts

Gemini 3.7 FlashvsClaude Sonnet 5

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

Answer

Gemini 3.7 Flash and Claude Sonnet 5 are level on Terminal-Bench: 11.2% in mini-SWE-agent against 12.4% in Claude Code, within two tasks' worth of each other.[1][2] Claude Sonnet 5 costs $29.10 per task against $3.82 for Gemini 3.7 Flash. For scores this close, the cheaper run gives about the same for less.

Gemini 3.7 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 5Gem 3.7 Flash
Gemini 3.7 Flash in mini-SWE-agent · 11.2% on Terminal-Bench · $3.82 per taskClaude Sonnet 5 in Claude Code · 12.4% on Terminal-Bench · $29.10 per task
Gemini 3.7 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.7 Flash and Claude Sonnet 5 compared
Gemini 3.7 FlashClaude Sonnet 5
ReleasedAug 13, 2026[5]Google · Superseded Sep 2, 2026Jun 30, 2026[6]Anthropic · Superseded Sep 28, 2026
Terminal-Bench11.2%[1]mini-SWE-agent · High12.4%[2]Claude Code · Max
Cost per task$3.82Lower[1]$29.10[2]
Output tokens per task158kFewer[1]353k[2]
Minutes per task28 minQuicker[1]109 min[2]
MirrorCode41.1%[3]High · Epoch AI63.3%[3]Max · Epoch AI
GPQA Diamond94.8%[3]High · Epoch AI90.5%[3]XHigh · Epoch AI
FrontierMath Tiers 1–371.6%[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.7 Flash if…

  • You want to spend less per task: $3.82 against $29.10 on Terminal-Bench.
  • You want fewer output tokens: 158k per task against 353k.
  • You want quicker runs: 28 minutes per task against 109.
  • 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 Sep 2, 2026 with Gemini 3.8 Flash.

Gemini 3.7 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.7 Flash better than Claude Sonnet 5 for coding?

Gemini 3.7 Flash and Claude Sonnet 5 are level on Terminal-Bench: 11.2% in mini-SWE-agent against 12.4% in Claude Code, within two tasks' worth of each other. Claude Sonnet 5 costs $29.10 per task against $3.82 for Gemini 3.7 Flash. For scores this close, the cheaper run gives about the same for less.

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

Gemini 3.7 Flash: $3.82 per Terminal-Bench task, $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.7 Flash and Claude Sonnet 5 compare on Epoch AI's benchmarks?

Best scores, Gemini 3.7 Flash first. MirrorCode: 41.1% against 63.3%, within the margin of error. GPQA Diamond: 94.8% against 90.5%, within the margin of error. FrontierMath Tiers 1–3: 71.6% against 65.6%, within the margin of error.

When were Gemini 3.7 Flash and Claude Sonnet 5 released?

Google released Gemini 3.7 Flash on Aug 13, 2026; Anthropic released Claude Sonnet 5 on Jun 30, 2026. Google superseded Gemini 3.7 Flash on Sep 2, 2026 with Gemini 3.8 Flash. 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.7 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.7 Flash
  6. Anthropic: Claude Sonnet 5

Open Gemini 3.7 Flash in the explorer