Skip to main content

Errors

Common error format​

API JSON error responses contain error_code, error_message, succeed, and data. The error_code is an application-level error code, not an HTTP status code.

{
"error_code": 10003,
"error_message": "Unauthorized",
"succeed": false,
"data": null
}

Check both the HTTP status and the business result. Even with HTTP 200, succeed: false and a nonzero error_code indicate a business failure. The data field can contain additional error details or be null.

Error message language​

For Text to Speech and Voice Design, error_message defaults to English. Send Accept-Language: en for English or Accept-Language: zh-CN for Chinese. This header controls only the language of the error message.

Text to Speech errors​

HTTP StatusBusiness error_codeMeaningWhat to Do
40010001Invalid request content or unsupported optionCheck the request and try again
40012913The voice does not support the selected model; data.errorKey: VOICE_MODEL_INCOMPATIBLEQuery voices with the same model_id and choose a returned ID
40010013Text exceeds the 500 weighted-character limitShorten the text; Han characters (including extensions), hiragana, katakana, Hangul, and ー/ー count as 2; CR/LF count as 0; other Unicode code points count as 1. 250 pure CJK characters are accepted; 251 are rejected
20010023No synthesizable contentPlease provide valid text or a supported event tag
40110003API key authentication failed, including a missing or invalid key or a disabled organization or projectCheck the API key and organization/project status
40220003Insufficient account balanceAdd funds and try again
40310004Permission denied for the requested operation or resourceCheck the API key’s permissions and organization membership; restore access before retrying
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

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

Voice Cloning errors​

HTTP StatusBusiness error_codeMeaningWhat to Do
40010001Invalid clone parameters or reference speech in an unsupported languageUse Chinese, English, Japanese, or Korean reference speech and check the other parameters
20012903Organization voice slots are full; succeed: false, data.errorKey: VOICE_SLOTS_FULLDelete an unused custom voice to free a slot or upgrade the plan before creating another voice
40910018voice_id already exists in the organization or is reserved by the systemUse another voice_id; the original voice is preserved
40410002Reference audio does not exist or has been deletedUpload the audio again and use the new ref_audio; do not retry the unchanged input
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 speech, including recordings with no detected usable speechUpload clear, continuous speech rather than silence or noise
40020017Pauses in the reference speech are too longUpload a recording with more continuous speech

Example business failure when saving a voice with full slots (HTTP 200):

{
"error_code": 12903,
"error_message": "No voice slots available. Please upgrade or free a slot.",
"succeed": false,
"data": {
"errorKey": "VOICE_SLOTS_FULL",
"details": null
}
}

Voice Design errors​

Business failures from the generation and save endpoints can return HTTP 200, with data: null. When saving a new voice, error_code: 12903 indicates insufficient voice slots. 10005 indicates a request-rate or generation-capacity limit; capacity rejections do not generate candidates or incur a charge. Temporary model or dependency failures return 20002.

See Voice Design: errors and recovery for the complete error codes, recommended actions, and retry guidance.