head-to-head

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

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

xAI: Grok Build 0.1 Google: Gemma 4 31B (free)
Vendorx-aigoogle
Quality Score100100
Input Price$1.00/MFree
Output Price$2.00/MFree
Context Window256,000262,144
Max Output-32,768
Tool Calling
Structured Output
Reasoning Mode
Vision
Audio--

Who wins by task?

TaskxAI: Grok Build 0.1Google: Gemma 4 31B (free)
SQL Generation 130 131
Code Review 126 126
Code Completion 116 129
Code Refactoring 127 127
Bug Fixing 130 130
Unit Test Generation 121 121
Code Documentation 125 126
Regex Writing 119 120
CI/CD Pipelines 117 117
CSV / Spreadsheet Cleanup 127 128
ETL Scripting 122 122
JSON Extraction 123 132
Bulk Data Labeling 121 130
OCR / Document Parsing 128 128
Table Extraction from PDFs 128 128
Long-Document Summarization 129 129
Short-Form Summarization 115 124
Blog Post Writing 118 119

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

Related comparisons

StepFun: Step 3.7 Flash vs xAI: Grok Build 0.1 StepFun: Step 3.7 Flash vs Google: Gemma 4 31B (free) xAI: Grok Build 0.1 vs Google: Gemini 3.5 Flash xAI: Grok Build 0.1 vs Google: Gemini 3.1 Flash Lite xAI: Grok Build 0.1 vs xAI: Grok 4.3 xAI: Grok Build 0.1 vs Mistral: Mistral Medium 3.5 xAI: Grok Build 0.1 vs NVIDIA: Nemotron 3 Nano Omni (free) xAI: Grok Build 0.1 vs Anthropic Claude Haiku Latest