- Home
- Models
- Comparisons
- Gemini 3.8 Flash vs Grok 4.7
Gemini 3.8 Flash vs Grok 4.7: API pricing and context window
Gemini 3.8 Flash is 63% cheaper than Grok 4.7 for input ($0.75 vs $2.00 per 1M tokens) and 38% cheaper for output ($3.75 vs $6.00). Context window: 1,048,576 tokens for Gemini 3.8 Flash, 500,000 for Grok 4.7. A 10K-input, 1K-output request costs $0.011 on Gemini 3.8 Flash and $0.026 on Grok 4.7.
- Gemini 3.8 Flash
- $0.75 / $3.75 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.8 Flash | Grok 4.7 | Gemini 3.8 Flash vs Grok 4.7 |
|---|---|---|---|
| Input | $0.75 | $2.00 | -63% |
| Output | $3.75 | $6.00 | -38% |
| Cached input | $0.075 | $0.50 | -85% |
| Context window | 1,048,576 | 500,000 | +110% |
| Long-context threshold | none | 200,000 | |
| Batch API input | $0.375 | $1.60 | -77% |
| Batch API output | $1.875 | $4.80 | -61% |
| 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.8 Flash | Grok 4.7 | Cheaper |
|---|---|---|---|
| Chat request (10K in + 1K out) | $0.011 | $0.026 | Gemini 3.8 Flash (57% less) |
| Codebase question (100K in + 2K out) | $0.083 | $0.212 | Gemini 3.8 Flash (61% less) |
| Same question, context cached (100K cached + 2K out) | $0.015 | $0.062 | Gemini 3.8 Flash (76% less) |
| Long document (300K in + 4K out) | $0.24 | $1.25 | Gemini 3.8 Flash (81% less) |
| 1M tokens a month (750K in + 250K out) | $1.50 | $3.00 | Gemini 3.8 Flash (50% less) |
Estimate your own workload in the calculator
Which one to pick
- Pick Gemini 3.8 Flash to spend less: it is cheaper on every task above. A chat request costs $0.011 vs $0.026, and 1M tokens a month $1.50 vs $3.00.
- Pick Gemini 3.8 Flash for prompts over 500K tokens: it accepts up to 1,048,576 input tokens, Grok 4.7 up to 500,000.
- Grok 4.7 bills the whole request at $4.00 input and $12.00 output per 1M once a prompt passes 200K tokens; Gemini 3.8 Flash lists no long-context surcharge.
- Through the Batch API, Gemini 3.8 Flash is cheaper for input and output: $0.375 vs $1.60 and $1.875 vs $4.80 per 1M tokens.
- Gemini 3.8 Flash charges less for cached input reads: $0.075 vs $0.50 per 1M tokens.
Full pages: Gemini 3.8 Flash · Grok 4.7
More comparisons
- Gemini 3.8 Flash vs Gemini 3.5 Flash
- Claude Opus 5.5 vs Grok 4.7
- Claude Opus 5 vs Grok 4.7
- GPT-6.2 Astra vs Grok 4.7
- GPT-5.5 vs Grok 4.7
- Gemini 3.1 Pro Preview vs Grok 4.7
- Claude Sonnet 5.5 vs Gemini 3.8 Flash
- GPT-6.2 Sol vs Gemini 3.8 Flash
Questions
Which is cheaper, Gemini 3.8 Flash or Grok 4.7?
Gemini 3.8 Flash is 63% cheaper than Grok 4.7 for input ($0.75 vs $2.00 per 1M tokens) and 38% cheaper for output ($3.75 vs $6.00). A 10K-input, 1K-output request costs $0.011 on Gemini 3.8 Flash and $0.026 on Grok 4.7.
Which has the larger context window, Gemini 3.8 Flash or Grok 4.7?
Gemini 3.8 Flash accepts more: 1,048,576 input tokens, against 500,000 for Grok 4.7.
How much does a typical request cost on Gemini 3.8 Flash and Grok 4.7?
A chat request with 10K input and 1K output tokens costs $0.011 on Gemini 3.8 Flash and $0.026 on Grok 4.7. A 100K-token codebase question with a 2K answer costs $0.083 and $0.212.
What are the differences between Gemini 3.8 Flash and Grok 4.7?
Gemini 3.8 Flash / Grok 4.7: input: $0.75 / $2.00; output: $3.75 / $6.00; cached input: $0.075 / $0.50; context window: 1,048,576 / 500,000; long-context threshold: none / 200,000; Batch API input: $0.375 / $1.60; Batch API output: $1.875 / $4.80; input types: text, image, audio, video / text, image.