POST
/v2/upload-cover/generate上传封面生成API
上传音频并生成 AI 翻唱版本,同时保留原始旋律。
POST
https://udioapi.pro/api/v2/upload-cover/generatetips
模式:非自定义模式(简单)和自定义模式(完全控制)。
备注:文件保留 15 天,每 5-10 秒轮询一次状态,可选 callback_url。
requestHeaders
| name | required | description |
|---|---|---|
Authorization | yes | 用于身份验证的承载令牌 |
Content-Type | yes | application/json |
requestBody
请求体支持简单模式和自定义模式
commonParams
| paramName | paramType | required | description | example |
|---|---|---|---|---|
upload_url | string | yes | 音频文件的公共 URL | https://storage.example.com/my-song.mp3 |
model | string | yes | 人工智能模型 | chirp-v4-5 |
custom_mode | boolean | no | 启用自定义模式 | false |
make_instrumental | boolean | no | 生成乐器版本 | false |
prompt | string | no | 描述或歌词 | A calm and relaxing piano track with soft melodies |
style | string | no | 音乐风格 | pop, upbeat, electronic |
title | string | no | 歌名 | Summer Cover |
tags | string | no | 负面标签 | Heavy Metal, Upbeat Drums |
gender | string | no | 声音性别偏好 | female |
style_weight | number | no | 风格坚持强度 | 0.65 |
weirdness_constraint | number | no | 创意偏差控制 | 0.65 |
audio_weight | number | no | 音频功能平衡 | 0.65 |
callback_url | string | no | 用于完成通知的 Webhook URL | https://api.example.com/webhook/upload-cover |
responses
json
{
"code": 200,
"message": "success",
"workId": "upcov1a2b3c4d5e6f7890abcdef",
"data": {
"task_id": "upcov1a2b3c4d5e6f7890abcdef"
}
}codeExamples
curl
curl -X POST "https://udioapi.pro/api/v2/upload-cover/generate" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "chirp-v4-5",
"upload_url": "https://storage.example.com/my-song.mp3",
"custom_mode": false,
"make_instrumental": false,
"prompt": "A calm and relaxing piano cover with soft melodies"
}'