Base URL and Authentication
Our API is fully OpenAI-compatible, meaning you can use existing SDKs with minimal configuration changes. The base URL for all requests is https://api.geminiuncensored.top/v1. Authentication relies on a single API key, which you generate via the Get API key page using either Google or an email/password combination.
Include your key in the Authorization header as a Bearer token. The system supports standard parameters like temperature, top_p, stop, and seed. If you encounter a 401 error, verify your key is correct; a 402 error indicates insufficient prepaid credit, which can be topped up via USDT (TRC20) or USDC (Base). There are no monthly subscriptions, and credit never expires.
Sending Your First Request
Send a standard chat.completions request to receive text output. The model ID to use is uncensored. This open-weight model is tuned to answer directly without refusals for lawful adult, fictional, or controversial topics. It does not serve as a proxy for GPT, Claude, or Gemini, but it runs the same client code.
Below is a basic cURL example demonstrating a standard completion request:
curl https://api.geminiuncensored.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."}]
}'The response returns the generated text in the choices[0].message.content field. Errors or refusals (e.g., for minor sexual content) do not consume your credit.
Configuring Model Parameters
Control the model's behavior using standard parameters. Set response_format to {"type": "json_object"} for strict JSON output, or use tool_choice for function calling. The context window supports 100,000 tokens total (prompt + completion). If you do not specify max_tokens, the response can run to the end of the window.
Use Python SDK to integrate quickly:
from openai import OpenAI
client = OpenAI(base_url="https://api.geminiuncensored.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)Adjust temperature for creativity or presence_penalty to encourage topic diversity. This API does not support embeddings, image, audio, or video generation.
Streaming Responses
Enable real-time token streaming by setting stream: true. The API returns Server-Sent Events (SSE). Each chunk contains partial text, and the final chunk includes the complete token usage statistics for the request.
Here is how to handle streaming in Node.js:
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.geminiuncensored.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);Streaming is ideal for long outputs or interactive applications. Remember that token usage is only reported in the last chunk, so you must accumulate usage data across all chunks to get accurate billing metrics.
Function Calling & JSON Mode
The API supports structured outputs and tool use. Set response_format to {"type": "json_object"} to force JSON compliance, or define tools for function calling. The model responds with tool calls that you can execute and feed back into subsequent requests.
This capability works identically to the OpenAI standard, allowing you to drop in existing logic for data extraction or structured generation. Ensure your tool definitions follow the standard OpenAI schema for compatibility.
Rate Limits and Quotas
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. You can generate a new key to replace the old one if needed, but only one key is active per account.
Errors do not consume credit, and prepaid credit never expires. For high-volume needs, ensure your client respects the concurrent request limit to avoid throttling. There are no SLA guarantees or uptime certifications.
Streaming
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)