Model Comparison

Gemma 4 31B vs MAI-Code-1-FlashWhich is better in 2026?

MAI-Code-1-Flash shows notably better performance in the majority of benchmarks.

Verdict: Gemma 4 31B vs MAI-Code-1-Flash — which is better?

Gemma 4 31B (by Google) and MAI-Code-1-Flash (by Microsoft) are two of the AI models people compare most. Here is how they stack up on benchmarks, price and capabilities, and which one to pick in 2026.

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.

Choose Gemma 4 31B if…

  • you need open weights you can self-host or fine-tune

Choose MAI-Code-1-Flash if…

  • you want the strongest raw capability — it leads on 2 of 3 shared benchmarks
  • you want the most recent training data — it shipped Jun 2026

Performance Benchmarks

Comparative analysis across standard metrics

3 benchmarks

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.

Fri Jul 17 2026 • llm-stats.com

Arena Performance

Human preference votes

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 (131,072 tokens).

Google
Gemma 4 31B
Input262,144 tokens
Output131,072 tokens
Microsoft
MAI-Code-1-Flash
Input- tokens
Output- tokens
Fri Jul 17 2026 • llm-stats.com

Input Capabilities

Supported data types and modalities

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

3 months ago

MAI-Code-1-Flash

Jun 2, 2026

1 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?Start an Issue discussion

Key Takeaways

Larger context window (262,144 tokens)
Supports multimodal inputs
Has open weights
Higher Humanity's Last Exam score (26.5% vs 18.0%)
Higher AIME 2026 score (92.5% vs 89.2%)
Higher GPQA score (84.6% vs 84.3%)

Detailed Comparison

Interactive Arena

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
AI Model Comparison Table
Feature
Google
Gemma 4 31B
Microsoft
MAI-Code-1-Flash

FAQ

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

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

MAI-Code-1-Flash shows notably better performance in the majority of benchmarks. 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 benchmark scores, pricing, and capabilities 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 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.