Gemma 4 31B vs MAI-Code-1-Flash
Gemma 4 31B and MAI-Code-1-Flash are closely matched at 32.7 and 28.6 on the LLM Stats Score.
Google · Microsoft · Updated for 2026
Which is better?
Gemma 4 31B and MAI-Code-1-Flash are closely matched on the overall LLM Stats Score at 32.7 and 28.6.
In the 3 individual benchmarks reported for both models, MAI-Code-1-Flash wins 2; this is a narrower head-to-head signal than the composite indexes.
Based on current LLM Stats indexes, shared benchmarks, pricing, and model metadata for 2026.
Choose Gemma 4 31B
- you need open weights you can self-host or fine-tune
Choose MAI-Code-1-Flash
- you value its reported benchmark strengths — it wins 2 of 3 exact shared results
- you want the most recent training data — it shipped Jun 2026
At a glance
The differences that matter most.
Capability indexes
Additional strengths measured across groups of related public benchmarks
Individual benchmarks
12 reported for Gemma 4 31B · 15 for MAI-Code-1-Flash
Gemma 4 31B outperforms in 1 benchmarks (Humanity's Last Exam), while MAI-Code-1-Flash is better at 2 benchmarks (AIME 2026, GPQA).
MAI-Code-1-Flash shows notably better performance in the majority of benchmarks.
Human preference
Blind head-to-head votes and playground preference scores
Context Window
Maximum input and output token capacity
Only Gemma 4 31B specifies input context (262,144 tokens). Only Gemma 4 31B specifies output context (262,144 tokens).
Input capabilities
Documented input modalities across available providers
Gemma 4 31B supports multimodal inputs, whereas MAI-Code-1-Flash does not.
Gemma 4 31B can handle both text and other forms of data like images, making it suitable for multimodal applications.
Gemma 4 31B
MAI-Code-1-Flash
License
Usage and distribution terms
Gemma 4 31B is licensed under Apache 2.0, while MAI-Code-1-Flash uses a proprietary license.
License differences may affect how you can use these models in commercial or open-source projects.
Apache 2.0
Open weights
Proprietary
Closed source
Release Timeline
When each model was launched
Gemma 4 31B was released on 2026-04-02, while MAI-Code-1-Flash was released on 2026-06-02.
MAI-Code-1-Flash is 2 months newer than Gemma 4 31B.
Apr 2, 2026
6 months ago
Jun 2, 2026
4 months ago
2mo newerKnowledge Cutoff
When training data ends
Gemma 4 31B has a documented knowledge cutoff of 2025-01-01, while MAI-Code-1-Flash's cutoff date is not specified.
We can confirm Gemma 4 31B's training data extends to 2025-01-01, but cannot make a direct comparison without MAI-Code-1-Flash's cutoff date.
Jan 2025
—
Outputs Comparison
Judge for yourself.
Run your own prompts against Gemma 4 31B and MAI-Code-1-Flash side-by-side, then vote on the output you prefer.
FAQ
Common questions about Gemma 4 31B vs MAI-Code-1-Flash.