EN ▾
NSFW WriterUncensored API. No Refusals. Pay Per Use.Get API key

https://api.nsfwwriter.top/v12026

nsfwwriter.top

No Filter AI Writer: Uncensored Text Generation API

A no filter writer is a model that does not refuse or soften fiction for lawful adult use. Here is what that means in practice, where the limits are and how to build one in an afternoon.

Stack of pages filling from a terminal, representing automated long-form fiction drafting through an API

What a no filter AI writer means

The phrase no filter ai writer describes a text model that writes the scene you asked for instead of declining, hedging or rewriting it into something milder. For novelists, it matters when the story has violence, grief, cruelty, crime or adult relationships and the tool keeps interrupting with warnings. Fiction needs villains who act like villains, and a model that cannot write them produces flat books.

It helps to be exact about the claim. The model behind this API is a single open-weight model, run by an independent provider and tuned to answer without content refusals for lawful adult use. It is not the official API of any big vendor and not a router across several. It does not have no limits. Sexual content involving minors is blocked as a hard limit, and the service is for lawful adult use only. Inside those bounds, it treats you as an adult writer.

Also be realistic about what a model does. It will not make your plot good. It drafts quickly, you edit hard, and the better your outline and style notes, the better the draft.

Three ways to use one

As a drafting partner in a chat window

Any client that supports a custom OpenAI-compatible endpoint can talk to this API, so you can write conversationally: paste a scene, ask for a rewrite from another character's point of view, ask for ten alternative openings. You get a flexible tool and no code.

As a script that drafts chapter by chapter

If you write long projects, a script does the repetitive work: it sends the outline, the style notes and a summary of earlier chapters, then saves each result to a file. The next sections build this.

As the writing engine inside a product

Interactive fiction apps, story generators and companion apps call the same endpoint from a back end. See the page on the NSFW writer API for that angle. Because the API is OpenAI-compatible, existing code usually needs only a changed base URL and key.

A chapter-by-chapter writer in Python

You will need a key from the key page and the OpenAI SDK (pip install openai). The script reads a plain outline file with one line per chapter, keeps a running summary, and writes each chapter to disk.

from openai import OpenAI

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

STYLE = (
    "Literary crime fiction, close third person, past tense. "
    "Short paragraphs, concrete detail, dry humour. "
    "Do not summarise the plot; write the scene."
)

outline = [line.strip() for line in open("outline.txt") if line.strip()]
summary = "The story has not started yet."

def ask(system, user, max_tokens):
    r = client.chat.completions.create(
        model="uncensored",
        messages=[
            {"role": "system", "content": system},
            {"role": "user", "content": user},
        ],
        temperature=0.85,
        max_tokens=max_tokens,
    )
    return r.choices[0].message.content

for i, beat in enumerate(outline, start=1):
    chapter = ask(
        STYLE,
        "Story so far:\n" + summary + "\n\nWrite chapter " + str(i)
        + " (about 2500 words). What happens: " + beat,
        4500,
    )
    with open("chapter_%02d.txt" % i, "w") as f:
        f.write(chapter)
    summary = ask(
        "You write tight story summaries.",
        "Update this summary with the new chapter, max 300 words.\n\nOld summary:\n"
        + summary + "\n\nNew chapter:\n" + chapter,
        500,
    )
    print("done chapter", i)

Two design choices matter. The summary is rewritten after each chapter, so the prompt stays a few thousand tokens however long the book gets. And the style block is a system message, so every chapter is written to the same instructions instead of drifting.

Prompting for better fiction

A no filter model gives you freedom, and freedom exposes weak prompts. These habits help more than any parameter.

  • Give scene goals, not plot summaries. "Mara wants the ledger, Dov wants her to leave without it, and neither says so" produces tension. "They argue about the ledger" produces an argument.
  • Ban what you dislike by naming what you want. Instead of "no clichés", write "plain verbs, no stock phrases for emotion, one surprising detail per page".
  • Control length with words, then cap with tokens. Ask for about 2,500 words, and set max_tokens a bit above what that needs. English prose runs about 1.3 tokens per word, so 2,500 words is near 3,300 tokens. A cap of 4,500 leaves room without allowing runaway output.
  • Edit in a second pass. Send a draft back with a narrow instruction such as "cut every adverb that repeats the verb" or "tighten dialogue, keep the meaning". Narrow edits beat a general "improve this".
  • Vary temperature on purpose. Use 0.8 to 1.0 for drafting and around 0.3 for summaries and consistency checks.

JSON mode (response_format: {"type":"json_object"}) is handy for structured jobs, such as asking for a character sheet or a list of continuity errors, which your script can then parse.

