NSFW WriterBest LLM for Fiction Writing: What to Look For
Best LLM for Fiction Writing: What to Look For
The best llm for fiction writing is the one that stays in the story, remembers your characters and costs little enough to draft ten versions of a scene. This article gives you criteria you can test yourself and the real token math for a 100,000-word draft.
Updated
Key points
- Test for refusals on your own genre, then for memory over a long session, then for price.
- A 100,000-word novel is roughly 130,000 tokens, which is more than a 100,000-token window, so plan around chapters and a story bible.
- At $0.15 per 1M input and $0.50 per 1M output tokens, a full 100k-word draft costs about 12 cents including context.
- Fiction for lawful adult use is fine; content involving minors is never allowed.


Start with the criteria, not the leaderboard
Searching for the best llm for fiction writing returns a lot of rankings built on exam questions. Those tell you little about whether a model can carry a villain's voice through forty pages. Fiction puts different demands on a model, and you can measure most of them in an afternoon.
Judge a candidate on five things:
- Refusals and softening. Does it write the scene you asked for, or does it lecture, fade to black, or swap in a gentler plot?
- Consistency over length. Does a character who is left-handed in chapter one still reach with the left hand in chapter nine?
- Context window. How much of your story and notes fit in one request?
- Style control. Does it follow a sample of your own prose, or does everything come out in the same smooth register?
- Cost per chapter. Can you afford to regenerate a scene five times without watching a meter?
The rest of this page takes these in turn, with numbers where numbers exist.
Refusals matter more than raw quality
A model that writes a little better but refuses a third of your prompts loses to one that writes well and stays in the scene. Dark themes are normal in fiction: war, crime, grief, abuse survivors, morally grey narrators, villains with a point of view. Mainstream assistants often add warnings, change the ending or decline the request, which breaks the flow of a drafting session.
This API serves one 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 vendors. There is one hard limit: no sexual content involving minors, ever. Beyond that, adult fiction, mature themes and horror are handled as fiction.
To test any model on this axis, write five prompts from your real project, include the scene you are most worried about, and count how many come back usable. Do the same with the hosted API by pointing any OpenAI-compatible client at https://api.nsfwwriter.com/v1 with model uncensored. Failed or refused requests are not charged, so the test costs little.
Context length: why a whole novel will not fit
English prose averages about 1.3 tokens per word, a rough rule of thumb that varies with vocabulary. A 100,000-word novel is therefore around 130,000 tokens. The context window here is 100,000 tokens for prompt and completion together, so the full manuscript does not fit in one request, and neither would it on many other services.
That is less limiting than it sounds. A working novelist does not need the whole book in view. Three layers do the job:
- Story bible (1,000 to 3,000 tokens): characters, setting rules, voice notes, a one-line summary per chapter.
- Rolling summary (500 to 1,500 tokens): what has happened in the last few chapters.
- The scene brief and the last page or two of actual text, so the voice carries over.
With 100,000 tokens available you can also paste the previous ten or so chapters verbatim when a scene depends on small details. Past that point, summarise. Bigger windows help, but disciplined notes give better continuity than dumping everything in.
Token math for a 100,000-word draft
Prices are $0.15 per 1M input tokens and $0.50 per 1M output tokens. Assume a book of 100,000 words, split into about 33 chapters of 3,000 words. At 1.3 tokens per word, each chapter is roughly 4,000 tokens of output.
| Item | Tokens | Cost |
|---|---|---|
| Output, one chapter | 4,000 | 4,000 x $0.50 / 1M = $0.0020 |
| Input, one chapter (bible + summary + recent text + brief) | 10,000 | 10,000 x $0.15 / 1M = $0.0015 |
| One chapter in total | 14,000 | $0.0035 |
| Whole draft, 33 chapters | 462,000 | 33 x $0.0035 = $0.1155 |
So the first draft of an entire novel costs about 12 cents. Drafting each chapter three times and keeping the best brings it to roughly 35 cents. Now compare the lazy approach of resending the whole draft so far with every request. By chapter 20 you have written 19 chapters, about 76,000 tokens, plus 2,000 for notes: 78,000 input tokens, or $0.0117 for that single call. That is still cheap, but around chapter 24 the draft plus the next completion reaches the 100,000-token limit and the approach stops working. Rolling summaries avoid that wall.
Fiction is output-heavy, so the $0.50 rate matters more than the input rate. The pricing page lists top-ups from $20 to $500 with bonus tiers; credit is prepaid and never expires.
Run a fair test in 30 minutes
Set up a repeatable bake-off so you compare models on the same material. Use the same system prompt and the same five scene briefs, and only change the endpoint.
import os
from openai import OpenAI
client = OpenAI(base_url="https://api.nsfwwriter.com/v1",
api_key=os.environ["API_KEY"])
SYSTEM = (
"You are a fiction co-writer. Write in close third person, past tense. "
"Match the voice of the sample. Never summarise; write the scene."
)
def scene(brief, sample, seed=1):
r = client.chat.completions.create(
model="uncensored",
messages=[
{"role": "system", "content": SYSTEM},
{"role": "user", "content": f"VOICE SAMPLE:\n{sample}\n\nSCENE BRIEF:\n{brief}"},
],
temperature=0.9,
top_p=0.95,
seed=seed,
max_tokens=1500,
)
return r.choices[0].message.content
print(scene("Mara finds the lighthouse keeper's logbook missing a page.", "The tide had a habit of lying."))
Score each output from 1 to 5 on voice, continuity, refusal-free completion and prose you would keep. Raise temperature for surprising prose and lower it when the model drifts from your notes. The seed parameter is passed through, which helps you compare two prompt variants fairly. Streaming over SSE is available too, so a writing front end can show text as it arrives. Details are in the documentation.
Structure your project so any model does better
Model choice is half of the result. The other half is how you feed it.
- Keep the bible in JSON. Use JSON mode (
response_formatset tojson_object) to have the model extract new facts from each finished chapter, such as a changed injury, a secret revealed, a promise made. Append them to the bible. - Write beats first. Ask for a bullet list of scene beats, edit it, then ask for prose. Edits to a list are cheaper than edits to 3,000 words.
- Constrain the ending. Tell the model where the scene must stop, so it does not wrap up the whole plot in one chapter.
- Use
stopsequences such as a chapter marker to prevent the model from starting the next one on its own.
If you want to automate a whole pipeline, the article on LLM frameworks like LangChain compares ways to orchestrate multi-step prompts, and free LLM API resources is useful if you are still shopping for places to experiment.
Getting started
New users can claim $0.50 of trial credit with one click on the API key page after signing up with Google or with email and password. No payment is needed, one claim per person, valid for 7 days. At the chapter cost above, $0.50 covers more than 140 chapter drafts ($0.50 / $0.0035 is about 142), which is several full novels' worth of first drafts. Trial keys allow 2 concurrent requests and 60 per minute, which is plenty for one author.
When you top up, payment is by crypto (USDT on TRC20 or USDC on Base) in any whole amount from $20 to $500, with +5% from $50, +10% from $100 and +15% from $200. Prompts are not used for training, which matters when the manuscript is unpublished. The service is text only, so it will not make cover art, audio or video.
More guides
Questions and answers
What is the best LLM for fiction writing?
There is no single winner. Choose the model that follows your genre without refusing, keeps characters consistent across long sessions and fits your budget, then confirm with a five-scene test on your own material.
How many tokens is a 100,000-word novel?
Roughly 130,000 tokens at about 1.3 tokens per word. Exact counts vary with style, so measure a sample chapter.
How much does it cost to draft a novel with this API?
About $0.12 for a first draft of 100,000 words using a story bible and rolling summaries, based on $0.15 per 1M input and $0.50 per 1M output tokens.
Are there content limits for fiction?
The model is tuned to answer without content refusals for lawful adult use. Sexual content involving minors is never allowed.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.