ZMIME
Comparison · 2 models · Updated Nov 30, 2026

Gemma 4 31B IT vs Grok 4 Fast

Too close to call on our weighted score (Grok 4 Fast 73, Gemma 4 31B IT 71). The right pick depends on what you value most.Grok 4 Fast comes out ahead, 73 to 67 on our weighted score, though Gemma 4 31B IT is 23% cheaper per token.

  1. Google

    Gemma 4 31B IT

    Released Apr 2, 2026

    71/100
    • ECI144.2
    • Price$0.15 / $0.40
    • Context262K
  2. xAI

    Grok 4 Fast

    Released Sep 19, 2025

    73/100
    • ECI144.3
    • Price$0.20 / $0.50
    • Context2M
  3. Google

    Gemma 4 31B IT

    Released Apr 2, 2026

    67/100
    • ECI144.2
    • Price$0.15 / $0.40
    • Context262K
  4. Our pick

    xAI

    Grok 4 Fast

    Released Sep 19, 2025

    73/100
    • ECI144.3
    • Price$0.20 / $0.50
    • Context2M
  5. Add a model

    Make it a three-way comparison.

01 — Verdict

Too close to callGrok 4 Fast is our pick

It is close. Our weighted score puts them within 2 points (Grok 4 Fast 73/100, Gemma 4 31B IT 71/100), so choose by what matters most for your work: Grok 4 Fast for raw capability and Gemma 4 31B IT on price. The score weighs capability 59%, price 29%, context window 12%.Grok 4 Fast is the better all-round choice, scoring 73/100 against Gemma 4 31B IT (67). It leads on context window. The score weighs capability 83%, context window 17%.

  • CapabilityGrok 4 FastCapabilities Index (ECI): Grok 4 Fast 144.3 · Gemma 4 31B IT 144.2
  • Lowest priceGemma 4 31B ITGemma 4 31B IT $0.212 · Grok 4 Fast $0.275 per 1M tokens (3:1 blend)
  • Longest contextGrok 4 FastGrok 4 Fast 2,000,000 · Gemma 4 31B IT 262,144 tokens
  • Widest inputsSame inputsGemma 4 31B IT: Text, Images · Grok 4 Fast: Text, Images
  • Self-hostingGemma 4 31B ITPublishes downloadable weights
How the score is built
MeasureWeightGemma 4 31B ITGrok 4 Fast
CapabilityCapabilities Index (ECI)59%7272
Price29%7974
Context window12%4375
Overall100%71/10073/100

Left out because at least one model lacks the data: inputs & features. The remaining weights were rescaled.

How the score is built
MeasureWeightGemma 4 31B ITGrok 4 Fast
CapabilityCapabilities Index (ECI)83%7272
Context window17%4375
Overall100%67/10073/100

Left out because at least one model lacks the data: inputs & features. The remaining weights were rescaled.

02 — Side by side

Every spec in one table

Highlighted cells lead their row. Unavailable specifications are marked “Not published”. Publisher results include their evaluation settings and source.

Gemma 4 31B IT vs Grok 4 Fast specifications side by side
SpecificationGemma 4 31B ITGoogleGrok 4 FastxAI
Capability
Capabilities Index (ECI)144.2144.3 (best)
ECI rank#101 of 166#100 of 166 (best)
ECI confidence interval141.8–146.7142.2–146.4
ECI evaluation dateApr 2, 2026Sep 19, 2025
Documented capabilitiesLargest Gemma 4 instruction model for open, self-hosted chat and reasoningFast Grok model for responsive chat, reasoning, and tool-assisted work
Model parametersNot publishedNot published
Output modalitiesTextText
GPQA DiamondGraduate-level science questions75.8%minimalNot published
OTIS Mock AIME 2024–2025Competition mathematics73.3%minimalNot published
SimpleQA VerifiedShort factual questions10.4%Not published
Price per million tokens
Input$0.15 (best)$0.20
Output$0.40 (best)$0.50
Cached inputNot publishedNot published
Blended (3:1)$0.212 (best)$0.275
Long-context rateSame rateSame rate
Price sourceMedian of 43 providersMedian of 4 providers
Limits
Context window262,144 tokens2,000,000 tokens (best)
Max inputNot publishedNot published
Max output32,768 tokens (best)30,000 tokens
Inputs and features
TextYesYes
ImagesYesYes
PDFsNoNo
AudioNoNo
VideoNoNo
ReasoningYesYes
Tool callingYesYes
Structured outputYesNot published
File attachmentsYesYes
Temperature controlYesYes
Reasoning controltogglealways
Availability
WeightsOpenProprietary
API model IDgemma-4-31b-itNot published
API providers53 (best)5
ReleasedApr 2, 2026Sep 19, 2025
Knowledge cutoffJan 2025Not published
Publisher documentationPublisher documentation · Model weightsNot published
Source metadata updatedApr 2, 2026Sep 19, 2025
Data sourcesmodels.dev · Epoch AImodels.dev · Epoch AI
Catalog checkedNov 30, 2026Nov 30, 2026
03 — Cost

