Models

Gemini 3.1 Pro Preview vs Grok 4.5

Compare Gemini 3.1 Pro Preview from Google and Grok 4.5 from Grok on key metrics including benchmarks, price, context length, and other model features. Access both models and hundreds of others through the AIHubMix API.

GoogleGemini 3.1 Pro PreviewGrokGrok 4.5
Google logo
Gemini 3.1 Pro Preview
Google · text, image, audio, video → text

Gemini 3.1 Pro Preview is designed to further optimize the performance and reliability of the Gemini 3 Pro series, offering improved reasoning capabilities, greater token efficiency, and a more robust, factually consistent user experience. It is optimized for software-engineering behaviors and usability, and is also suitable for agent workflows that require precise tool invocation and reliable multi-step execution, enabling stable operation across a variety of real-world scenarios.

Input$2 /M
Output$12 /M
Cache read$0.5 /M
Grok logo
Grok 4.5
Grok · text, image → text

Grok 4.5 was trained on datasets spanning knowledge in coding, science, engineering, and math. With both intelligent and efficient reasoning, Grok 4.5 excels at real engineering tasks and exceeds comparable leading models at these tasks.

Input$2 /M
Output$6 /M
Cache read$0.5 /M

Pricing & Specifications

Prices are per million tokens. Time to First Token and throughput are rolling averages measured on AIHubMix.

Gemini 3.1 Pro Preview
Grok 4.5
Input /M
$2
$2
Output /M
$12
$6
Cache read /M
$0.5
$0.5
Context length
1,000,000
500,000
Max output
64,000
500,000
Time to First Token
5.4 s
3.5 s
Throughput
97.9 tok/s
26.5 tok/s
Modalities
textimageaudiovideo
textimage
Supported Parameters
thinkingtoolsfunction callingstructured outputswebdeepsearchlong context
thinkingtoolsfunction callingstructured outputslong context
API Formats
chat_completions · gemini_api · claude_api
Released
February 19, 2026
July 2026

Promotional prices show the discounted rate; see each model page for promotion windows.

Activity Past 30 Days

Daily traffic served through AIHubMix — how demand for each model is trending.

gemini-3.1-pro-previewgrok-4.5

Tokens / day

-

Requests / day

-

Performance Past 3 Days

Measured on real AIHubMix traffic, hourly buckets. Gaps mean no traffic in that hour.

gemini-3.1-pro-previewgrok-4.5

Throughput (tok/s)

-

TTFT (s)

-

Uptime (%)

-

LMArena Benchmarks

LMArena ratings by capability (Bradley-Terry, commonly called Elo). Higher is better.

Text
gemini-3.1-pro-previewgrok-4.5
1420146015001540
Overall
14711487
Coding
15211523
Math
14791489
Hard prompts
14951507
Instruction following
14661481
Multi-turn
14761495
Creative writing
14511479
Longer query
14871499
Chinese
15121531
English
14761489
Vision
gemini-3.1-pro-previewgrok-4.5
12601280130013201340
Overall
12781282
OCR
12941294
Diagram
13091319
Homework
13111324
WebDev Arena
gemini-3.1-pro-previewgrok-4.5
13801440150015601620
Overall
14461556
React
14371559
HTML
14911571
Gaming
14651589
Simulations
14761585
Data analytics
14041521

Source: LMArena (arena.ai) leaderboard, imported by AIHubMix. Models without published ratings are omitted per chart.

Cost calculator

Estimate your monthly bill for the same workload on each model.

Grok 4.5
$210 /mo
Gemini 3.1 Pro Preview
$300 /mo

Monthly = daily × 30. Discounted rates applied where a promotion is active.

FAQ

Which is cheaper: Gemini 3.1 Pro Preview, Grok 4.5?

Grok 4.5: $6/M output tokens; Gemini 3.1 Pro Preview: $12/M. Use the cost calculator above to estimate your own workload.

How do their coding arena scores compare?

Grok 4.5: 1523; Gemini 3.1 Pro Preview: 1521 (LMArena coding leaderboard).

Which responds faster?

Grok 4.5: 3.5s time to first token measured on AIHubMix; see the live performance charts above for how each model behaves across the day.

How large is each context window?

Gemini 3.1 Pro Preview accepts 1,000,000 and Grok 4.5 accepts 500,000 input tokens. Maximum output per request is 64,000 tokens on Gemini 3.1 Pro Preview and 500,000 tokens on Grok 4.5.

Which one generates tokens faster?

Gemini 3.1 Pro Preview at 97.9 tok/s and Grok 4.5 at 26.5 tok/s, measured as output throughput on AIHubMix — a separate metric from time to first token.

What inputs and capabilities does each model support?

Gemini 3.1 Pro Preview accepts text, image, audio and video input and supports thinking, tool calling, function calling, structured outputs, web search, deep search and long context; Grok 4.5 accepts text and image input and supports thinking, tool calling, function calling, structured outputs and long context.

Can I call Gemini 3.1 Pro Preview and Grok 4.5 with the same API key?

Yes. AIHubMix serves every model on this page behind one OpenAI-compatible endpoint, so switching between them is a one-line change to the model field — no second account, key or SDK.

Popular comparisons

Related model match-ups readers also look at.