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
sourceURLretrieved
Release dateGoogle Developers Blog β†—2026-08-21verified
Architecture / sizeGoogle Developers Blog β†—2026-08-21verified
Context windowGoogle Developers Blog β†—2026-08-21verified
Training tokensGoogle Developers Blog β†—2026-08-21verified
Input / output modalitiesGoogle Developers Blog β†—2026-08-21verified
Licenseai.google.dev β†—2026-08-21verified
MMLU Proai.google.dev β†—2026-08-21verified
HumanEvalai.google.dev β†—2026-08-21verified
GSM8Kai.google.dev β†—2026-08-21verified
Google introduces Gemma 3 with multimodality and 128K contextGoogle Developers Blog β†—2026-08-21verified
Help & contact