Gemini 3.7 Flash vs Grok 4.6: API pricing

Google (Gemini API)'s Gemini 3.7 Flash against xAI's Grok 4.6 on price alone — per-token rates, caching, and context window. Run your own workload through both with the calculator below; capability differences are yours to judge on your evals.

Gemini 3.7 FlashGrok 4.6
Input / 1M tokens$0.75$2.00
Cached input / 1M$0.075$0.50
Output / 1M tokens$3.75$6.00
Context window1M500K
Max output64K500K
VendorGoogle (Gemini API)xAI

Prices last synced Aug 20, 2026 from the LiteLLM community price catalog — the same catalog Marginal prices real usage events against, refreshed daily. Spot an error? Tell us.

Price takeaways

  • Input: Gemini 3.7 Flash is 2.7x cheaper.
  • Output: Gemini 3.7 Flash is 1.6x cheaper.
  • Cached input: Gemini 3.7 Flash is 7x cheaper.
  • Ratios shift with workload shape — output-heavy traffic weights the output rate, cache-friendly traffic weights the cached rate. The calculator below does the arithmetic on your numbers.

Your workload on both

Your monthly workload

Cache hit rate = share of input tokens served from the provider's prompt cache, billed at the model's cached-input price. Estimates use standard per-token rates — batch discounts, service tiers, and long-context surcharges are not applied.

Gemini 3.7 FlashGrok 4.6
ModelInputCached inputOutputPer requestMonthly
Gemini 3.7 Flashcheapest$450$30.00$938$0.00283$1,418
Grok 4.6$1,200$200$1,500$0.00580$2,900
Rates used: Gemini 3.7 Flash $0.75 in / $3.75 out · Grok 4.6 $2.00 in / $6.00 out

Related comparisons

Switching models? Watch the bill move in real time.

Marginal prices every call against that day's rates, so an A/B between these two shows up as dollars per customer and feature — not a surprise at month end.