创建 Anthropic 消息

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

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

POST/anthropic/v1/messages

请求体

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

相关操作

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