Skip to main content
AI Choice Engine

Model comparison

Claude Sonnet 5 vs Gemini 3.8 Flash

Anthropic against Google, compared on context, price, and attributed benchmark results.

Recorded profile verification October 1, 2026Individual provider fields may changeEvidence confidence: Medium — see receipts below

Anthropic

Claude Sonnet 5

Balanced

vs

Google

Gemini 3.8 Flash

Balanced

AI model capability comparison
SpecificationClaude Sonnet 5Gemini 3.8 Flash
ProviderAnthropicGoogle
TierBalancedBalanced
Context window1MWinner: 1.05M
Max outputWinner: 128K66K
Input / 1M tokens$2Winner: $0.75
Output / 1M tokens$10Winner: $3.75
WeightsClosedClosed
ParametersNot verifiedUnverifiedNot verifiedUnverified
Reasoning levelslow, medium, high, xhigh, maxlow, medium, high
Modalitiestext, imagetext, image, video, audio, pdf
API model idclaude-sonnet-5gemini-3.8-flash
ReleasedJune 30, 2026September 2, 2026
Terminal-Bench 2.1 · source date Claude Sonnet 5: 2026-06-3080.4Not verifiedUnverified
Terminal-Bench 2.1 · source date Gemini 3.8 Flash: 2026-09-02Not verifiedUnverified89.4
Humanity's Last Exam · source date Claude Sonnet 5: 2026-06-3057.4Not verifiedUnverified
LiveBench · source date Claude Sonnet 5: 2026-09-0576Not verifiedUnverified
Artificial Analysis Intelligence Index [high] · source date Gemini 3.8 Flash: 2026-10-01Not verifiedUnverified41
HLE-Verified · source date Gemini 3.8 Flash: 2026-09-02Not verifiedUnverified54.9

Dates beside benchmark scores refer to the linked source’s publication or capture date unless that source explicitly states when it measured the result. A shared URL alone does not establish comparable runs; unverified setups are marked. Prices are USD per million tokens at standard rates, excluding batch and caching discounts. Values we could not confirm from the provider are shown as “Not verified” rather than estimated.

Benchmark receipts

Where each score comes from, and how far it can be compared across models.

Pricing tiers

Claude Sonnet 5: Standard $2/$10 per MTok with no long-context surcharge. Cache reads $0.20; 5-minute writes $2.50 and 1-hour writes $4. Batch $1/$5. US-only inference adds 10% where supported. Batch supports 300K output with output-300k-2026-03-24; standard stays 128K. Knowledge cutoff Jan 2026; retirement not sooner than June 30, 2027.

Gemini 3.8 Flash: Intro Standard $0.75/$3.75 per MTok through December 31, 2026; $1.50/$7.50 from January 1, 2027. Output includes thinking tokens. Cached input $0.075, rising to $0.15; storage $0.50/MTok-hour, rising to $1. Batch/Flex input/output are $0.375/$1.875, rising to $0.75/$3.75. Priority $1.35/$6.75, rising to $2.70/$13.50. Grounding tools have separate charges and quotas; free-tier limits differ from paid.

BalancedRecord checked October 1, 2026

Claude Sonnet 5

Claude Sonnet 5 is Anthropic's previous Sonnet generation for high-volume agentic work at $2/$10.

Best for

  • Everyday generation
  • High-volume agents
  • Cost-sensitive work

Watch out

Active legacy. Sonnet 5.5 launched September 28 at the same token price, with breaking changes to thinking, forced tool use, computer use, advisor choices and progress blocks. Sonnet 5 rejects non-default temperature/top_p/top_k; test the exact target model before switching.

BalancedRecord checked October 1, 2026

Gemini 3.8 Flash

Gemini 3.8 Flash is Google's multimodal Flash model for long-horizon software engineering and agent workflows, with current introductory API pricing through December 31, 2026.

Best for

  • Agentic coding at scale
  • Mid-difficulty engineering
  • Multimodal pipelines

Watch out

Intro rates and cache-storage prices double January 1, 2027. Google says 3.8 can use more tokens at higher effort; 3.7 remains supported for efficiency-first workloads. Minimal thinking errors. Computer use is Preview; native audio/image generation and Live API are unsupported. Restricted Flash Cyber is a separate endpoint with no public rate confirmed.

Benchmark

DeepSWE 1.1 in context

Only Gemini 3.8 Flash has a published DeepSWE 1.1 result. It is shown against the wider field, with cost per completed task alongside the score.

Local leader

GPT-6 Astra [xhigh]

74.1%

Rows shown

28

Best source-matched Pass@1 per model

Snapshot date

2026-10-01

Mirrored from deepswe.datacurve.ai

