| 项 | 说明 |
|---|---|
| 完整调用示例 | https://www.aifastx.com/gw/v1/chat/completions |
| 鉴权范围 | 网关业务接口统一走 API Key 鉴权 |
Authorization: Bearer#Bearer 开头(大小写不敏感),后跟明文 Key。x-api-key#Bearer 前缀。x-api-key 与 Authorization,网关 优先使用 x-api-key 的值作为 API Key。{
"error": "unauthorized",
"message": "missing api key"
}{
"error": "unauthorized",
"message": "invalid api key"
}| HTTP 状态码 | 典型 message |
|---|---|
| 401 | missing api key — 未携带 Authorization / x-api-key |
| 401 | invalid api key — Key 无法解析到有效用户 |