Using BeatAPI in SillyTavern
SillyTavern connects to BeatAPI through two Chat Completion sources based on the model family. SillyTavern calls GPT, Gemini, Grok, DeepSeek, GLM, Qwen, Kimi, MiniMax, MiMo, Hunyuan, and Muse models through Custom (OpenAI-compatible). SillyTavern calls Claude models through the native Claude source with a Reverse Proxy URL, because BeatAPI serves Claude models only on Anthropic Messages (POST /v1/messages).
Prerequisites
- A running SillyTavern instance on desktop, server, or mobile Termux.
- A dedicated BeatAPI API key from Dashboard → API Keys. A dedicated key isolates SillyTavern spend in usage reports and supports a per-key quota cap.
Base URL selection
Use https://direct.beatapi.io/v1 as the default Base URL in SillyTavern. direct.beatapi.io bypasses Cloudflare’s 100-second wait limit on long replies and reasoning outputs while keeping the same API key, model catalogue, and token rates as https://api.beatapi.io/v1.
For connections from East or Southeast Asia that drop packets on mobile or residential networks, use https://api-asia.beatapi.io/v1. api-asia.beatapi.io also avoids the 100-second wait limit. Keep https://api.beatapi.io/v1 as a fallback host.
Route A: Custom (OpenAI-compatible) for non-Claude models
SillyTavern’s Custom (OpenAI-compatible) source handles Gemini, DeepSeek, Grok, GPT, GLM, Qwen, Kimi, MiniMax, MiMo, Hunyuan, Muse, and BeatAPI -free models.
- Open the API Connections panel (the plug icon in SillyTavern’s top bar).
- Set API to
Chat Completion. - Set Chat Completion Source to
Custom (OpenAI-compatible). - Enter
https://direct.beatapi.io/v1in Custom Endpoint (Server URL). Omit/chat/completions, because SillyTavern appends/chat/completionsautomatically. - Paste the BeatAPI API key into Custom API Key.
- Set Prompt Post-Processing to
Semi-strictorMerge consecutive messages. Strict models such as Gemini, DeepSeek, and MiniMax return400 Bad Requestwhen SillyTavern sends consecutive same-role messages. IfTest Messagesucceeds while SillyTavern displays an API status warning, enable Bypass API status check. - Click Connect. SillyTavern calls
GET /v1/modelsto load the models available to the key. - Select a model ID from the dropdown, or type the exact case-sensitive model ID if the list does not refresh.
Route B: Native Claude source for Claude models
BeatAPI serves Claude models only on POST /v1/messages. Sending a Claude model ID through Custom (OpenAI-compatible) returns 404 not_found. SillyTavern’s native Claude source hardcodes api.anthropic.com by default, so redirecting SillyTavern’s native Claude requests to BeatAPI requires filling SillyTavern’s Reverse Proxy field.
- Open the API Connections panel and set API to
Chat Completion. - Set Chat Completion Source to
Claude. - Open the Reverse Proxy section under the Claude fields.
- Enter
https://direct.beatapi.io/v1in Proxy Server URL. - Paste the BeatAPI API key into Claude API Key (or Proxy Password when the installed SillyTavern build reads the proxy credential from that field).
- Select or type a BeatAPI Claude model ID such as
claude-sonnet-5-5,claude-opus-5-5, orclaude-haiku-5-5. - Click Connect.
To use Claude prompt caching in SillyTavern, set claude.enableSystemPromptCache: true and claude.cachingAtDepth: 2 in SillyTavern’s config.yaml, then restart SillyTavern. See Prompt caching not hitting.
Models and initial parameters
You can test connectivity at zero balance with a -free model on Route A before switching to a paid model.
Live token prices are published on the pricing page, and full model IDs are listed in the Text API reference.
Set two generation parameters in SillyTavern’s AI Response Configuration panel before starting a long chat:
- Streaming (
stream: true): Streaming renders tokens as they arrive and lets you stop an off-track reply early instead of paying for a full generation. - Max Response Length (
max_tokens): Set2000–4096for regular chat and4096–8192for reasoning models. BeatAPI estimates required balance frommax_tokens; setting32000or65536on a low balance can trigger402 insufficient_creditseven when the actual reply is short.
Verify the first message
Click Test Message in the API Connections panel, or send one short message in a character card. Confirm that the reply streams back without error and that the request appears under the SillyTavern API key in Dashboard → Usage.
Troubleshooting and next steps
- 404 on Claude models: Why does Claude return 404 in SillyTavern, Tavo, or JanitorAI?
- 400 Bad Request or status warning on Custom: SillyTavern 400 & Post-Processing
- Claude prompt caching not saving money: Prompt caching not hitting
- Empty replies or
</think>loops on reasoning models: Reasoning<think>cut-offs & loops - Replies drop or cut off mid-sentence: Roleplay timeouts and cut-offs
- 402 error despite positive balance: 402 error from oversized max_tokens
- Lower token spend in long chats: Run a dual-model roleplay workflow and Keep long roleplay memory consistent while controlling token cost.

