Gemma API Free? Trial Credit, Limits and Real Costs
A gemma api free tier is what many people search for, and this service is not free or unlimited. What it offers is a $0.50 trial with no card, then cheap prepaid pay-as-you-go pricing.
Updated

Key points
- There is no permanent free tier. New users claim $0.50 of trial credit, valid for 7 days.
- The trial needs no card and is limited to one claim per person.
- Trial keys run at 2 concurrent requests and 60 requests per minute.
- After that you pay $0.15 per 1M input tokens and $0.50 per 1M output tokens from prepaid credit.
The honest answer: not free, but cheap to test
If you are after a gemma api free plan with no payment ever, this is not it. The service runs on real GPU time, and the model is served by an independent provider, so usage is billed per token. What we offer instead is a trial that lets you run real traffic before you spend anything.
New users can claim $0.50 of trial credit with one click on the API key page after sign-up. It needs no card. It is one per person and valid for 7 days. Sign-up is with Google, or with email and password.
Also note what this product is. It is an OpenAI-compatible API serving one open-weight model under the ID uncensored. It is not Google's official Gemma service and not a router to other vendors. If you want Google's own free allowances, check their current terms on their site, since those change and we cannot speak for them.
One more point on the word free. Some pages advertise a free API and then cap you at a handful of requests, or require a card on file that bills later. Here the rules are plain: the trial is a fixed amount, it expires, and nothing is charged automatically. If you do nothing after the trial, nothing happens.
What $0.50 of trial credit buys
The price is $0.15 per 1M input tokens and $0.50 per 1M output tokens. Half a dollar sounds small, but tokens are cheap at these rates. Here is the math for a typical chat turn with 2,000 input tokens (system prompt plus history) and 500 output tokens.
- Input: 2,000 / 1,000,000 x $0.15 = $0.0003
- Output: 500 / 1,000,000 x $0.50 = $0.00025
- One turn: $0.0003 + $0.00025 = $0.00055
- Trial: $0.50 / $0.00055 is about 909 turns
So the trial covers roughly 900 exchanges of that size. That is enough to wire up a client, test your prompts, run a small batch evaluation and decide whether the output style fits your project.
Long prompts eat the trial faster. A request with 50,000 input tokens and 2,000 output tokens costs $0.0075 + $0.001 = $0.0085, so the trial covers about 58 of them. Use the pricing page to model your own numbers.
Trial limits you should plan around
| Trial key | Full key | |
|---|---|---|
| Concurrent requests | 2 | 8 |
| Requests per minute | 60 | 300 |
| Card needed | No | Only if you top up |
| Validity | 7 days | Credit never expires |
Two concurrent requests is the limit that bites first. A streamed request keeps its slot until the stream ends, so a chat UI with two open streams uses the whole allowance. Over the limit you get HTTP 429 with the error code concurrency. Over 60 requests in a minute returns rate_limited. In both cases, back off briefly and retry.
The same 429 status also appears on temporary overload, with a Retry-After: 5 header. A retry loop that honours that header handles all three cases:
import os, time
from openai import OpenAI, RateLimitError
client = OpenAI(
base_url="https://api.gemmaapi.cc/v1",
api_key=os.environ["API_KEY"],
)
def ask(prompt, tries=4):
for attempt in range(tries):
try:
r = client.chat.completions.create(
model="uncensored",
messages=[{"role": "user", "content": prompt}],
)
return r.choices[0].message.content
except RateLimitError:
time.sleep(5 * (attempt + 1))
raise RuntimeError("still rate limited")
print(ask("Name three uses for a text LLM."))How to claim the trial
- Go to the API key page and sign up with Google or with email and password.
- Press the trial button. The $0.50 appears in your balance at once.
- Copy your key and set the base URL to
https://api.gemmaapi.cc/v1in your client. - Send a request with the model
uncensored. The response headerX-Balance-USDshows what is left.
curl https://api.gemmaapi.cc/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"uncensored","messages":[{"role":"user","content":"Write a two-line poem about rate limits."}],"max_tokens":60}'
Failed or refused requests are not charged, so a bad request will not drain the trial. The docs cover streaming, tools and JSON mode if you want to test those too.
What happens after the trial
When the 7 days or the $0.50 run out, you decide whether to continue. There is no automatic charge, because no card was needed to start. To go on, add prepaid credit. Any whole amount from $20 to $500 works, and larger top-ups come with a bonus.
| Top-up | Bonus | Credit you receive |
|---|---|---|
| $20 | none | $20.00 |
| $50 | +5% | $52.50 |
| $100 | +10% | $110.00 |
| $200 | +15% | $230.00 |
You can pay with crypto (USDT on TRC20, USDC on Base). Credit never expires and there is no subscription, so a quiet month costs nothing.
At the 2,000-in, 500-out turn size from earlier, a $20 top-up covers about 36,000 turns ($20 / $0.00055 is roughly 36,364). That puts the real cost of a small hobby app at a few cents a day.
When a free tier elsewhere is the better fit
Be realistic about your needs. If you only want to experiment with a model occasionally, have no need for an uncensored model, and can live with someone else's rate limits and policies, a provider with a free tier may be enough. Check their current terms before you build on them, because free allowances tend to change.
A paid, prepaid endpoint makes more sense when you need predictable access, a stable OpenAI-compatible interface, a 100,000-token context window, or output that does not stop on content filters for lawful adult use. The ability to use the same key from SillyTavern-style frontends, scripts and your own apps is another reason. There is one fixed rule: no sexual content involving minors.
The trial exists so you can answer that question with data instead of guesses. Spend the $0.50, look at the output, and decide.
A simple plan for the first week
A trial is only useful if you test the right things. Here is a plan that fits inside $0.50 and two concurrent requests.
- Day 1: connectivity. Call
GET /v1/modelsand send one short completion. Confirm the balance header drops by a tiny amount. - Day 1-2: your real prompts. Run ten to twenty of the prompts you actually plan to use, not demo questions. Judge the tone, length and refusal behaviour against what your project needs.
- Day 3: your integration. Switch your app or frontend to the base URL and test streaming. Make sure you close streams so the two slots free up.
- Day 4-5: a small load test. Send a few hundred short requests at a steady pace under 60 per minute. Log the status codes and the cost.
- Day 6-7: decide. Multiply the measured cost per request by your expected traffic. If the monthly figure suits you, top up. If not, you have lost nothing but a few cents of trial credit.
This approach also tells you whether you need the full key limits. If a hobby project never touches 2 concurrent requests, the trial limits mirror what a funded key will feel like for you. If you run a public bot with many users, you will want the 8 concurrent slots of a funded account. The overview of Gemma 4 API options covers how this service fits next to other routes.
More guides
Questions and answers
Is there a free tier with no time limit?
No. There is a one-time trial of $0.50 valid for 7 days, after which usage is paid per token from prepaid credit.
Can I claim the trial more than once?
No. The trial is limited to one claim per person.
Do I have to enter a card to try it?
No. The trial needs no card. You only pay when you decide to top up, with a minimum of $20.
Will the trial credit pay for streaming and tool calls?
Yes. Streaming, tool calling and JSON mode all work on a trial key, within its 2 concurrent requests and 60 requests per minute.
Is the Gemma API from Google free?
That depends on Google's current terms, which we cannot state for them. This service is a separate, independent API and is billed per token.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.