Base URL and Authentication
Our API lives at https://api.nsfwtts.top/v1. It is fully compatible with official OpenAI SDKs and any OpenAI-compatible client. To use it, you need an API key from our dashboard. Sign up via Google or email, and your key appears immediately. No phone number is required. Keep this key secure; it authenticates all requests. When configuring your client, set the base URL to our endpoint and include your key in the Authorization header as a Bearer token.
Every request must include this key. If the key is missing or invalid, you will receive a 401 error. If you have no prepaid credit, you get a 402. We charge only for real token usage; errors and refusals are free. This setup ensures your NSFW prompts flow directly into the model without intermediate filters.
Sending Uncensored Prompts
Start by sending a standard chat completion request. Use the model ID uncensored. This open-weight model is tuned to answer without content refusals for lawful adult use. You can pass your script instructions, character details, or raw text for post-processing. The model accepts parameters like temperature, top_p, and stop to control creativity.
- Set
modeltouncensored. - Provide your
messagesarray with system and user prompts. - Define
max_tokensif needed; if unset, the response can run to the end of the window.
This direct approach ensures your NSFW content passes through the text engine cleanly. Use this endpoint to generate raw script text or refine prompts before they hit your voice synthesis layer.
Python SDK Integration
Use the official OpenAI Python library for easy integration. Point it to our base URL and provide your API key. This allows you to handle responses in Python, process the text, and pass it to your TTS engine. You can adjust parameters like temperature for more creative outputs or seed for reproducibility.
Install the library and configure the client with our specific base URL. This ensures you are talking to our uncensored model, not the standard GPT endpoint. The response will contain the generated text in choices[0].message.content. You can then strip formatting or extract specific segments for your voice pipeline.
Node.js SDK Integration
For JavaScript or TypeScript projects, use the OpenAI Node.js SDK. Configure the base URL to our API endpoint. This is ideal for web-based TTS stacks or server-side script generation. The SDK handles the HTTP requests and parses the JSON response automatically.
Set the apiKey and baseURL in your client initialization. Then call chat.completions.create() with the model uncensored. You can access the generated text from the response object. This method is efficient for integrating uncensored text generation into existing Node.js applications without writing custom fetch logic.
Streaming Responses for Real-Time Scripts
For low-latency TTS pipelines, use Server-Sent Events (SSE) to stream responses. This allows you to process tokens as they are generated, reducing perceived latency. The API streams tokens in chunks, and the final chunk includes the total token usage for billing.
Set stream: true in your request. Iterate over the stream events to collect the text. This is useful for building interactive voice bots or generating long scripts in real-time. The streaming response maintains the uncensored behavior, ensuring your NSFW content is delivered continuously without interruptions.
Limits, Errors, and Context Window
Our API has specific limits to ensure stability. You can make 300 requests per minute per key, with up to 8 concurrent requests. The request body must be under 8 MB. The context window is 100,000 tokens total, with no separate output cap (if max_tokens is unset, the response can run to the end of the window). Errors return standard HTTP codes: 401 for invalid keys, 402 for insufficient credit, and 429 for rate limits. Refusals for minor-related content are hard-coded and do not consume credit. Use these limits to design your TTS stack's retry logic and batching strategies.
cURL
curl https://api.nsfwtts.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.nsfwtts.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.nsfwtts.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)