AI model comparison

Gemini 3.1 Pro Preview vs Grok 4.6

Compare benchmark results, pricing, and API capabilities for each model. Estimate the cost of your own token mix.

Change models
Loading the catalog…
Markdown
Context tokens
1.05M
Input / 1M
$2.00
Output / 1M
$12.00
Context tokens
500K
Input / 1M
$2.00
Output / 1M
$6.00
Benchmark snapshot
Code Completion
Gemini 3.1 Pro PreviewGrok 4.6
78.261%
76.087%

Percent score · Result source · Test method

Catalog checked Nov 27, 202623 shared benchmark resultsRead the methodology

The trade-offs

Start with the differences that affect how this model fits your workload.

Benchmark results
Gemini 3.1 Pro Preview and Grok 4.6 scored 78.261% and 76.087%, respectively, on Code Completion. Use the test setup below to check whether it matches your workload.
Token cost
For 1 million input tokens and 250,000 output tokens, the listed rates estimate $5.00 for Gemini 3.1 Pro Preview and $3.50 for Grok 4.6.
Context window
Gemini 3.1 Pro Preview lists 1,048,576 tokens of context. Grok 4.6 lists 500,000 tokens. Reserve space for the output before routing long inputs.

Benchmarks

Shared results come from the same published benchmark release. Reasoning effort and serving configuration can differ.

Shared benchmark profilePercentage scores from the first eight shared groups, sorted by the page evidence order.

Source Result source · Test method

Gemini 3.1 Pro PreviewGrok 4.6

Code Completion

Coding · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

78.261%
76.087%
Test configurations
Gemini 3.1 Pro Preview
gemini-3.1-pro-preview-high
Grok 4.6
grok-4.6

Code Generation

Coding · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

74.648%
77.465%
Test configurations
Gemini 3.1 Pro Preview
gemini-3.1-pro-preview-high
Grok 4.6
grok-4.6

Javascript

Agentic Coding · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

59.091%
72.727%
Test configurations
Gemini 3.1 Pro Preview
gemini-3.1-pro-preview-high
Grok 4.6
grok-4.6

Python

Agentic Coding · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

50%
55%
Test configurations
Gemini 3.1 Pro Preview
gemini-3.1-pro-preview-high
Grok 4.6
grok-4.6

Typescript

Agentic Coding · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

23.333%
43.333%
Test configurations
Gemini 3.1 Pro Preview
gemini-3.1-pro-preview-high
Grok 4.6
grok-4.6

Amps Hard

Mathematics · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

98%
97%
Test configurations
Gemini 3.1 Pro Preview
gemini-3.1-pro-preview-high
Grok 4.6
grok-4.6

Connections

Language · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

100%
100%
Test configurations
Gemini 3.1 Pro Preview
gemini-3.1-pro-preview-high
Grok 4.6
grok-4.6

Consecutive Events

Data Analysis · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

85.239%
78.148%
Test configurations
Gemini 3.1 Pro Preview
gemini-3.1-pro-preview-high
Grok 4.6
grok-4.6
Show 15 more shared results

Integrals With Game

Mathematics · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

78%
85%
Test configurations
Gemini 3.1 Pro Preview
gemini-3.1-pro-preview-high
Grok 4.6
grok-4.6

Logic With Navigation

Reasoning · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

72%
82%
Test configurations
Gemini 3.1 Pro Preview
gemini-3.1-pro-preview-high
Grok 4.6
grok-4.6

Math Comp

Mathematics · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

96.078%
97.059%
Test configurations
Gemini 3.1 Pro Preview
gemini-3.1-pro-preview-high
Grok 4.6
grok-4.6

Olympiad

Mathematics · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

92.102%
91.213%
Test configurations
Gemini 3.1 Pro Preview
gemini-3.1-pro-preview-high
Grok 4.6
grok-4.6

Paraphrase

IF · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

79.867%
71.783%
Test configurations
Gemini 3.1 Pro Preview
gemini-3.1-pro-preview-high
Grok 4.6
grok-4.6

Plot Unscrambling

Language · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

74.128%
67.091%
Test configurations
Gemini 3.1 Pro Preview
gemini-3.1-pro-preview-high
Grok 4.6
grok-4.6

Simplify

IF · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

71.05%
69.333%
Test configurations
Gemini 3.1 Pro Preview
gemini-3.1-pro-preview-high
Grok 4.6
grok-4.6

Spatial

Reasoning · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

98%
98%
Test configurations
Gemini 3.1 Pro Preview
gemini-3.1-pro-preview-high
Grok 4.6
grok-4.6

Story Generation

IF · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

77.25%
78.267%
Test configurations
Gemini 3.1 Pro Preview
gemini-3.1-pro-preview-high
Grok 4.6
grok-4.6

Summarize

IF · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

88.233%
68.083%
Test configurations
Gemini 3.1 Pro Preview
gemini-3.1-pro-preview-high
Grok 4.6
grok-4.6

Tablejoin

Data Analysis · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

52.346%
43.423%
Test configurations
Gemini 3.1 Pro Preview
gemini-3.1-pro-preview-high
Grok 4.6
grok-4.6

Tablereformat

Data Analysis · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

98.039%
100%
Test configurations
Gemini 3.1 Pro Preview
gemini-3.1-pro-preview-high
Grok 4.6
grok-4.6

Theory Of Mind

Reasoning · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

