AI API 报错排障诊所:
429 / 403 / 缓存 / 断连速查
输入 HTTP 状态码或报错关键字(如 429、403、insufficient_quota、ECONNRESET、cache_read_input_tokens),秒查真实根因与可直接复制的修复方案。
| 状态码 / 类型 | 适用平台 | 典型报错信息与排查入口 | 入口 |
|---|---|---|---|
| HTTP 429 | OpenAI | OpenAI API 报错 429(Rate Limit / insufficient_quota)原因与快速解决方法Rate limit reached / You exceeded your current quota (insufficient_quota) | 查看修复 → |
| HTTP 403 | Anthropic | Claude API 报错 403(地区限制 / 账号风控封禁)排查与国内稳定方案403 Forbidden / Request not allowed from your region / Account disabled | 查看修复 → |
| ECONNRESET | Claude Code | Claude Code 连不上 / 报 fetch failed 或 ECONNRESET:国内直连配置修复Unable to connect to Anthropic services / fetch failed / ECONNRESET | 查看修复 → |
| CACHE 0% | Anthropic | Claude API 缓存不命中(cache_read_input_tokens 为 0)原因与省钱排查cache_read_input_tokens: 0 / Prompt caching not hitting on long context | 查看修复 → |
| 429 RESOURCE | Google Gemini | Gemini API 报错 429 RESOURCE_EXHAUSTED:配额超限与稳定高并发方案429 RESOURCE_EXHAUSTED / Quota exceeded for quota metric | 查看修复 → |
| CURSOR API | Cursor | Cursor 配置自定义 API Key 报错或校验失败:完整排查与可用设置Failed to verify OpenAI API Key / Custom Base URL ignored in Cursor | 查看修复 → |
| ASYNC JOB | Seedance / Video | Seedance / 视频生成 API 超时(504)或任务失败排查指南504 Gateway Timeout / Video generation task failed or stuck in pending | 查看修复 → |
| HTTP 401 | All APIs | API 报错 401 Unauthorized(Invalid API Key)的 5 个隐蔽原因排查401 Unauthorized / Incorrect API key provided / Invalid authentication | 查看修复 → |
未找到匹配报错,可尝试搜索 HTTP 状态码(如 429 / 403 / 401)。

