DeerAPI 全轨声曲分离接口指南:通过 POST /suno/submit/music 提交 task_id 与 clip_id 获取分轨任务,查询返回各轨 clip_id 与 URL,并说明 Suno 参数与 5 倍计费规则。
curl --request POST \
--url https://api.deerapi.com/suno/submit/music \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"task": "gen_stem",
"task_id": "7e0000d1-511e-482e-9b13-f6f8dbb02a05",
"generation_type": "TEXT",
"title": "安全之弦",
"mv": "chirp-auk",
"make_instrumental": true,
"continue_clip_id": "31f022a4-b95c-4988-9608-281172753cf4",
"continued_aligned_prompt": null,
"continue_at": null,
"stem_type_id": 91,
"stem_type_group_name": "Twelve",
"stem_task": "twelve"
}
'{
"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 就是 A 步骤中的 clip_idstem_type_group_name 为 Twelvestem_task 为 twelveBearer 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": "gen_stem",
"task_id": "7e0000d1-511e-482e-9b13-f6f8dbb02a05",
"generation_type": "TEXT",
"title": "安全之弦",
"mv": "chirp-auk",
"make_instrumental": true,
"continue_clip_id": "31f022a4-b95c-4988-9608-281172753cf4",
"continued_aligned_prompt": null,
"continue_at": null,
"stem_type_id": 91,
"stem_type_group_name": "Twelve",
"stem_task": "twelve"
}
'{
"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
}