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-06-16.

xAI: Grok 4.3 Google: Gemma 4 31B (free)
Vendorx-aigoogle
Quality Score100100
Benchmark Score84.8-
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_index87.8-
ai_index_agentic100.0-
ai_index_coding67.7-

Who wins by task?

TaskxAI: Grok 4.3Google: Gemma 4 31B (free)
SQL Generation 169 131
Code Review 166 126
Code Completion 121 129
Code Refactoring 163 127
Bug Fixing 181 130
Unit Test Generation 152 121
Code Documentation 143 126
Regex Writing 136 120
CI/CD Pipelines 143 117
Frontend Component Design 145 122
Data Analysis 170 124
CSV / Spreadsheet Cleanup 150 128
ETL Scripting 153 122
JSON Extraction 136 132
Bulk Data Labeling 125 130
OCR / Document Parsing 144 128
Table Extraction from PDFs 144 128
Long-Document Summarization 160 129
Blog Post Writing 140 119

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

Related comparisons

MoonshotAI: Kimi K2.7 Code vs xAI: Grok 4.3 MoonshotAI: Kimi K2.7 Code vs Google: Gemma 4 31B (free) Qwen: Qwen3.7 Plus vs xAI: Grok 4.3 Qwen: Qwen3.7 Plus vs Google: Gemma 4 31B (free) MiniMax: MiniMax M3 vs xAI: Grok 4.3 MiniMax: MiniMax M3 vs Google: Gemma 4 31B (free) StepFun: Step 3.7 Flash vs xAI: Grok 4.3 StepFun: Step 3.7 Flash vs Google: Gemma 4 31B (free)