POST
/v2/extend音楽 API を拡張する
新しいコンテンツを最後に追加して、既存の音楽トラックを拡張します。
POST
https://udioapi.pro/api/v2/extendtips
2 つのモード: 元のパラメータを継承するか、カスタム パラメータを使用します。
返された workId でフィード API を使用して、進行状況を確認します。
requestHeaders
| name | required | description |
|---|---|---|
nameAuthorization | requiredyes | description認証用ベアラートークン |
nameContent-Type | requiredyes | descriptionapplication/json |
requestBody
リクエスト本文は継承モードまたはカスタム モードをサポートします
継承モード
オリジナルのトラックパラメータを使用して拡張する
noAdditionalParams
カスタムモード
カスタムパラメータで拡張する
| paramName | paramType | required | description | example |
|---|---|---|---|---|
paramNameprompt | paramTypestring | requiredyes | description新しい歌詞または説明 | exampleChange the music style to be calm and lyrical. |
paramNamestyle | paramTypestring | requiredno | description音楽スタイル | examplelyrical |
paramNametitle | paramTypestring | requiredno | descriptionトラックタイトル | examplelyrical song |
paramNameextensionStartTime | paramTypenumber | requiredno | description延長開始時間(秒) | example150 |
paramNametags | paramTypestring | requiredno | description追加のタグ | examplewar |
commonParams
| paramName | paramType | required | description | example |
|---|---|---|---|---|
paramNameorigin_task_id | paramTypestring | requiredyes | descriptionオリジナルの音楽生成からのタスク ID | examplegen20e094aeaadfe494ea33a5c80ee596083bksv |
paramNameextend_audio_index | paramTypenumber | requiredyes | description0 は最初のオーディオ、1 は 2 番目のオーディオ | example0 |
paramNamecustom_mode | paramTypeboolean | requiredno | description継承モードの場合は false、カスタム モードの場合は true | examplefalse |
paramNamecallback_url | paramTypestring | requiredno | descriptionリアルタイム結果用のオプションの Webhook URL | examplehttps://your-domain.com/webhook |
responses
json
{
"code": 200,
"message": "success",
"workId": "ext2e31202d4f629447fa75f603ae2470565bksv"
}codeExamples
curl
curl -X POST "https://udioapi.pro/api/v2/extend" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"origin_task_id": "gen20e094aeaadfe494ea33a5c80ee596083bksv",
"extend_audio_index": 0,
"custom_mode": false
}'