Get your key

Uncensored OpenAI-compatible API

Google Gemini API Free: Limits and a Pay-Per-Token Option

Google has offered a free tier for its Gemini API, and you can start with the google gemini api free of charge, but check its current terms. A free tier is built for testing, not for production. This page explains what to check in the quotas, when to move off them, and what a prepaid pay-per-token alternative looks like.

Last updated

A small sample tray of tokens running low next to a metered pipeline, contrasting a free tier with pay-per-token

What a free tier really gives you

A free tier of an LLM API lets you call a model without a payment method, inside limits. The usual limits are requests per minute, requests per day and tokens per minute, and the numbers differ by model. We do not list Google's figures because they change often and an outdated number sends you down the wrong path. Open Google's current rate-limit and pricing pages for the model you plan to use and write the numbers down.

Two other things deserve a read in the terms. First, whether free-tier prompts may be used to improve the vendor's products, which matters if your inputs contain customer or private text. Second, which regions and which models the free tier covers. Both are easy to miss and costly to discover late.

Signs you have outgrown the free tier

  • You see quota or rate-limit errors in logs during normal traffic, not only in tests.
  • A batch job takes hours because you must wait for a daily reset.
  • You need predictable latency under load for paying users.
  • Your prompts include data you would rather not have reviewed or reused.
  • You need a model that does not refuse lawful adult requests, such as mature fiction, and your current one declines them.

Any one of these is reason enough to price a paid option. The good news is that moving is cheap if you wrote your code against an OpenAI-style client from the start.

The pay-per-token alternative

This site runs an independent, hosted, OpenAI-compatible API. It is not Google's Gemini API and not a Google product. It serves one open-weight model, ID uncensored, operated by an independent provider and tuned to answer without content refusals for lawful adult use. There is a hard limit: no sexual content involving minors.

  • Price: $0.15 per 1M input tokens and $0.50 per 1M output tokens.
  • Billing: prepaid credit, no subscription, credit never expires.
  • Context: 100,000 tokens for prompt plus completion.
  • Features: streaming, tool calling, JSON mode.
  • Not included: image, audio or video input or output, embeddings, fine-tuning.

That last line matters. If you rely on a multimodal model, a text-only endpoint is not a replacement for that part of your product.

How far does the trial go

New users can claim $0.50 of trial credit on the API key page with one click after sign-up. It lasts 7 days, needs no card, and is one per person. Sign-up uses Google or an email and password.

What does $0.50 buy at $0.15 and $0.50 per 1M? Take a typical mix of 5M input tokens for every 1M output tokens, which costs 5 x 0.15 + 1 x 0.50 = $1.25. The trial covers 0.4 of that block: 2M input and 0.4M output tokens (0.30 + 0.20 = $0.50). That is enough for thousands of short test requests. If a request averages 800 input and 300 output tokens, it costs 0.0008 x 0.15 + 0.0003 x 0.50 = $0.00027, so the trial covers roughly 1,850 of them.

The trial key has its own limits: 2 concurrent requests and 60 requests per minute. A full key allows 8 and 300.

Designing around quotas, whatever you choose

A quota is a fact of every API, free or paid. Three patterns keep your product running when a limit is near.

Queue the work

Put requests in a queue and let a fixed number of workers drain it. A burst of users becomes a short wait instead of a wall of errors. Size the workers to the concurrency limit: 8 on a full key here.

Cache repeated prompts

If the same prompt appears often, such as a standard summary of a fixed document, store the answer. A cache is the cheapest request you will ever make.

import hashlib
from openai import OpenAI

client = OpenAI(base_url="https://api.googlegeminiuncensored.com/v1", api_key="YOUR_KEY")
cache = {}

def ask(prompt):
    key = hashlib.sha256(prompt.encode()).hexdigest()
    if key in cache:
        return cache[key]
    resp = client.chat.completions.create(
        model="uncensored",
        messages=[{"role": "user", "content": prompt}],
        temperature=0,
    )
    cache[key] = resp.choices[0].message.content
    return cache[key]

print(ask("Define latency in one sentence."))
print(ask("Define latency in one sentence."))  # served from cache

Back off on 429

On this API an over-limit request returns HTTP 429, with the code rate_limited or concurrency, and temporary overload adds a Retry-After: 5 header. Wait that long, add a little random jitter, and retry a few times. Never loop without a cap.

Switching a script from a free-tier setup

If your code calls Google through an OpenAI-style client, switching means changing the base URL, the key and the model name. If it uses Google's own SDK, you will rewrite the request code; the chat-completions shape is simple enough that this is usually a short job.

from openai import OpenAI

client = OpenAI(base_url="https://api.googlegeminiuncensored.com/v1", api_key="YOUR_KEY")

resp = client.chat.completions.create(
    model="uncensored",
    messages=[
        {"role": "system", "content": "Answer in two sentences."},
        {"role": "user", "content": "What is a rate limit?"},
    ],
)
print(resp.choices[0].message.content)
print(resp.usage)

The same call with curl:

curl https://api.googlegeminiuncensored.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "uncensored", "messages": [{"role": "user", "content": "What is a rate limit?"}]}'

The response headers include X-Balance-USD, X-RateLimit-Limit-Requests and X-RateLimit-Limit-Concurrency. On a limit you get HTTP 429 with the code rate_limited or concurrency, and a Retry-After: 5 header on temporary overload. Failed or refused requests are not charged.

When paid beats free

Free is cheapest in dollars and often dearest in time. Count the cost of your own hours: a retry system for quota errors, a daily-reset scheduler, workarounds for a model that declines your content. A few hours of engineering usually cost more than a month of token spend.

For scale, take a product that uses 50M input and 10M output tokens a month. On this API that is 50 x 0.15 + 10 x 0.50 = $7.50 + $5.00 = $12.50. If a free quota forces you to throttle, queue and babysit that same workload, the monthly dollar saving is small next to the time spent. Run your own numbers before you decide, and use the $0.50 trial to confirm your token counts first.

The reverse also holds. If your usage is occasional and a free tier covers it with room to spare, there is no reason to move. Free tiers are a fair fit for prototypes, class projects and personal tools.

Paying: what to expect

Top-ups are any whole amount from $20 to $500, with +5% from $50, +10% from $100 and +15% from $200. Payment is crypto only: USDT on TRC20 or USDC on Base. If your team cannot pay in crypto, a paid plan from a vendor with other payment methods may suit you better, and that is a fair reason to choose it.

A $20 top-up covers 16 of the 5M-input, 1M-output blocks above, which is 80M input and 16M output tokens. Compare that with the cost on any other provider by running the same token counts through its current pricing. The pricing page has the full rate card, the docs cover the API, and the uncensored AI developer's guide explains when an unfiltered model is a good choice.

FAQ

Is the Google Gemini API really free?

Google offers a free tier with usage limits for testing. Check Google's current pricing and rate-limit pages for the exact quotas and terms, since they change.

Is this site affiliated with Google?

No. It is an independent OpenAI-compatible service running a different model.

What does the trial include?

$0.50 of credit, claimed with one click on the API key page after sign-up. It is valid for 7 days, needs no card, and is one per person.

Does it support images or audio?

No. This API is text only.

Generate your key

Register, copy the key, update the endpoint URL. Full setup in seconds.

Get your key