Comparison · prices as of 2026-08-30 · re-verified 2026-11-30

Gemini 3.1 Pro (Preview) vs Grok 4.7

On price alone, Grok 4.7 (xAI) runs about 30% cheaper than Gemini 3.1 Pro (Preview) for a typical chat workload (2K input + 500 output tokens, 1,000 requests/day). Whether that's the right trade depends on the capability gap — the breakdown below shows where each one wins.

Price per million tokens

Spec Gemini 3.1 Pro (Preview) Grok 4.7
Input / MTok $2 $2
Output / MTok $12 $6
Context window 1M 500K
Max output 66K not published
Class frontier frontier

Estimated monthly cost by workload

Same models, three realistic usage levels. The gap between them scales with volume, so the right pick can change as you grow.

Workload Gemini 3.1 Pro (Preview) Grok 4.7 Cheaper
Light — chatbot 0.5K in / 0.2K out · 200 req/day $20.40 $13.20 Grok 4.7
Typical — assistant 2K in / 0.5K out · 1K req/day $300 $210 Grok 4.7
Heavy — RAG / agent 8K in / 2K out · 5K req/day $6,000 $4,200 Grok 4.7

Which should you pick?

Frequently asked questions

Is Gemini 3.1 Pro (Preview) or Grok 4.7 cheaper?

Grok 4.7 is cheaper — roughly 30% less per month on a typical assistant workload (2K input + 500 output tokens, 1,000 requests/day).

What do Gemini 3.1 Pro (Preview) and Grok 4.7 cost per million tokens?

Gemini 3.1 Pro (Preview) is $2 per million input tokens and $12 per million output. Grok 4.7 is $2 input and $6 output. Prices are first-party API list rates as of 2026-08-30.

Which has the larger context window, Gemini 3.1 Pro (Preview) or Grok 4.7?

Gemini 3.1 Pro (Preview) does, at 1M tokens versus 500K for Grok 4.7.

When should I choose Gemini 3.1 Pro (Preview) over Grok 4.7?

Both are frontier-class models, so choose Gemini 3.1 Pro (Preview) when it measurably wins on your own evals or you prefer its provider (Google); otherwise Grok 4.7 does the same job for less.

Related comparisons

Full pricing: Gemini 3.1 Pro (Preview) · Grok 4.7 · all comparisons. Sources: Google pricing · xAI pricing. Run your own numbers in the cost calculator.