Claude 接口
使用 Anthropic Messages 格式:x-api-key。)
必填:
model、messages、max_tokens。
官方文档:MessagesDocumentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Omniall AI 上的 Anthropic Messages API。
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