Gemma 4 31B IT vs Qwen3.8 Max
Qwen3.8 Max wins 5 of 5 benchmarks both models report and has a higher Epoch Capabilities Index (157.6 vs 144.1). Gemma 4 31B IT is slightly cheaper on a blended (3:1 input:output) token price. Qwen3.8 Max has the larger context window (1M vs 256K). Gemma 4 31B IT has open weights, so you can self-host and fine-tune it; Qwen3.8 Max is API-only.
| Spec | Gemma 4 31B IT | Qwen3.8 Max |
|---|---|---|
| Provider | Google DeepMind | Alibaba (Qwen) |
| Released | Apr 2, 2026 | Aug 3, 2026 (better) |
| Type | Reasoning LLM | Reasoning LLM |
| Parameters | 31B | 2.4T |
| Context window | 256K | 1M (better) |
| Max output | 32K | 128K (better) |
| Input price / 1M | Free (better) | $2 |
| Output price / 1M | Free (better) | $6 |
| Input modalities | text, image, video | text, image, video, pdf (better) |
| Open weights | Yes | No |
| License | apache-2.0 | Proprietary |
| Reasoning mode | Yes | Yes |
| Tool calling | Yes | Yes |
| API providers | 51 (better) | 46 |
| Epoch Capabilities Index | 144.1 | 157.6 (better) |
| GPQA Diamond | 75.8% | 92.7% (better) |
| WebDev Arena | 1364 | 1671 (better) |
| OTIS Mock AIME | 73.3% | 100.0% (better) |
| FrontierMath | — | 74.7% |
| SimpleQA Verified | 10.4% | 47.3% (better) |
Cost example
For a workload of 10M input + 2M output tokens per month: Gemma 4 31B IT costs $0.00 and Qwen3.8 Max costs $32.00 at list price (Google DeepMind / alibaba pricing).
About Gemma 4 31B IT
Gemma 4 31B IT is an open-weight reasoning llm from Google DeepMind, released Apr 2, 2026. It has 31B parameters, a 256K-token context window and accepts text, image, video input. It can be used for free via API. It is available from 51 API providers. It scores 144.1 on the Epoch Capabilities Index. Full Gemma 4 31B IT specs →
About Qwen3.8 Max
Qwen3.8 Max is a proprietary reasoning llm from Alibaba (Qwen), released Aug 3, 2026. It has 2.4T parameters, a 1M-token context window and accepts text, image, video, pdf input. API pricing starts at $2 per million input tokens and $6 per million output tokens. It is available from 46 API providers. It scores 157.6 on the Epoch Capabilities Index. Full Qwen3.8 Max specs →
Compare other models
FAQ
Which is better, Gemma 4 31B IT or Qwen3.8 Max?
Qwen3.8 Max wins 5 of 5 benchmarks both models report and has a higher Epoch Capabilities Index (157.6 vs 144.1). Gemma 4 31B IT is slightly cheaper on a blended (3:1 input:output) token price. Qwen3.8 Max has the larger context window (1M vs 256K). Gemma 4 31B IT has open weights, so you can self-host and fine-tune it; Qwen3.8 Max is API-only.
Is Gemma 4 31B IT cheaper than Qwen3.8 Max?
Gemma 4 31B IT costs Free input / Free output per 1M tokens; Qwen3.8 Max costs $2 / $6. Gemma 4 31B IT is cheaper overall.
Which has a bigger context window?
Gemma 4 31B IT: 262,144 tokens. Qwen3.8 Max: 1,000,000 tokens.
Are Gemma 4 31B IT and Qwen3.8 Max open source?
Gemma 4 31B IT is open-weight; Qwen3.8 Max is proprietary.