Gemini 3.1 Pro previewvsGrok 4.7

Both language models, compared at each maker’s own API list prices. Every figure links to its source.

Compare at your usage

Every model priced for the same request
Prompt per request
Cache hits
Batch
Service tier

8,000 tokens in, 2,000 out

Gemini 3.1 Pro preview on Gemini APIGrok 4.7 on xAI API
Rate appliedBase rateBase rate
Inputper 1M tokens$2.00 $2.00
Cache readper 1M tokens$0.20 $0.50
Outputper 1M tokens$12.00 $6.00
Cost per request$0.040$0.028
Per 1,000 requests$40.00$28.00

Every model is priced for the same request at its maker’s own list prices (each with its source and date), so bold marks the cheapest. A model that can’t serve the request is named, not ranked; a condition its seller doesn’t price says which rate was used.

Cost per request as prompts grow

2K tokens out, list price on each maker’s API. Gemini 3.1 Pro preview charges $4.00 / $18.00 above 200K tokens. Grok 4.7 charges $4.00 / $12.00 above 200K tokens. A line ends at the model’s context window.

0$1.00$2.00$3.00$4.000250K500K750K1Mprompt tokens per request200K8KGemini 3.1 Pro preview$0.040 at 8KGrok 4.7$0.028 at 8K
  • Gemini 3.1 Pro preview · Gemini API
  • Grok 4.7 · xAI API

Where each stands among all scored models

Each line runs from the lowest to the highest score on the board; the tick is the median.

Epoch Capabilities Index#35 vs #36 of 118Grok 4.7: 156.1Gemini 3.1 Pro preview: 156.2LMArena Text#16 vs #62 of 163Grok 4.7: 1,441Gemini 3.1 Pro preview: 1,487LMArena Text · Coding#26 vs #61 of 163Grok 4.7: 1,494Gemini 3.1 Pro preview: 1,521LMArena Vision#16 vs #54 of 89Grok 4.7: 1,231Gemini 3.1 Pro preview: 1,296
  • Gemini 3.1 Pro preview
  • Grok 4.7

Key differences

OutputMaker’s official API · global · USD
$12.00 / 1M tokens Gemini API pricing · as of Nov 1, 2026
$6.00 / 1M tokens xAI models and pricing · as of Nov 1, 2026
Context
1,048,576 Gemini 3.1 Pro Preview model · as of Nov 1, 2026
500,000 xAI models and pricing · as of Nov 1, 2026
Input modalities
Text, Image, Video, Audio, PDF Gemini 3.1 Pro Preview model · as of Nov 1, 2026
Text, Image xAI models and pricing · as of Nov 1, 2026
Cache readMaker’s official API · global · USD
$0.20 / 1M tokens Gemini API pricing · as of Nov 1, 2026
$0.50 / 1M tokens xAI models and pricing · as of Nov 1, 2026
OutputMaker’s official API · global · USD · Prompts over 200K tokens
$18.00 / 1M tokens Gemini API pricing · as of Nov 1, 2026
$12.00 / 1M tokens xAI models and pricing · as of Nov 1, 2026
Cache readMaker’s official API · global · USD · Prompts over 200K tokens
$0.40 / 1M tokens Gemini API pricing · as of Nov 1, 2026
$1.00 / 1M tokens xAI models and pricing · as of Nov 1, 2026

These differences use verified vendor specifications or each maker’s official API on the same region, currency, meter and billing conditions. Different conditions remain side by side in the full table; they do not establish which model is cheaper. Declared features describe support, not measured quality or a recommendation. Missing evidence does not mean a feature is unsupported.

Full comparison

Gemini 3.1 Pro preview Google Grok 4.7 xAI
Overview
ReleasedFeb 19, 2026 Sep 21, 2026
Open weights— —
Knowledge cutoffJan 2025 May 2026
Specs
Context1.05M 500K
Max output65.54K 500K
Input modalitiesText, Image, Video, Audio, PDF Text, Image
Output modalitiesText Text
ReasoningYes Yes
Reasoning effortslow, medium, high low, medium, high, xhigh
Tool useYes Yes
Structured outputYes Yes
Pricing · per 1M tokens
Input price$2.00Also priced under other conditions: Prompts over 200K tokens, Batch, Flex tier, Priority tier $2.00Also priced under other conditions: Prompts over 200K tokens
Output price$12.00Also priced under other conditions: Prompts over 200K tokens, Batch, Flex tier, Priority tier $6.00Also priced under other conditions: Prompts over 200K tokens
Cache read price$0.20Also priced under other conditions: Prompts over 200K tokens, Batch, Flex tier, Priority tier $0.50Also priced under other conditions: Prompts over 200K tokens
Blended price (3 input : 1 output)$4.50 $3.00
Pricing under conditions · per 1M tokens
Input price, long prompts$4.00Prompts over 200K tokens $4.00Prompts over 200K tokens
Output price, long prompts$18.00Prompts over 200K tokens $12.00Prompts over 200K tokens
Batch input price$1.00Batch Not offered
Batch output price$6.00Batch Not offered
Flex tier input price$1.00Flex tier Not offered
Flex tier output price$6.00Flex tier Not offered
Priority tier input price$3.60Priority tier Not offered
Priority tier output price$21.60Priority tier Not offered
Cited scores
Epoch Capabilities Index156.2 156.1
LMArena Text1,487 1,441 xhigh effort
LMArena Text · Coding1,521 1,494 xhigh effort
LMArena Vision1,296 1,231 xhigh effort
LMArena Text · Chinese1,528 1,495 xhigh effort
Epoch AI · GPQA Diamond94.4% high effort92.7% xhigh effort
Epoch AI · FrontierMath Tiers 1–359.6% 53% xhigh effort

Headline prices may come from different channels, regions or tiers. Check each source before choosing a model; missing facts stay blank.

Model details and sources

Cited scores