- Home
- Models
- Comparisons
- Gemini 3.1 Pro Preview vs Grok 4.7
Gemini 3.1 Pro Preview vs Grok 4.7: API pricing and context window
Grok 4.7 and Gemini 3.1 Pro Preview cost the same for input ($2.00 per 1M tokens); Grok 4.7 is 50% cheaper for output ($6.00 vs $12.00). Context window: 1,048,576 tokens for Gemini 3.1 Pro Preview, 500,000 for Grok 4.7. A 10K-input, 1K-output request costs $0.032 on Gemini 3.1 Pro Preview and $0.026 on Grok 4.7.
- Gemini 3.1 Pro Preview
- $2.00 / $12.00 Input / Output, per 1M tokens · 1M context window
- Grok 4.7
- $2.00 / $6.00 Input / Output, per 1M tokens · 500K context window
Side by side
| Field | Gemini 3.1 Pro Preview | Grok 4.7 | Gemini 3.1 Pro Preview vs Grok 4.7 |
|---|---|---|---|
| Input | $2.00 | $2.00 | |
| Output | $12.00 | $6.00 | +100% |
| Cached input | $0.20 | $0.50 | -60% |
| Context window | 1,048,576 | 500,000 | +110% |
| Long-context threshold | 200,000 | 200,000 | |
| Long-context input | $4.00 | $4.00 | |
| Long-context output | $18.00 | $12.00 | +50% |
| Batch API input | $1.00 | $1.60 | -38% |
| Batch API output | $6.00 | $4.80 | +25% |
| Image input | Yes | Yes | |
| Function calling | Yes | Yes | |
| Reasoning | Yes | Yes | |
| Prompt caching | Yes | Yes | |
| Web search | Yes | Yes | |
| Structured output | Yes | Yes | |
| Input types | text, image, audio, video | text, image |
Cost per task
| Task | Gemini 3.1 Pro Preview | Grok 4.7 | Cheaper |
|---|---|---|---|
| Chat request (10K in + 1K out) | $0.032 | $0.026 | Grok 4.7 (19% less) |
| Codebase question (100K in + 2K out) | $0.224 | $0.212 | Grok 4.7 (5% less) |
| Same question, context cached (100K cached + 2K out) | $0.044 | $0.062 | Gemini 3.1 Pro Preview (29% less) |
| Long document (300K in + 4K out) | $1.27 | $1.25 | Grok 4.7 (2% less) |
| 1M tokens a month (750K in + 250K out) | $4.50 | $3.00 | Grok 4.7 (33% less) |
Estimate your own workload in the calculator
Which one to pick
- Gemini 3.1 Pro Preview is cheaper for a question with cached context; Grok 4.7 for a chat request, a codebase question, a long document and 1M tokens a month.
- Pick Gemini 3.1 Pro Preview for prompts over 500K tokens: it accepts up to 1,048,576 input tokens, Grok 4.7 up to 500,000.
- Through the Batch API, Gemini 3.1 Pro Preview is cheaper for input ($1.00 vs $1.60 per 1M tokens) and Grok 4.7 for output ($4.80 vs $6.00).
- Gemini 3.1 Pro Preview charges less for cached input reads: $0.20 vs $0.50 per 1M tokens.
Full pages: Gemini 3.1 Pro Preview · Grok 4.7
More comparisons
- Claude Opus 5.5 vs Gemini 3.1 Pro Preview
- Claude Opus 5.5 vs Grok 4.7
- Claude Opus 5 vs Gemini 3.1 Pro Preview
- Claude Opus 5 vs Grok 4.7
- GPT-6.2 Astra vs Gemini 3.1 Pro Preview
- GPT-6.2 Astra vs Grok 4.7
- GPT-5.5 vs Gemini 3.1 Pro Preview
- GPT-5.5 vs Grok 4.7
Questions
Which is cheaper, Gemini 3.1 Pro Preview or Grok 4.7?
Grok 4.7 and Gemini 3.1 Pro Preview cost the same for input ($2.00 per 1M tokens); Grok 4.7 is 50% cheaper for output ($6.00 vs $12.00). A 10K-input, 1K-output request costs $0.032 on Gemini 3.1 Pro Preview and $0.026 on Grok 4.7.
Which has the larger context window, Gemini 3.1 Pro Preview or Grok 4.7?
Gemini 3.1 Pro Preview accepts more: 1,048,576 input tokens, against 500,000 for Grok 4.7.
How much does a typical request cost on Gemini 3.1 Pro Preview and Grok 4.7?
A chat request with 10K input and 1K output tokens costs $0.032 on Gemini 3.1 Pro Preview and $0.026 on Grok 4.7. A 100K-token codebase question with a 2K answer costs $0.224 and $0.212.
What are the differences between Gemini 3.1 Pro Preview and Grok 4.7?
Gemini 3.1 Pro Preview / Grok 4.7: output: $12.00 / $6.00; cached input: $0.20 / $0.50; context window: 1,048,576 / 500,000; long-context output: $18.00 / $12.00; Batch API input: $1.00 / $1.60; Batch API output: $6.00 / $4.80; input types: text, image, audio, video / text, image.