API reference
🇨🇳 Chinese
  • 🇨🇳 Chinese
  • 🇺🇸 English
  1. 官方格式
API reference
🇨🇳 Chinese
  • 🇨🇳 Chinese
  • 🇺🇸 English
  • 系统内部接口
    • 用户查询账号信息
      GET
  • OpenAI
    • 聊天
      • 文本聊天
      • 识图
    • Responses
      • 创建模型响应
    • OpenAI-Realtime
      • Realtime
    • Completions
      • Instruct
    • 音频接口(Audio)
      • 音频转文本
      • 创建翻译
      • 文本转音频
    • 图像
      • 创建图像
      • 创建图像编辑
      • 创建图像变化
    • 嵌入
      • 创建嵌入
    • 审核
      • 创建审核
    • 模型
      • 获取模型列表
    • 帮助中心
      • 常见问题及解决办法
  • Anthropic
    • Anthropic Claude
      POST
  • Suno(音乐)
    • 场景一:续写音乐并获取完整音乐
    • 场景二:Cover 音乐:音乐翻版\修改风格
    • 场景三:Replace Section:替换片段
    • 场景四:Persona:歌手风格
    • 场景五:stems:声曲分离(仅限chirp_auk)
    • 场景六:Timing:歌词、音频时间线(仅限chirp_auk)
    • 场景七:wav:获取 wav 格式文件
    • 场景八:mp4:生成 mp4 mv 视频(仅限chirp_auk)
    • 生成音乐
      POST
    • 上传音乐
      POST
    • 歌曲拼接
      POST
    • 新建 Persona
      POST
    • 声曲分离
      GET
    • Timing:歌词、音频时间线
      GET
    • 获取 wav 格式文件
      GET
    • 生成 mp4 mv 视频
      GET
    • 生成歌词
      POST
    • 查询单个任务
      GET
    • 批量查询任务
      POST
    • 批量查询歌曲
      GET
  • Udio(音乐)
    • 官方格式
      • 生成音乐
        POST
      • 查询单个任务
        GET
  • Midjourney API文档(生图)
    • 快速教学-完整流程一遍过
    • 怎么切换不同的速度
    • 任务提交
      • 提交Imagine任务
      • 提交Action任务
      • 提交Blend任务
      • 提交Describe任务
      • 提交Modal
      • 提交Shorten任务
      • 提交swap_face任务
      • 上传文件到discord
    • 任务查询
      • 指定ID获取任务
      • 根据ID列表查询任务
      • 根据ID列表查询任务-字段displays
      • 获取任务图片的seed
      • 查询所有任务
      • 分页查询任务
      • 查询任务队列
      • 取消任务
  • Flux(生图)
    • 官方格式
      • 生成图片
      • 微调
      • 查询任务
    • OpenAI Dalle3格式
  • Recraft(生图)
    • 官方格式
      • 附录
      • Generate Image(生成图片)
      • Vectorize Image(矢量化图片)
      • Remove Background(删除背景)
      • Clarity Upscale(清晰度提升)
      • Generative Upscale(生成高清)
      • Create style(创建样式)
    • OpenAI Dalle3格式-生成图片
  • Ideogram(生图)
    • 官方文档(实时更新)
    • Generate with Ideogram 3.0
    • Edit with Ideogram 3.0
    • Remix with Ideogram 3.0
    • Reframe with Ideogram 3.0
    • Replace Background with Ideogram 3.0
    • Upscale
    • Describe
    • Generate(legacy)
    • Edit(legacy)
    • Remix(legacy)
  • Luma(视频)
    • 官方API格式接口
      • 生成视频
      • 单个查询任务
    • RixAPI格式接口
      • 任务提交
        • 文生视频
        • 图生视频
        • 扩展视频
        • 视频生成音频
        • 获取视频无水印链接
      • 任务查询
        • 单个查询任务
        • 批量查询任务
  • Runway(视频)
    • 官方API接口格式
      • 从图像生成视频
      • 获取任务详细信息
    • 逆向格式
      • generate(文本)
      • generate(参考图片)
      • video2video 视频转视频 风格重绘
      • Act-one 表情迁移
      • feed-获取任务
  • PIKA(视频)
    • generate(文本)
    • generate(参考图片)
    • generate(参考视频/扩展视频)
    • feed
  • 可灵API(官方接口)
    • 建议直接看官方文档
    • Callback协议
    • 生成图像
    • 文生视频
    • 图生视频
    • 多图参考生视频
    • 视频特效
    • 视频延长
    • 对口型
    • 虚拟试穿
    • 查询任务(单个)
  • Replicate 通用接口
    • 创建任务
    • 查询任务
  • MiniMax海螺(视频)
    • 官方文档
    • 视频生成
    • 查询任务
    • 文件下载
  1. 官方格式

