DeerAPI 歌曲拼接接口:通过 POST /suno/submit/concat 将 extend 续写生成的音乐片段 clip_id 无缝合并为完整音轨,并配合单任务查询获取拼接结果。
curl --request POST \
--url https://api.deerapi.com/suno/submit/concat \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"clip_id": "task_id_after_extension",
"is_infill": false
}
'{
"code": "<string>",
"message": "<string>",
"data": "<string>"
}/suno/submit/concat 接口允许您将扩展的音乐片段拼接成无缝的音频轨道。此接口专门用于合并通过歌曲续写(extend)过程创建的音乐片段。
⚠️ 重要前置条件: 在使用此接口之前,您必须先调用生成音乐片段接口并设置task: "extend"来创建扩展的音乐片段。只有来自扩展任务的clip_id才能在此拼接接口中使用。
/suno/submit/music 生成扩展的音乐片段,请求结构如下:
{
"prompt": "[Verse]\n您的歌词内容...",
"tags": "bass-driven atmospheric heavy metal",
"negative_tags": "dance",
"mv": "chirp-v4",
"title": "City Lights",
"task_id": "1e338c51-d114-4b82-8cff-e6e6b6fd0096",
"continue_clip_id": "c80cea18-8dd1-4dd2-a77a-95498276b39a",
"continue_at": 80,
"task": "extend"
}
clip_id 调用此拼接接口。
步骤 3:使用单任务查询接口查询拼接结果,传入返回的 task_id。Bearer token authentication. Use your DeerAPI key.
curl --request POST \
--url https://api.deerapi.com/suno/submit/concat \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"clip_id": "task_id_after_extension",
"is_infill": false
}
'{
"code": "<string>",
"message": "<string>",
"data": "<string>"
}