Switch your client in three lines
Drop your existing chat client into our API and get uncensored outputs with a 100k context window. This guide covers authentication, request formats, streaming, and critical limits for building NSFW roleplay bots.
Authentication and Base URL
Our API uses standard OpenAI-compatible authentication. You receive a single API key upon signup. Use https://api.gemininsfw.top/v1 as your base URL. Send your key in the Authorization header as a Bearer token. No special headers are required. The model ID you must send is uncensored. This is an open-weight model tuned for fewer refusals on lawful adult content. It is not GPT-4, Gemini, or any other vendor's model. Your prompts are not used for training. You can sign up with Google or email. The key appears immediately after creation.
First Request
Send a standard chat completion request. The endpoint is POST /v1/chat/completions. Set the model to uncensored. Include your messages array. The API returns text output. Errors do not consume credit. Refusals do not consume credit. Only successful token generation is charged. The price is $0.15 per 1M input tokens and $0.50 per 1M output tokens. You can pay with crypto or use the trial credit. Below is a basic curl example.
Python SDK Integration
Use the official OpenAI Python SDK. Configure the base URL to point to our server. Set the API key. Pass the model name uncensored. This works with any client that supports OpenAI compatibility. You can stream responses or get full text. The SDK handles JSON serialization. Ensure your library version supports the parameters you need. Streaming is recommended for long roleplay sessions to reduce latency. The context window is 100k tokens total. There is no separate output cap.
Node.js SDK Usage
The Node.js client works identically. Set the base URL and API key. Request the uncensored model. You can use async/await patterns. Function calling is supported. JSON mode is available. Streaming returns server-sent events. The request body must be under 8 MB. You can make 300 requests per minute. Only 8 requests can run concurrently per key. If you exceed limits, you get a 429 error. These errors do not cost credit. The trial credit lasts 7 days. No card is needed for signup.
Streaming Responses
Enable streaming by setting stream: true. The API returns Server-Sent Events (SSE). Each chunk contains partial text. The final chunk includes token usage statistics. This is useful for real-time chat interfaces. It reduces perceived latency. You can stop streaming early if needed. The model does not refuse lawful adult content. It handles deep roleplay memory well. The 100k context window allows long conversations. Set the max tokens to control output length. If not specified, the response can run to the end of the window.
Limits, Errors, and Context
The context window is 100,000 tokens combined. Output can run to the end of the window. Request body limit is 8 MB. Rate limit is 300 requests per minute. Concurrent limit is 8 requests. Error 401 means invalid key. Error 402 means no credit. Error 429 means rate limit exceeded. Errors are free. Credit never expires. You can top up with USDT or USDC. Minimum top-up is $20. Bonus credit is available for larger amounts. No card needed. No monthly fees. One key per account. Refunds are not issued for credit.
cURL
curl https://api.gemininsfw.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."}]
}'Python
from openai import OpenAI
client = OpenAI(base_url="https://api.gemininsfw.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)Node.js
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.gemininsfw.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
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)API facts in one table
Before you integrate, here is exactly what you get with a key.
| Spec | Value |
|---|---|
| Protocol | OpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key |
| Model ID | uncensored |
| Base URL | https://api.gemininsfw.top/v1 |
| Authentication | Authorization: Bearer YOUR_KEY |
| Methods | POST /v1/chat/completions · GET /v1/models |
| Other parameters | temperature, top_p, stop, seed and the two penalties are passed through |
| SSE streaming | Yes — server-sent events; the last chunk carries token usage |
| Max context | 100,000 tokens, input and output combined |
| Structured output | response_format: {"type": "json_object"} |
| Tools / tool calls | Supported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages |
| Max output | up to the rest of the 100,000-token window; max_tokens optional (no separate cap) |
| Headers | X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency |
| Max body | up to 8 MB per request |
| Concurrency | up to 8 in parallel per key |
| Requests per minute | 300 requests per minute per key |
| 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 |
| Price | input $0.15 / 1M tokens, output $0.50 / 1M tokens |
| Subscription | no monthly fee; paid credit does not expire |
| How you pay | pay as you go from prepaid credit; nothing is charged for failed or refused requests |
| Bonus credit | +5% on $50+, +10% on $100+, +15% on $200+ |
| Top-up | crypto: USDT on TRON or USDC on Base, $20–$500, any whole sum |
| Key management | one key per account, regenerate any time (the old one stops working) |
| Content policy | adult content allowed; sexual content involving minors is refused |
| Account | Google or e-mail and password |
Errors and what to do
Every error is JSON with a type you can switch on. You are never charged for an error.
| 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 | balance is empty — top up, requests resume at once |
403 | content_blocked | refused by the content policy |
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 | model busy — retry in a few seconds |
Questions and answers
Is this the official Gemini API?
No. This is an independent API using an open-weight uncensored model. It is compatible with OpenAI clients but is not Google's Gemini. It does not use the same infrastructure or model weights.
What happens if I get a 429 error?
You have exceeded the rate limit of 300 requests per minute or 8 concurrent requests. No credit is charged for 429 errors. Wait a few seconds and retry. Consider reducing your request frequency or using streaming.
Do I need a credit card to start?
No. You can sign up with Google or email. You get $0.50 in trial credit valid for 7 days. Claim this credit with one click on your API key page. No card is required. You can add more credit later using USDT or USDC.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.