head-to-head
Google: Gemma 4 26B A4B (free) vs SpaceXAI: Grok 4.20
Side-by-side comparison of specs, pricing, benchmark scores, and task rankings. Updated 2026-09-23.
| Google: Gemma 4 26B A4B (free) | SpaceXAI: Grok 4.20 | |
|---|---|---|
| Vendor | x-ai | |
| Quality Score | 100 | 100 |
| Benchmark Score | 50.9 | 50.6 |
| Input Price | Free | $1.25/M |
| Output Price | Free | $2.50/M |
| Context Window | 262,144 | 2,000,000 |
| Max Output | 32,768 | 1,800,000 |
| Tool Calling | ✓ | ✓ |
| Structured Output | ✓ | ✓ |
| Reasoning Mode | ✓ | ✓ |
| Vision | ✓ | ✓ |
| Audio | - | - |
| Benchmark Scores | ||
| ai_index | 27.5 | 42.3 |
| eqbench | 70.0 | 55.8 |
Who wins by task?
| Task | Google: Gemma 4 26B A4B (free) | SpaceXAI: Grok 4.20 |
|---|---|---|
| SQL Generation | 139 | 142 |
| Code Review | 140 | 146 |
| Code Completion | 131 | 121 |
| Code Refactoring | 141 | 150 |
| Bug Fixing | 144 | 150 |
| Unit Test Generation | 129 | 133 |
| Code Documentation | 134 | 139 |
| Regex Writing | 125 | 125 |
| CI/CD Pipelines | 125 | 129 |
| Frontend Component Design | 128 | 129 |
| Data Analysis | 132 | 133 |
| CSV / Spreadsheet Cleanup | 133 | 138 |
| ETL Scripting | 133 | 139 |
| JSON Extraction | 132 | 123 |
| Bulk Data Labeling | 130 | 120 |
| OCR / Document Parsing | 131 | 134 |
| Table Extraction from PDFs | 131 | 134 |
| Long-Document Summarization | 143 | 151 |
| Short-Form Summarization | 126 | 118 |
| Blog Post Writing | 127 | 130 |
Scores reflect capability match + benchmark data + pricing for each task. Methodology →
Related comparisons
Anthropic: Claude Haiku Latest vs Google: Gemma 4 26B A4B (free)
Anthropic: Claude Haiku Latest vs SpaceXAI: Grok 4.20
Anthropic: Claude Sonnet 5 vs Google: Gemma 4 26B A4B (free)
Anthropic: Claude Sonnet 5 vs SpaceXAI: Grok 4.20
Anthropic: Claude Sonnet Latest vs Google: Gemma 4 26B A4B (free)
Anthropic: Claude Sonnet Latest vs SpaceXAI: Grok 4.20
Google: Gemini 3.1 Flash Lite vs Google: Gemma 4 26B A4B (free)
Google: Gemini 3.1 Flash Lite vs SpaceXAI: Grok 4.20