Using BeatAPI in JanitorAI
JanitorAI connects to external model providers through its Proxy option, which requires an OpenAI-compatible Chat Completions URL. If you are replacing overloaded free proxies or No matching chute found and Failed to fetch errors, BeatAPI provides one prepaid key for DeepSeek, Gemini, Grok, GLM, MiniMax, and GPT models. JanitorAI does not append /chat/completions automatically, so Proxy URL must contain the full completions path.
Protocol boundary for Claude models
JanitorAI’s Proxy sends POST /v1/chat/completions requests only. On BeatAPI, Claude models are served exclusively on Anthropic Messages (POST /v1/messages), so entering a Claude model ID in JanitorAI Proxy returns 404 not_found.
In JanitorAI, select BeatAPI’s OpenAI-compatible model families: Gemini, DeepSeek, Grok, GPT, GLM, Qwen, Kimi, MiniMax, MiMo, Hunyuan, or Muse. To call BeatAPI Claude models, use a client that supports Anthropic Messages endpoints such as SillyTavern.
Prerequisites
- A JanitorAI account with any character chat open.
- A dedicated BeatAPI API key from Dashboard → API Keys. Setting a per-key quota cap keeps browser-side spend bounded.
Step 1: Open Proxy settings in JanitorAI
- Open any character chat on JanitorAI.
- Click API Settings in the top-right menu (or click the model banner at the top of the chat).
- Switch the provider tab to Proxy.
- Under Proxy Configurations, click + New to add a BeatAPI profile.
Step 2: Fill in the BeatAPI Proxy fields
Confirm that Proxy URL ends with /v1/chat/completions, with no trailing slash and no duplicated /v1.
Step 3: Pick a compatible BeatAPI model
You can verify the configuration at zero balance with a -free model before switching to a paid model:
Live rates are on the pricing page, and all OpenAI-compatible model IDs are listed in the Text API reference.
Step 4: Save, refresh, and test
- Click Save Settings in JanitorAI, then hard-refresh the browser page (
Ctrl+Shift+RorCmd+Shift+R). JanitorAI can retain the previous provider configuration in memory until the page reloads. - In Generation Settings, enable streaming and set Max new tokens between
1000and4096. Leaving Max new tokens unlimited on a small balance can trigger402 insufficient_credits. - Send one short message and confirm the character replies.
Troubleshooting and next steps
- 404 Not Found: Verify that Proxy URL ends with
/v1/chat/completionsand that Model is an OpenAI-compatible ID. See Why does Claude return 404 in SillyTavern, Tavo, or JanitorAI?. Failed to fetchorNo response from bot: Confirm that Proxy URL usesdirect.beatapi.io(orapi-asia.beatapi.ioin Asia). See Roleplay timeouts and cut-offs.- Empty replies or
</think>loops on reasoning models: See Reasoning<think>cut-offs & loops. - 402 error despite positive balance: Lower Max new tokens. See 402 error from oversized max_tokens.
- Manage long-chat spend: Keep long roleplay memory consistent while controlling token cost.

