生成音乐
POST
https://api.deerapi.com/suno/submit/music
生成音乐片段
模式
灵感模式
自定义模式
mv
(字符串): 音乐作品的版本。title
(字符串): 提交音乐的标题。歌曲续集
prompt
(字符串): 提交音乐的提示。tags
(string): 与提交的音乐相关的标签。mv
(字符串): 音乐作品的版本。title
(字符串): 音乐提交的标题。task_id
(字符串): 与音乐作品相关联的任务的标识符。continue_clip_id
(字符串): 要继续的片段的标识符。continue_at
(字符串): 在提交的音乐中要继续播放的位置。negative_tags
(字符串): 与提交的音乐相关联的负标签。请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.deerapi.com/suno/submit/music' \
--header 'Authorization: Bearer {{api-key}}' \
--header 'Content-Type: application/json' \
--data-raw '1.灵感模式
{
"gpt_description_prompt": "cat"
}
2.自定义模式
{
"prompt": "[Verse]\nWalking down the streets\nBeneath the city lights\nNeon signs flickering\nLighting up the night\nHeart beating faster\nLike a drum in my chest\nI'\''m alive in this moment\nFeeling so blessed\n\nStilettos on the pavement\nStepping with grace\nSurrounded by the people\nMoving at their own pace\nThe rhythm of the city\nIt pulses in my veins\nLost in the energy\nAs my worries drain\n\n[Verse 2]\nConcrete jungle shining\nWith its dazzling glow\nEvery corner hiding secrets that only locals know\nA symphony of chaos\nBut it'\''s music to my ears\nThe hustle and the bustle\nWiping away my fears",
"tags": "emotional punk",
"mv": "chirp-v4",
"title": "City Lights"
}
3.续写
{
"prompt": "[Verse]\nWalking down the streets\nBeneath the city lights\nNeon signs flickering\nLighting up the night\nHeart beating faster\nLike a drum in my chest\nI'\''m alive in this moment\nFeeling so blessed\n\nStilettos on the pavement\nStepping with grace\nSurrounded by the people\nMoving at their own pace\nThe rhythm of the city\nIt pulses in my veins\nLost in the energy\nAs my worries drain\n\n[Verse 2]\nConcrete jungle shining\nWith its dazzling glow\nEvery corner hiding secrets that only locals know\nA symphony of chaos\nBut it'\''s music to my ears\nThe hustle and the bustle\nWiping away my fears", // 可以空 ""
"tags": "bass-driven atmospheric heavy metal",
"negative_tags": "dance",
"mv": "chirp-v4", // 上传后续写 chirp-v4-upload
"title": "City Lights",
"task_id": "736a6f88-bd29-4b1e-b110-37132a5325ac",
"continue_clip_id": "736a6f88-bd29-4b1e-b110-37132a5325ac_1", // 填写结尾带序号的id,不是clip_id
"continue_at": 80,
"task": "extend"
}'
响应示例响应示例
{
"code": "success",
"message": "",
"data": "736a6f88-bd29-4b1e-b110-37132a5325ac"
}
请求参数
Header 参数
Authorization
string
必需
示例值:
Bearer {{api-key}}
Body 参数application/json
返回响应
修改于 2025-04-02 05:12:15