head-to-head

Google: Gemma 4 26B A4B (free) vs Anthropic: Claude Sonnet 4.6

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

Google: Gemma 4 26B A4B (free) Anthropic: Claude Sonnet 4.6
Vendorgoogleanthropic
Quality Score100100
Input PriceFree$3.00/M
Output PriceFree$15.00/M
Context Window262,1441,000,000
Max Output32,768128,000
Tool Calling
Structured Output
Reasoning Mode
Vision
Audio--

Who wins by task?

TaskGoogle: Gemma 4 26B A4B (free)Anthropic: Claude Sonnet 4.6
SQL Generation 131 132
Code Review 126 132
Code Completion 129 116
Code Refactoring 127 136
Bug Fixing 130 136
Unit Test Generation 121 124
Code Documentation 126 128
Regex Writing 120 116
CI/CD Pipelines 117 120
CSV / Spreadsheet Cleanup 128 132
ETL Scripting 122 128
JSON Extraction 132 120
Bulk Data Labeling 130 116
OCR / Document Parsing 128 131
Table Extraction from PDFs 128 131
Long-Document Summarization 129 136
Short-Form Summarization 124 112
Blog Post Writing 119 120

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

Related comparisons

Google: Gemini 3.1 Flash Lite vs Google: Gemma 4 26B A4B (free) Google: Gemini 3.1 Flash Lite vs Anthropic: Claude Sonnet 4.6 xAI: Grok 4.3 vs Google: Gemma 4 26B A4B (free) xAI: Grok 4.3 vs Anthropic: Claude Sonnet 4.6 Mistral: Mistral Medium 3.5 vs Google: Gemma 4 26B A4B (free) Mistral: Mistral Medium 3.5 vs Anthropic: Claude Sonnet 4.6 NVIDIA: Nemotron 3 Nano Omni (free) vs Google: Gemma 4 26B A4B (free) NVIDIA: Nemotron 3 Nano Omni (free) vs Anthropic: Claude Sonnet 4.6