Extend Song
Submit this Suno capability through POST /v1/music/generations with model: "suno-extend".
Authorization
BearerAuth
使用 MAPI Bearer Token 认证。格式:Authorization: Bearer sk-xxxxxx。
In: header
Request Body
application/json
固定填写 suno-extend。
产出源音轨那次任务的 MAPI 公开 task_id,必填。
源任务 result.music[] 中的第几首(1-based,默认 1)。
1从第几秒开始续写,必须 ≥1 且小于源音轨实际时长。支持小数秒。
公共版本,省略默认 v6。使用 custom_model_id 时省略。
"v6""v6" | "v6-wild" | "v6-mini"自定义模型 UUID。与 version、persona_id 互斥。
true 按 prompt 歌词续写;false 为灵感续写。省略默认 true。
true续写歌词,custom=true 时生效。
灵感提示词,仅显式 custom=false 时生效。
标题。仅 custom=true 时生效。
风格标签。仅 custom=true 时生效。
排除的风格标签。仅 custom=true 时生效。
人声性别。两种模式均生效。
"Male" | "Female"风格权重 0.00–1.00。仅 custom=true 时生效。
0 <= value <= 1创意度。新请求用本字段;兼容 weirdness_constraint。
0 <= value <= 1weirdness 的兼容旧名。
0 <= value <= 1音频权重。仅 custom=true 时生效。
0 <= value <= 1对输入歌词二次创作。仅 custom=true 时生效。
Persona ID。仅 custom=true,与 custom_model_id 互斥。
目标时长 10–360 秒,仅 custom=true。
10 <= value <= 360风格变化程度,可省略。
"off" | "normal" | "high" | "extra" | "max"Max 模式。启用要求 custom=true,按 2 倍计费。
false输出音频格式。
"mp3" | "m4a" | "wav"Response Body
application/json
application/json
curl -X POST "https://loading/v1/music/generations" \ -H "Content-Type: application/json" \ -d '{ "model": "suno-extend", "task_id": "task_aehCmxJ5YUNOIQGgkhvxaco4T9P2h3Dw", "audio_index": 1, "continue_at": 120, "version": "v6", "custom": true, "prompt": "[Outro]\n我们一起走向远方" }'{
"code": 200,
"message": "success",
"data": [
{
"status": "submitted",
"task_id": "task_aehCmxJ5YUNOIQGgkhvxaco4T9P2h3Dw"
}
]
}{
"code": "invalid_request",
"message": "continue_at is required",
"data": null
}Last updated on