Google: Gemma 3 4B
google/gemma-3-4b-it
Model weightsGemma 3 introduces multimodality, supporting vision-language input and text outputs. It handles context windows up to 128k tokens, understands over 140 languages, and offers improved math, reasoning, and chat capabilities, including structured outputs and function calling.
Providers
Different companies host the same model. OpenRouter routes your request to one of them based on the routing mode you pick: Balanced (price + speed), Nitro (fastest), or Floor (cheapest).
| $0.05 | $0.10 | -- | 0.62s | 92 tok/s | ||
| $0.04 | $0.05 | $0.02 | 1.94s | 17 tok/s |
Input $0.05 / Output $0.1092 tok/s100.00% uptime- Input $0.04 / Output $0.0517 tok/s92.23% uptime
Pricing
The average price customers actually pay for this model, next to the prices providers post. Caching and discounts mean the price actually paid is often well below the listed one.
Weighted average
Gemma 3 4B — Price history
| $0.0288 | $0.0490 | 50.5% | 60.6% | ||
| $0.0491 | $0.0981 | 0.0% | 39.4% |
- Effective in $0.0288 / Effective out $0.0490Token share60.6%
- Effective in $0.0491 / Effective out $0.0981Token share39.4%
Performance
Throughput is how fast the model writes (tokens per second — higher is better). Latency is total round-trip time (lower is better). TTFT is time-to-first-token — how long before you see anything appear (lower is better).
P50, best across providers
P50, best provider
Uptime
Uptime is the percentage of the past 3 days that at least one provider was responding to requests. Availability is the percentage of time that inference was successfully served. OpenRouter continuously monitors and uses the next-best provider when one returns an error.
Availability over the last 3 days
Last 72 hoursAvailability over the last 24 hours
When an error occurs in an upstream provider, we can recover by routing to another healthy provider, if your request filters allow it. You can access per-provider uptime data programmatically through the Endpoints API. Learn more about our load balancing and provider routing options.
Benchmarks
Scores on standardized evaluations and this model’s own outputs on shared benchmark prompts. Higher percentages are better — and each rank shows where this model lands among the models evaluated on that source.
| Source | Benchmark | Score |
|---|---|---|
| Artificial Analysis | Gemma 3 4B Instruct Coding Index | 2.7 |
| Artificial Analysis | Gemma 3 4B Instruct GPQA Diamond | 29.1% |
| Artificial Analysis | Gemma 3 4B Instruct HLE | 5.3% |
| Artificial Analysis | Gemma 3 4B Instruct IFBench | 28.3% |
| Artificial Analysis | Gemma 3 4B Instruct τ²-Bench Telecom | 5.0% |
| Artificial Analysis | Gemma 3 4B Instruct AA-LCR | 6.7% |
| Artificial Analysis | Gemma 3 4B Instruct τ-Bench Banking | 0.4% |
| Artificial Analysis | Gemma 3 4B Instruct CritPt | 0.0% |
| Artificial Analysis | Gemma 3 4B Instruct LiveCodeBench | 11.2% |
| Artificial Analysis | Gemma 3 4B Instruct Terminal-Bench Hard | 0.8% |
| Artificial Analysis | Gemma 3 4B Instruct Terminal-Bench 2.1 | 0.4% |
| Artificial Analysis | Gemma 3 4B Instruct MMLU-Pro | 41.7% |
| Artificial Analysis | Gemma 3 4B Instruct AIME 2025 | 12.7% |
| Artificial Analysis | Gemma 3 4B Instruct AIME | 6.3% |
| Artificial Analysis | Gemma 3 4B Instruct MATH-500 | 76.6% |
Apps
Public apps that send the most traffic to this model. Good signal for what real production workloads look like — and a hint at which use cases this model is best suited for.
Activity
Token volume and request traffic to this model over time.
API
Drop-in code to call this model. OpenRouter's API is OpenAI-compatible — most SDKs work by just swapping the base URL. The only thing that changes between models is the model slug below.
Not currently available through EU in-region routing. In-region routing docs
Frequently asked questions
Gemma 3 introduces multimodality, supporting vision-language input and text outputs. It handles context windows up to 128k tokens, understands over 140 languages, and offers improved math, reasoning, and chat capabilities, including structured outputs and function calling.
Gemma 3 4B costs $0.04/M input tokens and $0.05/M output tokens, with separate rates for Cache Read at $0.02/M tokens.
Gemma 3 4B has a 131,072 token context window. It supports up to 131,072 completion tokens.
No. Gemma 3 4B does not accept tools, so function calling is unavailable. It also supports structured outputs via a JSON schema in response_format.
Gemma 3 4B accepts text and images as input and returns text.
Gemma 3 4B is served by 2 providers on OpenRouter: Parasail and DeepInfra. Requests are routed to the best available provider, with automatic failover to the others, and you can pin or exclude providers with provider routing.
Gemma 3 4B was released on March 13, 2025. Its knowledge cutoff is August 31, 2024.