task_id和continue_clip_idmake_instrumental参数提供对应必填项continue_at参数控制从源歌曲的特定时间点开始续写,精准对 接原有旋律| 参数名 | 参数要求 |
|---|---|
| prompt | 仅当make_instrumental=false(非纯音乐)时必填,用于填写歌词内容 |
| tags | 所有场景下必填,用于指定音乐风格,需用逗号分隔多个标签 |
| title | 所有场景下必填,用于填写续曲的歌曲标题 |
| make_instrumental | 必填,控制是否生成纯音乐: - true(纯音乐):需提供tags+title- false(带歌词):需提供tags+prompt+title |
| 参数名 | 不同模型对应的字符限制 |
|---|---|
| prompt | - chirp-v3-5、chirp-v4:最多3000字符 - chirp-auk、chirp-bluejay、chirp-crow:最多5000字符 |
| tags | - chirp-v3-5、chirp-v4:最多200字符 - chirp-auk、chirp-bluejay、chirp-crow:最多1000字符 |
| title | 所有模型统一限制:最多80字符 |
curl --location --request POST 'https://api.302.ai/suno/submit/music' \
--header 'Authorization: Bearer ' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
"prompt": "[Verse]\nSun high in the sky\nFarmer'\''s sweat drops down\nWorking in the fields\nHard work all around\n\n[Verse 2]\nFood on your plate you see\nEvery grain took care\nThe effort and the pain\nA story it holds there\n\n[Chorus]\nUnderneath the sun\nLabor never done\nEvery single bite\nTakes morning till the night\n\n[Verse 3]\nDay in and day out\nFields wear farmer'\''s toil\nUnderneath the ground\nDreams of fertile soil\n\n[Bridge]\nSo we must understand\nThe work behind each meal\nIn every slice of bread\nA farmer'\''s heart is real\n\n[Chorus]\nUnderneath the sun\nLabor never done\nEvery single bite\nTakes morning till the night",
"tags": "rap",
"mv": "chirp-v3-5",
"title": "不离不弃",
"task_id": "469a479492f64ff4bb8d2ac3a85396f8",
"continue_clip_id": "971c0fb8-5ad9-4fbc-9505-842edf39dba6",
"continue_at": 80,
"make_instrumental": false
}'{
"code": 200,
"message": "",
"data": "69c61512-278e-4ff4-b6ea-f3b278329b04"
}