Comprehensive side-by-side LLM comparison
Claude Sonnet 4 leads with 8.5% higher average benchmark score. Gemini 2.0 Flash offers 728.8K more tokens in context window than Claude Sonnet 4. Gemini 2.0 Flash is $17.50 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 2.0 Flash was developed as the next generation of Google's fast multimodal model, designed to provide improved performance while maintaining the speed and efficiency that defines the Flash family. Built with enhanced reasoning and generation capabilities, it serves applications requiring both quality and responsiveness.
5 months newer

Gemini 2.0 Flash
2024-12-01

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

Claude Sonnet 4

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

Claude Sonnet 4

Gemini 2.0 Flash
Gemini 2.0 Flash
2024-08-01
Available providers and their performance metrics

Claude Sonnet 4
Anthropic
Bedrock
ZeroEval

Claude Sonnet 4

Gemini 2.0 Flash

Claude Sonnet 4

Gemini 2.0 Flash

Gemini 2.0 Flash