head-to-head

xAI: Grok 4.20 vs Google: Gemini 3.1 Pro Preview Custom Tools

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

xAI: Grok 4.20 Google: Gemini 3.1 Pro Preview Custom Tools
Vendorx-aigoogle
Quality Score100100
Input Price$2.00/M$2.00/M
Output Price$6.00/M$12.00/M
Context Window2,000,0001,048,576
Max Output-65,536
Tool Calling
Structured Output
Reasoning Mode
Vision
Audio-

Who wins by task?

TaskxAI: Grok 4.20Google: Gemini 3.1 Pro Preview Custom Tools
SQL Generation 133 132
Code Completion 118 117
Code Documentation 130 129
Regex Writing 118 117
CSV / Spreadsheet Cleanup 133 132
JSON Extraction 122 121
Bulk Data Labeling 119 117
Long-Document Summarization 137 136
Short-Form Summarization 114 113
Blog Post Writing 121 120

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

Related comparisons

NVIDIA: Nemotron 3 Nano Omni (free) vs xAI: Grok 4.20 NVIDIA: Nemotron 3 Nano Omni (free) vs Google: Gemini 3.1 Pro Preview Custom Tools Anthropic Claude Haiku Latest vs xAI: Grok 4.20 Anthropic Claude Haiku Latest vs Google: Gemini 3.1 Pro Preview Custom Tools OpenAI GPT Mini Latest vs xAI: Grok 4.20 OpenAI GPT Mini Latest vs Google: Gemini 3.1 Pro Preview Custom Tools Google Gemini Pro Latest vs xAI: Grok 4.20 Google Gemini Pro Latest vs Google: Gemini 3.1 Pro Preview Custom Tools