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-07-09.

xAI: Grok Latest Google: Gemma 4 31B
Vendor~x-aigoogle
Quality Score100100
Benchmark Score10.957.3
Input Price$2.00/M$0.12/M
Output Price$6.00/M$0.35/M
Context Window500,000262,144
Max Output-262,144
Tool Calling
Structured Output
Reasoning Mode
Vision
Audio--
Benchmark Scores
ai_index12.448.4
ai_index_agentic-23.8
ai_index_coding-71.7
eqbench-70.8

Who wins by task?

TaskxAI: Grok LatestGoogle: Gemma 4 31B
SQL Generation 134 157
Code Review 134 154
Code Completion 118 132
Code Refactoring 138 152
Bug Fixing 138 161
Unit Test Generation 125 143
Code Documentation 131 138
Regex Writing 119 131
CI/CD Pipelines 121 136
Frontend Component Design 123 138
Data Analysis 125 152
CSV / Spreadsheet Cleanup 133 146
ETL Scripting 129 144
JSON Extraction 122 143
Bulk Data Labeling 119 133
OCR / Document Parsing 131 140
Table Extraction from PDFs 131 140
Long-Document Summarization 139 150
Short-Form Summarization 115 129
Blog Post Writing 122 134

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

Related comparisons

xAI: Grok 4.5 vs xAI: Grok Latest xAI: Grok 4.5 vs Google: Gemma 4 31B xAI: Grok Latest vs Anthropic: Claude Sonnet 5 xAI: Grok Latest vs Nex AGI: Nex-N2-Mini xAI: Grok Latest vs MoonshotAI: Kimi K2.7 Code xAI: Grok Latest vs Qwen: Qwen3.7 Plus xAI: Grok Latest vs MiniMax: MiniMax M3 xAI: Grok Latest vs StepFun: Step 3.7 Flash