创建 Anthropic 消息

通过 AnyInt 网关使用 Anthropic 原生 Messages 协议。

直接发送 Anthropic Messages 请求格式,无需转换为 OpenAI 兼容负载。

POST/anthropic/v1/messages

请求体

字段类型必填说明
modelstringAnthropic 兼容模型标识。
messagesarrayAnthropic 消息内容块。
max_tokensinteger最大生成 token 数。
systemstring 或 array系统指令。

相关操作

  • POST /anthropic/v1/messages/count_tokens 计算输入 token。
  • GET /anthropic/v1/models 查询可用 Anthropic 模型。