> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.beatapi.io/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.beatapi.io/_mcp/server.

# Using BeatAPI in Tavo

> Configure BeatAPI in the Tavo mobile app for local SillyTavern character cards, with path-suffix rules and mobile network host selection.

Tavo runs SillyTavern-format character cards (PNG, JSON, CHARX), lorebooks, and custom CSS locally on iOS, Android, and macOS without a self-hosted server. Because Tavo ships without a built-in model backend, connecting a BeatAPI key in Tavo's settings lets you call BeatAPI's text models directly from your phone.

## Protocol and Base URL in Tavo

In Tavo's **Settings → API / Model Configuration**, create a new custom profile and match Tavo's protocol selector to the BeatAPI model family you plan to chat with:

| Tavo protocol option                               | Base URL                                                                               | BeatAPI models                                                                 |
| -------------------------------------------------- | -------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------ |
| OpenAI Compatible / Custom                         | `https://direct.beatapi.io/v1` (East/Southeast Asia: `https://api-asia.beatapi.io/v1`) | DeepSeek, Gemini, Grok, MiniMax, GLM, GPT, Qwen, Kimi, and `-free` test models |
| Claude / Anthropic (if present in your Tavo build) | `https://direct.beatapi.io/v1` (East/Southeast Asia: `https://api-asia.beatapi.io/v1`) | `claude-sonnet-5-5`, `claude-opus-5-5`, `claude-haiku-5-5`, `claude-fable-5-2` |

Create a dedicated key for Tavo in [Dashboard → API Keys](https://beatapi.io/dashboard/apikeys) and paste it into Tavo's **API Key** field (BeatAPI accepts keys with or without `sk-`). Setting a quota cap on that key bounds mobile chat spend separately from desktop tools.

## The `/v1` path quirk across Tavo builds

Tavo builds differ on how they join paths for OpenAI-compatible providers: some append `/chat/completions`, while others append `/v1/chat/completions`. If your first test message returns `404`, remove the trailing `/v1` from the Base URL (entering `https://direct.beatapi.io` or `https://api-asia.beatapi.io`) so Tavo does not request `/v1/v1/chat/completions`.

## Mobile network stability and generation cap

Cellular networks drop idle HTTP connections faster than home broadband. Pointing Tavo at `https://api-asia.beatapi.io/v1` (in East/Southeast Asia) or `https://direct.beatapi.io/v1` removes Cloudflare's 100-second wait limit, and keeping **Streaming** turned on keeps the connection active as tokens arrive.

Inside Tavo's generation preset, keep **Max Tokens (`max_tokens`)** at `2000`–`4096` (`4096`–`8192` for reasoning models). BeatAPI's balance pre-check reserves credit based on `max_tokens`, so leaving `max_tokens` at `32000+` on a small balance returns `402 insufficient_credits`.

## Picking a model ID

Tap **Fetch Models** in Tavo, or paste an exact case-sensitive model ID from the [Text API reference](/text-api). For a zero-balance check, send one greeting on `deepseek-v4.1-flash-free` or `glm-5.3-flash-free` under OpenAI Compatible, then switch to your everyday paid model (`deepseek-v4-pro-0813`, `MiniMax-M3`, `gemini-4-neon`, or `claude-sonnet-5-5`). Live per-million-token prices are on the [pricing page](https://beatapi.io/pricing).

## Related troubleshooting

* [Claude 404 in roleplay apps](/faq/roleplay-claude-404)
* [Roleplay timeouts and cut-offs](/faq/roleplay-timeout-truncation)
* [Reasoning `<think>` cut-offs & loops](/faq/roleplay-thinking-tags-cutoff)
* [402 error from oversized max_tokens](/faq/roleplay-max-tokens-402)
* [Keep long roleplay memory consistent while controlling token cost](/guides/roleplay-long-memory-cache)