Light Mode
Generate Full Song
POST
/api/v1/taskThis endpoint from PiAPI's Suno API generates the full song based on extended clips.
Note that this endpoint solely works for Extended Clips and the results will be accessible in the "Get Task" endpoint.
Request
Header Params
x-api-key
string
required
Your API key for authorization
Body Params application/json
model
enum<string>
required
Allowed value:
suno
task_type
enum<string>
required
Allowed value:
concat_music
input
object
required
clip_id
string
required
Example
{
"model": "suno",
"task_type": "concat_music",
"input": {
"clip_id": "78ce97fd-872a-4d08-938b-c4e0a9a243f1"
},
"config": {
"service_mode": "",
"webhook_config": {
"endpoint": "",
"secret": ""
}
}
}
Request samples
Responses
Success(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
object {0}
Example
{
"code": 200,
"data": {
"task_id": "93bbc063-abc1-4660-a9be-0c0a38ffe49b",
"model": "suno",
"task_type": "concat_music",
"status": "pending",
"config": {
"service_mode": "public",
"webhook_config": {
"endpoint": "",
"secret": ""
}
},
"input": {
"clip_id": "78ce97fd-872a-4d08-938b-c4e0a9a243f1"
},
"output": {
"clips": null
},
"meta": {},
"detail": null,
"logs": [],
"error": {
"code": 0,
"raw_message": "",
"message": "",
"detail": null
}
},
"message": "success"
}
Last modified: 11 days ago