- 系统介绍
- 系统优势
- 补充说明
- 辅助功能
- 按量计费
- 按次计费
- OpenMeta
- GPT 4o Image Generation
- Midjourney Proxy
- Midjourney Chat
- 即梦AI2.0生图
- Recraft Proxy
- Flux.1 Proxy
- SD Proxy
- SD Chat
- Sora Proxy
- Kling Proxy
- CogVideoX Proxy
- Runway Proxy
- Runway Chat
- Luma Proxy
- Luma Chat
- Pika1.5 Proxy
- Pika1.5 Chat
- Domo Proxy
- 海绵音乐(音乐生成)
- Suno Proxy
- Suno Chat
- Udio Proxy
- Udio Chat
生成音乐
开发中
开发环境
开发环境
POST
https://draw.openai-next.com/udio/generate-proxy
请求参数
Query 参数
string
可选
Header 参数
string
可选
Body 参数application/json
Udio API 音乐生成请求参数的 JSON Schema 定义
prompt
string
生成提示词
>= 1 字符
示例值:
A submarine crew discovering an underwater civilization, orchestral, cinematic
lyrics
string
歌词内容
默认值:
lyrics_type
enum<string>
歌词生成类型
枚举值:
generateuserinstrumental
默认值:
generate
bypass_prompt_optimization
boolean
跳过提示词优化
默认值:
false
seed
integer
随机种子
默认值:
-1
song_section_start
number
歌曲片段起始位置
>= 0<= 1
默认值:
0.4
prompt_strength
number
提示词影响强度
>= 0<= 1
默认值:
0.5
clarity_strength
number
清晰 度强度
>= 0<= 1
默认值:
0.25
lyrics_strength
number
歌词影响强度
>= 0<= 1
默认值:
0.5
generation_quality
number
生成质量
>= 0<= 1
默认值:
0.75
negative_prompt
string
反向提示词
默认值:
model_type
enum<string>
模型类型
枚举值:
udio32-v1.5udio130-v1.5
默认值:
udio32-v1.5
config
object
配置选项
mode
enum<string>
生成模式
枚举值:
regular
默认值:
regular
示例
{
"prompt": "A submarine crew discovering an underwater civilization, orchestral, cinematic",
"lyrics": "",
"lyrics_type": "generate",
"bypass_prompt_optimization": false,
"seed": -1,
"song_section_start": 0.4,
"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 --request POST 'https://draw.openai-next.com/udio/generate-proxy' \
--header 'Content-Type: application/json' \
--data-raw '{
"prompt": "A submarine crew discovering an underwater civilization, orchestral, cinematic",
"lyrics": "",
"lyrics_type": "generate",
"bypass_prompt_optimization": false,
"seed": -1,
"song_section_start": 0.4,
"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
object {0}
示例
{
"message": "Success",
"generation_id": "0b77a2ce-980c-4a33-bf37-2deac7adaab1",
"track_ids": [
"ff89d562-4b05-4e31-a0d6-ad9795d599ee",
"0d23e494-4576-4d55-bb44-bbe31f8d785e"
]
}
🟢200成功
修改于 2025-04-01 06:48:33