EN ▾

NSFW TTS API Quickstart

Integrate our uncensored text model into your NSFW TTS pipeline with this quickstart guide. Use the standard OpenAI-compatible endpoints to generate scripts, captions, or context for your audio workflows.

Authentication

Our API uses standard API key authentication. After signing up via Google or email on the Get API key page, you receive a single active key immediately. This key authenticates all requests to the base URL. You can generate a new key to replace the old one, but only one key is active per account. Keep your key secure, as it provides direct access to your prepaid credit.

The base URL for all requests is https://api.nsfwtts.cc/v1. This endpoint works with any OpenAI-compatible SDK or HTTP client. You do not need a specific client library; standard HTTP headers are sufficient for integration into your NSFW text pipeline.

First Request

Send a POST request to /v1/chat/completions with your API key in the Authorization header. The model ID is uncensored. This model is an open-weight model tuned to answer without content refusals for lawful adult use. It is not GPT, Claude, or any other vendor's model.

Here is a basic example using curl to generate a short script for your TTS engine:

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

Ensure you set the Content-Type to application/json. The response will contain the generated text, which you can then pass to your audio generation tool. Remember that errors and refusals do not consume credit, so you can test freely.

Python SDK Integration

Use the official openai Python library with a custom base URL. This allows you to leverage existing code patterns while using our uncensored model. Initialize the client with your API key and the specific base URL provided by our service.

from openai import OpenAI

client = OpenAI(base_url="https://api.nsfwtts.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 setup ensures compatibility with the OpenAI SDK ecosystem. You can pass system prompts to define the tone of the NSFW content. The model will generate text that is ready for transcription. Adjust the max_tokens parameter to control the length of the generated script, keeping within the 100,000-token window.

Node SDK Integration

For JavaScript or TypeScript projects, use the openai Node package. Set the baseURL to our API endpoint. This approach is ideal for web-based TTS pipelines or server-side generation scripts.

import OpenAI from "openai";

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

Handle the response asynchronously. The text output can be directly fed into your TTS engine. You can also use the temperature parameter to control creativity. Higher values produce more varied scripts, which is useful for generating diverse NSFW content. The model handles context well within the 100,000 token window.

Streaming Responses

Enable streaming by setting stream: true in your request. This returns Server-Sent Events (SSE) for real-time text generation. Streaming is useful for low-latency applications where you want to display text as it is generated.

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)

The final chunk of the stream contains the token usage data. This allows you to track costs accurately in real-time. Streaming does not affect billing; you are charged based on the total tokens generated. Use streaming to provide a smoother user experience in your chatbot or content generation tools.

Limits, Errors, and Context

Your account has a limit of 300 requests per minute and 8 concurrent requests per key. The request body must not exceed 8 MB. If the API key is invalid, you will receive a 401 error. If you have no credit, you will receive a 402 error. Rate limits return a 429 status code.

The context window is 100,000 tokens for prompt and completion combined. There is no separate output cap. If max_tokens is not set, the response can run to the end of the window. Credit is prepaid and never expires. Mistakes like double charges are fixed via the Support page. No card is needed for the trial, but crypto is required for top-ups.

Technical specifications

If your tool speaks the OpenAI API, these are the details that matter.

ItemValue
CompatibilityOpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key
MethodsPOST /v1/chat/completions · GET /v1/models
AuthenticationAuthorization: Bearer YOUR_KEY
Base URLhttps://api.nsfwtts.cc/v1
Model IDuncensored
Max context100,000 tokens (prompt + completion together)
JSON modeJSON object mode via response_format json_object
Tools / tool callsYes — tools, tool_choice; replies carry tool_calls, also when streaming; send results back as role: tool
StreamingSupported (stream: true), usage included at the end
Completion lengthprompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap
Sampling parameterstemperature, top_p, stop, seed and the two penalties are passed through
Concurrency8 requests at the same time per key
Request sizeup to 8 MB per request
Rate limit300 requests per minute per key
HeadersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Paymentcrypto: USDT on TRON or USDC on Base, $20–$500, any whole sum
Price$0.15 per 1M input tokens · $0.50 per 1M output tokens
Credit expirypaid credit never expires, no subscription
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
Volume bonus+5% on $50+, +10% on $100+, +15% on $200+
How you payprepaid credit, charged by real token usage; errors and refusals are free
Key managementone active key per account; a new key replaces the old one
Sign-insign in with Google or with e-mail + password
Content policyuncensored for adults; the only hard rule: no sexual content involving minors

When a request fails

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

CodeTypeMeaning
400bad_requestmalformed request or too long for the context window
401missing_key · invalid_key · key_revokedno key, wrong key, or a key replaced by a newer one
402no_creditout of credit; add credit and retry
403content_blockedsexual content involving minors — refused, not billed
404not_foundonly /v1/chat/completions and /v1/models exist
413request_too_largerequest body larger than 8 MB
429rate_limited · concurrencyslow down: rate or parallel limit reached
503upstream_busytemporary overload, retry shortly

Questions and answers

What is the context window size?

The context window is 100,000 tokens, covering both the input prompt and the generated completion. There is no separate output cap, and if you do not specify a max_tokens value, the response can run to the end of the window.

How does billing work?

You pay only for real token usage. Input tokens cost $0.15 per 1M, and output tokens cost $0.50 per 1M. Errors and refusals are free. Credit is prepaid, never expires, and is topped up via crypto only.

Is the model GPT?

No. The model ID is "uncensored". It is an open-weight model run on our own servers, tuned for lawful adult use. It is not GPT, Claude, Gemini, or any other vendor's model.

Your key is one form away

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