head-to-head

Google: Gemma 4 26B A4B vs xAI: Grok 4.20

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

Google: Gemma 4 26B A4B xAI: Grok 4.20
Vendorgooglex-ai
Quality Score100100
Benchmark Score51.061.5
Input Price$0.06/M$1.25/M
Output Price$0.33/M$2.50/M
Context Window262,1442,000,000
Max Output--
Tool Calling
Structured Output
Reasoning Mode
Vision
Audio--
Benchmark Scores
ai_index42.461.0
ai_index_agentic18.1-
ai_index_coding64.9-
eqbench70.055.8

Who wins by task?

TaskGoogle: Gemma 4 26B A4B xAI: Grok 4.20
SQL Generation 154 144
Code Review 151 150
Code Completion 132 122
Code Refactoring 150 153
Bug Fixing 158 154
Unit Test Generation 141 135
Code Documentation 137 141
Regex Writing 130 127
CI/CD Pipelines 134 131
Frontend Component Design 137 131
Data Analysis 149 136
CSV / Spreadsheet Cleanup 144 139
ETL Scripting 142 142
JSON Extraction 142 123
Bulk Data Labeling 133 120
OCR / Document Parsing 139 135
Table Extraction from PDFs 139 135
Long-Document Summarization 149 154
Short-Form Summarization 129 119

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

Related comparisons

MoonshotAI: Kimi K2.7 Code vs Google: Gemma 4 26B A4B MoonshotAI: Kimi K2.7 Code vs xAI: Grok 4.20 Qwen: Qwen3.7 Plus vs Google: Gemma 4 26B A4B Qwen: Qwen3.7 Plus vs xAI: Grok 4.20 MiniMax: MiniMax M3 vs Google: Gemma 4 26B A4B MiniMax: MiniMax M3 vs xAI: Grok 4.20 StepFun: Step 3.7 Flash vs Google: Gemma 4 26B A4B StepFun: Step 3.7 Flash vs xAI: Grok 4.20