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 | AIモデル | 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"
}'