Skip to content
llmmodels

Gemma 4 31B IT vs Qwen3.8 27B

Qwen3.8 27B wins 2 of 2 benchmarks both models report and has a higher Epoch Capabilities Index (152.6 vs 144.1). Gemma 4 31B IT is slightly cheaper on a blended (3:1 input:output) token price. Qwen3.8 27B has the larger context window (1M vs 256K).

SpecGemma 4 31B ITQwen3.8 27B
ProviderGoogle DeepMindAlibaba (Qwen)
ReleasedApr 2, 2026Aug 14, 2026 (better)
TypeReasoning LLMReasoning LLM
Parameters31B28B
Context window256K1M (better)
Max output32K128K (better)
Input price / 1MFree (better)$0.035
Output price / 1MFree (better)$1.50
Input modalitiestext, image, videotext, image, video
Open weightsYesYes
Licenseapache-2.0apache-2.0
Reasoning modeYesYes
Tool callingYesYes
API providers5172 (better)
Epoch Capabilities Index144.1152.6 (better)
GPQA Diamond75.8%—
WebDev Arena13641593 (better)
OTIS Mock AIME73.3%—
ARC-AGI-2—42.4%
SimpleQA Verified10.4%—

Cost example

For a workload of 10M input + 2M output tokens per month: Gemma 4 31B IT costs $0.00 and Qwen3.8 27B costs $3.35 at list price (Google DeepMind / openrouter 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 27B

Qwen3.8 27B is an open-weight reasoning llm from Alibaba (Qwen), released Aug 14, 2026. It has 28B parameters, a 1M-token context window and accepts text, image, video input. API pricing starts at $0.035 per million input tokens and $1.50 per million output tokens. It is available from 72 API providers. It scores 152.6 on the Epoch Capabilities Index. Full Qwen3.8 27B specs →

Compare other models

FAQ

Which is better, Gemma 4 31B IT or Qwen3.8 27B?

Qwen3.8 27B wins 2 of 2 benchmarks both models report and has a higher Epoch Capabilities Index (152.6 vs 144.1). Gemma 4 31B IT is slightly cheaper on a blended (3:1 input:output) token price. Qwen3.8 27B has the larger context window (1M vs 256K).

Is Gemma 4 31B IT cheaper than Qwen3.8 27B?

Gemma 4 31B IT costs Free input / Free output per 1M tokens; Qwen3.8 27B costs $0.035 / $1.50. Gemma 4 31B IT is cheaper overall.

Which has a bigger context window?

Gemma 4 31B IT: 262,144 tokens. Qwen3.8 27B: 1,024,000 tokens.

Are Gemma 4 31B IT and Qwen3.8 27B open source?

Gemma 4 31B IT is open-weight; Qwen3.8 27B is open-weight.