dmxapi · Chat Completions: Authentication failed (HTTP 401): the server rejected...
错误信息
dmxapi · Chat Completions: Authentication failed (HTTP 401): the server rejected your API key. It may be wrong or expired, or the provider hit a transient auth/quota issue — retried with backoff and still failed. Try again shortly, or check the key in .env / run `reasonix setup`. (DMXAPI_API_KEY from Reasonix credentials (.env)) insufficient user quota (request id: ****)
AI 解决方案
🔐 API认证失败分析
原文:Authentication failed (HTTP 401): the server rejected your API key. It may be wrong or expired, or the provider hit a transient auth/quota issue — retried with backoff and still failed. Try again shortly, or check the key in .env / run `reasonix setup`. (DMXAPI_API_KEY from Reasonix credentials (.env)) insufficient user quota (request id: ****)
译文:认证失败(HTTP 401):服务器拒绝了您的 API 密钥。密钥可能错误或已过期,或者提供商遇到了临时的认证/配额问题——已通过退避策略重试但仍然失败。请稍后重试,或检查 .env 中的密钥/运行 `reasonix setup`。(来自 Reasonix 凭证(.env)中的 DMXAPI_API_KEY)用户配额不足(请求ID:****)
🎯 原因分析
.env 文件中读取,该密钥未通过服务器认证且配额已耗尽💡 解决方案
.env 文件中的 DMXAPI_API_KEY 是否正确且未过期reasonix setup 命令刷新凭证# 1. 检查 .env 文件中的密钥配置
cat .env
# 2. 重新运行配置工具刷新凭证
reasonix setup
# 3. 确认平台配额状态
# 登录 DMXAPI 控制台查看用量