{
"model": "suno",
"task_type": "lyrics",
"input": {
"prompt": "Cat Dance, romantic raga, in English"
},
"config": {
"webhook_config": {
"endpoint": "https://webhook.site/3486fee2-1a11-4377-a5d6-ee09088ceb66",
"secret": ""
}
}
}curl --location --request POST 'https://api.piapi.ai/api/v1/task' \
--header 'X-API-Key;' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "suno",
"task_type": "lyrics",
"input": {
"prompt": "Cat Dance, romantic raga, in English"
},
"config": {
"webhook_config": {
"endpoint": "https://webhook.site/3486fee2-1a11-4377-a5d6-ee09088ceb66",
"secret": ""
}
}
}'{
"code": 200,
"data": {
"task_id": "1dbf2243-ee90-424d-9700-eb1ca7a354f8",
"model": "suno",
"task_type": "lyrics",
"status": "pending",
"config": {
"service_mode": "",
"webhook_config": {
"endpoint": "https://webhook.site/3486fee2-1a11-4377-a5d6-ee09088ceb66",
"secret": ""
}
},
"input": null,
"output": null,
"meta": {
"created_at": "2025-12-09T02:54:52.144989923Z",
"started_at": "0001-01-01T00:00:00Z",
"ended_at": "0001-01-01T00:00:00Z",
"usage": {
"type": "llm",
"frozen": 0,
"consume": 50000
},
"is_using_private_pool": false
},
"detail": null,
"logs": [],
"error": {
"code": 0,
"raw_message": "",
"message": "",
"detail": null
}
},
"message": "success"
}