DeepSWE 1.1 pass@10%16%32%48%64%80%$0$4.50$9.00$13.50$18.00$22.50$27.00Avg cost per taskGPT-6 Astra [xhigh]: 74.1% · $4.43 · 30k tokens · 29 stepsGemini 3.8 Flash [high]: 73.8% · $2.36 · 143k tokens · 166 stepsClaude Opus 5 [max]: 73.6% · $11.84 · 118k tokens · 99 stepsGPT-5.6 Sol [max]: 72.7% · $8.39 · 60k tokens · 61 stepsClaude Fable 5 [xhigh]: 69.9% · $13.41 · 80k tokens · 68 stepsGPT-5.6 Terra [max]: 69.6% · $4.95 · 72k tokens · 76 stepsGLM 5.3 [max]: 69.0% · $3.99 · 80k tokens · 124 stepsKimi K3 [max]: 68.5% · $4.65 · 82k tokens · 98 stepsGrok 4.6 [medium]: 67.5% · $3.45 · 50k tokens · 70 stepsGPT-5.6 Luna [max]: 67.2% · $3.03 · 73k tokens · 102 stepsGPT-5.5 [xhigh]: 67.0% · $7.23 · 46k tokens · 82 stepsGemini 3.7 Flash [medium]: 65.5% · $2.03 · 94k tokens · 117 stepsGLM 5.3 Flash [max]: 63.4% · $0.48 · 73k tokens · 123 stepsDeepSeek V4-Pro [max]: 62.8% · $0.24 · 106k tokens · 155 stepsClaude Opus 4.8 [max]: 59.0% · $13.22 · 135k tokens · 120 stepsQwen3.8-Max [xhigh]: 57.5% · $3.73 · 95k tokens · 111 stepsMuse Spark 1.2 [xhigh]: 54.9% · $3.70 · 99k tokens · 101 stepsClaude Sonnet 5 [max]: 53.8% · $26.40 · 214k tokens · 268 stepsGrok 4.5 [high]: 53.8% · $2.42 · 36k tokens · 61 stepsDeepSeek V4-Flash [max]: 53.3% · $0.10 · 108k tokens · 153 stepsMuse Spark 1.1 [xhigh]: 53.3% · $2.36 · 74k tokens · 96 stepsGPT-5.4 [xhigh]: 51.8% · $5.65 · 71k tokens · 70 stepsGemini 3.6 Flash [high]: 46.7% · $4.42 · 96k tokens · 117 stepsGLM 5.2 [max]: 43.8% · $3.92 · 78k tokens · 129 stepsGemini 3.5 Flash [high]: 36.1% · $3.45 · 76k tokens · 105 stepsKimi K2.7 Code: 30.5% · $2.82 · 59k tokens · 149 stepsClaude Sonnet 4.6 [high]: 29.9% · $5.52 · 76k tokens · 134 stepsGemini 3.1 Pro [high]: 11.7% · $2.14 · 28k tokens · 76 steps

Better is toward the top-right (higher pass rate, lower cost). X-axis is reversed to match DeepSWE’s public chart. v1.1 uses average cost, output tokens and steps. Legacy v1 transcriptions are excluded here until an exact primary receipt is retained.

DeepSWE 1.1 leaderboard with pass rate, cost, tokens, and steps per task
#ModelPass@1Cost / taskTokens / taskSteps / task
1GPT-6 Astra [xhigh]74.1%$4.4330k29
2Gemini 3.8 Flash [high]73.8%$2.36143k166
3Claude Opus 5 [max]73.6%$11.84118k99
4GPT-5.6 Sol [max]72.7%$8.3960k61
5Claude Fable 5 [xhigh]69.9%$13.4180k68
6GPT-5.6 Terra [max]69.6%$4.9572k76
7GLM 5.3 [max]69.0%$3.9980k124
8Kimi K3 [max]68.5%$4.6582k98
9Grok 4.6 [medium]67.5%$3.4550k70
10GPT-5.6 Luna [max]67.2%$3.0373k102
11GPT-5.5 [xhigh]67.0%$7.2346k82
12Gemini 3.7 Flash [medium]65.5%$2.0394k117
13GLM 5.3 Flash [max]63.4%$0.4873k123
14DeepSeek V4-Pro [max]62.8%$0.24106k155
15Claude Opus 4.8 [max]59.0%$13.22135k120
16Qwen3.8-Max [xhigh]57.5%$3.7395k111
17Muse Spark 1.2 [xhigh]54.9%$3.7099k101
18Claude Sonnet 5 [max]53.8%$26.40214k268
19Grok 4.5 [high]53.8%$2.4236k61
20DeepSeek V4-Flash [max]53.3%$0.10108k153
21Muse Spark 1.1 [xhigh]53.3%$2.3674k96
22GPT-5.4 [xhigh]51.8%$5.6571k70
23Gemini 3.6 Flash [high]46.7%$4.4296k117
24GLM 5.2 [max]43.8%$3.9278k129
25Gemini 3.5 Flash [high]36.1%$3.4576k105
26Kimi K2.7 Code30.5%$2.8259k149
27Claude Sonnet 4.6 [high]29.9%$5.5276k134
28Gemini 3.1 Pro [high]11.7%$2.1428k76

“Best per model” shows each model’s highest source-matched Pass@1 in this capture; switch to all effort levels to see every retained configuration. Efforts differ across models, so this view is not a comparison at matched effort. The source was generated September 22 and captured October 1. Small gaps may not be statistically meaningful — confirm on deepswe.datacurve.ai.

