Gemma 3 4B
aimlapi/google/gemma-3-4b-it · family gemma · in: text, image → out: text · price provider-declared (via models.dev). Capabilities: tools text image.
$0.07
Blended $/1M (3:1)
$0.0529
Input $/1M
$0.1058
Output $/1M
$0.16
1M in + 1M out
$0.0423 −20%
Cache read $/1M
#739 of 9,599
Cheapest rank
- Provider
- AI/ML API (
aimlapi) - Kind
- text (outputs text)
- Context
- 131,000 tokens
- Max output
- 32,768 tokens
- Capabilities
- tools text image
Same model, other providers
“Gemma 3 4B” is offered by 2 providers — cheapest-effective first. Merge Gateway is the cheapest at $0.05 blended.
| Provider | Input | Output | Blended | Context |
|---|---|---|---|---|
| Merge Gateway | $0.04 | $0.08 | $0.05 | 128k |
| AI/ML API (this) | $0.0529 | $0.1058 | $0.07 | 131k |
Call it
jishie indexes & prices models; it does not proxy inference.
Most providers are OpenAI-compatible — point base_url at AI/ML API and pass this model id:
curl $BASE_URL/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" -H "Content-Type: application/json" \
-d '{"model":"google/gemma-3-4b-it","messages":[{"role":"user","content":"hello"}]}'
Route programmatically with MCP find_model / get_model, or fetch this record free (no wallet):