GET
/v2/feed?workId=xxx音乐生成任务状态API
获取音乐生成任务的状态和结果。
GET
https://udioapi.pro/api/v2/feed?workId=xxxtips
使用此端点在生成后轮询任务状态。
阶段:文本、首先、完成。
每 5-10 秒轮询一次,直到成功或失败。
requestParams
| paramName | paramType | required | description |
|---|---|---|---|
workId | string | yes | 音乐生成任务的唯一ID。 |
responses
json
{
"code": 200,
"message": "success",
"data": {
"type": "SUCCESS",
"request_body": {
"prompt": "prompt sample",
"title": "title sample",
"tags": "tags sample",
"make_instrumental": false,
"model": "chirp-v3-5"
},
"response_data": [
{
"id": "xxx",
"audio_url": "https://audiopipe.suno.ai/?item_id=xxx",
"image_url": "https://cdn2.suno.ai/image_xxx.jpeg",
"image_large_url": "https://cdn2.suno.ai/image_xxx.jpeg",
"created_at": "2025-01-01T22:10:31.665Z",
"timestamp": 1740620331100,
"status": "text",
"title": "",
"prompt": "",
"tags": "",
"duration": "",
"model_name": "chirp-v3-5",
"extra_message": "Text generated successfully.",
"fail_message": "",
"error_message": ""
},
{
"id": "xxx",
"audio_url": "https://audiopipe.suno.ai/?item_id=xxx",
"image_url": "https://cdn2.suno.ai/image_xxxx.jpeg",
"image_large_url": "https://cdn2.suno.ai/image_xxx.jpeg",
"created_at": "2025-01-01T22:10:31.665Z",
"timestamp": 1740620331100,
"status": "text",
"title": "",
"prompt": "",
"tags": "",
"duration": "",
"model_name": "chirp-v3-5",
"extra_message": "Text generated successfully.",
"fail_message": "",
"error_message": ""
}
],
"created_at": "2025-01-01T22:10:31.665Z"
}
}