Claude Sonnet 5 vs Gemini 3.1 Pro Preview (Comparative Analysis)
Loading comparison form...
Comparative Analysis: Claude Sonnet 5 vs. Gemini 3.1 Pro Preview
Want to try out these models side by side?Sign up for Spiral
Overview
Gemini 3.1 Pro Preview was released 4 months before Claude Sonnet 5.
Model Provider The organization behind this AI's development | ||
Input Context Window Maximum input tokens this model can process at once | 1M tokens | 1M tokens |
Output Token Limit Maximum output tokens this model can generate at once | 128K tokens | 65.5K tokens |
Release Date When this model first became publicly available | June 30, 2026 5 months ago June 30th, 2026 | February 19, 2026 9 months ago February 19th, 2026 |
Capabilities & Features
Compare supported features, modalities, and advanced capabilities
Claude Sonnet 5 | Gemini 3.1 Pro Preview | |
|---|---|---|
Input Types Supported input formats | 📝Text🖼️Image📁File | 🎵Audio📁File🖼️Image📝Text🎬Video |
Reasoning Controls Defaults and configurable reasoning effort | Enabled by defaultEffort: Max, Extra High, High, Medium, Low, NoneDefault: High | Always enabledEffort: High, Medium, LowDefault: Medium |
Output Types Supported output formats | 📝Text | 📝Text |
Tokenizer Text encoding system | Claude | Gemini |
Key Features Advanced capabilities | ✓Function Calling✓Structured Output✓Reasoning Mode✓Content Moderation | ✓Function Calling✓Structured Output✓Reasoning ModeContent Moderation |
Pricing
Claude Sonnet 5 is roughly 1.0x less expensive compared to Gemini 3.1 Pro Preview for input tokens and roughly 0.8x less expensive for output tokens.
Short Context Pricing Base rates before a long-context threshold applies | ||
|---|---|---|
Input Token Cost Cost per million input tokens | $2.00 per million tokens | $2.00 per million tokens |
Output Token Cost Cost per million output tokens | $10.00 per million tokens | $12.00 per million tokens |
Web Search Cost Additional cost for each web search operation | $0.01 per search | $0.014 per search |
Cache Read Cost Cost to reuse cached input tokens | $0.20 per million tokens | $0.20 per million tokens |
Cache Write Cost Cost to write input tokens to the cache | $2.50 per million tokens | $0.38 per million tokens |
1-Hour Cache Write Cost Cost to cache input tokens for one hour | $4.00 per million tokens | Not specified |
Reasoning Token Cost Cost for internal reasoning tokens | Not specified | $12.00 per million tokens |
Image Input Cost Additional cost for each image input | Not specified | $0.000002 per image |
Audio Input Cost Additional cost for audio input | Not specified | $0.000002 per unit |
Audio Cache Cost Cost to reuse cached audio input tokens | Not specified | $0.20 per million tokens |
Long Context Pricing Rates for prompts with 200,000 or more tokens | ||
Input Token Cost Long-context input cost per million tokens | Not specified | $4.00 per million tokens |
Output Token Cost Long-context output cost per million tokens | Not specified | $18.00 per million tokens |
Cache Read Cost Long-context cache read cost per million tokens | Not specified | $0.40 per million tokens |
Benchmarks
Compare relevant benchmarks between Claude Sonnet 5 and Gemini 3.1 Pro Preview.
Best Design Arena Score Highest human-preference Elo score across design arenas | 1,320 Elo (#32 in Code Categories (52.4% win rate)) | 1,326 Elo (#15 in Svg (67.9% win rate)) |
At a Glance
Quick overview of what makes Claude Sonnet 5 and Gemini 3.1 Pro Preview unique.
Explore More Comparisons
Compare your models with top performers across different categories
Compare Claude Sonnet 5 with:
🚀Programming
Best models for coding and development
🎨Creative & Roleplay
Models optimized for creative writing
📢Marketing
Content creation and marketing tasks
💻Technology
Technical analysis and explanations
🔬Science
Scientific research and analysis
🌐Translation
Multilingual translation tasks
Compare Gemini 3.1 Pro Preview with:
🚀Programming
Best models for coding and development
🎨Creative & Roleplay
Models optimized for creative writing
📢Marketing
Content creation and marketing tasks
💻Technology
Technical analysis and explanations
🔬Science
Scientific research and analysis
🌐Translation
Multilingual translation tasks