callBackUrl to receive real-time notifications about task progress and completion.{
"code": 200,
"msg": "All generated successfully.",
"data": {
"callbackType": "complete",
"task_id": "2fac****9f72",
"data": [
{
"id": "e231****-****-****-****-****8cadc7dc",
"audio_url": "https://example.cn/****.mp3",
"stream_audio_url": "https://example.cn/****",
"image_url": "https://example.cn/****.jpeg",
"prompt": "A calm and relaxing piano track.",
"model_name": "chirp-v3-5",
"title": "Relaxing Piano",
"tags": "Jazz",
"createTime": "2025-01-01 00:00:00",
"duration": 198.44
}
]
}
}{
"code": 501,
"msg": "Audio generation failed.",
"data": {
"callbackType": "error",
"task_id": "2fac****9f72",
"error": "Generation failed due to technical issues"
}
}| Code | Description |
|---|---|
| 200 | Success - Task completed successfully |
| 400 | Validation error - Parameter validation failed |
| 408 | Timeout - Request timeout |
| 500 | Server error - Unexpected error occurred |
| 501 | Audio generation failed |
| 531 | Server error - Generation failed, credits refunded |
complete or errorcallbackType field to understand the callback stage