Connect SillyTavern to the private Morse API: set it up, pick a model, and check it works. Updated November 30, 2026.

Page: https://trymorse.ai/inference/docs/tools/sillytavern

# Use SillyTavern with a private API

Give [SillyTavern](https://github.com/SillyTavern/SillyTavern) the base URL `https://inference.trymorse.ai/v1` and a Morse API key. It calls the OpenAI API.

## Before you start

Make a key for SillyTavern alone, with a spend limit, under **API keys** in the [console](https://console.trymorse.ai). Then one tool can't spend all your credits. See [Limit a key](https://trymorse.ai/inference/docs/authentication#limits).

You'll paste the key into SillyTavern's connection settings.

## Set up SillyTavern

1. Choose Custom (OpenAI-compatible)Open **API Connections** with the plug icon. Set **API** to **Chat Completion**, and **Chat Completion Source** to **Custom (OpenAI-compatible)**.
2. Enter Morse's detailsSet **Custom Endpoint (Base URL)** to `https://inference.trymorse.ai/v1`, with nothing after `/v1`: SillyTavern adds `/chat/completions` itself. Paste your key in **Custom API Key** and choose **Connect**. SillyTavern then lists Morse's models under **Available Models**. Pick `deepseek/deepseek-v4.1-flash-1017-abliterated`, or any model from the table below.
3. Set the response lengthIn **AI Response Configuration**, set **Max Response Length** to 32,768 or less. A request holds credit for its output limit before it starts, so a smaller limit holds less.

## Which model to pick

| Model | Context | Input / output | Why |
| --- | --- | --- | --- |
| `deepseek/deepseek-v4.1-flash-1017-abliterated` | 1M | $0.50 / $1.50 | Uncensored, reads images, and costs little. |
| `moonshotai/kimi-k3.1-pro-uncensored` | 1M | $5 / $18.75 | Uncensored, and the most capable of these. |
| `z-ai/glm-5.3-flash-uncensored` | 1M | $0.225 / $1 | Uncensored, fast, and the cheapest. |

Prices are in dollars per million tokens, on each model's default endpoint. Every model is on the [models page](https://trymorse.ai/inference/models).

## Check it works

Choose **Test Message** under the connection settings. A green status and a response show that Morse accepted the key and the model. Then open any chat and send a message.

## Keep it private

Set a privacy floor on SillyTavern's key to hold it to a tier, such as TEE. Without a floor, a request runs on its model's default privacy tier. The floor only decides which endpoints serve the requests. See [Privacy tiers](https://trymorse.ai/inference/docs/privacy-tiers) and [Provider routing](https://trymorse.ai/inference/docs/provider-routing).

On a plain API call, TLS ends inside Morse's door, an attested enclave, which seals the request before the relay receives it. A plain client checks the door's certificate, not its attestation. To check the attestation yourself, see [Sealed API keys](https://trymorse.ai/inference/docs/sealed-api-keys).

## If something goes wrong

| What you see | What to do |
| --- | --- |
| The status stays red after Connect | Check that the base URL ends in `/v1`, with no `/chat/completions` after it, and that the key was pasted whole. |
| `401 invalid_api_key` | Check the key you gave SillyTavern in full, and that it isn't revoked. |
| `402 insufficient_balance` or `key_spend_limit_reached` | Add credits, or raise the key's spend limit. A request holds credit for its output limit before it starts: see [Holds](https://trymorse.ai/inference/docs/pricing#holds). |
| `404 model_not_found` | Use a model's id exactly as the table above writes it, with the part before the slash. |

Every code is in [Error codes](https://trymorse.ai/inference/docs/api/errors). For other tools, see [Tools and coding agents](https://trymorse.ai/inference/docs/tools).
