> ## Documentation Index
> Fetch the complete documentation index at: https://docs.heihuzi.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# 认证与权限排查

> 通过已复现的鉴权和权限错误定位问题。

先使用目标 Key 请求 [Models](/cn/models)，确认认证成功并查看该 Key 的模型列表。

* **401**：本次缺少 Key、无效 Key 均返回此状态。检查运行环境中的 Key 和请求头。
* **403 图片权限**：本次无图片权限的 Key 收到 `Image generation is not enabled for this group`。使用具有图片权限的 Key。
* **400 URL 鉴权**：本次携带 `key` 或 `api_key` 查询参数被拒绝。使用请求头鉴权。
* **404 模型**：本次 `claude-sonnet-4-6` 返回 `model_not_found`，`claude-sonnet-5` 已完成实际请求。

完整错误记录范围见[认证](/cn/authentication)。分享错误时保留请求时间、状态码和请求 ID，并隐藏 Key。
