Skip to content

SillyTavern

Last updated: 15 November 2026

To use Inferray in SillyTavern, choose Chat Completion as the API, Custom (OpenAI-compatible) as the source, and enter https://api.inferray.com/v1 with your Inferray API key. SillyTavern then loads the model list from Inferray, and you pick a model from the dropdown.

Before you start

  • Create an API key in the console (see API keys and projects). Keys start with inferray_.
  • Add credit to your balance. Requests are billed per token at the model's price, with no gateway fees; see Pricing.

A Token Plan key works here too.

Connect the API

  1. Open the API Connections panel.
  2. Set the API to Chat Completion.
  3. Set Chat Completion Source to Custom (OpenAI-compatible).
  4. Fill in the connection:
FieldWhat to enter
Endpoint URLhttps://api.inferray.com/v1
API keyYour key, inferray_...
ModelPick from the dropdown, or type an id such as deepseek-v4.1-flash
  1. Click Connect, then Test Message to send one short prompt.

Enter the base URL ending in /v1, without /chat/completions: SillyTavern adds that part itself.

Inferray answers GET /v1/models with the whole catalogue, which is how the model dropdown fills. If the list is long, type the id instead.

Best models for SillyTavern

There is no single best model: it comes down to how much context your chats need and what you want to spend per message. These are good starting points, all reachable with the same key:

ModelModel id
DeepSeek V4.1 Flashdeepseek-v4.1-flash
DeepSeek V4 Prodeepseek-v4-pro
GLM-5.3glm-5.3
Kimi K3kimi-k3
Claude Sonnet 5.5claude-sonnet-5-5
Gemini 3.8 Flashgemini-3.8-flash

Each model's page in the catalogue lists its price and context window. SillyTavern sends the character card, your persona, lorebook entries and the chat history with every message, so the input price matters more than the output price.

If a model rejects the prompt

Some models are strict about message order, for example more than one system message or an assistant message before the first user message. SillyTavern's Prompt Post-Processing setting fixes this: start with Merge consecutive messages from the same role, and move to Semi-strict or Strict if the error persists.

Claude with prompt caching

The Custom (OpenAI-compatible) source runs Claude too, but SillyTavern only adds prompt caching markers on its Claude source. To use them with Inferray:

  1. In API Connections, set Chat Completion Source to Claude.
  2. Open Reverse Proxy. Enter https://api.inferray.com/v1 as the Proxy Server URL and your key as the Proxy Password. SillyTavern adds /messages itself.
  3. Pick a model under Claude Model. The ids that list shares with the catalogue, such as claude-sonnet-5, claude-opus-4-8 or claude-sonnet-4-6, work as they are.
  4. In config.yaml in the SillyTavern folder, under claude:, set cachingAtDepth: 0 to cache the chat history, and enableSystemPromptCache: true to cache the system prompt as well. extendedTTL: true keeps cache entries for an hour instead of five minutes. Restart SillyTavern.

SillyTavern's own notes in config.yaml warn that the system prompt cache only pays off when everything before the chat history stays the same between messages: a {{random}} macro or a lorebook entry that changes breaks the match. Cached input is billed at the model's cached input price, and your request logs show the cached tokens.

FAQ

Which API type should I use in SillyTavern?

Chat Completion. Inferray serves the OpenAI Chat Completions format, which is what the Custom (OpenAI-compatible) source speaks.

Do I need a different key for each model?

No. One key reaches every model; change the model in the dropdown to switch.

Does my credit expire?

No. Pay-as-you-go credit stays on your balance until you spend it.