Comprehensive side-by-side LLM comparison
Claude Sonnet 4 leads with 18.3% higher average benchmark score. Gemini 1.5 Flash offers 728.8K more tokens in context window than Claude Sonnet 4. Gemini 1.5 Flash is $17.25 cheaper per million tokens. Claude Sonnet 4 is available on 4 providers. Overall, Claude Sonnet 4 is the stronger choice for coding tasks.
Anthropic
Claude Sonnet 4 was created as the balanced offering in the Claude 4 family, designed to provide strong intelligence with practical speed and cost efficiency. Built to serve as a versatile workhorse for diverse applications, it balances advanced capabilities with operational considerations for everyday enterprise and consumer use.
Gemini 1.5 Flash was created as a fast and efficient multimodal model, designed to provide quick responses while handling text, images, and other modalities. Built for applications requiring low latency and high throughput, it balances capability with speed to serve real-time and high-volume use cases.
1 year newer

Gemini 1.5 Flash
2024-05-01

Claude Sonnet 4
Anthropic
2025-05-22
Cost per million tokens (USD)

Claude Sonnet 4

Gemini 1.5 Flash
Context window and performance specifications
Average performance across 2 common benchmarks

Claude Sonnet 4

Gemini 1.5 Flash
Gemini 1.5 Flash
2023-11-01
Available providers and their performance metrics

Claude Sonnet 4
Anthropic
Bedrock
ZeroEval

Claude Sonnet 4

Gemini 1.5 Flash

Claude Sonnet 4

Gemini 1.5 Flash

Gemini 1.5 Flash