curl --request POST \
--url https://api.acedata.cloud/acemusic/audios \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"action": "generate",
"custom": false,
"prompt": "A warm acoustic folk song about returning home"
}
'import requests
url = "https://api.acedata.cloud/acemusic/audios"
payload = {
"action": "generate",
"custom": False,
"prompt": "A warm acoustic folk song about returning home"
}
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: 'generate',
custom: false,
prompt: 'A warm acoustic folk song about returning home'
})
};
fetch('https://api.acedata.cloud/acemusic/audios', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"task_id": "<string>",
"trace_id": "<string>"
}{
"task_id": "<string>",
"trace_id": "<string>",
"status": "<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>"
}{
"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 Audios
Generate, cover or mash up one group of two song candidates, or import one MP3 audio reference from an HTTPS URL. Complete two-track groups and successful one-track imports have separate prices. Final failed or partial generation groups are free. Save the original task ID and query it instead of resubmitting. Reference-enabled callers can guide an acemusic-v1.1 idea with one previously imported MIDI, image or video asset by sending asset_id and asset_type together.
curl --request POST \
--url https://api.acedata.cloud/acemusic/audios \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"action": "generate",
"custom": false,
"prompt": "A warm acoustic folk song about returning home"
}
'import requests
url = "https://api.acedata.cloud/acemusic/audios"
payload = {
"action": "generate",
"custom": False,
"prompt": "A warm acoustic folk song about returning home"
}
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: 'generate',
custom: false,
prompt: 'A warm acoustic folk song about returning home'
})
};
fetch('https://api.acedata.cloud/acemusic/audios', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"task_id": "<string>",
"trace_id": "<string>"
}{
"task_id": "<string>",
"trace_id": "<string>",
"status": "<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>"
}{
"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>"
}Autorizzazioni
API token from https://platform.acedata.cloud
Corpo
- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
- Option 6
Publicly downloadable HTTPS MP3 URL. Keep the link reachable until the task delivers the playback and download URL. Delivery supports external MP3 files up to 32 MiB and five public HTTPS redirects. For local, private or larger files, use the platform file upload API and provide its MP3 file_url (up to 64 MiB). Use audio_id or mashup_audio_ids for already imported or generated tracks.
1 - 20000^https://Questa pagina è stata utile?

