Skip to main content

Common Error Codes & Troubleshooting Guide

When using the API, if you receive an HTTP response other than 200 OK, please refer to the table below to troubleshoot the cause:

HTTP Status CodeError TypeCause AnalysisSolution
401 UnauthorizedAuthentication Failure1. API Key is incorrect or has been disabled
2. Header format does not include Bearer
Check if the Key is copied completely; confirm the Header is Authorization: Bearer sk-xxx
402 Payment RequiredInsufficient Quota1. Account global balance is exhausted
2. The quota set for a single API Key has been used up
Go to the console to recharge with a redemption code, or edit the token to increase the quota limit
429 Too Many RequestsRate Limit / Upstream Rate Limiting1. Request frequency exceeds the group RPM limit
2. Upstream provider triggered Rate Limit
Reduce concurrent frequency, or contact the administrator to switch to a high-concurrency VIP group / add upstream channels
404 Not FoundModel Does Not ExistThe requested model name is not enabled in the gateway or is misspelledConfirm the exact supported model name in the console “Model Square” or by calling the /v1/models interface
502 Bad GatewayUpstream Channel ExceptionUpstream provider (OpenAI/Anthropic, etc.) server failure or network interruptionThe gateway will automatically try to retry other nodes; if the error persists, please submit a ticket to contact operations
504 Gateway TimeoutRequest TimeoutLong-text reasoning response time is too long, exceeding the gateway timeout limit (e.g. 120s)It is recommended to enable stream: true streaming transmission, or use context compression to shorten the Prompt