The AI arena is free today

Open Superagent

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.

Core performance indexes
32.7
#123
28.6
#155
33.3
#116
28.2
#152
13.6
#114
11.1
#134
Cost, coverage & limits
Benchmark wins
1 of 3
2 of 3
Input price
$0.09 / M
— / M
Output price
$0.34 / M
— / M
Context window
262,144
—

Capability indexes

Additional strengths measured across groups of related public benchmarks

1 shared
Index
Gemma 4 31B
MAI-Code-1-Flash
29.4#91
20.9#162
Conservative TrueSkill rating · higher is betterHow scores work

Individual benchmarks

12 reported for Gemma 4 31B · 15 for MAI-Code-1-Flash

3 shared

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.

Sat Oct 24 2026 • llm-stats.com

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

Google
Gemma 4 31B
Input262,144 tokens
Output262,144 tokens
Microsoft
MAI-Code-1-Flash
Input- tokens
Output- tokens
Sat Oct 24 2026 • llm-stats.com

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

Text
Images
Audio
Video

MAI-Code-1-Flash

Text
Images
Audio
Video

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.

Gemma 4 31B

Apache 2.0

Open weights

MAI-Code-1-Flash

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.

Gemma 4 31B

Apr 2, 2026

6 months ago

MAI-Code-1-Flash

Jun 2, 2026

4 months ago

2mo newer

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

Gemma 4 31B

Jan 2025

MAI-Code-1-Flash

—

Outputs Comparison

Notice missing or incorrect data?

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.

Gemma 4 31B
✓ Preferred
MAI-Code-1-Flash
Open in Playground

FAQ

Common questions about Gemma 4 31B vs MAI-Code-1-Flash.

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

Gemma 4 31B and MAI-Code-1-Flash are closely matched on the LLM Stats Score at 32.7 and 28.6. Gemma 4 31B is made by Google and MAI-Code-1-Flash is made by Microsoft. The best choice depends on your use case — compare their capability indexes, individual benchmarks, pricing, and limits above.

How does Gemma 4 31B compare to MAI-Code-1-Flash in benchmarks?

Gemma 4 31B scores AIME 2026: 89.2%, MMMLU: 88.4%, t2-bench: 86.4%, MathVision: 85.6%, MMLU-Pro: 85.2%. MAI-Code-1-Flash scores AIME 2026: 92.5%, GPQA: 84.6%, IFBench: 75.0%, Tau2 Telecom: 71.7%, SWE-Bench Verified: 71.6%.

What are the context window sizes for Gemma 4 31B and MAI-Code-1-Flash?

Gemma 4 31B supports 262K tokens and MAI-Code-1-Flash supports an unknown number of tokens. A larger context window lets you process longer documents, conversations, or codebases in a single request.

What are the main differences between Gemma 4 31B and MAI-Code-1-Flash?

Key differences include LLM Stats Score (32.7 vs 28.6), multimodal support (yes vs no), licensing (Apache 2.0 vs Proprietary). See the full comparison above for benchmark-by-benchmark results.

Who makes Gemma 4 31B and MAI-Code-1-Flash?

Gemma 4 31B is developed by Google and MAI-Code-1-Flash is developed by Microsoft.