What would a month cost?

Enter your expected volume in millions of tokens. List prices only; caching and batch discounts would lower these.

  • Gemma 4 31B IT$2.30
  • Grok 4 Fast$3.00
04 — Questions

Which should you choose?

Which is better: Gemma 4 31B IT or Grok 4 Fast?

It is close. Our weighted score puts them within 2 points (Grok 4 Fast 73/100, Gemma 4 31B IT 71/100), so choose by what matters most for your work: Grok 4 Fast for raw capability and Gemma 4 31B IT on price. The score weighs capability 59%, price 29%, context window 12%.Grok 4 Fast is the better all-round choice, scoring 73/100 against Gemma 4 31B IT (67). It leads on context window. The score weighs capability 83%, context window 17%.

Which is cheaper, Gemma 4 31B IT or Grok 4 Fast?

Gemma 4 31B IT is cheaper at $0.15 input / $0.40 output per million tokens (median across 43 API providers; free on Google). Grok 4 Fast costs $0.20 input / $0.50 output per million tokens (median across 4 API providers). At a typical mix of three input tokens to one output token, that is $0.212 per million tokens for Gemma 4 31B IT versus $0.275 for Grok 4 Fast (1.3× as much).

Which scores higher on benchmarks?

Grok 4 Fast scores higher on the Capabilities Index (ECI): Grok 4 Fast 144.3 (#100 of 166) and Gemma 4 31B IT 144.2 (#101 of 166). The confidence ranges of the top two overlap (142.2–146.4 vs 141.8–146.7), so treat the gap as small.

Which is better for coding?

There are no published SWE-bench Verified results for Gemma 4 31B IT and Grok 4 Fast yet, so there is no like-for-like coding score. On overall capability, Grok 4 Fast leads, which tends to carry over to coding, but test on your own codebase. Both support tool calling for agent workflows.

Which has the bigger context window?

Grok 4 Fast has the largest context window at 2,000,000 tokens, against 262,144 for Gemma 4 31B IT. Maximum output per response: Gemma 4 31B IT up to 32,768, Grok 4 Fast up to 30,000 tokens.

Which can read images, PDFs, audio or video?

Gemma 4 31B IT accepts text and images; Grok 4 Fast accepts text and images. They handle the same number of input types.

Are any of these open source?

Gemma 4 31B IT publishes its weights and can be self-hosted; Grok 4 Fast is proprietary.

Which is newer?

Gemma 4 31B IT is the newest, released Apr 2, 2026. Grok 4 Fast came out Sep 19, 2025. Knowledge cutoff: Gemma 4 31B IT Jan 2025.

How do you decide the winner?

This rating uses capability (59%, independent benchmark results); price (29%, blended price per million tokens (3 input : 1 output), log scale); context window (12%, maximum tokens per request, log scale). Dimensions missing for any model are dropped and the remaining weights rescaled, so every model is judged on the same evidence. Specs and prices come from public model listings and the labs’ own API pages; capability scores come from independent benchmark runs. Data updated Nov 30, 2026.This rating uses capability (83%, independent benchmark results); context window (17%, maximum tokens per request, log scale). Dimensions missing for any model are dropped and the remaining weights rescaled, so every model is judged on the same evidence. Specs and prices come from public model listings and the labs’ own API pages; capability scores come from independent benchmark runs. Data updated Nov 30, 2026.