Suno Music
A Suno music generation channel using an asynchronous "submit task → poll result" pattern. All paths are prefixed with /suno, and authentication uses Authorization: Bearer sk-....
Submit a Generation Task
POST
https://apicdn.xyc.ai/suno/submit/{action}
{action} is the generation action (such as music, lyrics, etc. — see the console for specifics). Example:
curl https://apicdn.xyc.ai/suno/submit/music \
-H "Authorization: Bearer sk-xxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"prompt": "An upbeat city pop electronic track with female vocal humming"
}'
Returns a task ID:
{
"code": "success",
"data": "task_xxxxxxxx"
}
Fetch Task Result
GET
https://apicdn.xyc.ai/suno/fetch/{id}
curl https://apicdn.xyc.ai/suno/fetch/task_xxxxxxxx \
-H "Authorization: Bearer sk-xxxxxxxx"
Batch fetching is also supported:
POST
https://apicdn.xyc.ai/suno/fetch
Polling Tip
After submitting, poll fetch at a set interval until the task completes. Generating music typically takes tens of seconds.