Base URL & Authentication
The API operates at https://api.nsfwchatbot.cc/v1. It uses standard Bearer token authentication. You obtain a single API key via the Get API key page, supporting Google or email sign-up. The key must be sent in the Authorization header. Only one key is active per account; generating a new key revokes the previous one. There are no monthly subscriptions—credit is prepaid and never expires.
Ensure your client library points to the base URL above. The model identifier is always uncensored. This is an open-weight model tuned for minimal content refusal, distinct from GPT or Claude. It serves raw text responses without generic guardrails for lawful adult content.
First Request
A basic request mirrors the OpenAI chat-completions endpoint. You specify the model, messages, and optional parameters. The API returns a text response. If you omit max_tokens, the response can run to the end of the window. The context window supports up to 100,000 tokens total for prompt and completion combined.
The following example demonstrates a standard text completion request using curl.
curl https://api.nsfwchatbot.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."}]
}'This returns a JSON object containing the generated text. Errors return standard HTTP status codes with an error object in the body.
Python SDK
Use the official OpenAI Python library, configuring it to point to our base URL. This allows you to leverage existing client code with minimal changes. Pass your API key as the api_key and set base_url to our endpoint. The model name remains uncensored.
Example initialization and completion call:
from openai import OpenAI
client = OpenAI(base_url="https://api.nsfwchatbot.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)This approach works for simple text generation or building chains. Remember that the model is not GPT-4; adjust your prompt engineering accordingly. Streaming is supported via the stream=True parameter, detailed in the next section.
Node SDK
The Node.js OpenAI SDK follows the same configuration pattern. Import the library, set the base URL and API key, and call the completions endpoint. This is ideal for server-side integrations or Node-based chat applications.
Initialization example:
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.nsfwchatbot.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);The response object contains the generated content in response.choices[0].message.content. Ensure you handle errors appropriately, as network issues or invalid keys will throw exceptions. The uncensored model responds to standard system prompts, allowing you to define tone and behavior via the message history.
Streaming Responses
Enable streaming by setting stream: true in your request. The API returns a Server-Sent Events (SSE) stream. Each chunk contains partial text. The final chunk includes the token usage statistics. Streaming reduces perceived latency for users in NSFW chatbot applications.
Example streaming 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)Process the stream by appending each chunk's content to your buffer. Monitor the final chunk for usage data to track costs. Token pricing is $0.15 per million input tokens and $0.50 per million output tokens. Errors and refusals do not incur charges.
Limits, Errors & Context Window
Each API key allows 300 requests per minute and 8 concurrent requests. The request body must be under 8 MB. If the key is invalid, you receive a 401 error. A 402 error indicates insufficient credit. A 429 error signals rate limiting. Context window is 100,000 tokens total. Output can run to the end of the window. Content involving minors is always refused. Credit is prepaid via crypto and never expires. Use these limits to design retry logic and queue management for your uncensored AI API integration.