ErrCode. A response with HTTP 200 is successful only when ErrCode=0.ErrCode | Meaning |
|---|---|
0 | Success |
400011 | Missing required parameter |
400012 | Invalid account |
400013 | Invalid parameter type or value |
400017 | Invalid parameter |
400018 | Prompt length exceeds the limit |
400019 | Prompt or negative-prompt length exceeds the limit |
400032 | Invalid image ID |
500008 | Requested data not found |
500020 | Permission denied |
500030 | Image size or resolution exceeds the limit |
500031 | Failed to retrieve image information |
500032 | Unsupported image format |
500033 | Invalid image dimensions |
500041 | Image upload failed |
500042 | Invalid image path |
500044 | Concurrency limit reached |
500054 | Content moderation failed |
500060 | Monthly effect activation limit reached |
500063 | Pre-moderation failed |
500064 | Content deleted or unavailable |
500069 | Service under high load |
500070 | Template not activated |
500071 | Resolution unsupported for the selected capability |
500090 | Insufficient Credit balance |
500100 | Internal database error |
10004 | API Key is missing |
10005 | API Key is not registered |
712008 | Request rate limit reached |
99999 | Unknown error |
ErrCode.| Scenario | HTTP status | ErrCode |
|---|---|---|
| Missing API Key | 200 | 10004 |
| Unregistered API Key | 200 | 10005 |
| JSON type or binding error | 400 | 400013 |
| Insufficient generation balance | 200 | 500090 |
| Account or IP request rate limit | 200 | 712008 |
| Concurrent generation limit | 200 | 500044 |
10004, 10005, 400012, or 500020, verify the API Key, account, region, endpoint permission, and activated capability. Never expose the API Key in client-side code or logs.400011, 400013, 400017, 400018, 400019, 400032, 500030, 500031, 500032, 500033, 500041, or 500042, compare the request with the interface schema and confirm that uploaded resources belong to the same API account and region.500054 or 500063, review the input prompt and media before retrying. Do not automatically resubmit the same content.712008, reduce the request rate and retry with backoff. For 500044, wait for an active task to finish before retrying. For 500090, restore the account balance before creating another task. For 500069, retry with backoff and avoid submitting duplicate generation requests.ErrCode, ErrMsg, Ai-trace-id, and video_id when available. Do not include your full API Key.