Gemma 3 4B
Gemma 3 4B is a language model with 4B parameters from Google DeepMind. It is currently free at 2 providers with up to 66K tokens of context. The model understands images. Its weights are open, so it can also run locally.
- Developer
- Google DeepMind
- Parameters
- 4B
- Context
- 66K tokens
- Type
- Text
- License
- Open weights
Where to use Gemma 3 4B for free
Each row is a separate free endpoint with its own limits.
| Provider | Context | Limit | Card | |
|---|---|---|---|---|
Together AI google/gemma-3-4b-it |
66K | Fair use (depends on server load) | — | Open |
NVIDIA Build google/gemma-3-4b-it |
— | Free serverless inference for development; limits and model availability may change. | No | Open |
Quick start
curl https://api.together.xyz/v1/chat/completions \
-H "Authorization: Bearer $TOGETHER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "google/gemma-3-4b-it",
"messages": [{"role": "user", "content": "Hello!"}]
}'from openai import OpenAI
client = OpenAI(
base_url="https://api.together.xyz/v1",
api_key="YOUR_TOGETHER_API_KEY",
)
reply = client.chat.completions.create(
model="google/gemma-3-4b-it",
messages=[{"role": "user", "content": "Hello!"}],
)
print(reply.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.together.xyz/v1",
apiKey: process.env.TOGETHER_API_KEY,
});
const reply = await client.chat.completions.create({
model: "google/gemma-3-4b-it",
messages: [{ role: "user", content: "Hello!" }],
});
console.log(reply.choices[0].message.content);Example for Together AI. Any OpenAI-compatible client works: Cursor, Cline, OpenCode, Open WebUI.
Benchmarks
Source: Artificial Analysis · Gemma 3 4B Instruct
Similar free models
FAQ
Is Gemma 3 4B free?
Yes. As of September 26, 2026, Gemma 3 4B is free at Together AI, NVIDIA Build. Each provider has its own limits — see the table above.
What is the context window of Gemma 3 4B?
The largest context among free routes is 65,536 tokens. Some providers cap it lower.
How do I call Gemma 3 4B via API?
Use any OpenAI-compatible client with base URL https://api.together.xyz/v1, model ID google/gemma-3-4b-it, and a Together AI key.
How good is Gemma 3 4B?
Artificial Analysis Intelligence Index: 4.8, GPQA Diamond: 29%. For comparison, the strongest free model in the catalog right now is GLM 5.3.
Is Gemma 3 4B open-weight?
Yes, the weights are published — you can download and run it locally, for example with Ollama or LM Studio.