根据歌词创建音乐
POST
{{BASE_URL}}/udio/submit/music最后修改时间: 1 个月前
详细请看接入流程
请求参数
Header 参数
Authorization
string
可选
示例值:
sk-xxx
Body 参数application/json
object {0}
示例
{
"gen_params": {
"prompt": "rock, pop soul, electronic, ",
"lyrics": "[Verse 1]\nIn the silence, echoes fade, footsteps in the ground \nTime's slipping, memories made, with whispers all around \nAs the stars dim, shadows play, we take our final bow .....",
"lyrics_type": "user",
"bypass_prompt_optimization": false,
"seed": -1,
"song_section_start": 0,
"song_section_end": 1,
"lyrics_placement_start": 0,
"lyrics_placement_end": 0.95,
"prompt_strength": 0.5,
"clarity_strength": 0.25,
"lyrics_strength": 0.5,
"generation_quality": 0.75,
"negative_prompt": "",
"model_type": "udio130-v1.5",
"config": {
"mode": "regular"
}
}
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
string
必需
message
string
必需
data
string
必需
示例
{
"code": "success",
"message": "",
"data": "8b171b81-30c0-40a0-85de-627abad34eb6"
}
最后修改时间: 1 个月前