Skip to main content

text model comparison

Claude Sonnet 5 vs Gemini 3.8 Flash

Claude Sonnet 5 and Gemini 3.8 Flash are text models, from Anthropic and Google. Claude Sonnet 5 is now listed as a legacy model. Gemini 3.8 Flash is 63% cheaper per 1M input tokens than Claude Sonnet 5, $0.75 vs $2. On Arena Text, Claude Sonnet 5 scores 1442 Elo and Gemini 3.8 Flash 1501 Elo (Arena, measured November 22, 2026). On the Epoch Capabilities Index, which combines more than 50 benchmarks, Claude Sonnet 5 scores 156.9 and Gemini 3.8 Flash 158.8, too close to call within their 90% credible intervals. Both accept about 1.05M tokens of context (1,000,000 and 1,048,576).

Higher Arena Text
Gemini 3.8 Flash1501 Elo against 1442 Elo
Lower price per 1M input tokens
Gemini 3.8 Flash$0.75 against $2
Longer context window
Gemini 3.8 Flash1.05M tokens against 1M tokens
Newer release
Gemini 3.8 FlashSep 2026 against Jun 2026

Data verified November 23, 2026 · Dataset 2026-11-27

Share this

Side by side

Claude Sonnet 5 and Gemini 3.8 Flash, line by line

Prices in effect today, compared at the same tier wherever both list one. The better value in each row is highlighted.

