---
url: 'https://docs.byesu.com/en/clients/sillytavern.md'
description: >-
  Connect SillyTavern to byesu API via Claude Reverse Proxy (0.1x prompt
  caching) or OpenAI-compatible URL: Claude 5.5, GPT-6.2, Gemini 4, and DeepSeek
  V4.
---

# 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.

::: tip Quick configuration

* **Method 1 — Claude Source (Recommended for `0.1x` Prompt Caching)**: `Chat Completion` → Source `Claude` → **Reverse Proxy URL**: `https://byesu.com/v1` *(SillyTavern appends `/messages` automatically)*
* **Method 2 — Custom OpenAI-compatible (All Models)**: `Chat Completion` → Source `Custom (OpenAI-compatible)` → **Custom Endpoint**: `https://byesu.com/v1`
* **Proxy Password / API Key**: your byesu token (`sk-...`, created in the default `auto` group)
* **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](/en/guide/prompt-caching)).

1. Create an `sk-...` token in the [byesu Console](https://byesu.com) under the default **`auto`** group ([Choosing a Group](/en/guide/groups)).
2. Click the **API Connections** plug icon at the top of SillyTavern:
   * **API**: `Chat Completion`
   * **Chat Completion Source**: `Claude`
3. Expand **Reverse Proxy** and enter:
   * **Proxy Server Address**:
     ```text
     https://byesu.com/v1
     ```
     *(Why `/v1` here? SillyTavern's Claude reverse-proxy handler appends `/messages` directly to your Proxy Server Address, turning `https://byesu.com/v1` into `https://byesu.com/v1/messages`.)*
   * **Proxy Password**: paste your `sk-...` token
4. Choose or enter `claude-opus-5-5` or `claude-sonnet-5-5` and click **Connect**.
5. **Turn on Prompt Caching**: enable **Cache System Prompt** and **Caching At Depth** (for example depth `2` or `4` in SillyTavern's Claude / `config.yaml` caching 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`):

1. In **API Connections**, set **API** to `Chat Completion` and **Chat Completion Source** to `Custom (OpenAI-compatible)`.
2. Set **Custom Endpoint (Base URL)** to:
   ```text
   https://byesu.com/v1
   ```
3. 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**.
4. For `glm-5.3` or `kimi-k3`, use a token created in the `Glm` or `Kimi` group. Usage is billed pay-as-you-go per token with live rates shown in the [byesu Console](https://byesu.com) 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 `user` role, not `assistant` ([Claude 400 prefill not supported fix](/en/errors/claude-api-400-prefill-not-supported)).
* **HTTP 400 — `temperature` and `top_p` cannot both be specified**: Newer Claude 5.5 snapshots reject requests sending both `temperature` and `top_p` at once. Set **Top P** to `1` (disabled / not sent) in your sampler preset when using custom **Temperature** ([Claude 400 temperature + top\_p fix](/en/errors/claude-api-400-temperature-top-p-not-supported)).
* **401 / 404 / 429 & latency**: check [Claude 401 auth fix](/en/errors/claude-api-401-authentication-error), [no available channel](/en/errors/no-available-channel-error), [Claude 429 vs 529](/en/errors/claude-api-429-vs-529), and [live production benchmarks](https://byesu.com/benchmarks).
