POST
/v2/extend音楽 API を拡張する
新しいコンテンツを最後に追加して、既存の音楽トラックを拡張します。
POST
https://udioapi.pro/api/v2/extendtips
2 つのモード: 元のパラメータを継承するか、カスタム パラメータを使用します。
返された workId でフィード API を使用して、進行状況を確認します。
requestHeaders
| name | required | description |
|---|---|---|
Authorization | yes | 認証用ベアラートークン |
Content-Type | yes | application/json |
requestBody
リクエスト本文は継承モードまたはカスタム モードをサポートします
継承モード
オリジナルのトラックパラメータを使用して拡張する
noAdditionalParams
カスタムモード
カスタムパラメータで拡張する
| paramName | paramType | required | description | example |
|---|---|---|---|---|
prompt | string | yes | 新しい歌詞または説明 | Change the music style to be calm and lyrical. |
style | string | no | 音楽スタイル | lyrical |
title | string | no | トラックタイトル | lyrical song |
extensionStartTime | number | no | 延長開始時間(秒) | 150 |
tags | string | no | 追加のタグ | war |
commonParams
| paramName | paramType | required | description | example |
|---|---|---|---|---|
origin_task_id | string | yes | オリジナルの音楽生成からのタスク ID | gen20e094aeaadfe494ea33a5c80ee596083bksv |
extend_audio_index | number | yes | 0 は最初のオーディオ、1 は 2 番目のオーディオ | 0 |
custom_mode | boolean | no | 継承モードの場合は false、カスタム モードの場合は true | false |
callback_url | string | no | リアルタイム結果用のオプションの Webhook URL | https://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
}'