google logo

Google

Gemma 3 4B

Gemma 3 introduces multimodality, supporting vision-language input and text outputs.

At a glance

Input / 1M
$0.05
Output / 1M
$0.10
Context
131K
Max output
16K
Intelligence
4.8
Released
Mar 2025
Text inputImage input

Pricing

Gemma 3 4B API pricing

Per-token rates, plus what common tasks actually cost.

Input tokensPer 1M tokens$0.05
Output tokensPer 1M tokens$0.10
Cached input (read)Per 1M tokensNot available
Cache writePer 1M tokensNot available

Chat message

2K in, 500 out

$0.15

per 1,000 requests

Coding task

30K in, 4K out

$1.90

per 1,000 requests

Long document summary

150K in, 2K out

$7.70

per 1,000 requests

Benchmarks

Gemma 3 4B benchmark scores

Independent scores from Artificial Analysis. Higher is better.

Intelligence index

4.8

Coding index

2.7

Agentic index

Not available

Specs

Context window and capabilities

What it can read, what it can write, and which API features it supports.

Context window
131K tokens
Max output
16K tokens
Input types
Image, Text
Output types
Text
Reasoning effort
Not available
Release date
March 13, 2025
Knowledge cutoff
August 31, 2024
  • Tool calling
  • Structured outputs
  • JSON mode
  • Reasoning
  • Temperature
  • Stop sequences
  • Deterministic seed
  • Verbosity control

FAQ

Frequently asked questions

How much does Gemma 3 4B cost?

Gemma 3 4B costs $0.05 per 1M input tokens and $0.10 per 1M output tokens through the API. A typical chat message costs about $0.15 per 1,000 messages.

What is the context window of Gemma 3 4B?

Gemma 3 4B accepts up to 131K tokens of input and can write up to 16K tokens in a single response.

What is the best alternative to Gemma 3 4B?

Llama 3.1 8B Instruct from Meta is a strong alternative. It offers: 1.3x cheaper output, higher intelligence score.

Can I use Gemma 3 4B alongside other models?

Yes. Shortcut Chat sends one prompt to Gemma 3 4B and any other models you pick at the same time, so you can compare answers side by side.

google logo

Try Gemma 3 4B next to every other model.

Use Gemma 3 4B alongside all the other models. Use one at a time, or multiple together. Get the best answer from every AI.