Quickstart for Gemini users
Replace your existing API endpoint with three lines of configuration to run our uncensored model. This guide covers the essential integrations for Python, Node.js, and streaming clients.
Base URL and Authentication
Our API follows the standard OpenAI chat-completions interface. To switch your client, update the base URL and provide your API key from the dashboard. You only need one active key per account; generating a new key invalidates the previous one. All requests are authenticated via the Authorization: Bearer header. This ensures your existing client code works without modification, provided you point it to the correct endpoint.
First Request
Send a simple chat completion request to verify connectivity. Replace YOUR_API_KEY with your actual key. The response returns a standard chat object. If you receive a 401 error, check your key. A 402 error indicates insufficient prepaid credit. Errors do not consume tokens, so you can retry safely.
curl https://api.geminiuncensored.com/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "uncensored",
"messages": [{"role": "user", "content": "Write a blunt product review of a cheap VPN."}]
}'
This endpoint supports streaming, JSON mode, and function calling. The model id is always uncensored.
Python Integration Example
Use the official openai Python package. Set the base_url to our endpoint and configure the API key. This works with any OpenAI-compatible SDK. You can adjust parameters like temperature or max_tokens as needed. If you do not set max_tokens, the response can run to the end of the window.
from openai import OpenAI
client = OpenAI(base_url="https://api.geminiuncensored.com/v1", api_key="YOUR_KEY")
resp = client.chat.completions.create(
model="uncensored",
messages=[{"role": "user", "content": "Summarise this thread without softening it."}],
)
print(resp.choices[0].message.content)
Ensure you install the latest SDK version for full feature support.
Node.js Integration Example
The Node.js SDK works identically. Initialize the client with the correct base URL and key. Pass your prompt in the messages array. This approach keeps your integration lightweight. You do not need to manage HTTP headers manually. The SDK handles serialization and error parsing.
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.geminiuncensored.com/v1", apiKey: process.env.API_KEY });
const resp = await client.chat.completions.create({
model: "uncensored",
messages: [{ role: "user", content: "Draft a villain monologue for my game." }],
});
console.log(resp.choices[0].message.content);
Verify the response structure matches your expectations before processing further.
Streaming Responses with SSE
Enable streaming by setting stream: true. The server sends Server-Sent Events (SSE). Token usage is reported in the final chunk. This reduces perceived latency for long responses. Handle partial responses carefully to ensure complete content.
stream = client.chat.completions.create(
model="uncensored",
messages=[{"role": "user", "content": "Tell the story in second person."}],
stream=True,
)
for chunk in stream:
if chunk.choices and chunk.choices[0].delta.content:
print(chunk.choices[0].delta.content, end="", flush=True)
Streaming consumes the same tokens as non-streaming requests. Errors during streaming do not charge tokens.
Limits, Errors, and Context
Each key allows 300 requests per minute and 8 concurrent requests. The request body must be under 8 MB. The context window is 100,000 tokens total. There is no separate output cap. Use 401 for invalid keys, 402 for low credit, and 429 for rate limits. These limits ensure fair usage across all users. Credits never expire, so you can top up as needed.
Technical reference
Everything the endpoint can and cannot do, in one place — check it before you top up.
| Feature | Support |
|---|---|
| Protocol | OpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key |
| Base URL | https://api.geminiuncensored.com/v1 |
| Model | uncensored |
| Authentication | Authorization: Bearer YOUR_KEY |
| Methods | POST /v1/chat/completions · GET /v1/models |
| Streaming | Supported (stream: true), usage included at the end |
| Context window | 100,000 tokens, input and output combined |
| Sampling parameters | temperature, top_p, stop, seed, presence_penalty, frequency_penalty |
| Function calling | Yes — tools, tool_choice; replies carry tool_calls, also when streaming; send results back as role: tool |
| JSON mode | response_format: {"type": "json_object"} |
| Completion length | prompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap |
| Headers | X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency |
| Request size | 8 MB request body |
| Requests per minute | 300 requests per minute per key |
| Parallel requests | up to 8 in parallel per key |
| Price | input $0.15 / 1M tokens, output $0.50 / 1M tokens |
| Credit expiry | paid credit never expires, no subscription |
| Billing | pay as you go from prepaid credit; nothing is charged for failed or refused requests |
| Trial credit | $0.50 of credit valid 7 days, no card needed · Trial key: 2 parallel requests, 60 req/min; full limits (8 and 300) after first top-up |
| Bonus credit | +5% on $50+, +10% on $100+, +15% on $200+ |
| Payment | crypto: USDT on TRON or USDC on Base, $20–$500, any whole sum |
| Content policy | uncensored for adults; the only hard rule: no sexual content involving minors |
| Sign-in | sign in with Google or with e-mail + password |
| Key management | one key per account, regenerate any time (the old one stops working) |
Error codes
Every error is JSON with a type you can switch on. You are never charged for an error.
| Code | Type | Meaning |
|---|---|---|
400 | bad_request | invalid JSON, empty messages, bad parameter, or a prompt longer than the window — fix and resend |
401 | missing_key · invalid_key · key_revoked | check the Authorization header or use your current key |
402 | no_credit | out of credit; add credit and retry |
403 | content_blocked | refused by the content policy |
404 | not_found | only /v1/chat/completions and /v1/models exist |
413 | request_too_large | request body larger than 8 MB |
429 | rate_limited · concurrency | over 300/min or 8 parallel — back off and retry |
503 | upstream_busy | model busy — retry in a few seconds |
Questions and answers
Does the trial credit expire?
Yes, the $0.50 trial credit is valid for 7 days after account creation. Claim this credit with one click on your API key page. Regular prepaid credits do not expire, even if you do not use them immediately.
How do I top up my credit?
You can top up using USDT (TRC20) or USDC (Base). Minimum top-up is $20, and maximum is $500. We do not accept credit cards, PayPal, or bank transfers.
Is this the official Gemini API?
No, this is an independent service. We use an open-weight uncensored model served via an OpenAI-compatible interface. It is not affiliated with Google or any other model vendor.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.