Claude Sonnet 5 vs Gemini 3 Flash Preview

Claude Sonnet 5 vs Gemini 3 Flash Preview: which AI model is cheaper, has the larger context window and more capabilities? Side-by-side comparison updated daily.

Quick verdict

  • Gemini 3 Flash Preview is 3.6× cheaper than Claude Sonnet 5 for the same mix of input and output tokens.
  • Gemini 3 Flash Preview has the larger context window (1M), useful for long documents and big codebases.
  • Claude Sonnet 5 is the more recent release (Jun 30, 2026).
  • Claude Sonnet 5 scores higher on independent tests (overall index 156.3 vs 151.8).
  • Choose Gemini 3 Flash Preview if cost matters most; choose Claude Sonnet 5 if you need its specific strengths above. For the best results, test both on your own prompts.
Claude Sonnet 5Gemini 3 Flash Preview
CompanyAnthropicGoogle DeepMind
ReleasedJun 30, 2026 ●Dec 17, 2025
Overall index156.3 ●151.8
SWE-bench Verified—75.4%
GPQA Diamond90.5% ●89.4%
AIME math94.7%95.6% ●
FrontierMath65.6% ●51.2%
SimpleQA Verified33.7%66.8% ●
Input (per 1M tokens)$2$0.50 ●
Output (per 1M tokens)$10$3 ●
Cost for 1M input + 1M output tokens$12.00$3.50 ●
Providers10 ●6
Context1M1M ●
Max output128K ●64K
InputsText, Image, FilesText, Image, Files, Audio, Video ●
OutputsTextText
Reasoning✓✓
Tool use✓✓
Structured output✓✓
Open weights——

Add a model →

Popular comparisons