Skip to content

Chat error codes ​

Chat Completions errors use the standard error object shown below. Speech and catalogue errors contain code, message and request_id. Provide the response header X-Request-Id and request time when reporting an issue.

Failed requests return a non-2xx HTTP status with an error object:

json
{"error":{"message":"Invalid request parameter.","type":"invalid_request_error","param":"messages","code":"invalid_request"}}

Use code for program logic and message for diagnostic context.

HTTPCodeMeaning
400invalid_requestInvalid model, messages or generation parameters
401invalid_api_keyInvalid, expired, or disabled key
402insufficient_balanceNot enough credits
403forbiddenAccount or IP access is restricted
429rate_limitedRequests-per-minute limit exceeded
500internal_errorServer error
503upstream_unavailableChat or voice service is unavailable
400content_policy_violationContent did not pass policy checks
413payload_too_largeRequest body is too large
504timeoutRequest timed out

Check your request and credentials before retrying. For transient errors, wait before retrying; repeated message submissions may produce another reply.

Streaming waits up to 90 seconds for the first text and stops after 60 seconds without new text. Continuous output has no fixed total timeout and remains subject to max_tokens.

© 2026 GirlLab. All rights reserved.