Gemma 3 4B vs Gemma 4 31B

Price, context window & benchmark comparison

Google

Gemma 3 4B

Google
$0.05 / $0.10
Input / Output · per 1M tokens
VS
Google

Gemma 4 31B

Google
$0.20 / $0.40
Input / Output · per 1M tokens
Compare different models
Google
Google
Verdict: Gemma 3 4B is 4.0× cheaper than Gemma 4 31B on a typical 3:1 input/output mix. Gemma 4 31B has the larger context window (262K vs 131K).
Gemma 3 4BGemma 4 31B
Input price / 1M$0.05$0.20
Output price / 1M$0.10$0.40
Blended price (3:1)$0.0625$0.25
Cached input / 1M——
Context window131K262K
Max output16K16K
Intelligence index—4.4
Coding index2.743.4
Providers——
Best provider uptime (30m)——
Vision inputYesYes
ReasoningNoYes
Tool callingNoYes
Released2025-03-132026-04-02
Retirement——

Cost calculator

FAQ

Which is cheaper, Gemma 3 4B or Gemma 4 31B?

Gemma 3 4B is 4.0× cheaper than Gemma 4 31B on a typical 3:1 input/output mix.

Gemma 3 4B vs Gemma 4 31B: which has a bigger context window?

Gemma 3 4B: 131,072 tokens. Gemma 4 31B: 262,144 tokens.

How much would 1 million requests cost?

At 2,000 input + 500 output tokens per request: Gemma 3 4B ≈ $150.00, Gemma 4 31B ≈ $600.00.

More comparisons