The AI arena is free today

Open Superagent

Devstral Medium vs Gemma 3 4B

Devstral Medium leads the LLM Stats Score 13.9 to -1.7. Gemma 3 4B is 32.0x cheaper per token.

Mistral AI · Google · Updated for 2026

Which is better?

Devstral Medium leads the overall LLM Stats Score 13.9 to -1.7, ranking #231 overall.

On price, Gemma 3 4B is roughly 32.0x cheaper per token on a blended 3:1 input/output basis, which adds up quickly at production volume.

Gemma 3 4B also accepts a larger context window (131,072 input tokens), making it the stronger choice for long documents and large codebases.

Based on current LLM Stats indexes, shared benchmarks, pricing, and model metadata for 2026.

Choose Devstral Medium

  • overall performance matters — it scores 13.9 and ranks #231 on LLM Stats
  • your work emphasizes reasoning — it leads those capability indexes
  • you want the most recent training data — it shipped Jul 2025

Choose Gemma 3 4B

  • cost matters — it's about 32.0x cheaper per token
  • you process long inputs — it offers a 131,072 token context window
  • you need open weights you can self-host or fine-tune

At a glance

The differences that matter most.

Core performance indexes
13.9
#231
-1.7
#326
13.8
#225
-2.7
#322
5.7
#190
-4.3
#247
Cost, coverage & limits
Benchmark wins
Input price
$0.40 / M
$0.02 / M
Output price
$2.00 / M
$0.04 / M
Context window
128,000
131,072

Individual benchmarks

1 reported for Devstral Medium · 26 for Gemma 3 4B

No common benchmarks found

Devstral Medium and Gemma 3 4Bdon't have any common benchmark datasets to compare. They may have been evaluated on different testing suites.

Human preference

Blind head-to-head votes and playground preference scores

Pricing Analysis

Price comparison per million tokens

Gemma 3 4B costs less

For input processing, Devstral Medium ($0.40/1M tokens) is 20.0x more expensive than Gemma 3 4B ($0.02/1M tokens).

For output processing, Devstral Medium ($2.00/1M tokens) is 50.0x more expensive than Gemma 3 4B ($0.04/1M tokens).

In conclusion, Devstral Medium is more expensive than Gemma 3 4B.*

* Using a 3:1 ratio of input to output tokens

Lowest available price from all providers
Tue Sep 08 2026 • llm-stats.com
Mistral AI
Devstral Medium
Input tokens$0.40
Output tokens$2.00
Best providerMistral
Google
Gemma 3 4B
Input tokens$0.02
Output tokens$0.04
Best providerDeepinfra
Notice missing or incorrect data?Start an Issue

Context Window

Maximum input and output token capacity

Gemma 3 4B accepts 131,072 input tokens compared to Devstral Medium's 128,000 tokens. Gemma 3 4B can generate longer responses up to 131,072 tokens, while Devstral Medium is limited to 128,000 tokens.

Mistral AI
Devstral Medium
Input128,000 tokens
Output128,000 tokens
Google
Gemma 3 4B
Input131,072 tokens
Output131,072 tokens
Tue Sep 08 2026 • llm-stats.com

Input capabilities

Documented input modalities across available providers

Gemma 3 4B supports multimodal inputs, whereas Devstral Medium does not.

Gemma 3 4B can handle both text and other forms of data like images, making it suitable for multimodal applications.

Devstral Medium

Text
Images
Audio
Video

Gemma 3 4B

Text
Images
Audio
Video

License

Usage and distribution terms

Devstral Medium is licensed under a proprietary license, while Gemma 3 4B uses Gemma.

License differences may affect how you can use these models in commercial or open-source projects.

Devstral Medium

Proprietary

Closed source

Gemma 3 4B

Gemma

Open weights

Release Timeline

When each model was launched

Devstral Medium was released on 2025-07-10, while Gemma 3 4B was released on 2025-03-12.

Devstral Medium is 4 months newer than Gemma 3 4B.

Devstral Medium

Jul 10, 2025

1.2 years ago

4mo newer
Gemma 3 4B

Mar 12, 2025

1.5 years ago

Knowledge Cutoff

When training data ends

Gemma 3 4B has a documented knowledge cutoff of 2024-08-01, while Devstral Medium's cutoff date is not specified.

We can confirm Gemma 3 4B's training data extends to 2024-08-01, but cannot make a direct comparison without Devstral Medium's cutoff date.

Devstral Medium

Gemma 3 4B

Aug 2024

Provider Availability

Devstral Medium is available from Mistral AI. Gemma 3 4B is available from DeepInfra.

Devstral Medium

mistral logo
Mistral
Input Price:Input: $0.40/1MOutput Price:Output: $2.00/1M

Gemma 3 4B

deepinfra logo
Deepinfra
Input Price:Input: $0.02/1MOutput Price:Output: $0.04/1M
* Prices shown are per million tokens

Outputs Comparison

Notice missing or incorrect data?Start an Issue discussion

Judge for yourself.

Run your own prompts against Devstral Medium and Gemma 3 4B side-by-side, then vote on the output you prefer.

Devstral Medium
✓ Preferred
Gemma 3 4B
Open in Playground

FAQ

Common questions about Devstral Medium vs Gemma 3 4B.

Which is better, Devstral Medium or Gemma 3 4B?

Devstral Medium leads the LLM Stats Score 13.9 to -1.7. Devstral Medium is made by Mistral AI and Gemma 3 4B is made by Google. The best choice depends on your use case — compare their capability indexes, individual benchmarks, pricing, and limits above.

How does Devstral Medium compare to Gemma 3 4B in benchmarks?

Devstral Medium scores SWE-Bench Verified: 61.6%. Gemma 3 4B scores IFEval: 90.2%, GSM8k: 89.2%, DocVQA: 75.8%, MATH: 75.6%, AI2D: 74.8%.

Is Devstral Medium cheaper than Gemma 3 4B?

Gemma 3 4B is 20.0x cheaper for input tokens. Devstral Medium costs $0.40/M input and $2.00/M output via mistral. Gemma 3 4B costs $0.02/M input and $0.04/M output via deepinfra.

What are the context window sizes for Devstral Medium and Gemma 3 4B?

Devstral Medium supports 128K tokens and Gemma 3 4B supports 131K tokens. A larger context window lets you process longer documents, conversations, or codebases in a single request.

What are the main differences between Devstral Medium and Gemma 3 4B?

Key differences include LLM Stats Score (13.9 vs -1.7), context window (128K vs 131K), input pricing ($0.40 vs $0.02/M), multimodal support (no vs yes), licensing (Proprietary vs Gemma). See the full comparison above for benchmark-by-benchmark results.

Who makes Devstral Medium and Gemma 3 4B?

Devstral Medium is developed by Mistral AI and Gemma 3 4B is developed by Google.