ACE Music Tasks
curl --request POST \
--url https://api.acedata.cloud/acemusic/tasks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"action": "retrieve",
"id": "<string>",
"ids": [
"<string>"
]
}
'import requests
url = "https://api.acedata.cloud/acemusic/tasks"
payload = {
"action": "retrieve",
"id": "<string>",
"ids": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({action: 'retrieve', id: '<string>', ids: ['<string>']})
};
fetch('https://api.acedata.cloud/acemusic/tasks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"state": "<string>",
"status": "<string>",
"created_at": 123,
"finished_at": 123,
"request": {
"action": "<string>",
"model": "<string>",
"prompt": "<string>",
"lyric": "<string>",
"style": "<string>",
"title": "<string>",
"custom": true,
"async": true,
"audio_url": "<string>",
"name": "<string>",
"audio_id": "<string>",
"mashup_audio_ids": [
"<string>"
],
"audio_influence": 60
},
"response": {
"success": true,
"task_id": "<string>",
"trace_id": "<string>",
"status": "created",
"data": [
{
"id": "<string>",
"model": "<string>",
"state": "<string>",
"title": "<string>",
"lyric": "<string>",
"style": "<string>",
"audio_url": "<string>",
"image_url": "<string>",
"created_at": "<string>",
"duration": 1
}
],
"error": {
"code": "<string>",
"message": "<string>"
}
},
"type": "audios",
"trace_id": "<string>",
"started_at": 123,
"elapsed": 1
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
},
"task_id": "<string>",
"trace_id": "<string>"
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
},
"task_id": "<string>",
"trace_id": "<string>"
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
},
"task_id": "<string>",
"trace_id": "<string>"
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
},
"task_id": "<string>",
"trace_id": "<string>"
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
},
"task_id": "<string>",
"trace_id": "<string>"
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
},
"task_id": "<string>",
"trace_id": "<string>"
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
},
"task_id": "<string>",
"trace_id": "<string>"
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
},
"task_id": "<string>",
"trace_id": "<string>"
}ACE Music
ACE Music Tasks
Retrieve only tasks owned by the authenticated caller. Polling is free and remains available with a zero balance; authentication and API permissions are required.
POST
/
acemusic
/
tasks
ACE Music Tasks
curl --request POST \
--url https://api.acedata.cloud/acemusic/tasks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"action": "retrieve",
"id": "<string>",
"ids": [
"<string>"
]
}
'import requests
url = "https://api.acedata.cloud/acemusic/tasks"
payload = {
"action": "retrieve",
"id": "<string>",
"ids": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({action: 'retrieve', id: '<string>', ids: ['<string>']})
};
fetch('https://api.acedata.cloud/acemusic/tasks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"state": "<string>",
"status": "<string>",
"created_at": 123,
"finished_at": 123,
"request": {
"action": "<string>",
"model": "<string>",
"prompt": "<string>",
"lyric": "<string>",
"style": "<string>",
"title": "<string>",
"custom": true,
"async": true,
"audio_url": "<string>",
"name": "<string>",
"audio_id": "<string>",
"mashup_audio_ids": [
"<string>"
],
"audio_influence": 60
},
"response": {
"success": true,
"task_id": "<string>",
"trace_id": "<string>",
"status": "created",
"data": [
{
"id": "<string>",
"model": "<string>",
"state": "<string>",
"title": "<string>",
"lyric": "<string>",
"style": "<string>",
"audio_url": "<string>",
"image_url": "<string>",
"created_at": "<string>",
"duration": 1
}
],
"error": {
"code": "<string>",
"message": "<string>"
}
},
"type": "audios",
"trace_id": "<string>",
"started_at": 123,
"elapsed": 1
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
},
"task_id": "<string>",
"trace_id": "<string>"
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
},
"task_id": "<string>",
"trace_id": "<string>"
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
},
"task_id": "<string>",
"trace_id": "<string>"
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
},
"task_id": "<string>",
"trace_id": "<string>"
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
},
"task_id": "<string>",
"trace_id": "<string>"
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
},
"task_id": "<string>",
"trace_id": "<string>"
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
},
"task_id": "<string>",
"trace_id": "<string>"
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
},
"task_id": "<string>",
"trace_id": "<string>"
}授权
API token from https://platform.acedata.cloud
请求体
application/json
- Option 1
- Option 2
- Option 3
Page and page_size cannot be mixed with limit or offset. The resulting offset must not exceed 10000. Missing or foreign task IDs return 404 on retrieve and are omitted from batch results.
响应
Request accepted or result available. Inspect the task state before treating generation as complete.
- Option 1
- Option 2
- Option 3

