Music Generation API
Suno, ElevenLabs — generate full songs with vocals, lyrics, instruments via one API
Supported models
Pick any model slug from the table and pass it as model in the request body. All music models share the same endpoint shape.
Endpoint
POST https://aimarcusimage.eu/api/v1/jobs/createTask
Request
curl https://aimarcusimage.eu/api/v1/jobs/createTask \
-H "Authorization: Bearer sk-aig-YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "suno-v4-5",
"input": {
"prompt": "upbeat synthwave track, 120 BPM, driving bass, retro 80s vibe, instrumental"
}
}'
Response
{
"code": 200,
"data": {
"taskId": "task_01j..."
}
}
Music generation is async. Poll GET /api/v1/jobs/recordInfo?taskId=... every 3-5 seconds, or set up a webhook.
Poll task status
curl https://aimarcusimage.eu/api/v1/jobs/recordInfo?taskId=task_01j... \ -H "Authorization: Bearer sk-aig-YOUR_KEY"