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

# 为什么在酒馆、Tavo 或 JanitorAI 中调用 Claude 会报 404？

> BeatAPI 上的 Claude 模型仅支持 Anthropic Messages（POST /v1/messages）；把 Claude 模型 ID 填进 OpenAI 兼容接口会直接返回 404 not_found。

BeatAPI 上的 Claude 系列（`claude-sonnet-5-5`、`claude-opus-5-5`、`claude-haiku-5-5`、`claude-fable-5-2`）仅支持 Anthropic Messages（`POST /v1/messages`）。角色扮演客户端把 Claude 模型 ID 发到 `POST /v1/chat/completions` 时，BeatAPI 会返回 `404 not_found`。

## 按客户端修复

* **SillyTavern（酒馆）**：将 **Chat Completion Source** 设为 `Claude`，再在 **Reverse Proxy** 栏填入 `https://api-asia.beatapi.io/v1`（海外填 `https://direct.beatapi.io/v1`）。详见[在 SillyTavern 中使用 BeatAPI](/zh/integrations/sillytavern)。
* **Tavo / OMate**：新建协议类型为 **Claude / Anthropic** 的连接，Base URL 填 `https://api-asia.beatapi.io/v1`（海外填 `https://direct.beatapi.io/v1`）。详见 [Tavo](/zh/integrations/tavo) 和 [OMate](/zh/integrations/omate)。
* **JanitorAI**：JanitorAI 的 Proxy 只发 `POST /v1/chat/completions` 请求，无法调用 `/v1/messages`。在 JanitorAI 中改选 BeatAPI 的 OpenAI 兼容模型，例如 `gemini-4-neon`、`deepseek-v4-pro-0813`、`grok-4.7`、`MiniMax-M3` 或 `gpt-6.2-sol`。详见[在 JanitorAI 中使用 BeatAPI](/zh/integrations/janitorai)。

## 已选 Claude 协议仍报 `404` 时的排查项

1. **检查 URL 是否重复拼接 `/v1`**：有的客户端自动拼接 `/v1/messages`，有的只拼接 `/messages`。切换去掉或保留 Base URL 末尾的 `/v1` 重新测试一次。
2. **核对模型 ID 与账户权限**：模型 ID 区分大小写，必须与当前密钥调用 `GET /v1/models` 返回的名称一致。未充值过的免费额度账户只能调用免费列表内的模型，见[免费模型](/zh/free-models)。

[返回 AI 模型常见问题](/zh/faq/models)。