> ## Documentation Index
> Fetch the complete documentation index at: https://docs.omniall.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Claude 接口

> Omniall AI 上的 Anthropic Messages API。

# Claude 接口

使用 Anthropic **Messages** 格式：

```http theme={null}
POST https://api.omniall.ai/v1/messages
anthropic-version: 2023-06-01
Authorization: Bearer sk-...
```

（也支持 `x-api-key`。）

| 场景 | 用法 |
| - | - |
| 文本对话 / 流式 | `messages` + `max_tokens`（+ `stream`） |
| 图像识别 | `messages` 中的 image 内容块 |
| PDF / 文档分析 | `document` 内容块 |
| 联网搜索 | 服务端工具 `web_search_*`（需模型/渠道支持） |
| Agent | Claude `tools` + `tool_choice` |
| 扩展思考 | `thinking: { type: "enabled", budget_tokens }` |

必填：`model`、`messages`、`max_tokens`。

官方文档：[Messages](https://docs.anthropic.com/en/api/messages)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.