Updated March 25, 2026· Based on independent benchmark data
Google: Gemini 3.1 Pro Preview Custom Tools leads in intelligence with a score of 57.2 vs 48.5.
| Metric | Google: Gemini 3.1 Pro Preview Custom Tools | xAI: Grok 4 |
|---|---|---|
| Intelligence Score | 57.2 | 48.5 |
| Coding Score | 55.5 | 42.2 |
| Math Score | N/A | N/A |
| Speed (tok/s) | 113 tok/s | 124 tok/s |
| Latency (TTFT) | 23.00s | 15.96s |
| Input Price / 1M tokens | $2.00 | $3.00 |
| Output Price / 1M tokens | $12 | $15 |
| Context Window | 1.0M |
Google: Gemini 3.1 Pro Preview Custom Tools outperforms xAI: Grok 4 on the Artificial Analysis intelligence index with a score of 57.2 compared to 48.5. For coding tasks, Google: Gemini 3.1 Pro Preview Custom Tools has the edge with a coding score of 55.5 vs 42.2.
Both models deliver similar output speeds: Google: Gemini 3.1 Pro Preview Custom Tools at 113 tok/s and xAI: Grok 4 at 124 tok/s. Time to first token is 15.96s for xAI: Grok 4 vs 23.00s for Google: Gemini 3.1 Pro Preview Custom Tools, which affects perceived responsiveness in interactive applications.
Google: Gemini 3.1 Pro Preview Custom Tools is more affordable at $2.00/1M input tokens ($12/1M output), while xAI: Grok 4 costs $3.00/1M input ($15/1M output). For a typical workload of 100 requests per day at 2,000 tokens each, Google: Gemini 3.1 Pro Preview Custom Tools would cost approximately $12.00/month vs $18.00/month for xAI: Grok 4 in input costs alone.
Google: Gemini 3.1 Pro Preview Custom Tools offers a larger context window at 1.0M tokens compared to xAI: Grok 4's 256K. This means Google: Gemini 3.1 Pro Preview Custom Tools can process roughly 524 pages of text in a single request vs 128 pages for xAI: Grok 4.
Choose Google: Gemini 3.1 Pro Preview Custom Tools when you need higher intelligence (57.2), stronger coding performance (55.5), larger context window (1.0M).
Google: Gemini 3.1 Pro Preview Custom Tools scores higher on coding benchmarks (55.5 vs 42.2), making it the better choice for programming tasks.
Google: Gemini 3.1 Pro Preview Custom Tools is cheaper at $2.00/1M input tokens vs $3.00/1M for xAI: Grok 4.
xAI: Grok 4 is faster, producing output at 124 tok/s compared to Google: Gemini 3.1 Pro Preview Custom Tools's 113 tok/s.
Yes, Google: Gemini 3.1 Pro Preview Custom Tools supports image input. xAI: Grok 4 also supports images.
Benchmark data by Artificial Analysis
Data last synced: March 25, 2026
| 256K |
| Max Output Tokens | 66K | N/A |
| Input Modalities | Text + Audio + Image + Video + File | Image + Text |
| Output Modalities | Text | Text |
| Free Tier | No | No |
Google: Gemini 3.1 Pro Preview Custom Tools has a larger context window at 1.0M compared to xAI: Grok 4's 256K.
It depends on your priorities. Google: Gemini 3.1 Pro Preview Custom Tools scores higher on intelligence (57.2), but xAI: Grok 4 may be better for specific use cases like budget-conscious projects or speed-critical applications.