AI model comparison

Claude Sonnet 5 vs Gemini 3.5 Flash

Compare benchmark results, pricing, and API capabilities for each model. Estimate the cost of your own token mix.

Change models
Loading the catalog…
Markdown
Context tokens
1M
Input / 1M
$2.00
Output / 1M
$10.00
Context tokens
1.05M
Input / 1M
$1.50
Output / 1M
$9.00
Benchmark snapshot
Code Completion
Claude Sonnet 5Gemini 3.5 Flash
78.261%
76.087%

Percent score · Result source · Test method

Catalog checked Nov 27, 202623 shared benchmark resultsRead the methodology

The trade-offs

Start with the differences that affect how this model fits your workload.

Benchmark results
Claude Sonnet 5 and Gemini 3.5 Flash scored 78.261% and 76.087%, respectively, on Code Completion. Use the test setup below to check whether it matches your workload.
Token cost
For 1 million input tokens and 250,000 output tokens, the listed rates estimate $4.50 for Claude Sonnet 5 and $3.75 for Gemini 3.5 Flash.
Context window
Gemini 3.5 Flash lists 1,048,576 tokens of context. Claude Sonnet 5 lists 1,000,000 tokens. Reserve space for the output before routing long inputs.

Benchmarks

Shared results come from the same published benchmark release. Reasoning effort and serving configuration can differ.

Shared benchmark profilePercentage scores from the first eight shared groups, sorted by the page evidence order.

Source Result source · Test method

Claude Sonnet 5Gemini 3.5 Flash

Code Completion

Coding · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

78.261%
76.087%
Test configurations
Claude Sonnet 5
claude-sonnet-5-xhigh-effort
Gemini 3.5 Flash
gemini-3.5-flash-high

Code Generation

Coding · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

83.099%
80.282%
Test configurations
Claude Sonnet 5
claude-sonnet-5-xhigh-effort
Gemini 3.5 Flash
gemini-3.5-flash-high

Javascript

Agentic Coding · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

68.182%
63.636%
Test configurations
Claude Sonnet 5
claude-sonnet-5-xhigh-effort
Gemini 3.5 Flash
gemini-3.5-flash-high

Python

Agentic Coding · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

60%
50%
Test configurations
Claude Sonnet 5
claude-sonnet-5-xhigh-effort
Gemini 3.5 Flash
gemini-3.5-flash-high

Typescript

Agentic Coding · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

50%
33.333%
Test configurations
Claude Sonnet 5
claude-sonnet-5-xhigh-effort
Gemini 3.5 Flash
gemini-3.5-flash-high

Amps Hard

Mathematics · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

98%
98%
Test configurations
Claude Sonnet 5
claude-sonnet-5-xhigh-effort
Gemini 3.5 Flash
gemini-3.5-flash-high

Connections

Language · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

95.5%
100%
Test configurations
Claude Sonnet 5
claude-sonnet-5-xhigh-effort
Gemini 3.5 Flash
gemini-3.5-flash-high

Consecutive Events

Data Analysis · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

74.741%
47.994%
Test configurations
Claude Sonnet 5
claude-sonnet-5-xhigh-effort
Gemini 3.5 Flash
gemini-3.5-flash-high
Show 15 more shared results

Integrals With Game

Mathematics · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

88%
68%
Test configurations
Claude Sonnet 5
claude-sonnet-5-xhigh-effort
Gemini 3.5 Flash
gemini-3.5-flash-high

Logic With Navigation

Reasoning · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

86%
74%
Test configurations
Claude Sonnet 5
claude-sonnet-5-xhigh-effort
Gemini 3.5 Flash
gemini-3.5-flash-high

Math Comp

Mathematics · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

95.098%
95.098%
Test configurations
Claude Sonnet 5
claude-sonnet-5-xhigh-effort
Gemini 3.5 Flash
gemini-3.5-flash-high

Olympiad

Mathematics · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

90.671%
91.877%
Test configurations
Claude Sonnet 5
claude-sonnet-5-xhigh-effort
Gemini 3.5 Flash
gemini-3.5-flash-high

Paraphrase

IF · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

61.25%
75.517%
Test configurations
Claude Sonnet 5
claude-sonnet-5-xhigh-effort
Gemini 3.5 Flash
gemini-3.5-flash-high

Plot Unscrambling

Language · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

53.411%
67.753%
Test configurations
Claude Sonnet 5
claude-sonnet-5-xhigh-effort
Gemini 3.5 Flash
gemini-3.5-flash-high

Simplify

IF · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

60.65%
69.1%
Test configurations
Claude Sonnet 5
claude-sonnet-5-xhigh-effort
Gemini 3.5 Flash
gemini-3.5-flash-high

Spatial

Reasoning · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