FactClaude Sonnet 5Gemini 3.8 Flash
Price
Price per 1M input tokens$2$0.75 (better)
Price per 1M output tokens$10$3.75 (better)
Independent benchmarks
Arena Text1442 EloRange 1438 to 14461501 Elo (#7 of 58) (better)Range 1497 to 1505
Arena WebDev1540 EloRange 1534 to 15451584 Elo (#33 of 53) (better)Range 1578 to 1590
Epoch Capabilities IndexToo close to call156.9 pointsRange 154.9 to 159.1158.8 points (#19 of 47)Range 156.8 to 161
GPQA Diamond90.5%95.4% (#8 of 45) (better)
FrontierMath Tiers 1-3 (v2)65.6%68.4% (#28 of 42) (better)
SimpleQA Verified33.7%69.7% (#11 of 40) (better)
LiveBench Overall74.85 pointsNot measured
Specs
ProviderAnthropicGoogle
Release dateJune 30, 2026September 2, 2026
AccessAPI onlyAPI only
Context window1,000,000 tokens1,048,576 tokens
Max output128,000 tokens65,536 tokens
Inputtexttext, image, audio, video
Outputtexttext

Ranges under the scores are the publishers' own: published rating ranges from Arena and 90% credible intervals from Epoch AI. Where two ranges overlap, the gap is inside the measurement's own uncertainty, so the row says too close to call and neither score is highlighted or counted as a lead.

Scores:Arena · 2026-11-23Epoch AI · 2026-11-23LiveBench · 2026-06-25

Open both in the interactive comparison

Charts

Against every current text model

Where Claude Sonnet 5 and Gemini 3.8 Flash land among the current models of their task, on every independent benchmark, on price and on context.

Where each stands

Claude Sonnet 5 is no longer a current model, so it is not ranked. On Arena Text, Gemini 3.8 Flash ranks #7 of 58 current models. Each bar is the share of current models it beats.

Claude Sonnet 5 and Gemini 3.8 Flash among the current text models, one row per benchmark, price and context window.

Independent benchmarks

Arena Text

Claude Sonnet 5:Not rankedno longer current

1,442 Elo · ahead of 47%

Published rating range 1,438 to 1,446

Gemini 3.8 Flash:#7of 58

1,501 Elo · ahead of 89%

Published rating range 1,497 to 1,505

Arena WebDev

Claude Sonnet 5:Not rankedno longer current

1,540 Elo · ahead of 25%

Published rating range 1,534 to 1,545

Gemini 3.8 Flash:#33of 53

1,584 Elo · ahead of 38%

Published rating range 1,578 to 1,590

Epoch Capabilities Index

Claude Sonnet 5:Not rankedno longer current

156.9 · ahead of 47%

90% credible interval 154.9 to 159.1

Gemini 3.8 Flash:#19of 47

158.8 · ahead of 61%

90% credible interval 156.8 to 161

GPQA Diamond

Claude Sonnet 5:Not rankedno longer current

90.5% · ahead of 33%

Gemini 3.8 Flash:#8of 45

95.4% · ahead of 82%

FrontierMath Tiers 1-3 (v2)

Claude Sonnet 5:Not rankedno longer current

65.6% · ahead of 31%

Gemini 3.8 Flash:#28of 42

68.4% · ahead of 34%

Price and context

Price per 1M input tokens

Claude Sonnet 5:Not rankedno longer current

$2 · cheaper than 25%

Gemini 3.8 Flash:#28of 67

$0.75 · cheaper than 59%

Price per 1M output tokens

Claude Sonnet 5:Not rankedno longer current

$10 · cheaper than 27%

Gemini 3.8 Flash:#32of 67

$3.75 · cheaper than 53%

Context window

Claude Sonnet 5:Not rankedno longer current

1M tokens · longer than 23%

Gemini 3.8 Flash:#16of 84

1.05M tokens · longer than 58%

Quality against price

Arena Text · measured November 22, 2026

Claude Sonnet 5 scores 1,442 at $4; Gemini 3.8 Flash scores 1,501 at $1.50 (blended price per 1M tokens). The line joins the current models no other beats on both price and Arena Text score; hover any point to name it.

Quality against priceArena Text score against price for 48 text models, Claude Sonnet 5 and Gemini 3.8 Flash marked.1,2501,3001,3501,4001,4501,5001,5501,600$0.30$1$3$10MOST ATTRACTIVE QUADRANTMedian price $3Median 1,450Blended price per 1M tokens (3 input : 1 output), log scaleArena Text (Elo)Gemini 3.8 FlashClaude Sonnet 5
Quality against price: the data
Arena Text score against price for 48 text models, Claude Sonnet 5 and Gemini 3.8 Flash marked.
ModelProviderBlended price per 1M tokensArena Text (Elo)
Gemini 4 CarbonGoogle$81,539
Gemini 4 ArgonGoogle$81,528
Gemini 4 NeonGoogle$61,523
Claude Opus 5.5Anthropic$81,514
Muse WonderMeta$81,504
Gemini 4 HydrogenGoogle$31,502
Gemini 3.8 FlashGoogle$1.501,501
Muse Spark 1.3Meta$21,493
MiMo-V2.6-ProXiaomi MiMo$0.541,493
Qwen3.8-MaxAlibaba Qwen$31,485
Gemini 3.6 FlashGoogle$31,479
Claude Fable 5.2Anthropic$161,477
Kimi K3Moonshot Kimi$61,475
GLM-5.3Z.ai$2.151,475
GLM-5.3-FlashZ.ai$0.241,472
GPT-5.5OpenAI$111,471
GPT-5.4OpenAI$5.631,469
Claude Sonnet 5.5Anthropic$41,469
Gemini 3 Flash PreviewGoogle$1.131,466
DeepSeek-V4.1-FlashDeepSeek$0.521,463
Kimi K3.1 ProMoonshot Kimi$41,459
GPT-5.6 SolOpenAI$81,457
Grok 4.20xAI$1.561,451
MiMo-V2.6-FlashXiaomi MiMo$0.181,450
GPT-5.6 TerraOpenAI$4.501,449
Grok 4.5xAI$31,448
GPT-6.1 SolOpenAI$41,446
DeepSeek-V4-ProDeepSeek$1.981,445
Step 5 PreviewStepFun$1.431,444
Claude Sonnet 5Anthropic$41,442
GPT-6 AstraOpenAI$201,441
Gemini 3.5 Flash-LiteGoogle$0.851,435
GPT-5.6 LunaOpenAI$0.451,431
Grok 4.6xAI$31,430
Mistral Large 4Mistral AI$1.051,414
GPT-6.2 SolOpenAI$41,414
GPT-6.2 AstraOpenAI$161,413
Inkling 2 SmallThinking Machines Lab$0.471,403
Grok 4.7xAI$31,401
Claude Haiku 5.5Anthropic$0.201,398
GPT-6 SolOpenAI$41,398
Grok 4.3xAI$1.561,397
GPT-6 LunaOpenAI$0.201,391
Solar Pro 4Upstage$0.521,388
GPT-4.1OpenAI$3.501,383
Inkling 2 MiniThinking Machines Lab$0.241,344
GPT-4.1 miniOpenAI$0.701,340
GPT-4.1 nanoOpenAI$0.181,285

Cost

What each costs

Example workloads at each provider's listed rates, then every other rate either one lists. The cheaper figure in each row is highlighted.

The same work, priced

For 10M input and 2M output tokens, Claude Sonnet 5 costs 2.7 times as much as Gemini 3.8 Flash, at each provider's listed rates.

What Claude Sonnet 5 and Gemini 3.8 Flash cost for the same work, at the rates each provider lists.
  • 10M input and 2M output tokens

    Claude Sonnet 5 costs 2.7× as much

    Claude Sonnet 5
    $40
    Gemini 3.8 Flash
    $15
  • The same, with 9M of the input tokens cached

    Claude Sonnet 5 costs 2.7× as much

    Claude Sonnet 5
    $23.80
    Gemini 3.8 Flash
    $8.93
Workload or rateClaude Sonnet 5Gemini 3.8 Flash
Example workloads
10M input and 2M output tokens$40$15 (better)
The same, with 9M of the input tokens cached$23.80$8.93 (better)
The same, through the batch APINot listed$7.50
Other listed rates
1M input tokens, cached$0.20$0.075 (better)
1M input tokens, batchNot listed$0.375
1M output tokens, batchNot listed$1.875
1M input tokens, priorityNot listed$1.35
1M output tokens, priorityNot listed$6.75

Your own bill will differ. These figures use list prices and example workloads. The AI Model Cost Audit reviews your real usage, shortlists models that score as well for each task for less, and estimates the savings.

Launch price $100, regular price $150

See the cost audit

Verdict

When to choose each

Claude Sonnet 5

Where it leads

  • Longer responses, up to 128,000 vs 65,536 output tokens

Best for

  • Agentic coding evaluations with current introductory API pricing

Watch out for

  • Anthropic now lists it as a legacy model, still available until a retirement not sooner than June 30, 2027; its current models are Claude Fable 5.2, Claude Opus 5.5, Claude Sonnet 5.5 and Claude Haiku 5.5
  • The launch price is introductory through 2026-08-31; refresh pricing before evaluating workloads after that date

Gemini 3.8 Flash

Where it leads

  • Lower input and output prices, $0.75 and $3.75 vs $2 and $10 per 1M tokens
  • Higher Arena Text score, 1501 Elo vs 1442 Elo
  • Higher Arena WebDev score, 1584 Elo vs 1540 Elo
  • Higher GPQA Diamond score, 95.4% vs 90.5%
  • Higher FrontierMath Tiers 1-3 (v2) score, 68.4% vs 65.6%
  • Higher SimpleQA Verified score, 69.7% vs 33.7%
  • Accepts image, audio and video input
  • Cheaper cached input, $0.075 vs $0.20 per 1M tokens

Best for

  • High-volume agentic and coding workloads where per-token cost dominates the decision
  • Multimodal pipelines that need audio, video and PDF input in one model

Watch out for

  • The listed price is promotional and ends 31 December 2026; on 1 January 2027 input and output both double, to $1.50 and $7.50, and cached input goes from $0.075 to $0.15
  • Output pricing is billed inclusive of thinking tokens, so reasoning-heavy prompts cost more than the output length suggests
  • Google’s published comparisons are against its own previous Flash release and were not independently reproduced here
  • Google now points Gemini 3.8 Flash users to Gemini 4 Hydrogen, released November 12, 2026, as the recommended upgrade, with migration guidance

From benchmark to production

Building on Claude Sonnet 5 or Gemini 3.8 Flash?

Public scores rarely hold on your own data. We test both models on your real tasks, then build the agent or pipeline around the one that wins.

AI Model Cost AuditLaunch price $100, regular price $150

FAQ

Claude Sonnet 5 vs Gemini 3.8 Flash FAQ

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

Gemini 3.8 Flash is 63% cheaper per 1M input tokens than Claude Sonnet 5, $0.75 vs $2. For 10M input and 2M output tokens, Claude Sonnet 5 costs $40 and Gemini 3.8 Flash $15 at standard rates.

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

Claude Sonnet 5 charges $0.20 per 1M cached input tokens, 90% below its standard input rate, and Gemini 3.8 Flash $0.075, 90% below. With 9M of 10M input tokens cached and 2M output tokens, Claude Sonnet 5 costs $23.80 and Gemini 3.8 Flash $8.93.

Which scores higher on independent benchmarks, Claude Sonnet 5 or Gemini 3.8 Flash?

Gemini 3.8 Flash leads on Arena Text, 1501 Elo to 1442 Elo; Gemini 3.8 Flash leads on Arena WebDev, 1584 Elo to 1540 Elo; Claude Sonnet 5 and Gemini 3.8 Flash are level on the Epoch Capabilities Index, 156.9 points and 158.8 points, inside overlapping 90% credible intervals (154.9 to 159.1 and 156.8 to 161). Scores are independent evaluations, not either vendor's launch figures.

Which has the larger context window, Claude Sonnet 5 or Gemini 3.8 Flash?

Both accept about 1.05M tokens of context (1,000,000 and 1,048,576). Claude Sonnet 5 returns up to 128,000 tokens per response, Gemini 3.8 Flash 65,536.

How do Claude Sonnet 5 and Gemini 3.8 Flash differ in features?

Claude Sonnet 5 takes text input; Gemini 3.8 Flash takes text, image, audio and video.

AI Model Brief

The AI models worth knowing, once a week

What shipped, how it scores on independent benchmarks, what it costs per million tokens and what was deprecated, from the data behind our AI model benchmarks.

One email a week. We send a confirmation link first, and every issue has a one-click unsubscribe.

We use your address only to send the brief. See our privacy policy.

See this week’s brief

Production evaluation

Choosing between Claude Sonnet 5 and Gemini 3.8 Flash?

Public benchmarks narrow the shortlist. We run both on your own tasks, data and cost limits, then build the routing and review controls to run the winner in production.

  • A head-to-head evaluation on your real workload
  • Routing between models by cost and difficulty