Back to Models
Gemma 3 4B
googlegoogle/gemma-3-4b
Google's smallest Gemma 3 model at 4B parameters. Lightweight chat, copilots, coding and reasoning, cost-effective fine-tuned vertical assistants.
Context Length
128K
Max Output
8K
Input Price
$0.060/ 1M tokens
Output Price
$0.120/ 1M tokens
Modalities
textimage→text
Pricing Breakdown
| Type | Rate |
|---|---|
| Input | $0.060 / 1M tokens |
| Output | $0.120 / 1M tokens |
Supported Parameters
temperaturemax_tokenstop_pstop
API Usage Examples
cURL
curl https://api.therouter.ai/v1/chat/completions -H "Content-Type: application/json" -H "Authorization: Bearer $THE_ROUTER_API_KEY" -d '{
"model": "google/gemma-3-4b",
"messages": [
{"role": "user", "content": "Summarize the key points from this input."}
]
}'