Skip to content
ModelCap

Head-to-head comparison

Gemma 4 31B vs Grok 4.6

Gemma 4 31B (Google) and Grok 4.6 (xAI) compared on the ModelCap Index, API price, context window, provider availability, weight access and every public benchmark board they share. Figures are the same ones shown on the live rankings; nothing here is a hidden score.

Snapshot as of 17 August 2026

As of 17 August 2026, Grok 4.6 holds the stronger ModelCap Index position (#10 vs #30); Gemma 4 31B is 17.6× cheaper per output token ($0.34/1M vs $6.00/1M); Grok 4.6 offers the longer context window (500K vs 262K tokens); and Gemma 4 31B ships open weights.

Which should you choose?

Choose Gemma 4 31B if…

  • API cost matters — $0.34/1M output tokens against $6.00/1M, about 17.6× cheaper.
  • your workload is prompt-heavy — input tokens cost $0.10/1M against $2.00/1M.
  • you want to self-host: Gemma 4 31B ships open weights while Grok 4.6 is api only.
  • you want provider choice — 16 listed API providers against 1.

Choose Grok 4.6 if…

  • you want the stronger overall ModelCap Index position — #10 against #30 (74.4 vs 60.0 points).
  • you need the longer context window — 500K tokens against 262K.
  • Arena coding is your yardstick — 1512 against 1499.
  • Artificial Analysis Intelligence Index is your yardstick — 60.9 against 29.7.
  • you want the more recently listed model — Grok 4.6 was listed 12 August 2026, Gemma 4 31B 2 April 2026.

Gemma 4 31B vs Grok 4.6: specs, pricing and context

Specification comparison of Gemma 4 31B and Grok 4.6
FieldGemma 4 31BGoogleGrok 4.6xAI
ModelCap Index position#30#10
Index score60.074.4
EvidenceMeasuredMeasured
Input price / 1M tokens$0.10$2.00
Output price / 1M tokens$0.34$6.00
Context window262K tokens500K tokens
Max output tokens262K
API providers listed161
Weight accessOpen weightsAPI only
Input modalitiesImage, Text, VideoText, Image, File
First listed2 April 202612 August 2026
PublisherGooglexAI

Evidence: 4 public benchmark observations across 4 boards · 5 public benchmark observations across 5 boards. Prices are the lowest listed API offer per million tokens observed on the OpenRouter catalogue.

Benchmark scores: Gemma 4 31B vs Grok 4.6

Public benchmark boards where Gemma 4 31B or Grok 4.6 has a published result
BoardGemma 4 31BGrok 4.6Leads
Arena codingArena (LMArena)14991483–151415121485–1538HighGrok 4.6
LMArena AgentLMArena-18.9%-21.7%–-16.0%Only one result
ARC-AGI-2ARC Prize Foundation67.1%X-HighOnly one result
ARC-AGI-3ARC Prize Foundation2.1%X-HighOnly one result
Artificial Analysis Intelligence IndexArtificial Analysis29.7intelligence-index60.9intelligence-indexGrok 4.6

Scores are the sources' own published figures for each model's best evaluated configuration; ModelCap never re-runs a benchmark.

Want a different pairing? Open the interactive comparison tool to swap either model for any current ranked language model.

Gemma 4 31B vs Grok 4.6: common questions

Is Gemma 4 31B better than Grok 4.6?

Grok 4.6 ranks higher on the ModelCap Index as of 17 August 2026: #10 against #30. That is a capability ranking built from public benchmark evidence with published uncertainty; whether it is "better" for you also depends on price, context and where you can run it.

Is Gemma 4 31B cheaper than Grok 4.6?

Gemma 4 31B is cheaper on output tokens: $0.34/1M against $6.00/1M. Input tokens are $0.10/1M for Gemma 4 31B and $2.00/1M for Grok 4.6. Prices are the lowest listed API offer ModelCap observed, in USD per million tokens.

Which has the bigger context window, Gemma 4 31B or Grok 4.6?

Grok 4.6 has the larger context window: 500K tokens against 262K.

Which is better for coding, Gemma 4 31B or Grok 4.6?

Arena coding: Gemma 4 31B 1499, Grok 4.6 1512 — Grok 4.6 leads.

Are Gemma 4 31B and Grok 4.6 open-weight models?

Gemma 4 31B: Open weights. Grok 4.6: API only. Open weights mean the checkpoint can be downloaded and self-hosted under its licence; API-only models are available solely through hosted endpoints.

Where can I run Gemma 4 31B and Grok 4.6?

ModelCap currently lists 16 API providers for Gemma 4 31B and 1 for Grok 4.6, from the OpenRouter catalogue snapshot the site serves; each model page lists the providers and their prices.

How current is this Gemma 4 31B vs Grok 4.6 comparison?

Every figure comes from the sealed ModelCap dataset published 17 August 2026; the page re-renders within a minute of each data refresh, and the ModelCap Index positions are the same ones shown on the live rankings.

Explore further