EN ▾

NSFW TTS API: How It Works, Text vs Voice

People who search nsfw tts api how it works usually want to know who produces the words and who produces the sound. These are two separate services, and the API on this site handles only the first one: it writes text.

Updated

Two linked machines: one produces speech bubbles, the other sound rings, showing text and voice as separate stages

Key points

  1. A voice app is two stages: a text model writes the script, a speech engine turns it into audio.
  2. This API is the first stage only. It is OpenAI-compatible, text-only, and does not generate audio.
  3. The model is tuned to answer without content refusals for lawful adult use. Minors are never allowed.
  4. Pick the speech engine on voice quality, licensing and consent, and treat it as a separate purchase.

The short answer in a table

The phrase has two readings, and mixing them up is the most common source of confusion. Here they are side by side.

StageWhat happensInputOutputCovered by this API
1. ScriptA language model writes the wordsA prompt and chat historyTextYes
2. VoiceA speech engine reads the wordsText, plus voice settingsAudioNo

If you were hoping for one endpoint that takes a prompt and returns an audio file, this service is not that. It is a hosted, OpenAI-compatible chat endpoint with model ID uncensored. You send messages, it returns text. What you do with the text next, including turning it into speech, is a separate step with a separate provider.

That honesty up front saves time. The rest of this article explains why the split exists, what each stage needs, and how to wire them together.

Two meanings of the term

When one person says "TTS API" they mean a service that converts text to speech. When another person adds the word NSFW, they usually mean one of two things: a voice generator that does not block adult material in the text it is asked to read, or a whole app that produces adult-themed spoken content from a short prompt. The first is a property of a speech engine. The second is a product built from two engines.

In the second case, someone has to write the content. A speech engine only reads what it is given, so a prompt like "tell me a story about a haunted ship" has to go through a language model before any sound is made. If that language model refuses or waters down the request, the voice has nothing good to read. That is the gap a text model without content refusals fills. The model here is one open-weight model, run by an independent provider, tuned to answer without refusals for lawful adult use.

It is worth being specific about what that does not mean. The service is not the official API of Meta, Mistral, Qwen, DeepSeek, OpenAI or any other vendor. It is not a router that forwards your request to one of them. It is also bound by one hard rule: no sexual content involving minors, with no exceptions and no settings to change it.

How the pipeline works, step by step

Stage 1: the script

Your app builds a list of messages: a system message that defines the character or the narration style, then the user's input and recent history. It posts them to POST /v1/chat/completions. The reply is plain text, either all at once or streamed over Server-Sent Events when you set stream: true. The context window is 100,000 tokens for prompt plus completion, which is enough to keep a long character sheet and a long conversation in view.

Stage 2: the voice

Your app passes the text to a speech engine. That might be a local program, a model you host yourself, or a hosted voice service. The engine decides the voice, accent, pace and audio format. Some accept markup to control pauses and emphasis; others take only plain text. This is where sound quality is decided, and it is not something an LLM endpoint can influence.

Stage 3: delivery

The audio goes wherever it is needed: a game client, a chat app, a file for download, a phone-like interface for a companion character. Latency here comes from the sum of the first two stages, so apps that feel responsive usually stream text and start speech on the first complete sentence.

The minimal code for stage 1 is short. This is the same request in curl:

curl https://api.nsfwtts.cc/v1/chat/completions \
  -H "Authorization: Bearer $NSFWTTS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "uncensored",
    "messages": [
      {"role": "system", "content": "You write narration to be read aloud. Plain sentences, no markdown."},
      {"role": "user", "content": "Narrate a lantern being lit in an abandoned lighthouse. Under 60 words."}
    ]
  }'

And in Python with the OpenAI SDK, followed by the hand-off point for stage 2:

from openai import OpenAI

client = OpenAI(base_url="https://api.nsfwtts.cc/v1", api_key="YOUR_KEY")

script = client.chat.completions.create(
    model="uncensored",
    messages=[
        {"role": "system", "content": "Write for the ear: short sentences, no markdown."},
        {"role": "user", "content": "Narrate a lantern being lit in an abandoned lighthouse. Under 60 words."},
    ],
).choices[0].message.content

# Stage 2 is yours: hand `script` to any speech engine and save or play the audio.
print(script)

Anything that already speaks the OpenAI format works after you change the base URL and the key. The docs list the supported parameters: temperature, top_p, stop, seed, the penalties, JSON mode and tool calling.

