head-to-head

Anthropic: Claude Sonnet 5 vs Google: Gemma 4 26B A4B

Side-by-side comparison of specs, pricing, benchmark scores, and task rankings. Updated 2026-07-01.

Anthropic: Claude Sonnet 5 Google: Gemma 4 26B A4B
Vendoranthropicgoogle
Quality Score100100
Benchmark Score-52.1
Input Price$2.00/M$0.06/M
Output Price$10.00/M$0.33/M
Context Window1,000,000262,144
Max Output128,000-
Tool Calling
Structured Output
Reasoning Mode
Vision
Audio--
Benchmark Scores
ai_index-42.4
ai_index_agentic-18.1
ai_index_coding-64.9
eqbench-70.0

Who wins by task?

TaskAnthropic: Claude Sonnet 5Google: Gemma 4 26B A4B
SQL Generation 132 154
Code Review 132 151
Code Completion 117 132
Code Refactoring 136 150
Bug Fixing 136 158
Unit Test Generation 124 141
Code Documentation 129 137
Regex Writing 117 130
CI/CD Pipelines 120 134
Frontend Component Design 122 137
Data Analysis 124 149
CSV / Spreadsheet Cleanup 132 144
ETL Scripting 128 142
JSON Extraction 121 142
Bulk Data Labeling 118 133
OCR / Document Parsing 131 139
Table Extraction from PDFs 131 139
Long-Document Summarization 136 149
Short-Form Summarization 113 129
Blog Post Writing 120 132

Scores reflect capability match + benchmark data + pricing for each task. Methodology →

Related comparisons

Anthropic: Claude Sonnet 5 vs MoonshotAI: Kimi K2.7 Code Anthropic: Claude Sonnet 5 vs Qwen: Qwen3.7 Plus Anthropic: Claude Sonnet 5 vs MiniMax: MiniMax M3 Anthropic: Claude Sonnet 5 vs StepFun: Step 3.7 Flash Anthropic: Claude Sonnet 5 vs xAI: Grok Build 0.1 Anthropic: Claude Sonnet 5 vs Google: Gemini 3.5 Flash Anthropic: Claude Sonnet 5 vs Google: Gemini 3.1 Flash Lite Anthropic: Claude Sonnet 5 vs xAI: Grok 4.3