创建 Anthropic 消息
通过 AnyInt 网关使用 Anthropic 原生 Messages 协议。
直接发送 Anthropic Messages 请求格式,无需转换为 OpenAI 兼容负载。
POST
/anthropic/v1/messages请求体
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
model | string | 是 | Anthropic 兼容模型标识。 |
messages | array | 是 | Anthropic 消息内容块。 |
max_tokens | integer | 是 | 最大生成 token 数。 |
system | string 或 array | 否 | 系统指令。 |
相关操作
POST /anthropic/v1/messages/count_tokens计算输入 token。GET /anthropic/v1/models查询可用 Anthropic 模型。