> 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 AgnAIstic

> Bind BeatAPI to AgnAIstic (agnai.chat) presets through Custom → OpenAI Compat so different presets or group-chat characters can call different BeatAPI models.

AgnAIstic (`agnai.chat`) stores model endpoints inside **Presets** instead of one global connection panel. Binding BeatAPI as a **Custom → OpenAI Compat** service lets you create separate AgnAIstic presets—for example one preset on `deepseek-v4-pro-0813` and another on `gemini-4-neon`—all billed to one BeatAPI API key.

## Bind BeatAPI inside an AgnAIstic Preset

Create a dedicated key with a quota cap in [Dashboard → API Keys](https://beatapi.io/dashboard/apikeys), then open **Presets** in AgnAIstic, click the service selector, choose **+ New → Custom → OpenAI Compat**, and enter:

| AgnAIstic field | Value to enter                                                                         |
| --------------- | -------------------------------------------------------------------------------------- |
| **Label**       | `BeatAPI`                                                                              |
| **URL**         | `https://direct.beatapi.io/v1` (East/Southeast Asia: `https://api-asia.beatapi.io/v1`) |
| **API Key**     | Your BeatAPI API key                                                                   |
| **Model**       | Exact case-sensitive OpenAI-compatible BeatAPI model ID                                |

AgnAIstic's **OpenAI Compat** service sends `POST /v1/chat/completions` requests only. BeatAPI serves Claude models exclusively on Anthropic Messages (`POST /v1/messages`), so entering a Claude model ID in AgnAIstic returns `404 not_found`. Choose from BeatAPI's OpenAI-compatible families instead: DeepSeek (`deepseek-v4-pro-0813`), Gemini (`gemini-4-neon`), Grok (`grok-4.7`), MiniMax (`MiniMax-M3`), GPT (`gpt-6.2-sol`), GLM, Qwen, or Kimi (test at zero balance with `deepseek-v4.1-flash-free` or `glm-5.3-flash-free`).

## Preset parameters and verification

Inside the preset, turn on **Streaming** and set **Max Tokens (`max_tokens`)** to `2000`–`4096` (`4096`–`8192` for reasoning models) so small balances clear BeatAPI's pre-check. Save the preset, select it in a chat, and confirm the reply logs under your AgnAIstic key in [Dashboard → Usage](https://beatapi.io/dashboard). Live rates are on the [pricing page](https://beatapi.io/pricing) and full IDs are in the [Text API reference](/text-api).

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