When the cheaper one wins

Gemini 3.8 Flash is cheaper on output at $3.75 per million tokens against $10 for Claude Sonnet 5 — about 2.7×. Use the cheaper tier for classification, extraction, summarisation, and any task where the expensive model’s extra score does not change the accepted output. The expensive one only pays if your hardest task actually fails on the cheap tier. On DeepSWE 1.1, Gemini 3.8 Flash is 73.8% Pass@1 at $2.36/task versus Claude Sonnet 5 at 53.8% / $26.4/task. This compares standard short-context token rates, not total cost per accepted task. Include input, cache, context tiers, schedules, retries and review in your pilot.

Run the model picker

Evidence confidence: Medium

How strong and complete the evidence behind this comparison is — not a prediction of which model is better.

  • Pricing verified on both sides — Input and output rates are verified for both models.
  • 4/5 core specs verified on both sides — Not published for at least one side: parameter count.
  • No directly aligned benchmark setup — No benchmark has matching cited sources, source dates, units, effort and recorded run details on both models.
  • Verified within the last 90 days — Older of the two catalog checks was 25 days ago.
  • Both models carry source citations — Each side has at least two catalog sources on record.

Source receipts

Each catalog figure was checked against the provider or an independent second source on the date shown.

Common questions

Claude Sonnet 5 vs Gemini 3.8 Flash

Answered from the verified figures on this page rather than general guidance.

Is Claude Sonnet 5 or Gemini 3.8 Flash cheaper for input?
Gemini 3.8 Flash is cheaper at $0.75 per million input tokens, against $2 for Claude Sonnet 5 — roughly 2.7× the price. Estimate both input and output token volume for your workload. These are base rates; Claude Sonnet 5: Standard $2/$10 per MTok with no long-context surcharge. Cache reads $0.20; 5-minute writes $2.50 and 1-hour writes $4. Batch $1/$5. US-only inference adds 10% where supported. Batch supports 300K output with output-300k-2026-03-24; standard stays 128K. Knowledge cutoff Jan 2026; retirement not sooner than June 30, 2027. Gemini 3.8 Flash: Intro Standard $0.75/$3.75 per MTok through December 31, 2026; $1.50/$7.50 from January 1, 2027. Output includes thinking tokens. Cached input $0.075, rising to $0.15; storage $0.50/MTok-hour, rising to $1. Batch/Flex input/output are $0.375/$1.875, rising to $0.75/$3.75. Priority $1.35/$6.75, rising to $2.70/$13.50. Grounding tools have separate charges and quotas; free-tier limits differ from paid.
Is Claude Sonnet 5 or Gemini 3.8 Flash cheaper for output?
Gemini 3.8 Flash is cheaper at $3.75 per million output tokens, against $10 for Claude Sonnet 5 — roughly 2.7× the price. Estimate both input and output token volume for your workload. These are base rates; Claude Sonnet 5: Standard $2/$10 per MTok with no long-context surcharge. Cache reads $0.20; 5-minute writes $2.50 and 1-hour writes $4. Batch $1/$5. US-only inference adds 10% where supported. Batch supports 300K output with output-300k-2026-03-24; standard stays 128K. Knowledge cutoff Jan 2026; retirement not sooner than June 30, 2027. Gemini 3.8 Flash: Intro Standard $0.75/$3.75 per MTok through December 31, 2026; $1.50/$7.50 from January 1, 2027. Output includes thinking tokens. Cached input $0.075, rising to $0.15; storage $0.50/MTok-hour, rising to $1. Batch/Flex input/output are $0.375/$1.875, rising to $0.75/$3.75. Priority $1.35/$6.75, rising to $2.70/$13.50. Grounding tools have separate charges and quotas; free-tier limits differ from paid.
Which has the larger context window, Claude Sonnet 5 or Gemini 3.8 Flash?
Gemini 3.8 Flash accepts 1.05M tokens against 1M for Claude Sonnet 5. This only matters if you routinely send very long documents or large codebases.
Do Claude Sonnet 5 and Gemini 3.8 Flash support the same reasoning levels?
Claude Sonnet 5 exposes low, medium, high, xhigh, max, while Gemini 3.8 Flash exposes low, medium, high.
Should I use Claude Sonnet 5 or Gemini 3.8 Flash?
Both are classified in our balanced tier; this editorial grouping does not imply equal capability. Claude Sonnet 5 is a candidate for everyday generation; Gemini 3.8 Flash is a candidate for agentic coding at scale. Compare accuracy, tool reliability, latency and cost on representative tasks.

Next step

Choosing between them

The verified figures that separate this pair, computed from the catalog rather than restated boilerplate.

  • Input price: Gemini 3.8 Flash costs $0.75 per 1M tokens versus $2 for Claude Sonnet 5 — a 2.7x difference at the headline tier.
  • Context: Gemini 3.8 Flash takes 1.05M against 1M for Claude Sonnet 5 — only decisive if your prompts approach the smaller window.

Choosing a harness rather than a model — Cursor, Copilot, Claude Code, Windsurf, or Lovable? Compare agentic harnesses · Latest releases.