Skip to content

Claude Sonnet 5 vs Gemini 3.8 Flash

Compare Claude Sonnet 5 from Anthropic and Gemini 3.8 Flash from Google on price, context length and features. Use both through one Yunshu Router API key.

Anthropic
Google
Good for
Coding agents · Long context · Images and screenshots
Fast and cheap · Long context · Bulk and batch jobs · Images and screenshots
Overview
Model ID
claude-sonnet-5
gemini-3.8-flash
Availability
Available
Available
Context length
195K tokens
977K tokens
Reasoning
Can be switched off
Always on
Reads
text, image
text, image
Writes
text
text
Tool calling
Yes
Yes
Price per 1M tokens
Input
$2.4801
$0.8636
Output
$12.4006
$4.3181
Cached input
$0.2480
$0.0864
Model
Anthropic
Google
Good forCoding agents · Long context · Images and screenshotsFast and cheap · Long context · Bulk and batch jobs · Images and screenshots
Overview
Model IDclaude-sonnet-5gemini-3.8-flash
AvailabilityAvailableAvailable
Context length195K tokens977K tokens
ReasoningCan be switched offAlways on
Readstext, imagetext, image
Writestexttext
Tool callingYesYes
Price per 1M tokens
Input$2.4801$0.8636
Output$12.4006$4.3181
Cached input$0.2480$0.0864

Analysis

Claude Sonnet 5 vs Gemini 3.8 Flash: side-by-side summary

Claude Sonnet 5 and Gemini 3.8 Flash are both available through the Yunshu Router API, so switching between them is a change of model ID, not a new integration.

Claude Sonnet 5, from Anthropic, has a 195K-token context window and is priced at $2.4801 per 1M input tokens and $12.4006 per 1M output tokens on Yunshu Router (prices as of 2026-11-21).

Gemini 3.8 Flash, from Google, has a 977K-token context window and is priced at $0.8636 per 1M input tokens and $4.3181 per 1M output tokens on Yunshu Router (prices as of 2026-11-21).

AttributeClaude Sonnet 5Gemini 3.8 Flash
Context window195K tokens977K tokens
Price$2.4801 / M input, $12.4006 / M output$0.8636 / M input, $4.3181 / M output
Provided byAnthropicGoogle
Model pageClaude Sonnet 5 details, setup and pricingGemini 3.8 Flash details, setup and pricing

USD per 1M tokens, prices as of 2026-11-21. Input types are what each model's maker lists. "Highlight best" marks the lowest price and the largest context among the models shown, in green.

More comparisons

Compare any models →