DeerAPI 单轨声曲分离文档:通过 POST /suno/submit/music 提交 task_id 与 clip_id 生成分轨任务,查询返回各轨 clip_id 与 url,适用于 Suno 分轨处理。
curl --request POST \
--url https://api.deerapi.com/suno/submit/music \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"task": "example",
"task_id": "example",
"generation_type": "example",
"title": "example",
"mv": "example",
"make_instrumental": true,
"continue_clip_id": "example",
"stem_type_id": 1,
"stem_type_group_name": "example",
"stem_task": "example"
}
'{
"id": "<string>",
"clips": [
{
"id": "<string>",
"entity_type": "<string>",
"video_url": "<string>",
"audio_url": "<string>",
"major_model_version": "<string>",
"model_name": "<string>",
"metadata": {
"prompt": "<string>",
"history": [
{
"id": "<string>",
"type": "<string>",
"source": "<string>",
"infill": true,
"stem_type_id": 123,
"stem_type_group_name": "<string>",
"stem_task": "<string>",
"stem_from_id": "<string>"
}
],
"stem_from_id": "<string>",
"stem_task": "<string>",
"stem_type_id": 123,
"stem_type_group_name": "<string>",
"edited_clip_id": "<string>",
"type": "<string>",
"stream": true,
"infill": true,
"task": "<string>",
"can_remix": true,
"is_remix": true,
"priority": 123
},
"is_liked": true,
"user_id": "<string>",
"display_name": "<string>",
"handle": "<string>",
"is_handle_updated": true,
"avatar_image_url": "<string>",
"is_trashed": true,
"flag_count": 123,
"created_at": "<string>",
"status": "<string>",
"title": "<string>",
"play_count": 123,
"upvote_count": 123,
"is_public": true,
"allow_comments": true,
"more": "<string>"
}
],
"metadata": {
"prompt": "<string>",
"history": [
{
"id": "<string>",
"type": "<string>",
"source": "<string>",
"infill": true,
"stem_type_id": 123,
"stem_type_group_name": "<string>",
"stem_task": "<string>",
"stem_from_id": "<string>"
}
],
"stem_from_id": "<string>",
"stem_task": "<string>",
"stem_type_id": 123,
"stem_type_group_name": "<string>",
"edited_clip_id": "<string>",
"type": "<string>",
"stream": true,
"infill": true,
"task": "<string>",
"can_remix": true,
"is_remix": true,
"priority": 123
},
"major_model_version": "<string>",
"status": "<string>",
"created_at": "<string>",
"batch_size": 123
}task idtask id 后,根据需要获取歌曲的对应 clip_id 值task id ,clip_id 入参, 填入该接口,得到新的 task id 。task_id,得到分轨后每一轨的 clip_id 以及对应的 url生成音乐 接口注意事项:**
mv 为 chirp-auktask 为 gen_stemcontinue_clip_id 就是 2 步骤中的 clip_idstem_type_group_name 为 Twostem_task 为 twoBearer token authentication. Use your DeerAPI key.
curl --request POST \
--url https://api.deerapi.com/suno/submit/music \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"task": "example",
"task_id": "example",
"generation_type": "example",
"title": "example",
"mv": "example",
"make_instrumental": true,
"continue_clip_id": "example",
"stem_type_id": 1,
"stem_type_group_name": "example",
"stem_task": "example"
}
'{
"id": "<string>",
"clips": [
{
"id": "<string>",
"entity_type": "<string>",
"video_url": "<string>",
"audio_url": "<string>",
"major_model_version": "<string>",
"model_name": "<string>",
"metadata": {
"prompt": "<string>",
"history": [
{
"id": "<string>",
"type": "<string>",
"source": "<string>",
"infill": true,
"stem_type_id": 123,
"stem_type_group_name": "<string>",
"stem_task": "<string>",
"stem_from_id": "<string>"
}
],
"stem_from_id": "<string>",
"stem_task": "<string>",
"stem_type_id": 123,
"stem_type_group_name": "<string>",
"edited_clip_id": "<string>",
"type": "<string>",
"stream": true,
"infill": true,
"task": "<string>",
"can_remix": true,
"is_remix": true,
"priority": 123
},
"is_liked": true,
"user_id": "<string>",
"display_name": "<string>",
"handle": "<string>",
"is_handle_updated": true,
"avatar_image_url": "<string>",
"is_trashed": true,
"flag_count": 123,
"created_at": "<string>",
"status": "<string>",
"title": "<string>",
"play_count": 123,
"upvote_count": 123,
"is_public": true,
"allow_comments": true,
"more": "<string>"
}
],
"metadata": {
"prompt": "<string>",
"history": [
{
"id": "<string>",
"type": "<string>",
"source": "<string>",
"infill": true,
"stem_type_id": 123,
"stem_type_group_name": "<string>",
"stem_task": "<string>",
"stem_from_id": "<string>"
}
],
"stem_from_id": "<string>",
"stem_task": "<string>",
"stem_type_id": 123,
"stem_type_group_name": "<string>",
"edited_clip_id": "<string>",
"type": "<string>",
"stream": true,
"infill": true,
"task": "<string>",
"can_remix": true,
"is_remix": true,
"priority": 123
},
"major_model_version": "<string>",
"status": "<string>",
"created_at": "<string>",
"batch_size": 123
}