Free Gemma API
Google's open Gemma models, free across 10 providers, Google AI Studio itself included.
FreeLLMAPI is a free, open-source LLM API that routes across every provider with a real free tier. The Gemma models below are served free by Cerebras, Cloudflare Workers AI, Google AI Studio, HuggingFace Router, NVIDIA NIM, NavyAI, Ollama Cloud, OpenRouter, Requesty, SEA-LION — reachable through one OpenAI-compatible key, with automatic failover when a provider hits its rate limit.
Free Gemma models (15)
| Model | Provider | Context | Free limits | Capabilities |
|---|---|---|---|---|
| google/diffusiongemma-26b-a4b-it | NVIDIA NIM | 262K | 40 rpm | vision |
| gemma-4-31b-it | Google AI Studio | 33K | 15 rpm, 1000 rpd | vision |
| google/gemma-4-31b-it | NVIDIA NIM | 262K | 40 rpm | — |
| gemma-4-31b | Cerebras | 33K | 5 rpm | vision |
| google/gemma-4-31b-it:free | OpenRouter | 262K | 20 rpm, 200 rpd | — |
| google/gemma-4-31b-it | Requesty | 262K | 200 rpd | tools, vision |
| gemma-4-31b-it | NavyAI | 262K | 20 rpm | tools, vision |
| gemma-4-26b-a4b-it | Google AI Studio | 33K | 15 rpm, 1000 rpd | vision |
| gemma-4-26b-a4b-it | NavyAI | 262K | 20 rpm | tools, vision |
| google/gemma-4-31B-it | HuggingFace Router | 131K | $0.10/mo credit | vision |
| @cf/google/gemma-4-26b-a4b-it | Cloudflare Workers AI | 262K | ~10-20M | — |
| gemma4:31b | Ollama Cloud | 131K | ~20-30M | — |
| google/gemma-4-26b-a4b-it:free | OpenRouter | 262K | 20 rpm, 200 rpd | — |
| aisingapore/Gemma-SEA-LION-v4-27B-IT | SEA-LION | 131K | 10 rpm | — |
| @cf/aisingapore/gemma-sea-lion-v4-27b-it | Cloudflare Workers AI | 131K | ~10-20M | — |
How to use Gemma for free
- Install FreeLLMAPI — the open-source router (GitHub). It runs locally and keeps your keys on your machine.
- Add a free key for Cerebras (or any listed provider) on the Keys page — no credit card required.
- Point your OpenAI client at the local endpoint and pick a model:
from openai import OpenAI
# FreeLLMAPI runs locally; grab your unified key + endpoint on the Keys page.
client = OpenAI(base_url="http://localhost:3001/v1", api_key="freellmapi-...")
resp = client.chat.completions.create(
model="gemma-4-31b-it",
messages=[{"role": "user", "content": "Hello!"}],
)
print(resp.choices[0].message.content)
Frequently asked questions
Is the Gemma API really free?
Yes — these Gemma models run on genuine provider free tiers (served free by Cerebras, Cloudflare Workers AI, Google AI Studio, HuggingFace Router, NVIDIA NIM, NavyAI, Ollama Cloud, OpenRouter, Requesty, SEA-LION). Inference costs nothing; you only add a free provider key.
Do I need a credit card?
No. The providers here offer free tiers that work without a card. You add the free key once and FreeLLMAPI routes to it.
How do I call Gemma through FreeLLMAPI?
Install the open-source router, add the provider's free key on the Keys page, then point any OpenAI SDK at your local endpoint — see the code sample above.