EN ▾

Integrate the Uncensored NSFW Chatbot API

Start sending requests to the uncensored LLM API in minutes using the standard OpenAI-compatible endpoints. This guide covers authentication, parameters, streaming, and limits for building your NSFW chatbot integration.

Get API key

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.

Under the hood: specs

One table with every limit, feature and price that applies to your key.

ParameterDetails
CompatibilityOpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key
API keyAuthorization: Bearer YOUR_KEY
Base URLhttps://api.nsfwchatbot.cc/v1
MethodsPOST /v1/chat/completions · GET /v1/models
Modeluncensored
Tools / tool callsSupported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages
Context window100,000 tokens (prompt + completion together)
Max outputup to the rest of the 100,000-token window; max_tokens optional (no separate cap)
Structured outputJSON object mode via response_format json_object
Other parameterstemperature, top_p, stop, seed and the two penalties are passed through
SSE streamingYes — server-sent events; the last chunk carries token usage
Requests per minute300/min per key
HeadersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Request size8 MB request body
Concurrency8 requests at the same time per key
Top-upcrypto: USDT on TRON or USDC on Base, $20–$500, any whole sum
Subscriptionpaid credit never expires, no subscription
How you payprepaid credit, charged by real token usage; errors and refusals are free
Priceinput $0.15 / 1M tokens, output $0.50 / 1M tokens
Volume bonus+5% from $50, +10% from $100, +15% from $200
Trial credit$0.50 for 7 days, no card · Trial key: 2 parallel requests, 60 req/min; full limits (8 and 300) after first top-up
Key managementone active key per account; a new key replaces the old one
Sign-inGoogle or e-mail and password
Content policyadult content allowed; sexual content involving minors is refused

Error codes

Errors come back as JSON with a stable type; failed and refused requests are not billed.

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_creditbalance is empty — top up, requests resume at once
403content_blockedrefused by the content policy
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

Is this the OpenAI API?

No. We provide an OpenAI-compatible endpoint for our own uncensored model. It is not GPT, Claude, or any other vendor's model. Use the standard OpenAI SDKs but point them to our base URL.

How do I pay for usage?

Credit is prepaid via crypto (USDT on TRC20 or USDC on Base). Minimum top-up is $20. Credit never expires and errors are free. No cards or PayPal are accepted.

What is the context window size?

The total context window is 100,000 tokens, including both prompt and completion. There is no separate output cap per request. If max_tokens is not specified, the response can run to the end of the window.

Your key is one form away

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

Get API key