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.
Google
Gemma 4 31B IT
71/100- ECI144.2
- Price$0.15 / $0.40
- Context262K
xAI
Grok 4 Fast
73/100- ECI144.3
- Price$0.20 / $0.50
- Context2M
Google
Gemma 4 31B IT
67/100- ECI144.2
- Price$0.15 / $0.40
- Context262K
- Our pick
xAI
Grok 4 Fast
73/100- ECI144.3
- Price$0.20 / $0.50
- Context2M
Add a model
Make it a three-way comparison.
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
| Measure | Weight | Gemma 4 31B IT | Grok 4 Fast |
|---|---|---|---|
| CapabilityCapabilities Index (ECI) | 59% | 72 | 72 |
| Price | 29% | 79 | 74 |
| Context window | 12% | 43 | 75 |
| Overall | 100% | 71/100 | 73/100 |
Left out because at least one model lacks the data: inputs & features. The remaining weights were rescaled.
| Measure | Weight | Gemma 4 31B IT | Grok 4 Fast |
|---|---|---|---|
| CapabilityCapabilities Index (ECI) | 83% | 72 | 72 |
| Context window | 17% | 43 | 75 |
| Overall | 100% | 67/100 | 73/100 |
Left out because at least one model lacks the data: inputs & features. The remaining weights were rescaled.
Every spec in one table
Highlighted cells lead their row. Unavailable specifications are marked “Not published”. Publisher results include their evaluation settings and source.
| Specification | ||
|---|---|---|
| Capability | ||
| Capabilities Index (ECI) | 144.2 | 144.3 (best) |
| ECI rank | #101 of 166 | #100 of 166 (best) |
| ECI confidence interval | 141.8–146.7 | 142.2–146.4 |
| ECI evaluation date | Apr 2, 2026 | Sep 19, 2025 |
| Documented capabilities | Largest Gemma 4 instruction model for open, self-hosted chat and reasoning | Fast Grok model for responsive chat, reasoning, and tool-assisted work |
| Model parameters | Not published | Not published |
| Output modalities | Text | Text |
| GPQA DiamondGraduate-level science questions | 75.8%minimal | Not published |
| OTIS Mock AIME 2024–2025Competition mathematics | 73.3%minimal | Not published |
| SimpleQA VerifiedShort factual questions | 10.4% | Not published |
| Price per million tokens | ||
| Input | $0.15 (best) | $0.20 |
| Output | $0.40 (best) | $0.50 |
| Cached input | Not published | Not published |
| Blended (3:1) | $0.212 (best) | $0.275 |
| Long-context rate | Same rate | Same rate |
| Price source | Median of 43 providers | Median of 4 providers |
| Limits | ||
| Context window | 262,144 tokens | 2,000,000 tokens (best) |
| Max input | Not published | Not published |
| Max output | 32,768 tokens (best) | 30,000 tokens |
| Inputs and features | ||
| Text | Yes | Yes |
| Images | Yes | Yes |
| PDFs | No | No |
| Audio | No | No |
| Video | No | No |
| Reasoning | Yes | Yes |
| Tool calling | Yes | Yes |
| Structured output | Yes | Not published |
| File attachments | Yes | Yes |
| Temperature control | Yes | Yes |
| Reasoning control | toggle | always |
| Availability | ||
| Weights | Open | Proprietary |
| API model ID | gemma-4-31b-it | Not published |
| API providers | 53 (best) | 5 |
| Released | Apr 2, 2026 | Sep 19, 2025 |
| Knowledge cutoff | Jan 2025 | Not published |
| Publisher documentation | Publisher documentation · Model weights | Not published |
| Source metadata updated | Apr 2, 2026 | Sep 19, 2025 |
| Data sources | models.dev · Epoch AI | models.dev · Epoch AI |
| Catalog checked | Nov 30, 2026 | Nov 30, 2026 |
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
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.