生成音乐

POST
/udio/generate-proxy
Last modified:2024-11-04 16:19:41
详细说明:
song_section
用于指定在完整歌曲中生成片段的起始和结束位置。0% (0) 对应歌曲开头,50% (0.5) 对应歌曲中间,100% (1) 对应歌曲结尾。点击数值指示器可切换为自动模式,让模型自行决定最佳位置。这个功能在使用歌曲扩展特性时特别有用。
lyrics_placement
用于指定在完整歌曲中放置歌词的位置。8% 对应歌曲开头,50% 对应歌曲中间,90% 将在歌曲结尾处生成片段。这个功能在使用歌曲扩展特性时特别有用。
prompt_strength
控制提示词对生成内容的影响程度。较高的值可以提高对提示词的遵循度,但可能会导致生成的声音不够自然。
lyrics_strength
控制歌词对生成内容的影响程度。较低的值可能会产生更自然的声音,但可能会忽略部分歌词内容。
clarity_strength
控制模型在生成音频时对清晰度和乐器分离度的优先级。较高的值可能会产生更清晰的音频,但声音可能不够自然。
generation_quality
实验性功能。用于在生成质量和生成速度之间进行权衡。

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Header Params
Authorization
string 
optional
Example:
Bearer
Body Params application/json
gen_params
object 
required
prompt
string 
required
音乐生成的提示词
Example:
rock, pop soul, electronic
lyrics
string 
required
歌词内容
Example:
[Verse 1] In the silence, echoes fade, footsteps in the ground Time's slipping, memories made, with whispers all around As the stars dim, shadows play, we take our final bow
lyrics_type
enum<string> 
required
歌词类型
Allowed values:
userinstrumentalgenerate
Example:
user
model_type
enum<string> 
required
模型类型
Allowed values:
udio32-v1.5udio130-v1.5
Example:
udio130-v1.5
config
object 
required
negative_prompt
string 
optional
负面提示词
Example:
song_section_start
number 
required
歌曲片段开始位置
>= 0<= 1
Default:
0
Example:
0
song_section_end
number 
required
歌曲片段结束位置
>= 0<= 1
Default:
1
Example:
1
lyrics_placement_start
number 
required
歌词放置开始位置
>= 0<= 1
Example:
0
lyrics_placement_end
number 
required
歌词放置结束位置
>= 0<= 1
Example:
0.95
prompt_strength
number 
required
提示词强度
>= 0<= 1
Default:
0.5
Example:
0.5
clarity_strength
number 
required
清晰度强度
>= 0<= 1
Default:
0.25
Example:
0.25
lyrics_strength
number 
required
歌词强度
>= 0<= 1
Default:
0.5
Example:
0.5
generation_quality
enum<number> 
required
生成质量
Allowed values:
0.250.50.751
Default:
0.75
Example:
0.75
seed
number 
required
随机种子
Default:
-1
Example:
-1
bypass_prompt_optimization
boolean 
required
是否跳过提示词优化
Default:
false
Example:
false
Example
{
  "gen_params": {
    "prompt": "The last song ever sung on the planet earth",
    "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": "udio32-v1.5",
    "config": {
      "mode": "regular"
    }
  }
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST '/udio/generate-proxy' \
--header 'Authorization: Bearer' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
  "gen_params": {
    "prompt": "The last song ever sung on the planet earth",
    "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": "udio32-v1.5",
    "config": {
      "mode": "regular"
    }
  }
}'

Responses

🟢200成功
application/json
Body
code
string 
required
message
string 
required
data
string 
required
task_id
Example
{
  "code": "success",
  "message": "",
  "data": "736a6f88-bd29-4b1e-b110-37132a5325ac"
}
Previous
批量查询歌曲
Next
查询单个任务
Built with