Documentation Index
Fetch the complete documentation index at: https://docs.focusapi.cn/llms.txt
Use this file to discover all available pages before exploring further.
现象
- HTTP 状态码 401 Unauthorized
- 响应中常见
invalid_api_key、Incorrect API key或类似描述
常见原因
- 未传
Authorization头 - Key 写错、复制不完整或含多余空格
- 使用了已 删除 / 禁用 的令牌
- 把 Key 放在了错误位置(应使用 Header,而非 query)
处理步骤
重试最小请求
使用 快速开始 中的 curl 命令,仅替换 Key 与
model。Claude / Gemini 原生路径
若使用 Anthropic 或 Gemini 原生 API,可能要求x-api-key 等头字段,请以对应 模型文档 为准,并确保仍使用 FocusAPI 颁发的令牌。
仍无法解决?
收集以下信息后联系支持:- 请求时间(UTC+8)
- 使用的
model(可脱敏) - 响应 body(勿包含完整 Key)
