head-to-head

SpaceXAI: Grok Build 0.1 vs Google: Gemma 4 31B (free)

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

SpaceXAI: Grok Build 0.1 Google: Gemma 4 31B (free)
Vendorx-aigoogle
Quality Score100100
Benchmark Score-53.7
Input Price$1.00/MFree
Output Price$2.00/MFree
Context Window256,000262,144
Max Output230,40032,768
Tool Calling✓✓
Structured Output✓✓
Reasoning Mode✓✓
Vision✓✓
Audio--
Benchmark Scores
ai_index-48.4
ai_index_agentic-23.8
ai_index_coding-71.7
eqbench-57.5

The verdict

For a sample job of 1 million input tokens and 250,000 output tokens, Gemma 4 31B (free) costs $0 and Grok Build 0.1 costs $1.50, so Gemma 4 31B (free) is free for the same work.

Both take in a similar amount of text: 256,000 and 262,144 tokens, about 384 and 393 pages.

Only Gemma 4 31B (free) offers video input.

Across the 20 tasks where they differ, Gemma 4 31B (free) on 20 (SQL Generation, Code Review, Code Completion and others).

Grok Build 0.1 was released in May 2026 and Gemma 4 31B (free) in April 2026.

Pick Gemma 4 31B (free) if you need lower cost, video input or the stronger all-round task scores.

Costs use current list prices per million tokens; page counts assume about 0.75 words per token and 500 words per page.

Who wins by task?

TaskSpaceXAI: Grok Build 0.1Google: Gemma 4 31B (free)
SQL Generation 130 156
Code Review 126 152
Code Completion 116 131
Code Refactoring 127 151
Bug Fixing 130 160
Unit Test Generation 121 143
Code Documentation 125 137
Regex Writing 119 131
CI/CD Pipelines 117 135
Frontend Component Design 122 138
Data Analysis 124 152
CSV / Spreadsheet Cleanup 127 145
ETL Scripting 122 143
JSON Extraction 123 143
Bulk Data Labeling 121 133
OCR / Document Parsing 128 140
Table Extraction from PDFs 128 140
Long-Document Summarization 129 149
Short-Form Summarization 115 129
Blog Post Writing 118 133

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

Related comparisons

Anthropic: Claude Haiku Latest vs Google: Gemma 4 31B (free) Anthropic: Claude Sonnet 5 vs Google: Gemma 4 31B (free) Anthropic: Claude Sonnet 5 vs SpaceXAI: Grok Build 0.1 Anthropic: Claude Sonnet Latest vs Google: Gemma 4 31B (free) ByteDance Seed: Seed-2.0-Code vs SpaceXAI: Grok Build 0.1 ByteDance Seed: Seed 2.1 Turbo vs SpaceXAI: Grok Build 0.1 Google: Gemini 3.1 Flash Lite vs Google: Gemma 4 31B (free) Google: Gemini 3.5 Flash Lite vs Google: Gemma 4 31B (free)

The Model Movers Report

One email every Friday, built from this site's own rankings: the current top five by benchmark score, every model released in the last seven days, and one note worked out from that week's numbers. You can unsubscribe from any issue with one click.