EN ▾

Uncensored LLM API for Gemini users

Get API key

https://api.gemininsfw.com/v1

gemininsfw.comQuickstart for Gemini NSFW users

Quickstart for Gemini NSFW users

Integrate our uncensored LLM into your application by swapping the base URL and API key. This drop-in replacement for the standard OpenAI SDKs lets you generate text without content filters using the same client code.

Base URL & Authentication

Our API is OpenAI-compatible, meaning you can use the official SDKs or any compatible client library. You only need to update two configuration values: the base_url and the api_key. Your API key is generated immediately upon signup via Google or email. Each account holds one active key; generating a new one replaces the previous key.

Authentication is handled via the Authorization header with the Bearer scheme. If your key is missing or incorrect, the API returns a 401 error. If you have sufficient credits but exceed your rate limit, you will receive a 429 error. Ensure your requests stay within the 8 MB body limit.

Unlike many providers, we do not charge for errors or refusals. You only pay for the tokens actually used in successful completions. Your prepaid credit never expires, and you can top up with USDT (TRC20) or USDC (Base) at any time.

First Request

Send a standard POST request to /v1/chat/completions. The model identifier is uncensored. This endpoint accepts text input and returns text output. It does not support images, audio, or video generation. The model is an open-weight LLM tuned for fewer refusals on lawful adult and controversial topics.

Below is a minimal example using curl to demonstrate the basic structure. Replace YOUR_API_KEY with your actual key.

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

This request returns a completion based on your prompt. You can control the output using parameters like temperature, top_p, stop, and seed. The model will not refuse lawful adult content, except for sexual content involving minors, which is always blocked.

Python SDK Integration

Use the official openai Python package to interact with our API. Initialize the client with your key and the correct base URL. The library handles serialization and response parsing automatically.

from openai import OpenAI

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

This approach works with any OpenAI-compatible client. You can pass a list of messages to the messages parameter. The model responds with a text completion. You can also use the max_tokens parameter to limit output, though if it is not specified, the response can run to the end of the window. There is no separate output cap.

Ensure you handle potential errors such as 402 if your credit balance is zero. Unlike many services, we do not offer a free tier or subscription; you pay strictly for what you use.

Node SDK Integration

The Node.js SDK follows the same pattern. Import the OpenAI class and configure it with your base URL. This allows you to integrate uncensored LLM capabilities into your Node applications with minimal code changes.

import OpenAI from "openai";

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

The response object contains the completion data. You can access the generated text from the choices array. This method is ideal for server-side rendering or API endpoints where you need programmatic control over the generation process.

Remember that each request is charged based on token usage. Input tokens are priced at $0.15 per million, and output tokens at $0.50 per million. Errors are free, so you can experiment with different prompts without financial risk.

Streaming Responses

Enable streaming by setting stream: true in your request. The API returns a Server-Sent Events (SSE) stream. Each chunk contains a partial completion. The final chunk includes the total token usage for the request.

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)

Streaming allows you to display text as it is generated, improving user experience. You can cancel the stream at any time. The model does not guarantee that all generated text is preserved if the stream is interrupted, so handle partial responses appropriately.

Use streaming for long-form content or when you need real-time feedback. The context window supports up to 100,000 tokens for prompt and completion combined. Streaming does not change the context limits or pricing structure.

Context Window & Limits

The context window is 100,000 tokens, including both the prompt and the completion. There is no separate output cap. If you do not specify max_tokens, the response can run to the end of the window. Plan your prompt length accordingly to leave room for the response.

Rate limits are 300 requests per minute and 8 concurrent requests per key. If you exceed these, you will receive a 429 error. Request bodies must not exceed 8 MB. These limits ensure fair usage and stability for all developers.

Function calling, JSON mode, and streaming are supported within these constraints. The API is designed for scalability, allowing you to handle high-volume tasks without complex infrastructure. Always check your token usage to avoid unexpected charges.

Under the hood: specs

Before you integrate, here is exactly what you get with a key.

ItemValue
API formatOpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key
AuthenticationAuthorization: Bearer YOUR_KEY
Model IDuncensored
EndpointsPOST /v1/chat/completions · GET /v1/models
Base URLhttps://api.gemininsfw.com/v1
Max outputprompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap
Max context100,000 tokens, input and output combined
StreamingSupported (stream: true), usage included at the end
Structured outputresponse_format: {"type": "json_object"}
Other parameterstemperature, top_p, stop, seed and the two penalties are passed through
Tools / tool callsSupported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages
Max bodyup to 8 MB per request
Concurrencyup to 8 in parallel per key
Response headersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Rate limit300 requests per minute per key
Billingpay as you go from prepaid credit; nothing is charged for failed or refused requests
Token pricesinput $0.15 / 1M tokens, output $0.50 / 1M tokens
Bonus credit+5% from $50, +10% from $100, +15% from $200
PaymentUSDT (TRC20) or USDC (Base), any whole amount from $20 to $500
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 expiryno monthly fee; paid credit does not expire
Content policyuncensored for adults; the only hard rule: no sexual content involving minors
Keysone key per account, regenerate any time (the old one stops working)
AccountGoogle or e-mail and password

Errors and what to do

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

StatusTypeReason
400bad_requestinvalid JSON, empty messages, bad parameter, or a prompt longer than the window — fix and resend
401missing_key · invalid_key · key_revokedcheck the Authorization header or use your current key
402no_creditout of credit; add credit and retry
403content_blockedsexual content involving minors — refused, not billed
404not_foundonly /v1/chat/completions and /v1/models exist
413request_too_largebody over 8 MB
429rate_limited · concurrencyslow down: rate or parallel limit reached
503upstream_busytemporary overload, retry shortly

Questions and answers

Can I use the same API key for multiple projects?

Yes, one key can be used across multiple projects. However, each account only allows one active key at a time. Generating a new key replaces the old one, so any active sessions using the old key will stop working.

What happens if I run out of credits?

You will receive a 402 error when you try to make a request. You can top up your credit at any time using USDT or USDC. Your existing credit never expires, so you can add funds when convenient.

Is the model the same as Gemini or GPT?

No, the model is an open-weight LLM hosted on our servers. It is not GPT, Claude, Gemini, or any other vendor's model. It is tuned to answer without content refusals for lawful adult use.

Your key is one form away

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

Get API key