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.
| Parameter | Details |
|---|---|
| API format | OpenAI Chat Completions schema; official openai SDKs work unchanged |
| Base URL | https://api.nsfwgemini.cc/v1 |
| Authentication | Authorization: Bearer YOUR_KEY |
| Model | uncensored |
| Endpoints | POST /v1/chat/completions · GET /v1/models |
| Structured output | JSON object mode via response_format json_object |
| SSE streaming | Supported (stream: true), usage included at the end |
| Max context | 100,000 tokens, input and output combined |
| Other parameters | temperature, top_p, stop, seed and the two penalties are passed through |
| Completion length | up to the rest of the 100,000-token window; max_tokens optional (no separate cap) |
| Tools / tool calls | Supported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages |
| Rate limit | 300/min per key |
| Concurrency | up to 8 in parallel per key |
| Response headers | X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency |
| Max body | up 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 |
| Payment | crypto: 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 pay | pay as you go from prepaid credit; nothing is charged for failed or refused requests |
| Subscription | paid credit never expires, no subscription |
| Keys | one active key per account; a new key replaces the old one |
| Account | sign in with Google or with e-mail + password |
| Content policy | adult content allowed; sexual content involving minors is refused |
Error reference
The type field is stable, the message is for humans. Errors cost nothing.
| Code | Type | Meaning |
|---|---|---|
400 | bad_request | malformed request or too long for the context window |
401 | missing_key · invalid_key · key_revoked | no key, wrong key, or a key replaced by a newer one |
402 | no_credit | balance is empty — top up, requests resume at once |
403 | content_blocked | sexual content involving minors — refused, not billed |
404 | not_found | unknown endpoint |
413 | request_too_large | body over 8 MB |
429 | rate_limited · concurrency | over 300/min or 8 parallel — back off and retry |
503 | upstream_busy | model 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