Home  /  Compare  /  Gemma 4 31B vs MAI-Code-1-Flash
Head to head

Gemma 4 31B vs MAI-Code-1-Flash.

Verdict by category, tale of the tape, shared benchmarks only, and cost at three workloads — all from the tracked data.

Google DeepMind
VS
Microsoft AI

Verdict by category

CategoryGemma 4 31BMAI-Code-1-FlashWinner
League Score13.41.3Gemma 4 31B
Coding (SWE-bench %)—51.6—
Reasoning (GPQA %)84.3——
Context (tokens)262144256000Gemma 4 31B
Speed (tok/s)———

Tale of the tape

SpecGemma 4 31BMAI-Code-1-Flash
MakerGoogle DeepMindMicrosoft AI
ReleasedApr 2, 2026Jun 2, 2026
League Score131
Context262,144 tokens256,000 tokens
Max output——
$/1M input——
$/1M output——
WeightsOpenClosed
Speed——

Head-to-head benchmarks (shared only)

BenchmarkGemma 4 31BMAI-Code-1-Flash
No shared benchmark measurements yet — shown as not measured, never interpolated.

Cost at three workloads

WorkloadGemma 4 31BMAI-Code-1-Flash
Light — 1M in / 250K out——
Standard — 10M in / 2.5M out——
Long-context — 50M in / 5M out——

The pick

Pick Gemma 4 31B if you want the higher overall League Score; you need the bigger context window; you want downloadable weights / self-hosting.

Pick MAI-Code-1-Flash if coding is the priority.

All figures from the model database — sources and dates on each model page. Cost your own workload or compare a different pair.

Frequently asked questions

Which is better overall, Gemma 4 31B or MAI-Code-1-Flash?

Gemma 4 31B leads on overall League Score, 13 to 1 — a gap of 12 points on a composite of sourced benchmarks. That is overall form, not every category: check the per-category verdicts before choosing.

Which has the bigger context window, Gemma 4 31B or MAI-Code-1-Flash?

Gemma 4 31B, with 262.1K of context against 256K for MAI-Code-1-Flash.

Are Gemma 4 31B and MAI-Code-1-Flash open source?

Gemma 4 31B is open weights — it can be downloaded and self-hosted; MAI-Code-1-Flash is closed weights — API access only.