- 指南
- 通知设置-WebHook参数介绍
- 聊天(Chat)
- 所有对话模型均兼容 OpenAI 格式
- Realtime (实时语音、对话
- 聊天完成对象
- 聊天完成块对象
- GPTs
- 多模态聊天(读图\读视频\生图
- Claude 官方格式
- 对话聊天(OpenAI 格式POST
- gpt-3.5-turbo-instructPOST
- 对话 Claude ThinkingPOST
- RAG(嵌入、重排序
- 视频模型
- 视频生成模型简介
- pixverse
- 快手可灵(官方格式)
- Luma 文生视频
- 智谱清影 文生视频
- Runway
- Pika
- Sora
- 数字人
- 绘图模型
- 音频接口
- 文件上传(Files)
- PPT接口
- 帮助中心
- 平台API
- 废弃、未开放
根据歌词创建音乐
POST
{{BASE_URL}}/udio/submit/music
最后修改时间:2024-11-07 16:06:55
请求参数
Query 参数
string
可选
Header 参数
Authorization
string
可选
示例值:
sk-xxx
string
可选
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"
}
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request POST '{{BASE_URL}}/udio/submit/music' \
--header 'Authorization: sk-xxx' \
--header 'Content-Type: application/json' \
--data-raw '{
"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成功
application/json
Body
code
string
必需
message
string
必需
data
string
必需
示例
{
"code": "success",
"message": "",
"data": "8b171b81-30c0-40a0-85de-627abad34eb6"
}
修改于 2024-11-07 16:06:55