Claude messages
文本
/v1/messages
Creates a Claude message response for text, multimodal input, and tool use.
POST
Claude messages
Documentation Index
Fetch the complete documentation index at: https://docs.ent.apigo.ai/llms.txt
Use this file to discover all available pages before exploring further.
适合 Claude 原生消息格式、多轮上下文、视觉输入和工具调用。
- 使用
x-api-key与anthropic-version请求头 system是顶层字段,不属于messages[]messages[].content是 block 结构,不建议提前扁平化成单字符串- 如果要启用工具调用,需要显式传入
tools,并在后续轮次回传tool_result
授权
请求头
Anthropic API version header.
示例:
"2023-06-01"
请求体
application/json
