Connect SillyTavern to byesu API
Connect SillyTavern to byesu for long-context creative writing, lorebooks, and multi-character sessions using Claude 5.5, GPT-6.2, Gemini 4 Argon, DeepSeek V4, and Grok 4.7 on pay-as-you-go token billing.
Quick configuration
- Method 1 — Claude Source (Recommended for
0.1xPrompt Caching):Chat Completion→ SourceClaude→ Reverse Proxy URL:https://byesu.com/v1(SillyTavern appends/messagesautomatically) - Method 2 — Custom OpenAI-compatible (All Models):
Chat Completion→ SourceCustom (OpenAI-compatible)→ Custom Endpoint:https://byesu.com/v1 - Proxy Password / API Key: your byesu token (
sk-..., created in the defaultautogroup) - Top long-context models:
claude-opus-5-5,claude-sonnet-5-5,gpt-6.2-sol,gemini-4-argon,deepseek-v4-pro,grok-4.7
Method 1: Recommended for Claude — Native Source + 0.1x Prompt Caching
Long character cards, World Info lorebooks, and deep chat histories resend tens of thousands of identical tokens on every swipe or turn. Connecting via SillyTavern's native Claude source lets you enable Anthropic Prompt Caching so cached prefix reads bill as low as 0.1x (see Prompt Caching).
- Create an
sk-...token in the byesu Console under the defaultautogroup (Choosing a Group). - Click the API Connections plug icon at the top of SillyTavern:
- API:
Chat Completion - Chat Completion Source:
Claude
- API:
- Expand Reverse Proxy and enter:
- Proxy Server Address:text(Why
https://byesu.com/v1/v1here? SillyTavern's Claude reverse-proxy handler appends/messagesdirectly to your Proxy Server Address, turninghttps://byesu.com/v1intohttps://byesu.com/v1/messages.) - Proxy Password: paste your
sk-...token
- Proxy Server Address:
- Choose or enter
claude-opus-5-5orclaude-sonnet-5-5and click Connect. - Turn on Prompt Caching: enable Cache System Prompt and Caching At Depth (for example depth
2or4in SillyTavern's Claude /config.yamlcaching settings). Keep per-turn random macros or dynamic timestamps out of the top system prompt so the cached prefix stays byte-identical across turns.
Method 2: Custom (OpenAI-compatible) for GPT, Gemini, DeepSeek & Grok
To switch across non-Claude families (or run any model over /v1/chat/completions):
- In API Connections, set API to
Chat Completionand Chat Completion Source toCustom (OpenAI-compatible). - Set Custom Endpoint (Base URL) to:text
https://byesu.com/v1 - Paste your
sk-...token into Custom API Key, enter or select a model ID (gpt-6.2-sol,gemini-4-argon,deepseek-v4-pro,grok-4.7,claude-sonnet-5-5), and click Connect. - For
glm-5.3orkimi-k3, use a token created in theGlmorKimigroup. Usage is billed pay-as-you-go per token with live rates shown in the byesu Console after sign-in.
Critical Claude 5.5 Troubleshooting in SillyTavern
Older community presets built for legacy Claude versions often trigger HTTP 400 errors on claude-opus-5-5 and claude-sonnet-5-5. Check these two settings first:
- HTTP 400 — Assistant prefill not supported: Clear Assistant Prefill in your Chat Completion preset and make sure the final message sent in the prompt list has the
userrole, notassistant(Claude 400 prefill not supported fix). - HTTP 400 —
temperatureandtop_pcannot both be specified: Newer Claude 5.5 snapshots reject requests sending bothtemperatureandtop_pat once. Set Top P to1(disabled / not sent) in your sampler preset when using custom Temperature (Claude 400 temperature + top_p fix). - 401 / 404 / 429 & latency: check Claude 401 auth fix, no available channel, Claude 429 vs 529, and live production benchmarks.