Skip to main content

Errors

When a request fails to generate audio, the API returns a JSON error response containing error_code, error_message, succeed, and data. The error_code is an application-level error code, not an HTTP status code. The language of error_message follows the Accept-Language header: English by default and Chinese when Chinese is requested. Error responses do not include a trace_id.

{
"error_code": 10003,
"error_message": "Unauthorized",
"succeed": false,
"data": null
}
HTTP StatusBusiness error_codeMeaningWhat to Do
40010001Invalid request content or unsupported optionCheck the request and try again
40010013Text exceeds the 500 weighted-character limitShorten the text; each Chinese character counts as 2 and each other Unicode character counts as 1
40010023No synthesizable contentPlease provide valid text or a supported event tag
40110003Missing or invalid API keyCheck the API key
40220003Insufficient account balanceAdd funds and try again
40310004Text to Speech is unavailable for the current projectCheck the project’s enabled capabilities
42910005 or 10014The request limit has been reachedWait briefly and try again
50010000An unexpected service error occurredTry again; contact support if the problem continues
50320002The service is temporarily unavailableTry again later
50410006The service timed out before audio was returnedTry again later

Voice Cloning errors​

Voice-management endpoints return HTTP 200 on success. Failures use a non-2xx HTTP status and the standard JSON envelope. Check the HTTP status together with succeed and error_code.

HTTP StatusBusiness error_codeMeaningWhat to Do
40910017The custom-voice quota has been reachedDelete an unused custom voice and try again
40910018voice_id already exists or is reservedUse another voice_id
40910019The generated or requested voice ID conflicts with an existing voiceRetry or use another voice_id
41320010File exceeds the size limit for this APIFile upload: up to 50 MiB; voice cloning reference audio: up to 20 MiB
40020012Reference audio format is invalid or cannot be processed, including corrupt media or a missing audio streamUpload a supported, readable reference audio file
40020015Reference audio exceeds 60 secondsUpload a reference recording between 3 and 60 seconds
40020016Reference audio is shorter than 3 seconds or does not contain enough usable speechUpload clear, continuous speech rather than silence or noise
40020017Pauses in the reference speech are too longUpload a recording with more continuous speech

If streaming generation stops unexpectedly, provide the HTTP status, API endpoint, and approximate time with time zone when contacting support.