80.769%
86.538%
Test configurations
Gemini 3.1 Pro Preview
gemini-3.1-pro-preview-high
Grok 4.6
grok-4.6

Typos

Language · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

82%
84%
Test configurations
Gemini 3.1 Pro Preview
gemini-3.1-pro-preview-high
Grok 4.6
grok-4.6

Zebra Puzzle

Reasoning · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

85.25%
95.5%
Test configurations
Gemini 3.1 Pro Preview
gemini-3.1-pro-preview-high
Grok 4.6
grok-4.6
View individual benchmark records

These model-level records can include other benchmark releases, test configurations, and vendor-reported results.

Gemini 3.1 Pro Preview

No additional benchmark results are available for this model ID.

Grok 4.6

BenchmarkScoreConfigurationSource model labelEvidence
Long Agentic40.7%grok-4.6 · Suite release Oct 14, 2026 · run date unavailablegrok-4.6Result source · Test method
Reasoning91.2%grok-4.6 · Suite release Oct 14, 2026 · run date unavailablegrok-4.6Result source · Test method
Coding89.1%grok-4.6 · Suite release Oct 14, 2026 · run date unavailablegrok-4.6Result source · Test method
Browser64%grok-4.6 · Suite release Oct 14, 2026 · run date unavailablegrok-4.6Result source · Test method
Data Analysis75.3%grok-4.6 · Suite release Oct 14, 2026 · run date unavailablegrok-4.6Result source · Test method
Research84.5%grok-4.6 · Suite release Oct 14, 2026 · run date unavailablegrok-4.6Result source · Test method
Design79.8%grok-4.6 · Suite release Oct 14, 2026 · run date unavailablegrok-4.6Result source · Test method
Long Agentic28%grok-4.6 · Suite release Oct 25, 2026 · run date unavailablegrok-4.6Result source · Test method
Reasoning91.2%grok-4.6 · Suite release Oct 25, 2026 · run date unavailablegrok-4.6Result source · Test method
Coding89.1%grok-4.6 · Suite release Oct 25, 2026 · run date unavailablegrok-4.6Result source · Test method
Browser49.4%grok-4.6 · Suite release Oct 25, 2026 · run date unavailablegrok-4.6Result source · Test method
Data Analysis75.3%grok-4.6 · Suite release Oct 25, 2026 · run date unavailablegrok-4.6Result source · Test method
Research84.5%grok-4.6 · Suite release Oct 25, 2026 · run date unavailablegrok-4.6Result source · Test method
Design79.8%grok-4.6 · Suite release Oct 25, 2026 · run date unavailablegrok-4.6Result source · Test method
Long Agentic18.7%grok-4.6 · Suite release Nov 6, 2026 · run date unavailablegrok-4.6Result source · Test method
Reasoning91.2%grok-4.6 · Suite release Nov 6, 2026 · run date unavailablegrok-4.6Result source · Test method
Coding76.7%grok-4.6 · Suite release Nov 6, 2026 · run date unavailablegrok-4.6Result source · Test method
Browser49.4%grok-4.6 · Suite release Nov 6, 2026 · run date unavailablegrok-4.6Result source · Test method
Data Analysis75.3%grok-4.6 · Suite release Nov 6, 2026 · run date unavailablegrok-4.6Result source · Test method
Research88.8%grok-4.6 · Suite release Nov 6, 2026 · run date unavailablegrok-4.6Result source · Test method
Design76.3%grok-4.6 · Suite release Nov 6, 2026 · run date unavailablegrok-4.6Result source · Test method

Pricing and token cost

Listed OpenRouter prices in US dollars. Actual charges depend on the endpoint, tier, cache, and token mix.

USD per million tokensGemini 3.1 Pro PreviewGrok 4.6
Uncached input$2.00$2.00
Output$12.00$6.00
Cache read$0.20$0.50
Cache write$0.375Unavailable

Rates are a catalog snapshot. OpenRouter Models API

Estimate your workload

Enter total token counts. The estimate uses uncached input and output rates.

Gemini 3.1 Pro Preview$5.00
Grok 4.6$3.50

Grok 4.6 costs $1.50 less at this token mix.

Model specifications

Context, output limits, modalities, and supported API parameters from the catalog.

SpecificationGemini 3.1 Pro PreviewGrok 4.6
Catalog statusListedListed
Catalog model IDgoogle/gemini-3.1-pro-previewx-ai/grok-4.6
ProviderGooglexAI
Context window1,048,576 tokens500,000 tokens
Max output65,536 tokens450,000 tokens
Input modalitiesAudio, File, Image, Text, VideoText, Image, File
Output modalitiesTextText
Reasoning controlsListedListed
Tool callingListedListed
Structured outputsListedListed
Serving endpoints/api/v1/chat/completions, /api/v1/completions, /api/v1/messages, /api/v1/responses/api/v1/chat/completions, /api/v1/completions, /api/v1/messages, /api/v1/responses
Catalog listing dateFeb 19, 2026Aug 12, 2026

Use with Weave Router

Set a quality bar on your own coding tasks. Then compare cost per completed task and use the same harness when you change models.

Gemini 3.1 Pro Preview

Weave Router availability is unverified for this model ID.

Grok 4.6

Weave Router availability is unverified for this model ID.

Catalog presence does not guarantee availability for a specific plan or account. Public Weave Router catalog · Nov 27, 2026

Explore Weave Router Read Weave Router benchmark results

Sources

Each benchmark links to its own result and test method when available.

MarkdownFull methodology