Switch your client in three lines
Connect your existing OpenAI-compatible client to uncensoredgemini.top in three lines. Swap the base URL, inject your API key, and start sending requests.
Authentication Setup
To begin, retrieve your uncensored api key from the dashboard. The authentication mechanism mirrors the OpenAI standard: you pass the key in the Authorization header using the Bearer scheme. No special headers or query parameters are required. Your key grants access to the single hosted model. Keep it secure, as it acts as your sole credential for billing and rate limiting. You can regenerate it if compromised, but note that a new key replaces the old one immediately.
Basic Chat Completion Request
Send a standard POST request to the chat completions endpoint. The base URL is https://api.uncensoredgemini.top/v1. Specify the model ID as uncensored. This works with any OpenAI-compatible SDK by simply updating the base URL configuration. The API returns text responses based on your prompt. There are no embeddings or vision capabilities; this is a text-only interface. Configure your client to point to this base URL and inject your key.
curl https://api.uncensoredgemini.top/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."}]
}'
Below is a Python example using the official openai SDK. Initialize the client with your base URL and key. Then call chat.completions.create() with the model ID uncensored. This approach requires zero code changes if you are already using OpenAI-compatible clients. It simply routes your requests to our uncensored inference engine.
from openai import OpenAI
client = OpenAI(base_url="https://api.uncensoredgemini.top/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)
Streaming Responses
For lower latency and real-time token display, enable streaming. Set stream=True in your request. The API returns a Server-Sent Events (SSE) stream. Each chunk contains partial text. The final chunk includes the complete token usage statistics. This is ideal for chat interfaces that need to show tokens as they are generated. Ensure your client handles the stream correctly to avoid memory leaks or incomplete reads.
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 & Structured Outputs
Enforce structured responses by setting response_format to {"type": "json_object"}. The model will output strictly valid JSON. This is useful for parsing data, generating config files, or feeding outputs into downstream applications. If the model fails to produce valid JSON, it may repeat or hallucinate. Always validate the output on the client side. Temperature and top-p parameters influence the strictness of the JSON generation.
Function Calling Tools
Define tools in the tools parameter. The model can invoke these functions based on the prompt context. Pass tool_choice to control invocation behavior. This follows the standard OpenAI tool calling schema. You provide the function definitions, and the model returns tool calls in the response. You then execute the function on your side and feed the result back into the conversation. This enables complex agentic workflows without custom parsing logic.
Rate Limits & Constraints
Your uncensored api key is limited to 300 requests per minute. You can have 8 concurrent requests active at any time. The maximum request body size is 8 MB. If you exceed the rate limit, you receive a 429 error. Authentication failures return 401. Insufficient credit returns 402. The context window is 100,000 tokens total, with no separate output cap. If you do not specify max_tokens, the response can run to the end of the window. Errors and refusals do not consume credit.
Node.js
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.uncensoredgemini.top/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);Technical reference
The numbers below are the real limits of this API, not marketing. Compare them with what your app needs.
| Feature | Support |
|---|---|
| API format | OpenAI Chat Completions schema; official openai SDKs work unchanged |
| Endpoints | POST /v1/chat/completions · GET /v1/models |
| Base URL | https://api.uncensoredgemini.top/v1 |
| Model ID | uncensored |
| Authentication | Authorization: Bearer YOUR_KEY |
| Function calling | Yes — tools, tool_choice; replies carry tool_calls, also when streaming; send results back as role: tool |
| Max context | 100,000 tokens, input and output combined |
| Other parameters | temperature, top_p, stop, seed and the two penalties are passed through |
| Streaming | Supported (stream: true), usage included at the end |
| Max output | up to the rest of the 100,000-token window; max_tokens optional (no separate cap) |
| Structured output | JSON object mode via response_format json_object |
| Rate limit | 300/min per key |
| Concurrency | 8 requests at the same time per key |
| Max body | up to 8 MB per request |
| Response headers | X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency |
| Top-up | USDT (TRC20) or USDC (Base), any whole amount from $20 to $500 |
| Billing | pay as you go from prepaid credit; nothing is charged for failed or refused requests |
| Volume bonus | +5% from $50, +10% from $100, +15% from $200 |
| Token prices | $0.15 per 1M input tokens · $0.50 per 1M output tokens |
| 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 |
| Credit expiry | paid credit never expires, no subscription |
| Key management | one active key per account; a new key replaces the old one |
| Content | adult content allowed; sexual content involving minors is refused |
| Sign-in | Google or e-mail and password |
Error reference
Every error is JSON with a type you can switch on. You are never charged for an error.
| HTTP | Type | What to do |
|---|---|---|
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 | body over 8 MB |
429 | rate_limited · concurrency | slow down: rate or parallel limit reached |
503 | upstream_busy | model busy — retry in a few seconds |
Questions and answers
Is this the official Gemini API?
No. We are an independent service hosting our own uncensored model. It is compatible with the OpenAI chat completions interface but uses a different underlying model. Check the vendor's documentation for their specific limits and pricing.
What happens if I run out of credit?
Requests will return a 402 error. Credit never expires, so you can top up anytime. You can pay with USDT (TRC20) or USDC (Base). No card is needed for the initial trial credit.
Do you support image generation?
No. This API is text-only. It handles chat completions, function calling, and streaming text. It does not support images, audio, video, or embeddings.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.