EN ▾

Integrate the NSFW Chatbot API

Get your uncensored LLM API key and start generating text in minutes with our OpenAI-compatible endpoint. This quickstart covers authentication, basic requests, and streaming with the NSFW Chatbot API.

Base URL and Authentication

The NSFW Chatbot API uses the standard OpenAI-compatible base URL. All requests require an API key passed in the Authorization header. You can generate this key instantly by signing up with Google or an email address. There are no monthly fees or subscriptions; you simply top up with crypto and pay for what you use.

The base URL is https://api.nsfwchatbot.top/v1. To use the official OpenAI SDKs or any compatible client, configure your client to point to this URL and set the API key. The model identifier you must send is uncensored. This model is open-weight and tuned to answer without content refusals for lawful adult use, making it ideal for developers building NSFW chatbot applications.

First Request

Your first step is to send a simple chat completion request. The API accepts standard OpenAI format JSON. You must specify the model as uncensored. The endpoint is POST /v1/chat/completions. Here is a basic cURL example to get you started.

curl https://api.nsfwchatbot.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."}]
  }'

This request sends a prompt and expects a text response. The API will process the tokens and return the generated text. You can adjust parameters like temperature or top_p to control creativity. Remember that the context window is 100,000 tokens total, with no separate output cap.

Python SDK Integration

For Python developers, the official openai package works directly with our API. You just need to override the base URL. This allows you to use familiar methods like chat.completions.create(). This approach minimizes code changes if you are migrating from another provider. However, note that we do not offer embeddings, images, or audio. Our API is strictly for text generation.

from openai import OpenAI

client = OpenAI(base_url="https://api.nsfwchatbot.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)

Set the API key in your environment or pass it directly. The base_url parameter is crucial for routing requests to our servers. You can also pass a custom api_key if you prefer. This setup gives you access to function calling, JSON mode, and streaming capabilities out of the box.

Node.js SDK Integration

Node.js developers can use the openai npm package with similar configuration. Define the base URL and API key in your client initialization. This ensures compatibility with existing codebases. The model ID remains uncensored. You can use standard parameters like messages and stream.

import OpenAI from "openai";

const client = new OpenAI({ baseURL: "https://api.nsfwchatbot.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);

This SDK handles the HTTP requests and response parsing for you. You can integrate it into Express routes or serverless functions easily. Since we use prepaid credit, monitor your usage via the dashboard. Errors do not consume credit, which helps keep costs predictable. The API supports up to 300 requests per minute per key.

Streaming Responses

For real-time user experiences, enable streaming by setting stream: true. The API returns data as Server-Sent Events (SSE). Each chunk contains a partial response. The final chunk includes the token usage statistics. This allows you to display text as it is generated, improving perceived latency.

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)

Handle the stream in your client code to accumulate tokens. This is essential for chatbot interfaces where users expect instant feedback. The model supports streaming for all request types. You can still use parameters like stop sequences or max_tokens while streaming. Just ensure your client properly closes the stream connection after the final chunk.

Limits, Errors, and Context

Understand the limits to avoid service interruptions. You are allowed 300 requests per minute and 8 concurrent requests per key. The request body must not exceed 8 MB. If you send an invalid API key, you will receive a 401 error. If you have no credit, you get a 402 error. Rate limits trigger a 429 error. These errors do not consume your prepaid credit.

The context window is 100,000 tokens for prompt and completion combined. If you do not set max_tokens, the response can run to the end of the window. Errors and refusals are free. This structure ensures you only pay for successful completions. Manage your keys carefully, as replacing a key invalidates the old one immediately.

Questions and answers

How does billing work?

You pay only for tokens used. Input tokens cost $0.15 per 1M, and output tokens cost $0.50 per 1M. Errors and refusals do not charge you. Credit is topped up via crypto and never expires.

What crypto payment methods are accepted?

We accept USDT (TRC20) and USDC (Base). Minimum top-up is $20, maximum is $500. You receive a +5% bonus for $50+, +10% for $100+, and +15% for $200+. No cards or PayPal are accepted.

Is the model truly uncensored?

Yes, the model does not refuse lawful adult, fictional, or controversial topics. It is not GPT or Claude. The only hard limit is no sexual content involving minors, which is always refused.

Your key is one form away

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

Get API key

Technical specifications

Everything the endpoint can and cannot do, in one place — check it before you top up.

ItemValue
CompatibilityOpenAI Chat Completions schema; official openai SDKs work unchanged
EndpointsPOST /v1/chat/completions · GET /v1/models
Modeluncensored
AuthenticationAuthorization: Bearer YOUR_KEY
Base URLhttps://api.nsfwchatbot.top/v1
Completion lengthprompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap
StreamingYes — server-sent events; the last chunk carries token usage
Function callingSupported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages
Max context100,000 tokens, input and output combined
JSON modeJSON object mode via response_format json_object
Other parameterstemperature, top_p, stop, seed, presence_penalty, frequency_penalty
Request size8 MB request body
Rate limit300 requests per minute per key
HeadersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Parallel requests8 requests at the same time per key
Paymentcrypto: USDT on TRON or USDC on Base, $20–$500, any whole sum
Volume bonus+5% on $50+, +10% on $100+, +15% on $200+
Token pricesinput $0.15 / 1M tokens, output $0.50 / 1M tokens
How you paypay as you go from prepaid credit; nothing is charged for failed or refused requests
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
Subscriptionno monthly fee; paid credit does not expire
Key managementone key per account, regenerate any time (the old one stops working)
Content policyuncensored for adults; the only hard rule: no sexual content involving minors
AccountGoogle or e-mail and password

Errors and what to do

The type field is stable, the message is for humans. Errors cost nothing.

HTTPTypeWhat to do
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_creditout of credit; add credit and retry
403content_blockedrefused by the content policy
404not_foundunknown endpoint
413request_too_largebody over 8 MB
429rate_limited · concurrencyslow down: rate or parallel limit reached
503upstream_busytemporary overload, retry shortly