100%
96%
Test configurations
Claude Sonnet 5
claude-sonnet-5-xhigh-effort
Gemini 3.5 Flash
gemini-3.5-flash-high

Story Generation

IF · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

62.317%
75.2%
Test configurations
Claude Sonnet 5
claude-sonnet-5-xhigh-effort
Gemini 3.5 Flash
gemini-3.5-flash-high

Summarize

IF · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

71.217%
82.583%
Test configurations
Claude Sonnet 5
claude-sonnet-5-xhigh-effort
Gemini 3.5 Flash
gemini-3.5-flash-high

Tablejoin

Data Analysis · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

42.442%
50.5%
Test configurations
Claude Sonnet 5
claude-sonnet-5-xhigh-effort
Gemini 3.5 Flash
gemini-3.5-flash-high

Tablereformat

Data Analysis · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

98.039%
96.078%
Test configurations
Claude Sonnet 5
claude-sonnet-5-xhigh-effort
Gemini 3.5 Flash
gemini-3.5-flash-high

Theory Of Mind

Reasoning · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

80.769%
80.769%
Test configurations
Claude Sonnet 5
claude-sonnet-5-xhigh-effort
Gemini 3.5 Flash
gemini-3.5-flash-high

Typos

Language · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

76%
86%
Test configurations
Claude Sonnet 5
claude-sonnet-5-xhigh-effort
Gemini 3.5 Flash
gemini-3.5-flash-high

Zebra Puzzle

Reasoning · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

88%
77.25%
Test configurations
Claude Sonnet 5
claude-sonnet-5-xhigh-effort
Gemini 3.5 Flash
gemini-3.5-flash-high
View individual benchmark records

These model-level records can include other benchmark releases, test configurations, and vendor-reported results.

Claude Sonnet 5

BenchmarkScoreConfigurationSource model labelEvidence
Long Agentic39%claude-sonnet-5 · Suite release Oct 14, 2026 · run date unavailableclaude-sonnet-5Result source · Test method
Reasoning88.7%claude-sonnet-5 · Suite release Oct 14, 2026 · run date unavailableclaude-sonnet-5Result source · Test method
Coding74.7%claude-sonnet-5 · Suite release Oct 14, 2026 · run date unavailableclaude-sonnet-5Result source · Test method
Browser72%claude-sonnet-5 · Suite release Oct 14, 2026 · run date unavailableclaude-sonnet-5Result source · Test method
Data Analysis71.7%claude-sonnet-5 · Suite release Oct 14, 2026 · run date unavailableclaude-sonnet-5Result source · Test method
Research82.8%claude-sonnet-5 · Suite release Oct 14, 2026 · run date unavailableclaude-sonnet-5Result source · Test method
Design82%claude-sonnet-5 · Suite release Oct 14, 2026 · run date unavailableclaude-sonnet-5Result source · Test method

Gemini 3.5 Flash

No additional benchmark results are available for this model ID.

Pricing and token cost

Listed OpenRouter prices in US dollars. Actual charges depend on the endpoint, tier, cache, and token mix.

USD per million tokensClaude Sonnet 5Gemini 3.5 Flash
Uncached input$2.00$1.50
Output$10.00$9.00
Cache read$0.20$0.15
Cache write$2.50$0.0833

Rates are a catalog snapshot. OpenRouter Models API

Estimate your workload

Enter total token counts. The estimate uses uncached input and output rates.

Claude Sonnet 5$4.50
Gemini 3.5 Flash$3.75

Gemini 3.5 Flash costs $0.75 less at this token mix.

Model specifications

Context, output limits, modalities, and supported API parameters from the catalog.

SpecificationClaude Sonnet 5Gemini 3.5 Flash
Catalog statusListedListed
Catalog model IDanthropic/claude-sonnet-5google/gemini-3.5-flash
ProviderAnthropicGoogle
Context window1,000,000 tokens1,048,576 tokens
Max output128,000 tokens65,536 tokens
Input modalitiesText, Image, FileText, Image, Video, File, Audio
Output modalitiesTextText
Reasoning controlsListedListed
Tool callingListedListed
Structured outputsListedListed
Serving endpoints/api/v1/chat/completions, /api/v1/completions, /api/v1/messages, /api/v1/responses/api/v1/chat/completions, /api/v1/completions, /api/v1/messages, /api/v1/responses
Catalog listing dateJun 30, 2026May 19, 2026

Use with Weave Router

Set a quality bar on your own coding tasks. Then compare cost per completed task and use the same harness when you change models.

Claude Sonnet 5

Listed in the public Router catalog.

claude-sonnet-5

Gemini 3.5 Flash

Weave Router availability is unverified for this model ID.

Catalog presence does not guarantee availability for a specific plan or account. Public Weave Router catalog · Nov 27, 2026

Explore Weave Router Read Weave Router benchmark results

Sources

Each benchmark links to its own result and test method when available.

MarkdownFull methodology