Gemini 3.7 FlashvsClaude Sonnet 5
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
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 | Claude Sonnet 5 | |
|---|---|---|
| Released | Aug 13, 2026[5]Google · Superseded Sep 2, 2026 | Jun 30, 2026[6]Anthropic · Superseded Sep 28, 2026 |
| Terminal-Bench | 11.2%[1]mini-SWE-agent · High | 12.4%[2]Claude Code · Max |
| Cost per task | $3.82Lower[1] | $29.10[2] |
| Output tokens per task | 158kFewer[1] | 353k[2] |
| Minutes per task | 28 minQuicker[1] | 109 min[2] |
| MirrorCode | 41.1%[3]High · Epoch AI | 63.3%[3]Max · Epoch AI |
| GPQA Diamond | 94.8%[3]High · Epoch AI | 90.5%[3]XHigh · Epoch AI |
| FrontierMath Tiers 1–3 | 71.6%[3]High · Epoch AI | 65.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 input | 1.05M tokens[4] | 1M tokens[4] |
| Frontier star | Superseded | Superseded |
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.
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.
Related comparisons
More with Gemini 3.7 Flash
More with Claude Sonnet 5
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.