Skip to Content

Error Codes

If there is a request error, the JSON response from the server contains the following parameters.

HTTP Status CodeTypeError CodeError MessageDescription
400invalid_request_errorparam_errorInvalid paramInvalid parameter. This is triggered when calling an unsupported interface
400invalid_request_errorinvalid_messagesSensitive chat messagesChat content triggers sensitive word/compliance checks
400invalid_request_errorsensitive_check_errorSensitive check errorCompliance/Sensitive content check failed
400invalid_request_errorwebsearch_errorWeb search errorWeb search failed or unavailable
400invalid_request_errormodel_errorNo permission to use the modelNo model permissions
400invalid_request_errortokens_too_longPrompt tokens too longPrompt tokens are too long
401invalid_request_errorauth_errorValidate Certification failedInvalid token. Users can refer to the Authentication Guide to obtain a new key
408timeouttimeoutRequest timeout, please try again laterRequest timeout, please try again later
429rate_limit_errorrate_limitRate limit exceeded, please try again laterRate limit exceeded, please try again later
500internal_errorinternal_errorInternal Server ErrorInternal server error
500internal_errormodel_server_errorRequest llm server ErrorLLM service error
504timeoutgateway_timeout_errorGateway timeout, please try again later or use stream apiGateway timeout, please try again later or use the stream API