Skip to content

FAQ ​

CodeMeaningCommon CauseSuggested Fix
200SuccessNormal response; if content is empty or SSE has no data, the endpoint may be mismatchedCheck the endpoint for the selected model
400Bad requestInvalid JSON, missing required fields, misspelled model name, or parameter out of rangeCheck the request body and validate JSON
401UnauthorizedAPI key is missing, incorrect, disabled, or affected by network issuesCheck API key status in the dashboard
403ForbiddenNo access to the model or token groupCheck group permissions or contact support
404Not foundWrong URL path or unavailable modelCheck /v1/models and verify URL spelling
413Payload too largePrompt or input exceeds context limitShorten input or split into smaller parts
429Rate limited / quota exhaustedQPS too high or account balance/quota exhaustedReduce concurrency and check quota
500Upstream internal errorUpstream model provider errorRetry after 30 seconds
502Gateway errorGateway-to-upstream connection issueRetry after 1 minute
503Service unavailableUpstream overloaded or under maintenanceRetry after 1-5 minutes
504Gateway timeoutUpstream response is slow or prompt is too longShorten input or enable streaming
524TimeoutCloudflare timeoutTry again several times

Released under the MIT License.