Grok 4.7 vs Gemini 3.8 Flash
The listed rates and 1M-input + 1M-output workload example use base tiers, assuming every request meets: grok-4.7: request input ≤ 200,000 tokens. Requests above a threshold use the long-context rates below. Gemini 3.8 Flash is the lower-priced of the two on Router One — about 69% less on a 1M-input + 1M-output mix. Grok 4.7 offers 500K of context vs 1.05M for Gemini 3.8 Flash. Grok 4.7 answers on /v1/chat/completions and /v1/responses (Codex CLI); Gemini 3.8 Flash on /v1/chat/completions.
Grok 4.7 and Gemini 3.8 Flash compared on current per-token rates, context window, and capabilities — both callable through one OpenAI-compatible endpoint with per-request cost traces.
Grok 4.7 vs Gemini 3.8 Flash: rates, context window, and capabilities
| Spec | Grok 4.7 | Gemini 3.8 Flash |
|---|---|---|
| Input / 1M tokens | $1.10 | $0.225 |
| Output / 1M tokens | $3.30 | $1.125 |
| Cached input / 1M tokens | $0.275 | $0.225 |
| Context window | 500K | 1.05M |
| Detail page | Grok 4.7 | Gemini 3.8 Flash |
grok-4.7: request input ≤ 200,000 tokens: Input $1.10 / 1M tokens, Output $3.30 / 1M tokens, Cache write $1.10 / 1M tokens, Cached input $0.275 / 1M tokens; request input > 200,000 tokens: Input $2.20 / 1M tokens, Output $6.60 / 1M tokens, Cache write $2.20 / 1M tokens, Cached input $0.55 / 1M tokens. The total input tokens in each request select the tier; its rates apply to the whole request, not only tokens above the threshold.
What does 1M tokens cost on Grok 4.7 vs Gemini 3.8 Flash?
The listed rates and 1M-input + 1M-output workload example use base tiers, assuming every request meets: grok-4.7: request input ≤ 200,000 tokens. Requests above a threshold use the long-context rates below. For a workload of 1M input plus 1M output tokens at current rates: Grok 4.7 comes to $4.40, Gemini 3.8 Flash comes to $1.35 — Gemini 3.8 Flash is about 69% cheaper on this mix. Real workloads skew heavily toward input tokens, so weigh the input rate by your own ratio; the cached-input row above is the posted catalog rate for that model.
Switch between Grok 4.7 and Gemini 3.8 Flash without changing code
Both models are behind the same OpenAI-compatible endpoint, so an A/B test is a one-string change — same key, same code, and every request traced with tokens, cost, and latency in the dashboard:
curl https://api.router.one/v1/chat/completions \
-H "Authorization: Bearer sk-your-router-one-key" \
-H "Content-Type: application/json" \
-d '{"model": "grok-4.7", "messages": [{"role": "user", "content": "Hello"}]}'
# Same request, other model — change one string:
# "model": "google/gemini-3.8-flash"FAQ
Is Grok 4.7 cheaper than Gemini 3.8 Flash?
The listed rates and 1M-input + 1M-output workload example use base tiers, assuming every request meets: grok-4.7: request input ≤ 200,000 tokens. Requests above a threshold use the long-context rates below. Input: Grok 4.7 $1.10 vs Gemini 3.8 Flash $0.225 / 1M tokens; Gemini 3.8 Flash has the lower rate. Output: Grok 4.7 $3.30 vs Gemini 3.8 Flash $1.125 / 1M tokens; Gemini 3.8 Flash has the lower rate. Total cost depends on the workload's input, output and cache usage. grok-4.7: request input ≤ 200,000 tokens: Input $1.10 / 1M tokens, Output $3.30 / 1M tokens, Cache write $1.10 / 1M tokens, Cached input $0.275 / 1M tokens; request input > 200,000 tokens: Input $2.20 / 1M tokens, Output $6.60 / 1M tokens, Cache write $2.20 / 1M tokens, Cached input $0.55 / 1M tokens. The total input tokens in each request select the tier; its rates apply to the whole request, not only tokens above the threshold. Rates change; the /models page is the live source of truth.
Can I switch between Grok 4.7 and Gemini 3.8 Flash without changing code?
Yes. Both are served through the same OpenAI-compatible endpoint, so switching is changing the model string in the request — the key, base URL, and request shape stay identical.
Where do these numbers come from?
Specs and prices on this page render from the live Router One catalog — the same data as the /models page — and refresh with it. Pricing methodology is documented on /pricing-methodology. Rates on this page were read from the live catalog on 2026-09-22 (UTC) and refresh within the hour.