Gemini 3.1 Pro Preview vs Grok 4.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
| Spec | Gemini 3.1 Pro Preview | Grok 4.3 |
|---|---|---|
| Context window | 1.0M | 1M |
| Max output | 66K | — |
| Input modalities | audio, file, image, text, video | text, image, file |
| Output modalities | text | text |
| Released | Feb 19, 2026 | Apr 30, 2026 |
| Reasoning | always on | optional |
Pricing
Per 1M tokens. Provider price plus the flat 3% fee — the sum is what you pay.
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%
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 Preview | Grok 4.3 | |||
|---|---|---|---|---|
| Category | Elo | Rank | Elo | Rank |
| 3D | 1303 | #17 | 1202 | #43 |
| agenticgamedev | 1149 | #8 | 1033 | #10 |
| agentichtmlslides | 1226 | #5 | 1066 | #10 |
| agenticslides | 1112 | #8 | 1072 | #10 |
| agenticslides(html) | 1219 | #5 | 1066 | #10 |
| agenticslides(python-pptx) | 1107 | #8 | 1068 | #10 |
| androidnative | 1059 | #25 | 1074 | #23 |
| ASCII art | 1314 | #4 | 1189 | #27 |
| Code | 1290 | #18 | 1243 | #31 |
| Data viz | 1270 | #20 | 1234 | #35 |
| Full-stack | 1139 | #16 | 1072 | #26 |
| Game dev | 1264 | #26 | 1242 | #34 |
| godotgamedev | 1220 | #6 | 1134 | #16 |
| htmlslides | 1209 | #6 | 1066 | #12 |
| Mobile apps | 1176 | #22 | 1146 | #26 |
| pptxslides | 1110 | #8 | 1071 | #9 |
| python-pptxslides | 1109 | #9 | 1074 | #10 |
| SVG | 1347 | #2 | 1140 | #44 |
| UI components | 1322 | #8 | 1250 | #31 |
| Web apps | 1196 | #13 | 1194 | #14 |
| Websites | 1294 | #15 | 1244 | #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 case | Pick | Why |
|---|---|---|
| General coding tasks | Gemini 3.1 Pro Preview | 68.8 coding index vs Grok's 42.2 |
| High-volume agentic pipelines on a budget | Grok 4.3 | $17.50 vs $44.00 for a 10M-in/2M-out workload |
| SVG or UI component generation | Gemini 3.1 Pro Preview | Design Arena svg rank 2 vs Grok's rank 44 |
| Audio or video input processing | Gemini 3.1 Pro Preview | Only Gemini accepts audio and video input modalities |
| Latency-sensitive agent calls | Grok 4.3 | Reasoning is optional and can be set to 'none', unlike Gemini's mandatory reasoning |
| Tasks needing logprobs | Grok 4.3 | Grok 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.