StackPricing
All AI models

AI model APIs · head-to-head

Gemini 3.1 Pro vs Grok 4.5

Same usage, official rates, ranked by nothing but price. Both rate cards, the monthly bill at five workloads, and the exact usage mix where the answer flips.

The pricing verdict Grok 4.5 is cheaper than Gemini 3.1 Pro at every input:output mix — there is no usage pattern where Gemini 3.1 Pro costs less.

Rate cards

Per 1M tokens Gemini 3.1 Pro Grok 4.5
Input $2 $2
Cached input $0.20 $0.50
Output $12 $6
Context window 500K

Monthly cost at five workloads

Workload Tokens / month Gemini 3.1 Pro Grok 4.5
Prototype 1M in · 0.3M out $5.60 $3.80
Small app 10M in · 3M out $56 $38
Production app 50M in · 15M out $280 $190
High volume 200M in · 60M out $1,120 $760
Heavy platform 1B in · 300M out $5,600 $3,800

Standard on-demand rates from each provider's official pricing page, verified July 2026; figures exclude caching and batch discounts and any long-context surcharges. Gemini 3.1 Pro: Rates shown are for prompts ≤200k tokens; above 200k, input doubles to $4 and output rises to $18 per 1M. Batch runs at 50%. Grok 4.5: Rates shown are for prompts under 200k tokens; above that, prices double. xAI offers up to $175/month in free credits via its data-sharing program. Price is one input — quality, latency and context limits differ. Confirm live pricing before committing.

Price both at your exact usage Gemini 3.1 Pro pricing Grok 4.5 pricing