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.
| Item | Value |
|---|---|
| API format | OpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key |
| Authentication | Authorization: Bearer YOUR_KEY |
| Model ID | uncensored |
| Endpoints | POST /v1/chat/completions · GET /v1/models |
| Base URL | https://api.gemininsfw.com/v1 |
| Max output | prompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap |
| Max context | 100,000 tokens, input and output combined |
| Streaming | Supported (stream: true), usage included at the end |
| Structured output | response_format: {"type": "json_object"} |
| Other parameters | temperature, top_p, stop, seed and the two penalties are passed through |
| Tools / tool calls | Supported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages |
| Max body | up to 8 MB per request |
| Concurrency | up to 8 in parallel per key |
| Response headers | X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency |
| Rate limit | 300 requests per minute per key |
| Billing | pay as you go from prepaid credit; nothing is charged for failed or refused requests |
| Token prices | input $0.15 / 1M tokens, output $0.50 / 1M tokens |
| Bonus credit | +5% from $50, +10% from $100, +15% from $200 |
| Payment | USDT (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 expiry | no monthly fee; paid credit does not expire |
| Content policy | uncensored for adults; the only hard rule: no sexual content involving minors |
| Keys | one key per account, regenerate any time (the old one stops working) |
| Account | Google or e-mail and password |
Errors and what to do
The type field is stable, the message is for humans. Errors cost nothing.
| Status | Type | Reason |
|---|---|---|
400 | bad_request | invalid JSON, empty messages, bad parameter, or a prompt longer than the window — fix and resend |
401 | missing_key · invalid_key · key_revoked | check the Authorization header or use your current key |
402 | no_credit | out of credit; add credit and retry |
403 | content_blocked | sexual content involving minors — refused, not billed |
404 | not_found | only /v1/chat/completions and /v1/models exist |
413 | request_too_large | body over 8 MB |
429 | rate_limited · concurrency | slow down: rate or parallel limit reached |
503 | upstream_busy | temporary 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.