局部替换歌词
POST /suno/submit/music
概览
| Method | POST |
|---|---|
| Path | /suno/submit/music |
| Type | http |
| Status | -1 |
| Module | 2102810 |
| Folder | 86482047 |
请求体
{ "type": "application/json", "parameters": [], "jsonSchema": { "type": "object", "properties": { "mv": { "type": "string" }, "prompt": { "type": "string" }, "tags": { "type": "string" }, "title": { "type": "string" }, "task": { "type": "string" }, "continue_clip_id": { "type": "string" }, "metadata_params": { "type": "object", "properties": { "continue_clip_id": { "type": "string" }, "continued_aligned_prompt": { "type": "string" }, "infill_start_s": { "type": "number" }, "infill_end_s": { "type": "number" }, "infill_context_start_s": { "type": "number" }, "infill_context_end_s": { "type": "number" }, "metadata": { "type": "object", "properties": { "infill_lyrics": { "type": "string" } }, "required": [ "infill_lyrics" ], "x-apifox-orders": [ "infill_lyrics" ] } }, "required": [ "continue_clip_id", "continued_aligned_prompt", "infill_start_s", "infill_end_s", "infill_context_start_s", "infill_context_end_s", "metadata" ], "x-apifox-orders": [ "continue_clip_id", "continued_aligned_prompt", "infill_start_s", "infill_end_s", "infill_context_start_s", "infill_context_end_s", "metadata" ] } }, "required": [ "mv", "prompt", "tags", "title", "task", "continue_clip_id", "metadata_params" ], "x-apifox-orders": [ "mv", "prompt", "tags", "title", "task", "continue_clip_id", "metadata_params" ] }, "required": true, "mediaType": "", "examples": [ { "mediaType": "application/json", "value": "{\n \"mv\": \"chirp-v4-5\", // 模型版本\n \"prompt\": \"完整上下文歌词…\", // 完整上下文歌词\n \"tags\": \"pop,female voice\", // 风格\n \"title\": \"我要飞(replace)\", // 标题\n \"task\": \"infill\", // 固定:局部替换\n \"continue_clip_id\": \"8292f0c5-b682-479e-a852-dbc7d2cab4ee\", // 被编辑原曲 clipId,必填\n \"metadata_params\": {\n \"continue_clip_id\": \"8292f0c5-b682-479e-a852-dbc7d2cab4ee\",\n \"continued_aligned_prompt\": \"与 prompt 相同或更长\",\n \"infill_start_s\": 28.48, // 替换区间起始秒\n \"infill_end_s\": 53.16, // 替换区间结束秒\n \"infill_context_start_s\": 1.44, // 上下文参考起始秒\n \"infill_context_end_s\": 80.2, // 上下文参考结束秒\n \"metadata\": { \"infill_lyrics\": \"新歌词片段\" } // 替换进去的新歌词片段\n }\n}" } ], "oasExtensions": "" }
响应
[ { "id": 178091450, "name": "成功", "code": 200, "contentType": "json", "jsonSchema": { "type": "object", "properties": {} }, "itemSchema": {}, "description": "", "mediaType": "", "headers": [] } ]
响应示例
[ { "name": "成功", "responseId": 178091450, "data": "{\"code\":\"success\",\"message\":\"\",\"data\":\"1265431382265176065\"}", "id": "019e5a54-b26c-7258-9ee5-768be954fcc4" } ]