What it costs to draft a book

Prices are $0.15 per 1M input tokens and $0.50 per 1M output tokens. Take one chapter of about 3,000 words, a little under 4,000 tokens. Use 3,000 prompt tokens (style, summary, beat) and 4,000 output tokens.

  • Input: 3,000 / 1,000,000 x $0.15 = $0.00045
  • Output: 4,000 / 1,000,000 x $0.50 = $0.002
  • Chapter total: $0.00245

The summary step adds roughly 4,500 input tokens (old summary plus chapter) and 400 output tokens: 4,500 / 1,000,000 x $0.15 = $0.000675 and 400 / 1,000,000 x $0.50 = $0.0002, together $0.000875. So one chapter with its summary costs $0.00245 + $0.000875 = $0.003325.

A 30 chapter draft is 30 x $0.003325 = $0.09975, about $0.10. Even if you regenerate every chapter three times while experimenting, that is still around $0.30. Prose is output heavy, so the output price of $0.50 per 1M tokens dominates, unlike in chat apps.

Credit is prepaid and never expires, with no subscription, and failed or refused requests are not charged. Top-ups run from $20 to $500 in whole dollars, with +5% from $50, +10% from $100 and +15% from $200, paid in crypto only: USDT on TRC20 or USDC on Base. The pricing page lists it all. New users can test with a $0.50 trial claimed in one click on the key page; it is valid for 7 days, needs no payment details and is one per person.

A continuity pass with JSON mode

Long drafts drift. A character's eye colour changes, a dead man phones his brother, a scar moves to the other arm. A cheap second pass catches many of these. Send the finished chapter plus a fact sheet and ask for a list of conflicts in JSON, which your script can read without guessing at free text.

import json
from openai import OpenAI

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

def check(chapter, facts):
    r = client.chat.completions.create(
        model="uncensored",
        messages=[
            {"role": "system", "content": "You are a continuity editor. Reply with a JSON object: {\"conflicts\": [{\"quote\": str, \"problem\": str}]}. Return an empty list if none."},
            {"role": "user", "content": "FACTS:\n" + facts + "\n\nCHAPTER:\n" + chapter},
        ],
        response_format={"type": "json_object"},
        temperature=0.2,
    )
    return json.loads(r.choices[0].message.content)["conflicts"]

Treat the output as a list of suspects, not a verdict. Models sometimes flag things that are fine and miss subtle slips, so you still read the chapter. The value is that you start from a short list instead of a blank page. Run it at a low temperature, since you want consistent judgment, not creativity.

The same pattern fits other editorial jobs: extracting a cast list, tagging scenes by point of view, or producing a one-line synopsis for each chapter that you can paste into your outline. Each of these costs a fraction of a cent, because the chapter is input and the answer is short. For example, a 4,000 token chapter plus a 500 token fact sheet is 4,500 input tokens, which is 4,500 / 1,000,000 x $0.15 = $0.000675, and a 200 token JSON reply adds 200 / 1,000,000 x $0.50 = $0.0001.

Limits to plan around

  • Context: 100,000 tokens for prompt plus completion. You can paste a whole outline and a long style guide, but a full manuscript will not fit once it grows past roughly 70,000 words.
  • Rate: a full key allows 8 concurrent requests and 300 requests per minute; the trial key allows 2 and 60. Drafting chapters in parallel is fine up to those numbers. A 429 with code concurrency means too many at once, rate_limited means too many per minute, and a Retry-After: 5 header means wait five seconds.
  • Text only: no images, audio, embeddings or fine-tuning. Cover art needs another tool.
  • Privacy: prompts are not used for training, so your unpublished manuscript is not fed back into a model.

You can check usage after any call. The response header X-Balance-USD shows remaining credit, and X-Request-Id is the value to quote if you contact support. For parameters like stop, seed and penalties, see the integration guide.

Questions and answers

Does a no filter writer have any limits?

Yes. Sexual content involving minors is blocked as a hard limit, and the service is for lawful adult use only. Within those bounds the model is tuned not to refuse fiction.

Which model ID do I send?

Send uncensored with the base URL https://api.nsfwwriter.top/v1 and your key as a Bearer token.

How long can a single response be?

The completion can use whatever is left of the 100,000 token window after your prompt. In practice, chapter sized requests of a few thousand tokens work well.

Will my manuscript be used for training?

No. Prompts are not used for training.

How can I try it cheaply?

Claim the one-click $0.50 trial on the key page after sign-up. At the chapter cost above it covers well over a hundred chapters.

Your key is one form away

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

Get API keyRead the docs