EN ▾
geminiuncensored.ccUncensored API, OpenAI compatible, pay per token
Get API key

First request in five minutes

Drop this uncensored API into your existing OpenAI SDK calls by changing the base URL and key. It is a pay-per-token, text-only endpoint that accepts standard parameters and streaming.

Base URL and Authentication

Replace your standard OpenAI base URL with https://api.geminiuncensored.cc/v1. All requests require a bearer token sent in the Authorization header. You generate this key on the Get API key page by signing in with Google or an email/password combination. The key is displayed immediately upon creation.

Each account is limited to one active key. Generating a new key invalidates the previous one. Ensure your client library is configured to send the Authorization: Bearer <your_key> header with every request to authenticate against the uncensored API.

First Request

Send a standard chat/completions request using your preferred HTTP client. The endpoint accepts JSON payloads and returns generated text. Use the model identifier uncensored in your request body.

The API does not perform embeddings, image generation, or fine-tuning. It is strictly a text-in, text-out endpoint. If you are integrating this into an existing application, verify that your payload structure matches the OpenAI API specification for chat completions.

curl https://api.geminiuncensored.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."}]
  }'

Python SDK

Use the official OpenAI Python library to interact with the API. Initialize the client by pointing it to the uncensored base URL and providing your API key. This allows you to use familiar methods like chat.completions.create without rewriting your integration logic.

Set the model parameter to uncensored. The SDK handles the serialization of your request body. Note that while the SDK manages the HTTP connection, the API itself does not guarantee automatic retries for transient network errors unless your specific client code implements them.

from openai import OpenAI

client = OpenAI(base_url="https://api.geminiuncensored.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)

Node SDK

Install the @anthropic-ai/sdk or the official OpenAI Node library. Both are compatible with the OpenAI-compatible protocol used here. Configure the client with the custom base URL and your API key.

Call the completions endpoint with model: 'uncensored'. The library will format the request according to the API specification. Remember that this is a single-model endpoint; you cannot switch models within the same API key context.

import OpenAI from "openai";

const client = new OpenAI({ baseURL: "https://api.geminiuncensored.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);

Streaming Responses

Enable streaming by setting stream: true in your request. The API returns Server-Sent Events (SSE) chunks. Each chunk contains partial text updates.

The final chunk of the stream includes token usage statistics. This allows you to track input and output token counts in real-time without making a separate request. Use this data to monitor your prepaid credit consumption accurately.

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)

Limits, Errors, and Context Window

The API enforces strict limits: 300 requests per minute per key, 8 concurrent requests, and an 8 MB request body. The context window is 100,000 tokens total, with no separate output cap (if max_tokens is unset, the response can run to the end of the window).

Common errors include 401 for invalid keys, 402 for insufficient prepaid credit, and 429 for rate limits. Errors and refusals do not consume credit. If you receive a 429, implement exponential backoff in your client code to avoid further throttling.

Questions and answers

Does the API support image or audio generation?

No. This is a text-only API. It serves one uncensored large language model for text generation. It does not support embeddings, image generation, audio, or video.

How does token pricing work with prepaid credit?

You pay $0.15 per 1M input tokens and $0.50 per 1M output tokens. Credit is charged based on actual usage, including errors and refusals which are free. Paid credit never expires.

Can I use multiple API keys per account?

No. Each account is limited to one active API key. If you need a new key, generating it will replace and invalidate the existing key.

Your key is one form away

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

What the API supports

Everything the endpoint can and cannot do, in one place — check it before you top up.

ItemValue
API formatOpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key
API keyBearer token in the Authorization header
Model IDuncensored
Base URLhttps://api.geminiuncensored.cc/v1
MethodsPOST /v1/chat/completions · GET /v1/models
Context window100,000 tokens, input and output combined
Function callingSupported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages
SSE streamingSupported (stream: true), usage included at the end
Sampling parameterstemperature, top_p, stop, seed, presence_penalty, frequency_penalty
Structured outputresponse_format: {"type": "json_object"}
Completion lengthup to the rest of the 100,000-token window; max_tokens optional (no separate cap)
HeadersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Concurrencyup to 8 in parallel per key
Request sizeup to 8 MB per request
Requests per minute300 requests per minute per key
Top-upcrypto: USDT on TRON or USDC on Base, $20–$500, any whole sum
Credit expiryno monthly fee; paid credit does not expire
Free trial$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% from $50, +10% from $100, +15% from $200
Priceinput $0.15 / 1M tokens, output $0.50 / 1M tokens
How you paypay as you go from prepaid credit; nothing is charged for failed or refused requests
Contentuncensored for adults; the only hard rule: no sexual content involving minors
Key managementone key per account, regenerate any time (the old one stops working)
AccountGoogle or e-mail and password

Error codes

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

HTTPTypeWhat to do
400bad_requestmalformed request or too long for the context window
401missing_key · invalid_key · key_revokedno key, wrong key, or a key replaced by a newer one
402no_creditout of credit; add credit and retry
403content_blockedsexual content involving minors — refused, not billed
404not_foundunknown endpoint
413request_too_largebody over 8 MB
429rate_limited · concurrencyslow down: rate or parallel limit reached
503upstream_busymodel busy — retry in a few seconds