Gemini 3.1 Pro vs Grok 4.3
Detailed comparison of API pricing, technical specifications, and benchmark scores. Updated 2026-06-29.
Cost at a Glance
Gemini 3.1 Pro is 3× more expensive than Grok 4.3 — switching could save 66.9% on your monthly API bill.
At 5M input + 2M output tokens per month:
Choosing Grok 4.3 could save you $22.75/mo
Price Comparison (per 1M tokens)
| Metric | Gemini 3.1 Pro | Grok 4.3 |
|---|---|---|
| Input (per 1M tokens) | $2.00 | $1.25 |
| Output (per 1M tokens) | $12.00 | $2.50 |
| Cache Write (per 1M tokens) | — | — |
| Cache Read (per 1M tokens) | $0.20 | $0.20 |
| Batch Input (per 1M tokens) | — | — |
| Batch Output (per 1M tokens) | — | — |
Prices are per 1 million tokens. Actual costs depend on your monthly token volume. Use the calculator →
Specifications
| Spec | Gemini 3.1 Pro | Grok 4.3 |
|---|---|---|
| Context Window | 1M | 1M |
| Max Output Tokens | 64K | 128K |
| Knowledge Cutoff | 2026-04 | 2026-04 |
| Modalities | Text, Image, Audio, Video | Text, Image, Video |
| Prompt Caching | Yes | Yes |
| Batch API | No | No |
| Thinking / Reasoning | Yes | Yes |
Benchmark Scores
| Benchmark | Gemini 3.1 Pro | Grok 4.3 |
|---|---|---|
| SWE-bench Verified | 80.6 | 73.0 |
| MMLU-Pro | 86.5 | 83.5 |
| HumanEval | 93.5 | 91.2 |
Benchmark scores from official provider reports. Higher is better. Missing scores indicate the provider has not published that benchmark yet.
Use Cases
Gemini 3.1 Pro
Grok 4.3
About the Providers
Gemini 3.1 Pro is developed by Google. Grok 4.3 is developed by xAI. This is a cross-provider comparison between Google and xAI models. For the most up-to-date pricing, always check the official API documentation from each provider.