Claude Messages API 风格(原生字段结构)
https://api.qhaigc.nethttps://api-hk.qhaigc.netPOST /v1/messages
| Header | 是否必填 | 说明 |
|---|---|---|
Authorization: Bearer <YOUR_API_KEY> | 是 | 启航 API Key |
anthropic-version: 2023-06-01 | 是 | Claude Messages 版本头 |
Content-Type: application/json | 是 | JSON 请求体 |
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
model | string | 是 | 例如 claude-sonnet-4-5 |
max_tokens | integer | 是 | 最大输出 token 数 |
messages | array | 是 | 对话消息数组 |
system | string | 否 | 系统提示词 |
temperature | number | 否 | 采样温度 |
stream | boolean | 否 | 是否流式 |
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.