EN ▾
Get API key

Switch your client in three lines

Migrate your Gemini or OpenAI clients to our uncensored API in minutes using standard OpenAI-compatible endpoints. This guide covers authentication, request formats, and handling responses without content refusals.

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)

Technical reference

The numbers below are the real limits of this API, not marketing. Compare them with what your app needs.

ItemValue
API formatOpenAI Chat Completions schema; official openai SDKs work unchanged
Modeluncensored
API keyAuthorization: Bearer YOUR_KEY
EndpointsPOST /v1/chat/completions · GET /v1/models
Base URLhttps://api.geminiuncensored.top/v1
Max context100,000 tokens (prompt + completion together)
Function callingSupported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages
JSON moderesponse_format: {"type": "json_object"}
Completion lengthup to the rest of the 100,000-token window; max_tokens optional (no separate cap)
SSE streamingSupported (stream: true), usage included at the end
Other parameterstemperature, top_p, stop, seed, presence_penalty, frequency_penalty
Request sizeup to 8 MB per request
Response headersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Concurrencyup to 8 in parallel per key
Rate limit300/min per key
PaymentUSDT (TRC20) or USDC (Base), any whole amount from $20 to $500
Credit expirypaid credit never expires, no subscription
Trial credit$0.50 for 7 days, no card · Trial key: 2 parallel requests, 60 req/min; full limits (8 and 300) after first top-up
Priceinput $0.15 / 1M tokens, output $0.50 / 1M tokens
Bonus credit+5% on $50+, +10% on $100+, +15% on $200+
How you paypay as you go from prepaid credit; nothing is charged for failed or refused requests
Key managementone key per account, regenerate any time (the old one stops working)
Sign-insign in with Google or with e-mail + password
Contentuncensored for adults; the only hard rule: no sexual content involving minors

Errors and what to do

Every error is JSON with a type you can switch on. You are never charged for an error.

StatusTypeReason
400bad_requestinvalid JSON, empty messages, bad parameter, or a prompt longer than the window — fix and resend
401missing_key · invalid_key · key_revokedno key, wrong key, or a key replaced by a newer one
402no_creditbalance is empty — top up, requests resume at once
403content_blockedrefused by the content policy
404not_foundunknown endpoint
413request_too_largerequest body larger than 8 MB
429rate_limited · concurrencyover 300/min or 8 parallel — back off and retry
503upstream_busytemporary overload, retry shortly

Questions and answers

Is this the official Gemini API?

No, this is an independent service. We offer a drop-in alternative that uses the same OpenAI-compatible interface but serves our own uncensored model with ID uncensored. We do not resell Google's model.

How do I top up my credit?

Top-ups are accepted via crypto only: USDT (TRC20) or USDC (Base). Minimum top-up is $20, and amounts of $50+ receive a bonus. There are no credit card or PayPal options.

What content is refused?

The model is uncensored for adult, fictional, and controversial topics. The only hard limit is sexual content involving minors, which is always refused. All other lawful content is allowed.

Your key is one form away

Create an account, copy the key, change the base URL. That is the whole setup.