Gemini 3.1 Pro vs Grok 4
Side-by-side comparison of API pricing, specs, benchmarks, and capabilities
|
by Google
|
by xAI
|
|
|---|---|---|
| Overview | ||
| Status | Current flagship | Current flagship |
| Released | Nov 1, 2025 | Jul 9, 2025 |
| Pricing per million tokens | ||
| Input | $2.00/Mtok | $3.00/Mtok |
| Output | $12.00/Mtok | $15.00/Mtok |
| Blended avg | $7.00/Mtok | $9.00/Mtok |
| Specifications | ||
| Context window | 2M tokens | 256K tokens |
| Parameters | Proprietary | Proprietary |
| Speed (TPS) | — | — |
| Modalities | ||
| Input |
textimageaudiovideo
|
textimage
|
| Benchmarks from Vellum LLM Leaderboard | ||
| Avg benchmark score | 79.3 | 66.2 |
| Perf / dollar | 11.3 | 7.4 |
| GPQA Diamond | 88 | 75 |
| SWE-Bench | 75 | 55 |
| HumanEval | 93 | 87 |
| MATH 500 | 95 | 82 |
| Providers | ||
| Available from |
Google — $2.00/$12.00/Mtok
|
xAI — $3.00/$15.00/Mtok
|
Cost at scale — 1M tokens (50/50 input/output)
| Volume | Gemini 3.1 Pro | Grok 4 | Savings |
|---|---|---|---|
| 1M tokens | $7 | $9 | $2 (22.2%) |
| 10M tokens | $70 | $90 | $20 (22.2%) |
| 100M tokens | $700 | $900 | $200 (22.2%) |
| 1000M tokens | $7000 | $9000 | $2000 (22.2%) |
Summary
Gemini 3.1 Pro by Google costs $2.00/Mtok input and $12.00/Mtok output, with a 2M-token context window. It supports text, image, audio, video input.
Grok 4 by xAI costs $3.00/Mtok input and $15.00/Mtok output, with a 256K-token context window. It supports text, image input.
On a blended cost basis, Gemini 3.1 Pro is 28.6% cheaper than Grok 4. It also has a larger context window.
On benchmarks, Gemini 3.1 Pro scores higher (79.3 vs 66.2) on average. In terms of value, Gemini 3.1 Pro has better performance per dollar (11.3 vs 7.4).
Note: Pricing is per million tokens. Actual costs vary with usage patterns, prompt caching, and batch discounts. Always verify against official provider pricing pages.