How do I connect Leiolai to SillyTavern?

To connect Leiolai in SillyTavern, open API Connections and choose Chat Completion and Custom (OpenAI-compatible). Enter the Leiolai /v1 base URL, API key, and leiolai-1 model ID, then use Test Message.

Which connection type should I select?

In SillyTavern’s API Connections, set API to Chat Completion and Chat Completion Source to Custom (OpenAI-compatible). Use https://api.leiolai.com/v1 as the Leiolai base URL.

What model and key settings do I enter?

Use model ID leiolai-1 and your Leiolai API key. If the model list is empty, enter the identifier manually. A Leiolai Private-only key can omit mode; an unrestricted key requires mode on each request.

Choose the API key

How do I test the saved connection?

Use SillyTavern’s Test Message control to test your saved Leiolai connection. A successful test confirms the selected connection can answer. If the test fails, keep the error code and check the base URL, key, model ID, and mode restriction.

Do character cards and lorebooks count as context?

Character cards, lorebook entries, and conversation history sent to Leiolai by SillyTavern contribute input tokens. Consider the material the client sends on each turn when estimating input token usage.

Understand input and output counts

How does a long conversation affect API costs?

Retained SillyTavern history sent to Leiolai adds input tokens even when the newest message is short. Longer responses add output tokens. Estimate both at the mode and effort selected for the request.

Calculate the two parts of token cost

Can I select a deeper thinking level?

The Leiolai Chat Completions API uses reasoning_effort with low, medium, high, or xhigh. Configure that field if the client’s extra request settings support the field. Changing the model name does not select an effort level.

Set the effort field

What should I check for an unsupported-parameter error?

Read the named field in the error and compare the request with Leiolai’s Chat Completions reference. Keep the conversation and supported settings, then remove or adapt the field that the API rejects.

Supported request fields

How can I make a long character conversation easier to follow?

Give Leiolai in SillyTavern a clear character description and current scene, then state any continuity correction in your next message. Ask for the response length and format you want.

Write useful follow-up instructions