head-to-head

xAI: Grok Latest vs Google: Gemma 4 31B

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

xAI: Grok Latest Google: Gemma 4 31B
Vendor~x-aigoogle
Quality Score100100
Benchmark Score5.853.7
Input Price$1.60/M$0.09/M
Output Price$4.80/M$0.34/M
Context Window500,000262,144
Max Output450,00016,384
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
SQL Generation 134 139
Code Review 134 140
Code Completion 118 131
Code Refactoring 137 141
Bug Fixing 138 144
Unit Test Generation 125 130
Code Documentation 131 134
Regex Writing 119 125
CI/CD Pipelines 121 126
Frontend Component Design 123 128
Data Analysis 125 132
CSV / Spreadsheet Cleanup 133 133
ETL Scripting 129 133
JSON Extraction 122 131
Bulk Data Labeling 120 129
OCR / Document Parsing 131 131
Table Extraction from PDFs 131 131
Long-Document Summarization 139 143
Short-Form Summarization 115 126
Blog Post Writing 122 127

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

Related comparisons

Anthropic: Claude Haiku Latest vs Google: Gemma 4 31B Anthropic: Claude Opus 5 (batch) vs xAI: Grok Latest Anthropic: Claude Sonnet 5 vs Google: Gemma 4 31B Anthropic: Claude Sonnet Latest vs Google: Gemma 4 31B 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

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.