ZMIME
Comparison · 2 models · Updated Nov 30, 2026

Grok 4 Fast vs Gemma 4 31B IT

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. xAI

    Grok 4 Fast

    Released Sep 19, 2025

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

    Gemma 4 31B IT

    Released Apr 2, 2026

    71/100
    • ECI144.2
    • Price$0.15 / $0.40
    • Context262K
  3. Our pick

    xAI

    Grok 4 Fast

    Released Sep 19, 2025

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

    Gemma 4 31B IT

    Released Apr 2, 2026

    67/100
    • ECI144.2
    • Price$0.15 / $0.40
    • Context262K
  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 inputsGrok 4 Fast: Text, Images · Gemma 4 31B IT: Text, Images
  • Self-hostingGemma 4 31B ITPublishes downloadable weights
How the score is built
MeasureWeightGrok 4 FastGemma 4 31B IT
CapabilityCapabilities Index (ECI)59%7272
Price29%7479
Context window12%7543
Overall100%73/10071/100

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

How the score is built
MeasureWeightGrok 4 FastGemma 4 31B IT
CapabilityCapabilities Index (ECI)83%7272
Context window17%7543
Overall100%73/10067/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.

Grok 4 Fast vs Gemma 4 31B IT specifications side by side
SpecificationGrok 4 FastxAIGemma 4 31B ITGoogle
Capability
Capabilities Index (ECI)144.3 (best)144.2
ECI rank#100 of 166 (best)#101 of 166
ECI confidence interval142.2–146.4141.8–146.7
ECI evaluation dateSep 19, 2025Apr 2, 2026
Documented capabilitiesFast Grok model for responsive chat, reasoning, and tool-assisted workLargest Gemma 4 instruction model for open, self-hosted chat and reasoning
Model parametersNot publishedNot published
Output modalitiesTextText
GPQA DiamondGraduate-level science questionsNot published75.8%minimal
OTIS Mock AIME 2024–2025Competition mathematicsNot published73.3%minimal
SimpleQA VerifiedShort factual questionsNot published10.4%
Price per million tokens
Input$0.20$0.15 (best)
Output$0.50$0.40 (best)
Cached inputNot publishedNot published
Blended (3:1)$0.275$0.212 (best)
Long-context rateSame rateSame rate
Price sourceMedian of 4 providersMedian of 43 providers
Limits
Context window2,000,000 tokens (best)262,144 tokens
Max inputNot publishedNot published
Max output30,000 tokens32,768 tokens (best)
Inputs and features
TextYesYes
ImagesYesYes
PDFsNoNo
AudioNoNo
VideoNoNo
ReasoningYesYes
Tool callingYesYes
Structured outputNot publishedYes
File attachmentsYesYes
Temperature controlYesYes
Reasoning controlalwaystoggle
Availability
WeightsProprietaryOpen
API model IDNot publishedgemma-4-31b-it
API providers553 (best)
ReleasedSep 19, 2025Apr 2, 2026
Knowledge cutoffNot publishedJan 2025
Publisher documentationNot publishedPublisher documentation · Model weights
Source metadata updatedSep 19, 2025Apr 2, 2026
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.

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

Which should you choose?

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

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, Grok 4 Fast or Gemma 4 31B IT?

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 Grok 4 Fast and Gemma 4 31B IT 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: Grok 4 Fast up to 30,000, Gemma 4 31B IT up to 32,768 tokens.

Which can read images, PDFs, audio or video?

Grok 4 Fast accepts text and images; Gemma 4 31B IT 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.