/api/v1/generate/add-vocals endpoint, you can use the callBackUrl parameter to set a callback URL. The system will automatically push the results to your specified address when the task is completed./api/v1/generate/add-vocals - Add vocals to uploaded music filescallBackUrl in the following format:{
"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": "[Verse] Night city lights shining bright",
"model_name": "chirp-v4-5",
"title": "Iron Man",
"createTime": 1786343609818,
"duration": 198.44,
"tags": "electrifying, rock",
"source_audio_url":"https://example.cn/****.jpeg",
"source_image_url":"https://example.cn/****.mp3",
"source_stream_audio_url":"https://example.cn/****"
},
{
"id": "e231****-****-****-****-****8cadc7dc",
"audio_url": "https://example.cn/****.mp3",
"stream_audio_url": "https://example.cn/****",
"image_url": "https://example.cn/****.jpeg",
"prompt": "[Verse] Night city lights shining bright",
"model_name": "chirp-v4-5",
"title": "Iron Man",
"createTime": 1786343609818,
"duration": 198.44,
"tags": "electrifying, rock",
"source_audio_url":"https://example.cn/****.jpeg",
"source_image_url":"https://example.cn/****.mp3",
"source_stream_audio_url":"https://example.cn/****"
}
]
}
}| Status Code | Description |
|---|---|
| 200 | Success - Request has been processed successfully |
| 400 | Validation Error - Lyrics contained copyrighted material |
| 408 | Rate Limited - Timeout |
| 413 | Conflict - Uploaded audio matches existing work of art |
| 500 | Server Error - An unexpected error occurred while processing the request |
| 501 | Audio generation failed |
| 531 | Server Error - Sorry, the generation failed due to an issue. Your credits have been refunded. Please try again |
data.data (array)data.data[].id (string)data.data[].audio_url (string)data.data[].stream_audio_url (string)data.data[].image_url (string)data.data[].prompt (string)data.data[].model_name (string)data.data[].title (string)data.data[].tags (string)data.data[].createTime (integer)data.data[].duration (number)data.data[].source_audio_url(string)data.data[].source_image_url(string)data.data[].source_stream_audio_url(string)