← All comparisons

Gemini 3.1 Pro vs Grok 4: token pricing & cost compared (July 2026)

How Gemini 3.1 Pro (Google) and Grok 4 (xAI) actually compare on price — input, output, and total monthly cost at the MAU you care about. Updated against live OpenRouter pricing.

Google

Gemini 3.1 Pro

Input
$2.00 / 1M tokens
Output
$12.00 / 1M tokens
Output / Input ratio
6.0×
Context window
1,048.576K

xAI

Grok 4

Input
$0.00 / 1M tokens
Output
$0.00 / 1M tokens
Output / Input ratio
Context window

The short answer

Grok 4 is cheaper across the board for typical workloads.

Token pricing side-by-side

Input ($/1M)Output ($/1M)$0$3$6$9$12
  • Gemini 3.1 Pro
  • Grok 4

Cost at your usage

Gemini 3.1 Pro

Per call

$0.00700

Per user / mo

$0.7000

Total / mo

$700

Grok 4

Per call

$0.00000

Per user / mo

$0.0000

Total / mo

$0

Grok 4 is cheaper by $0.7000/user/month — a saving of $700/month at 1,000 MAU.

Total monthly bill across MAU

1005001K5K10K50K100K$0$20K$40K$60K$80K
  • Gemini 3.1 Pro
  • Grok 4

Same usage profile applied to both models; only the per-token price differs.

Run this against your real numbers

The mini-calculator above is a preview. Use the full tools to model power-user blast radius, gross margin, and 12-month spend forecasts.

Comparing Gemini 3.1 Pro vs Grok 4 on price alone never tells the whole story — output-token weighting, context length, and your usage profile change the answer dramatically. Use the calculators below for the full picture.

Related tools: All comparisons · Cost Per User Calculator · How to calculate LLM cost per user