Grok 4.7 vs Gemini 3.8 Flash
Gemini 3.8 Flash is the lower-priced of the two on Router One at base-tier rates (Grok 4.7: request input ≤ 200,000 tokens) — 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 counts against the Mid-tier models allowance on Pro, Max and Ultra; Gemini 3.8 Flash counts against the Standard models allowance on Pro, Max and Ultra.
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 that logs each request it forwards.
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.0225 |
| Context window | 500K | 1.05M |
| Capabilities | Chat, Streaming, Tool calling, Vision | Chat, Streaming, Tool calling, Vision |
| Subscription plans | Mid-tier models — Pro, Max, Ultra | Standard models — Pro, Max, Ultra |
| 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?
Base-tier rates: 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
Both models answer on /v1/chat/completions, so an A/B test there is a one-string change — same key, same code, and every request traced in the dashboard with its tokens, the wallet charge or plan quota it used, and latency. Codex CLI uses /v1/responses, which Router One lists for Grok 4.7 but not Gemini 3.8 Flash — so in that tool, switch the tool (or call /v1/chat/completions), not only the model string.
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?
Compared at base-tier rates (Grok 4.7: request input ≤ 200,000 tokens). 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.
Is Grok 4.7 or Gemini 3.8 Flash included in a Router One subscription?
Grok 4.7 counts against the Mid-tier models allowance on Pro, Max and Ultra: Pro 1,200, Max 4,500 and Ultra 15,000 requests per 30-day cycle, shared by every model in that tier. Gemini 3.8 Flash counts against the Standard models allowance on Pro, Max and Ultra: Pro 5,000, Max 8,000 and Ultra 25,000 requests per 30-day cycle, shared by every model in that tier. Requests to Grok 4.7 or Gemini 3.8 Flash above the model's long-context threshold count as more than one quota request. Requests beyond a plan's allowance bill the wallet per token.
Can I switch between Grok 4.7 and Gemini 3.8 Flash without changing code?
On /v1/chat/completions, yes — change the model string; the key and base URL stay the same. Codex CLI uses /v1/responses, which Router One lists for Grok 4.7 but not Gemini 3.8 Flash — so in that tool, switch the tool (or call /v1/chat/completions), not only the model string.
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-11-11 (UTC) and refresh within the hour.