EN ▾

Uncensored API for your scripts

Get API key

https://api.nsfwgemini.cc/v1

First request in five minutes

Get your first response in under five minutes with our uncensored API, designed as a drop-in alternative for scripts that currently target other providers.

Base URL and Authentication

Our API follows the OpenAI chat-completions standard, meaning you can swap your existing base URL without rewriting your logic. Use https://api.nsfwgemini.cc/v1 as your endpoint. Authentication relies on a single API key generated during signup. Pass this key in the Authorization header as a Bearer token. If you are migrating from a mistral api or groq api setup, the header structure remains identical. We do not require phone verification or credit card details for the trial credit, making initial setup nearly instant. Ensure your client library respects the base URL change, as the model identifier remains uncensored for all requests.

Sending Your First Request

Start by verifying connectivity with a simple text prompt. The following curl command sends a basic chat completion request. Replace YOUR_API_KEY with the key issued on your dashboard. The model field must be set to uncensored. This request tests connectivity and ensures your key has sufficient balance. If you receive a JSON response with a content field, your integration is working. This endpoint supports standard parameters like temperature and top_p to control output variability. Use this step to confirm latency before implementing complex logic in your application.

Python SDK Integration

For Python developers, the official openai package works directly with our service. Initialize the client by providing your API key and the custom base URL. The rest of the code structure mirrors standard OpenAI implementations. You can pass messages in the standard roles format (user, assistant). This approach allows you to keep your existing codebase while switching the underlying model provider. It is particularly useful if you previously used a kimi api key or similar service and want to switch to a transparent prepaid model. Ensure you handle potential API errors gracefully, as network issues or rate limits can occur.

Node.js SDK Integration

Node.js users can leverage the official @anthropic-ai/sdk or openai packages by configuring the base URL. Set the baseURL to our endpoint and provide your key. The request structure remains consistent with industry standards. This allows you to maintain compatibility with libraries that expect OpenAI-compatible endpoints. You can send prompts and receive text responses just as you would with any other compliant provider. This flexibility is key for developers who need to swap providers without rewriting their entire request handling logic. Verify that your Node environment supports the required fetch polyfills if using older versions.

Streaming Responses

For applications requiring real-time output, enable streaming by setting stream: true in your request. The API returns a server-sent events (SSE) stream. Each chunk contains partial text updates, allowing for immediate rendering in your UI. The final chunk includes the token usage statistics for billing purposes. This method reduces perceived latency for end-users. Streaming is supported for both uncensored model responses and function calling outputs. Ensure your client code properly handles the end-of-stream event to finalize the response. This feature is essential for chat interfaces and interactive applications where immediate feedback is critical.

Rate Limits, Errors, and Context

Monitor your usage against the defined limits: 300 requests per minute and 8 concurrent requests per key. A 401 error indicates an invalid or expired key, while 402 signals insufficient credit. A 429 response means you have exceeded the rate limit. The context window supports up to 100,000 tokens total, and output can run to the end of the window. If you exceed these limits, your requests will be rejected until the window resets or you add credit. Errors during processing do not consume tokens, ensuring you only pay for successful completions. Keep your request bodies under 8 MB to avoid payload errors.

cURL

curl https://api.nsfwgemini.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

from openai import OpenAI

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

import OpenAI from "openai";

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

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 specifications

If your tool speaks the OpenAI API, these are the details that matter.

ParameterDetails
API formatOpenAI Chat Completions schema; official openai SDKs work unchanged
Base URLhttps://api.nsfwgemini.cc/v1
AuthenticationAuthorization: Bearer YOUR_KEY
Modeluncensored
EndpointsPOST /v1/chat/completions · GET /v1/models
Structured outputJSON object mode via response_format json_object
SSE streamingSupported (stream: true), usage included at the end
Max context100,000 tokens, input and output combined
Other parameterstemperature, top_p, stop, seed and the two penalties are passed through
Completion lengthup to the rest of the 100,000-token window; max_tokens optional (no separate cap)
Tools / tool callsSupported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages
Rate limit300/min per key
Concurrencyup to 8 in parallel per key
Response headersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Max bodyup to 8 MB per request
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
Paymentcrypto: USDT on TRON or USDC on Base, $20–$500, any whole sum
Token prices$0.15 per 1M input tokens · $0.50 per 1M output tokens
Volume bonus+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
Subscriptionpaid credit never expires, no subscription
Keysone active key per account; a new key replaces the old one
Accountsign in with Google or with e-mail + password
Content policyadult content allowed; sexual content involving minors is refused

Error reference

The type field is stable, the message is for humans. Errors cost nothing.

CodeTypeMeaning
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_creditbalance is empty — top up, requests resume at once
403content_blockedsexual content involving minors — refused, not billed
404not_foundunknown endpoint
413request_too_largebody over 8 MB
429rate_limited · concurrencyover 300/min or 8 parallel — back off and retry
503upstream_busymodel busy — retry in a few seconds

Questions and answers

What happens if I exceed the 8 concurrent request limit?

Requests exceeding the 8 concurrent limit will receive a 429 status code. You must wait for an existing request to complete before sending new ones. This limit ensures stable performance for all users sharing the same key.

Do I get charged for failed requests?

No. Token usage is calculated only for successful completions. If a request fails due to an error or timeout, you are not charged for those tokens. This applies to both input and output tokens.

Can I use this API with the standard OpenAI Python package?

Yes. By setting the base URL to https://api.nsfwgemini.cc/v1 and using the model ID uncensored, the standard OpenAI Python package works without modification. This makes migration from other providers straightforward.

Your key is one form away

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

Get API key