head-to-head

xAI: Grok Latest vs Google: Gemma 4 31B (free)

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

xAI: Grok Latest Google: Gemma 4 31B (free)
Vendor~x-aigoogle
Quality Score100100
Benchmark Score5.853.7
Input Price$1.60/MFree
Output Price$4.80/MFree
Context Window500,000262,144
Max Output450,00032,768
Tool Calling
Structured Output
Reasoning Mode
Vision
Audio--
Benchmark Scores
ai_index11.431.3
eqbench-70.8

Who wins by task?

TaskxAI: Grok LatestGoogle: Gemma 4 31B (free)
SQL Generation 134 140
Code Review 134 140
Code Completion 118 132
Code Refactoring 137 141
Bug Fixing 138 144
Unit Test Generation 125 130
Code Documentation 131 135
Regex Writing 119 126
CI/CD Pipelines 121 126
Frontend Component Design 123 128
Data Analysis 125 132
CSV / Spreadsheet Cleanup 133 134
ETL Scripting 129 133
JSON Extraction 122 132
Bulk Data Labeling 120 130
OCR / Document Parsing 131 131
Table Extraction from PDFs 131 131
Long-Document Summarization 139 143
Short-Form Summarization 115 127
Blog Post Writing 122 128

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 Opus 5 (batch) vs xAI: Grok Latest Anthropic: Claude Sonnet 5 vs Google: Gemma 4 31B (free) Anthropic: Claude Sonnet Latest vs Google: Gemma 4 31B (free) ByteDance Seed: Seed-2.0-Code vs xAI: Grok Latest ByteDance Seed: Seed 2.1 Turbo vs xAI: Grok Latest DeepSeek: DeepSeek V4 Flash Vision Exp vs xAI: Grok Latest Google: Gemini 3.1 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.