What the text stage is good at

A language model is useful for the parts of a voice product that are about content rather than sound. A few examples show where it earns its place:

  • Character dialogue. A system prompt defines who is speaking, and the model keeps the voice consistent across a long scene.
  • Narration and fiction. Interactive stories, audio drama drafts and ambient scene descriptions, written to a word limit.
  • Script formatting. JSON mode returns a list of lines with a speaker field, ready to send to different voices.
  • Direction. Tool calling lets the model choose a voice, pace or mood for each line by calling a function you define.

It is not good at things outside text. It does not hear audio, cannot clone a voice, will not produce images or embeddings, and cannot be fine-tuned on this service. If your project needs any of those, plan for another component. For a longer walk through the workflow side, the page on a text LLM API for TTS pipelines goes into the design.

How to choose the voice side

Since the voice is not included, it helps to know what to compare when you pick an engine. Prices and policies change, so check each provider's current pricing and terms instead of relying on a blog post, including this one.

  1. Content policy. Read what the provider allows. Some engines reject text they consider adult. A text model with no refusals does not help if the speech engine then refuses to read the output.
  2. Voice rights and consent. Use voices the provider has licensed for your use. Do not clone a real person's voice without their clear consent. For fictional characters, a stock or self-made voice avoids the question entirely.
  3. Latency and streaming. If your app is conversational, you want an engine that starts audio after the first sentence, not after the whole text.
  4. Control. Check whether it accepts pause and emphasis markup, and whether it handles numbers, names and made-up words sensibly.
  5. Where it runs. A local engine keeps all text on your machine and has no per-character bill. A hosted one is usually easier and may sound better. The trade-off is yours to make.
  6. Cost per minute of audio. Estimate it, as it will probably be larger than your text cost.

The text model you pair it with should be able to adapt to the engine. If an engine mishandles long sentences, change the system prompt to ask for shorter ones. That is a one-line fix on the text side and costs nothing.

What the text stage costs

The text stage is billed per token from prepaid credit: $0.15 per 1M input tokens and $0.50 per 1M output tokens. There is no subscription, failed or refused requests are not charged, and credit never expires. For a rough size, English text runs at about 1.3 tokens per word, so a 60-word narration is around 80 tokens.

A realistic job: a 300-token prompt (system message plus the user's request) and a 500-token script of roughly 380 words.

  • Input: 300 x $0.15 / 1,000,000 = $0.000045
  • Output: 500 x $0.50 / 1,000,000 = $0.00025
  • Total: $0.000295 per script, so 1,000 scripts cost $0.295

The spoken audio for the same 380 words lasts a couple of minutes, and that is where most of your budget will go if the voice engine bills by character or minute. Top-ups are any whole amount from $20 to $500, with +5% from $50, +10% from $100 and +15% from $200. This site takes USDT on TRC20 or USDC on Base. See the pricing page for the current terms.

To try it, sign up with Google or with an email and password, then claim the $0.50 trial credit with one click on the key page. It lasts 7 days and needs no payment. The trial key runs at 2 concurrent requests and 60 per minute, which is plenty for a prototype.

Limits and rules worth knowing

A full key allows 8 concurrent requests and 300 per minute, with a body limit of 8 MB. Over a limit, the API replies with HTTP 429 and the code rate_limited or concurrency. A short overload also gives 429 with a Retry-After: 5 header. Streamed requests hold their concurrency slot until the stream ends, so a voice app that reads the stream slowly should buffer it.

Prompts are not used for training. The service is intended for lawful adult use, and the minors rule is absolute. If you run a public app on top, you are responsible for age checks, labelling and the rules of the platforms you publish on. The model removes refusals; it does not remove your obligations.

Questions and answers

Does an NSFW TTS API produce audio?

It depends on the product. The API on this site is text-only and produces the script. A separate speech engine is needed to turn that script into audio.

Is this the official API of a well-known model maker?

No. It serves one open-weight model, run by an independent provider. It is not an official API of any vendor and does not route between vendors.

Can I use it from any OpenAI client?

Yes. Change the base URL to https://api.nsfwtts.cc/v1, use your key as the Bearer token, and set the model to uncensored.

What is not allowed?

Sexual content involving minors is never allowed. Everything else is limited to lawful adult use.

Your key is one form away

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