head-to-head

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

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

xAI: Grok 4.3 Google: Gemma 4 31B (free)
Vendorx-aigoogle
Quality Score100100
Benchmark Score58.056.9
Input Price$1.25/MFree
Output Price$2.50/MFree
Context Window1,000,000262,144
Max Output-32,768
Tool Calling
Structured Output
Reasoning Mode
Vision
Audio--
Benchmark Scores
ai_index62.048.4
ai_index_agentic39.823.8
ai_index_coding69.771.7
eqbench-70.8

Who wins by task?

TaskxAI: Grok 4.3Google: Gemma 4 31B (free)
SQL Generation 158 157
Code Review 155 154
Code Completion 120 132
Code Refactoring 155 152
Bug Fixing 164 161
Unit Test Generation 144 143
Code Documentation 139 138
Regex Writing 130 132
CI/CD Pipelines 136 136
Frontend Component Design 138 138
Data Analysis 153 152
CSV / Spreadsheet Cleanup 147 146
ETL Scripting 145 144
JSON Extraction 134 143
Bulk Data Labeling 124 133
OCR / Document Parsing 141 140
Table Extraction from PDFs 141 140
Long-Document Summarization 152 151
Short-Form Summarization 120 130
Blog Post Writing 134 134

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

Related comparisons

Thinking Machines: Inkling Small vs xAI: Grok 4.3 Thinking Machines: Inkling Small vs Google: Gemma 4 31B (free) Qwen: Qwen3.7 Flash vs xAI: Grok 4.3 Qwen: Qwen3.7 Flash vs Google: Gemma 4 31B (free) Google: Gemini 3.6 Flash vs xAI: Grok 4.3 Google: Gemini 3.6 Flash vs Google: Gemma 4 31B (free) Google: Gemini 3.5 Flash Lite vs xAI: Grok 4.3 Google: Gemini 3.5 Flash Lite vs Google: Gemma 4 31B (free)