# Gemini 3.8 Flash vs Grok 4.7 - AI Model Comparison

- Page: https://opencode.ai/data/compare/google/gemini-3-8-flash/xai/grok-4-7
- Updated: 2026-10-09T01:24:05.000Z

|  | Gemini 3.8 Flash | Grok 4.7 |
| --- | --- | --- |
| Lab | Google | xAI |
| Context window | 1M | 500K |
| Max output | 66K | 500K |
| Input modalities | text, image, video, audio, pdf | text, image, pdf |
| Reasoning | Yes | Yes |
| Tool calling | Yes | Yes |
| Open weights | No | No |
| Release date | 2026-09-02 | 2026-09-21 |
| Input price per 1M tokens | $0.75 | $2.00 |
| Output price per 1M tokens | $3.75 | $6.00 |
| Cached input price per 1M tokens | $0.07 | $0.50 |
| OpenCode tokens: past 2 months | 0 | 29B |
| Share of all tokens | 0% | 0% |
| Rank by tokens last week | - | #36 |
| Unique users | 0 | 24K |
| Weekly retention | - | 40.7% |

Model pages: [Gemini 3.8 Flash](https://opencode.ai/data/google/gemini-3-8-flash.md), [Grok 4.7](https://opencode.ai/data/xai/grok-4-7.md)

## Methodology

- Updates: Aggregated every hour. Days and weeks use UTC.
- Tokens: Input, output, reasoning, and cached tokens for each request.
- Users and sessions: Approximate counts of distinct users and OpenCode sessions.
- Cost: Session cost is the average cost per OpenCode session. Token prices are list prices from the OpenCode model catalog.
- Retention: The share of a model's users in one week who use it again the next week.
- Citation: Cite OpenCode Data (opencode.ai/data) with the update time shown at the top of the page.
