GuidesDec 1, 2026Ghost research

SillyTavern API provider setup: connect SillyTavern to Ghost in five fields

SillyTavern talks to any OpenAI-compatible server. Here are the five fields that connect it to Ghost, the models that hold up over long stories, and an honest note on what Ghost's policy allows.

  • SillyTavern's own docs describe this route: switch to Chat Completion, select Custom (OpenAI-compatible), then enter the endpoint URL and API key.1
  • In our test on a real SillyTavern server, it listed all 19 models the API serves (16 of them are on the Models page) and answered in character.
  • For long character work, start with Qwen 3.8 27B Queen, a creative tune at $0.20 per million input tokens and $1 per million output tokens.
  • For stories that need a huge memory, GLM 5.3 Uncensored and GLM 5.3 Flash Uncensored have a 1M token context window.
  • Ghost prohibits sexual content of any kind on every model, including between adults. Dark, violent and frightening fiction that is not sexual is in scope.4

To set up Ghost as your SillyTavern API provider, choose the Chat Completion API, set the source to Custom (OpenAI-compatible), enter https://api.thesapientdirective.com/v1 as the endpoint, paste your Ghost key, and pick a model from the list SillyTavern loads. That is five fields, and we tested this exact setup against Ghost's production API on November 30, 2026. Ghost suits long adventure, drama, horror and dark fiction, but its policy prohibits sexual content, so it is not a provider for erotic roleplay.

The five fields

Get a key first, on the API page or from the Connect page, which makes one and shows these settings for you. Then open SillyTavern's API Connections panel (the plug icon) and fill in:

FieldValue
APIChat Completion
Chat Completion SourceCustom (OpenAI-compatible)
Custom Endpointhttps://api.thesapientdirective.com/v1
API KeyYour Ghost key (starts with ak_)
ModelPick from the list, for example qwen3-8-27b-queen

Click Connect. SillyTavern asks Ghost's /v1/models endpoint for the list, so the Model dropdown fills with every model your key can call.2 SillyTavern's docs say the model field becomes a dropdown when the server exposes /v1/models, and a text box when it does not. They also suggest the Test Message button to confirm the connection.1

Two details from SillyTavern's docs save most first-time errors: the endpoint should end in /v1, and you should not add /chat/completions to it.1

Best models on Ghost for long roleplay and storytelling

Long roleplay is a hard test for a model. It has to hold a character's voice for hundreds of turns, remember what happened fifty messages ago, and keep a dark scene dark without breaking into a lecture. These are the Ghost models we would start with:

ModelAPI idContextInput per 1MOutput per 1MWhy
Qwen 3.8 27B Queenqwen3-8-27b-queen256K$0.20$1A creative tune, built for prose and character voice
GLM 5.3 Uncensoredglm-5-3-uncensored1M$3$5The largest window and a 753B model, for epic campaigns
GLM 5.3 Flash Uncensoredglm-5-3-flash-uncensored1M$0.20$0.80The same 1M window at a low price
Ghost X2ghost-x2256K$0.20$0.80A strong, cheap all-rounder

A practical pattern is to write most scenes on Qwen 3.8 27B Queen and switch to GLM 5.3 Uncensored when a campaign's history no longer fits, or when you want the bigger model for a pivotal chapter. The Qwen 3.8 27B Queen page and GLM 5.3 Uncensored page have more on each. Messages to GLM 5.3 are screened before they are sent, and every reply on Ghost gets a child-safety check.4

What Ghost is for, and what it is not

Ghost's models are abliterated or uncensored builds, so they do not soften a villain, cut away from a fight, or refuse a horror premise because it is disturbing. That makes them a good fit for:

  • Adventure and fantasy campaigns with real stakes and real violence in the story
  • Drama with cruelty, grief, addiction or betrayal written plainly
  • Horror that is meant to frighten
  • Crime, war and thriller fiction with morally dark characters

What Ghost does not do is sexual content. Its Content Policy prohibits sexual content of any kind on every model, including between adults, and anything sexual involving minors is a hard block reported to NCMEC.4 If you use SillyTavern for erotic roleplay, Ghost is the wrong provider and we would rather say so up front. If your stories are dark but not sexual, it fits. For more on what the terms mean, see what uncensored AI is.

Keeping long chats affordable

SillyTavern sends the character card, your persona, any lorebook entries and the chat history with every message. That is how the model remembers, and it also means each new turn costs more input tokens than the last. Ghost's own plans page makes the same point: long threads use allowance faster because each message resends the full conversation.5

Some quick math on the API: a turn that sends 20,000 tokens of history and gets 400 tokens back costs about $0.0044 on Qwen 3.8 27B Queen, and about $0.062 on GLM 5.3 Uncensored. The API is pay per token, credits never expire and reloads start at $5.3

Three settings keep costs sane:

  • Set SillyTavern's context size to what you need, not the model's maximum. 32K tokens of history is plenty for most scenes.
  • Use summaries or lorebook entries for old events, so the history you resend stays short.
  • Keep the response length setting reasonable. Very long replies cost output tokens and tend to drift.

If you also want to chat with Ghost in the browser, the Pro plan is $20 a month, and the Free plan gives you 3 messages to try it without a card.

When something goes wrong

  • The model list is empty: check that the endpoint ends in /v1 with nothing after it, and that the key was pasted whole.
  • 401 Unauthorized: the key is wrong or was deleted. Make a new one on the API page.
  • HTTP 402 with api_balance_empty: your API balance ran out. Reload from $5 and continue.3
  • Context length errors: lower SillyTavern's context size below the model's window, or switch to a GLM 5.3 model with 1M tokens.
  • A reply stops at a policy line: Ghost's content policy applies on every model. Steer the scene away from sexual content and continue.

FAQ

What is the best API for SillyTavern?

It depends on what you write. For long non-sexual roleplay, look for a large context window, a model tuned for prose, and fair per-token pricing. On Ghost, that means Qwen 3.8 27B Queen for most scenes and GLM 5.3 Uncensored when you need 1M tokens of memory.

Does Ghost allow NSFW roleplay in SillyTavern?

No. Ghost's content policy prohibits sexual content of any kind, including between adults. It does allow dark, violent and frightening fiction that is not sexual.

Do I need a plan to use Ghost in SillyTavern?

No. SillyTavern uses the API, which is pay per token with reloads from $5. Credits never expire.

Why do I need the Custom source instead of OpenAI?

The OpenAI source talks to OpenAI's own servers. Custom (OpenAI-compatible) lets you enter Ghost's endpoint, which speaks the same format.

Sources

  1. SillyTavern docs: OpenAI and custom OpenAI-compatible endpoints
  2. Ghost API docs
  3. Ghost API: models, prices and billing
  4. Ghost Content Policy
  5. Ghost plans and limits

Authors

Ghost research. Written by the Ghost team at The Sapient Directive. Ghost prices and model details are checked against the live Models page; if they ever differ, that page is right.

Keep reading