Skip to content
OpenKey

Gemini 3.1 Pro Preview vs Grok 4.3

GooglexAIboth via one key, provider price + 3%

Gemini 3.1 Pro Preview (Google, released 2026-02-19) and Grok 4.3 (xAI, released 2026-04-30) are both frontier reasoning models with near-1M-token context windows, but they land in different spots on the price-performance curve. Gemini costs more per token and scores higher on coding and design benchmarks. Grok is cheaper and edges ahead on the artificial_analysis agentic index. Both are available on OpenKey with one key and a flat 3% fee over provider list price.

Spec vs spec

SpecGemini 3.1 Pro PreviewGrok 4.3
Context window1.0M1M
Max output66K
Input modalitiesaudio, file, image, text, videotext, image, file
Output modalitiestexttext
ReleasedFeb 19, 2026Apr 30, 2026
Reasoningalways onoptional

Pricing

Per 1M tokens. Provider price plus the flat 3% fee — the sum is what you pay.

openkey.ai

google/gemini-3.1-pro-preview

Input · 1M tokens

$2.00 + 3%$2.06

Output · 1M tokens

$12.00 + 3%$12.36

Cache read · 1M tokens

$0.200 + 3%$0.206

Cache write · 1M tokens

$0.375 + 3%$0.386

FEE — FLAT, EVERY MODEL3%

openkey.ai

x-ai/grok-4.3

Input · 1M tokens

$1.25 + 3%$1.29

Output · 1M tokens

$2.50 + 3%$2.58

Cache read · 1M tokens

$0.200 + 3%$0.206

FEE — FLAT, EVERY MODEL3%

One workload, priced on both

10M input + 2M output tokens at each model's price, flat 3% fee included.

google/gemini-3.1-pro-preview

$45.32

$44.00 provider + 3%

x-ai/grok-4.3Cheaper

$18.03

$17.50 provider + 3%

Benchmarks

Design Arena categories where both models have results. Higher Elo and lower rank win.

Gemini 3.1 Pro PreviewGrok 4.3
CategoryEloRankEloRank
3D1303#171202#43
agenticgamedev1149#81033#10
agentichtmlslides1226#51066#10
agenticslides1112#81072#10
agenticslides(html)1219#51066#10
agenticslides(python-pptx)1107#81068#10
androidnative1059#251074#23
ASCII art1314#41189#27
Code1290#181243#31
Data viz1270#201234#35
Full-stack1139#161072#26
Game dev1264#261242#34
godotgamedev1220#61134#16
htmlslides1209#61066#12
Mobile apps1176#221146#26
pptxslides1110#81071#9
python-pptxslides1109#91074#10
SVG1347#21140#44
UI components1322#81250#31
Web apps1196#131194#14
Websites1294#151244#31

Head-to-head preference voting. How we filter and rank

Pricing math

Gemini 3.1 Pro Preview: $2.00/M input, $12.00/M output from Google, or $2.06/$12.36 on OpenKey ($2.00 x 1.03, $12.00 x 1.03). Grok 4.3: $1.25/M input, $2.50/M output from xAI, or $1.2875/$2.575 on OpenKey. On a 10M-input / 2M-output workload, Gemini costs $44.00 and Grok costs $17.50 — Gemini is 2.51x more expensive for that mix, driven mostly by output tokens (Gemini's completion price is 4.8x Grok's, its input price is 1.6x Grok's). If your workload is output-heavy — long generations, verbose reasoning traces — the gap widens further.

Coding and agentic performance

On artificial_analysis, Gemini 3.1 Pro Preview posts a 68.8 coding index versus Grok 4.3's 42.2 — a large gap. Intelligence index favors Gemini too, 46.5 vs 37.6. Grok flips the script on agentic_index: 24.1 vs Gemini's 21.4, a small but real edge. On Design Arena's agentic categories, Gemini leads in agenticgamedev (rank 8 vs 10), agentichtmlslides (rank 5 vs 10), godotgamedev (rank 6 vs 16), and webapps (rank 13 vs 14, close elo: 1196 vs 1194). Grok's agentic_index edge doesn't translate into Design Arena agent-category wins here — Gemini ranks better across nearly every agents category in this dataset.

Design and UI benchmarks

Gemini dominates the 'models' arena on Design Arena: svg rank 2 (elo 1347) vs Grok's rank 44 (elo 1140), asciiart rank 4 vs rank 27, uicomponent rank 8 vs rank 31, codecategories rank 18 vs rank 31, website rank 15 vs rank 31. Grok's best 'models' category is gamedev at rank 34 (elo 1242), still well behind Gemini's rank 26 (elo 1264) in the same category. If your use case involves generating SVGs, UI components, or ASCII art, the gap is not close.

Context and modality

Gemini's context window is 1,048,576 tokens against Grok's 1,000,000 — a 1.05x ratio, essentially a wash. Gemini supports max completion tokens of 65,536; Grok has no stated max_completion_tokens cap in this data. Modality differs more: Gemini accepts audio, file, image, text, and video input; Grok accepts text, image, and file only — no audio or video. If your pipeline needs to process audio or video directly, Grok 4.3 is not an option here. Both output text only.

When to pick each

Pick Gemini 3.1 Pro Preview when coding quality, design/UI generation, or multimodal input (audio/video) matters and budget is secondary. Pick Grok 4.3 when you're running high-volume agentic workloads where the 24.1 agentic_index and $17.50-per-workload cost (vs $44.00) matter more than peak coding scores. Grok's reasoning is optional (default effort 'low', can be disabled with 'none'), giving you a latency/cost lever Gemini doesn't offer since Gemini's reasoning is mandatory.

Which model for which job

Use casePickWhy
General coding tasksGemini 3.1 Pro Preview68.8 coding index vs Grok's 42.2
High-volume agentic pipelines on a budgetGrok 4.3$17.50 vs $44.00 for a 10M-in/2M-out workload
SVG or UI component generationGemini 3.1 Pro PreviewDesign Arena svg rank 2 vs Grok's rank 44
Audio or video input processingGemini 3.1 Pro PreviewOnly Gemini accepts audio and video input modalities
Latency-sensitive agent callsGrok 4.3Reasoning is optional and can be set to 'none', unlike Gemini's mandatory reasoning
Tasks needing logprobsGrok 4.3Grok supports logprobs and top_logprobs; Gemini's parameter list does not include them

Questions

Which model is cheaper to run at scale?
Grok 4.3, by a wide margin. On a 10M-input/2M-output workload, Grok costs $17.50 versus Gemini 3.1 Pro Preview's $44.00 — Gemini's input price is 1.6x Grok's and its output price is roughly 4.8x higher ($12.00 vs $2.50 per million tokens from the provider).
Which model has the bigger context window?
Gemini 3.1 Pro Preview, but barely. It supports 1,048,576 tokens versus Grok 4.3's 1,000,000 — a context ratio of just 1.05x. For practical purposes, treat them as equivalent on context length.
Does either model handle audio or video?
Only Gemini 3.1 Pro Preview. Its input modalities include audio, file, image, text, and video. Grok 4.3 accepts text, image, and file input only — no audio or video support in this data.
Is Grok 4.3 ever ahead on benchmarks?
Yes, on artificial_analysis agentic_index: Grok scores 24.1 versus Gemini's 21.4. It's Grok's one clear numeric edge here — Gemini leads on intelligence_index (46.5 vs 37.6), coding_index (68.8 vs 42.2), and most Design Arena categories.

Go deeper