First request in five minutes
Migrate your existing client code to our uncensored API by updating the base URL and API key. This guide covers the standard endpoints, streaming, and JSON modes used by most OpenAI-compatible libraries.
Authentication & Base URL
To use the uncensored gemini alternative, you need a valid API key. Generate one on the Get API key page via Google or email. Your base URL is https://api.uncensoredgemini.cc/v1. This allows you to keep your existing OpenAI SDK clients and simply point them to our host.
Pass the key in the Authorization: Bearer <key> header. If the key is missing or invalid, you will receive a 401 error. Ensure your prepaid credit is active; otherwise, requests may fail (status code varies). There is no subscription fee—credit is charged only for real token usage.
Chat Completions Endpoint
The core endpoint is POST /v1/chat/completions. It accepts standard chat messages and returns text. The model ID to use is "uncensored". This is an open-weight model, not GPT, Claude, or Gemini.
The context window supports 100,000 tokens total (input + output). There is no separate output cap (if max_tokens is omitted, the response can run to the end of the window). Streaming via SSE is supported, with token usage reported in the final chunk.
- Input: Messages array with role and content.
- Output: Generated text and usage statistics.
Start with a basic synchronous request to verify connectivity.
curl https://api.uncensoredgemini.cc/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."}]
}'
Streaming Responses (SSE)
Enable streaming by setting "stream": true in your request body. The server sends Server-Sent Events (SSE) as tokens are generated. This is ideal for real-time UI updates.
The final chunk contains the full token usage statistics. Streaming does not change the pricing model; you still pay per token based on the total input and output. Errors during streaming may result in partial text being received.
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)
JSON Mode & Function Calling
Use "response_format": {"type": "json_object"} to force JSON output. This is useful for structured data extraction or API responses. Function calling (tools) is also supported via the standard tools and tool_choice parameters.
The model will attempt to follow the schema provided in the tool definitions. If the output is not valid JSON, the request still counts toward your token usage. There is no fine-tuning or embedding endpoint available; this is a text-only API.
from openai import OpenAI
client = OpenAI(base_url="https://api.uncensoredgemini.cc/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)
Parameters: Temperature, Top P, Stop
Control generation with standard parameters: temperature, top_p, stop, seed, presence_penalty, and frequency_penalty. These allow you to adjust creativity, deterministic output, and termination conditions.
For example, set "stop": ["\nUser:"] to halt generation before a specific prompt. The model does not have hard content refusals for lawful adult topics, though sexual content involving minors is always blocked. Adjust parameters to fine-tune the style of the uncensored output.
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.uncensoredgemini.cc/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);
Rate Limits & Constraints
Each API key is limited to 300 requests per minute and 8 concurrent requests. The maximum request body size is 8 MB. If you exceed these limits, you will receive a 429 error. Errors and refusals are free but may still count against your rate limit depending on the server state.
Paid credit never expires. If you run out of credit, requests will fail (status code varies). Top up with USDT (TRC20) or USDC (Base) via the dashboard. There is no card or PayPal option. New accounts receive $0.50 in trial credit valid for 7 days. Claim this credit with one click on your API key page.
What the API supports
A quick checklist for developers: format, limits, features, billing.
| Item | Value |
|---|---|
| API format | OpenAI Chat Completions schema; official openai SDKs work unchanged |
| API key | Bearer token in the Authorization header |
| Model | uncensored |
| Methods | POST /v1/chat/completions · GET /v1/models |
| Base URL | https://api.uncensoredgemini.cc/v1 |
| Structured output | JSON object mode via response_format json_object |
| Max output | prompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap |
| Function calling | Yes — tools, tool_choice; replies carry tool_calls, also when streaming; send results back as role: tool |
| Max context | 100,000 tokens (prompt + completion together) |
| Streaming | Yes — server-sent events; the last chunk carries token usage |
| Sampling parameters | temperature, top_p, stop, seed and the two penalties are passed through |
| Headers | X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency |
| Concurrency | 8 requests at the same time per key |
| Request size | up to 8 MB per request |
| Requests per minute | 300 requests per minute per key |
| 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+ |
| Token prices | input $0.15 / 1M tokens, output $0.50 / 1M tokens |
| Billing | prepaid credit, charged by real token usage; errors and refusals are free |
| Top-up | crypto: USDT on TRON or USDC on Base, $20–$500, any whole sum |
| Subscription | paid credit never expires, no subscription |
| Account | Google or e-mail and password |
| Content policy | uncensored for adults; the only hard rule: no sexual content involving minors |
| Key management | one key per account, regenerate any time (the old one stops working) |
HTTP errors
Errors come back as JSON with a stable type; failed and refused requests are not billed.
| Status | Type | Reason |
|---|---|---|
400 | bad_request | malformed request or too long for the context window |
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 | body over 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
Is this the official Gemini API?
No. We are an independent provider running our own uncensored open-weight model. We are compatible with the Gemini API structure but do not serve Google's model. Check Google's documentation for their specific prices and limits.
Do errors consume my credit?
No. Errors and refusals are free and do not consume your prepaid credit. However, they may still count against your rate limits.
What is the maximum output length?
There is no separate output cap per request. If you do not set max_tokens, the response can run to the end of the window. The total context window is 100,000 tokens.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.