Back to Models
Gemma 3 4B
googlegoogle/gemma-3-4b
How TheRouter serves this differently from the vendor
As the vendor operates it
Google publishes Gemma 3 4B as open weights for self-hosting, fine-tuning, and deployment across local hardware, Hugging Face, Kaggle, Google AI Studio, Vertex AI, and other runtimes.
On TheRouter
TheRouter serves it as a managed OpenAI-compatible chat-completions route with text/image input and text output; this page does not claim local weight download, fine-tuning, or vendor-native runtime controls on the live TheRouter request path.
API guide
Chat completion
cURL
curl https://api.therouter.ai/v1/chat/completions \
-H "Authorization: Bearer $THEROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "google/gemma-3-4b",
"messages": [{"role": "user", "content": "Explain adaptive image tiling in two paragraphs."}]
}'Vision input
cURL
curl https://api.therouter.ai/v1/chat/completions \
-H "Authorization: Bearer $THEROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "google/gemma-3-4b",
"messages": [{
"role": "user",
"content": [
{"type": "text", "text": "Read the label in this image and summarize the visible safety warning."},
{"type": "image_url", "image_url": {"url": "https://therouter.ai/assets/vision-sample.png"}}
]
}]
}'Fact ledger β every claim on this page traces here
| source | URL | retrieved | |
|---|---|---|---|
| Release date | Google Developers Blog β | 2026-08-21 | verified |
| Architecture / size | Google Developers Blog β | 2026-08-21 | verified |
| Context window | Google Developers Blog β | 2026-08-21 | verified |
| Training tokens | Google Developers Blog β | 2026-08-21 | verified |
| Input / output modalities | Google Developers Blog β | 2026-08-21 | verified |
| License | ai.google.dev β | 2026-08-21 | verified |
| MMLU Pro | ai.google.dev β | 2026-08-21 | verified |
| HumanEval | ai.google.dev β | 2026-08-21 | verified |
| GSM8K | ai.google.dev β | 2026-08-21 | verified |
| Google introduces Gemma 3 with multimodality and 128K context | Google Developers Blog β | 2026-08-21 | verified |