Skip to content
llmmodels

Gemini 3.5 Flash vs Gemma 4 31B IT

Gemini 3.5 Flash wins 5 of 5 benchmarks both models report and has a higher Epoch Capabilities Index (155.3 vs 144.1). Gemma 4 31B IT is slightly cheaper on a blended (3:1 input:output) token price. Gemini 3.5 Flash has the larger context window (1M vs 256K). Gemma 4 31B IT has open weights, so you can self-host and fine-tune it; Gemini 3.5 Flash is API-only.

SpecGemini 3.5 FlashGemma 4 31B IT
ProviderGoogle DeepMindGoogle DeepMind
ReleasedMay 19, 2026 (better)Apr 2, 2026
TypeReasoning LLMReasoning LLM
Parameters—31B
Context window1M (better)256K
Max output64K (better)32K
Input price / 1M$1.50Free (better)
Output price / 1M$9Free (better)
Input modalitiestext, image, audio, video, pdf, file (better)text, image, video
Open weightsNoYes
LicenseProprietaryapache-2.0
Reasoning modeYesYes
Tool callingYesYes
API providers3551 (better)
Epoch Capabilities Index155.3 (better)144.1
GPQA Diamond92.8% (better)75.8%
SWE-bench Verified79.3%—
WebDev Arena1506 (better)1364
OTIS Mock AIME95.6% (better)73.3%
FrontierMath62.8%—
ARC-AGI-272.1%—
SimpleQA Verified66.2% (better)10.4%

Cost example

For a workload of 10M input + 2M output tokens per month: Gemini 3.5 Flash costs $33.00 and Gemma 4 31B IT costs $0.00 at list price (Google DeepMind / google pricing).

About Gemini 3.5 Flash

Gemini 3.5 Flash is a proprietary reasoning llm from Google DeepMind, released May 19, 2026. It has a 1M-token context window and accepts text, image, audio, video, pdf, file input. API pricing starts at $1.50 per million input tokens and $9 per million output tokens. It is available from 35 API providers. It scores 155.3 on the Epoch Capabilities Index. Full Gemini 3.5 Flash specs →

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 →

Compare other models

FAQ

Which is better, Gemini 3.5 Flash or Gemma 4 31B IT?

Gemini 3.5 Flash wins 5 of 5 benchmarks both models report and has a higher Epoch Capabilities Index (155.3 vs 144.1). Gemma 4 31B IT is slightly cheaper on a blended (3:1 input:output) token price. Gemini 3.5 Flash has the larger context window (1M vs 256K). Gemma 4 31B IT has open weights, so you can self-host and fine-tune it; Gemini 3.5 Flash is API-only.

Is Gemini 3.5 Flash cheaper than Gemma 4 31B IT?

Gemini 3.5 Flash costs $1.50 input / $9 output per 1M tokens; Gemma 4 31B IT costs Free / Free. Gemma 4 31B IT is cheaper overall.

Which has a bigger context window?

Gemini 3.5 Flash: 1,048,576 tokens. Gemma 4 31B IT: 262,144 tokens.

Are Gemini 3.5 Flash and Gemma 4 31B IT open source?

Gemini 3.5 Flash is proprietary; Gemma 4 31B IT is open-weight.