🎧 音楽モデル Udio
- 2024.11.12 このサイトは音楽モデル
udioに対応しました - 1つのプロンプト入力で2曲生成されます
- 課金はリクエスト単位で行われ、曲単位ではありません。
udio130-v1.5モデルはudio32-v1.5の2倍の価格です - 使用方法:https://udio.ddaiai.com にアクセスし、以下の
オンライン試用セクションをご覧ください
オンラインテスト
オンラインテスト
- https://udio.ddaiai.com にアクセス(ブロックされている場合は、サブドメインプレフィックスを
renyiに変更してみてください)
2. ブロックされている場合は、アドレスを自分で変更できます:https://renyi.ddaiai.com—renyiを他のもの(例:https://2025.ddaiai.com)に置き換えてください。すべて動作します
設定
- https://udio.ddaiai.com を開きます
- 以下のように対応するフィールドを設定します
- Runway API URL: https://api.openai-hk.com
- Runway KEY: hk-your-apiKey

結果
結果のプレビュー 
Udio API
- 規約:すべてのリクエストは
headerにAuthorization: Bearer hk-your-keyを含みます - ベースURL: https://api.openai-hk.com/udio
楽曲作成
curl --request POST \
--url https://pi.openai-hk.com/udio/submit/music \
--header 'Authorization: Bearer hk-your-key' \
--header 'Content-Type: application/json' \
--data '{
"gen_params": {
"prompt": "mother",
"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"
}
}
}'curl --request POST \
--url https://pi.openai-hk.com/udio/submit/music \
--header 'Authorization: Bearer hk-your-key' \
--header 'Content-Type: application/json' \
--data '{
"gen_params": {
"prompt": "mother",
"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"
}
}
}'シナリオ1:説明から音楽を作成
リクエストボディ
{
"gen_params": {
"prompt": "mother",
"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"
}
}
}{
"gen_params": {
"prompt": "mother",
"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"
}
}
}シナリオ2:カスタム歌詞で音楽を作成
リクエストボディ
{
"gen_params": {
"prompt": "rock, pop soul, electronic, ",
"lyrics": "你的歌词",
"lyrics_type": "user",
"bypass_prompt_optimization": false,
"seed": -1,
"song_section_start": 0,
"song_section_end": 1,
"lyrics_placement_start": 0,
"lyrics_placement_end": 0.95,
"prompt_strength": 0.5,
"clarity_strength": 0.25,
"lyrics_strength": 0.5,
"generation_quality": 0.75,
"negative_prompt": "",
"model_type": "udio130-v1.5",
"config": {
"mode": "regular"
}
}
}{
"gen_params": {
"prompt": "rock, pop soul, electronic, ",
"lyrics": "你的歌词",
"lyrics_type": "user",
"bypass_prompt_optimization": false,
"seed": -1,
"song_section_start": 0,
"song_section_end": 1,
"lyrics_placement_start": 0,
"lyrics_placement_end": 0.95,
"prompt_strength": 0.5,
"clarity_strength": 0.25,
"lyrics_strength": 0.5,
"generation_quality": 0.75,
"negative_prompt": "",
"model_type": "udio130-v1.5",
"config": {
"mode": "regular"
}
}
}シナリオ3:音楽の拡張
{
"gen_params": {
"prompt": "father",
"lyrics": "",
"lyrics_type": "generate",
"bypass_prompt_optimization": false,
"seed": -1,
"song_section_start": 0,
"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": "precede",
"context_length": 130,
"source": {
"source_type": "song",
"song_id": "extension-song-ID"
}
}
}
}{
"gen_params": {
"prompt": "father",
"lyrics": "",
"lyrics_type": "generate",
"bypass_prompt_optimization": false,
"seed": -1,
"song_section_start": 0,
"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": "precede",
"context_length": 130,
"source": {
"source_type": "song",
"song_id": "extension-song-ID"
}
}
}
}リクエストボディの主要フィールドの説明
gen_params配下のフィールド
| フィールド | 型 | 説明 |
|---|---|---|
| prompt | string | プロンプト — 説明または音楽スタイルを指定できます |
| lyrics | string | 歌詞 |
| lyrics_type | string | 歌詞モード:user はカスタム、generate は自動生成、instrumental はインストゥルメンタル |
| model_type | string | udio130-v1.5 は udio32-v1.5 の2倍の価格です |
| negative_prompt | string | ネガティブプロンプト — 含めたくない要素 |
| config.mode | string | 拡張モード:precede は前に追加、continuation は後ろに追加、regular は通常の生成 |
| config.source.song_id | string | 拡張する曲のソングID |
lyrics_type=userは、ユーザー提供の歌詞(lyrics)を使用して音楽を生成します。この場合、promptはスタイルのタグとして機能します。lyrics_type=instrumentalはインストゥルメンタル音楽を作成するために使用されます。promptは関連するヒントを提供します。lyrics_type=generateは歌詞を自動生成します。promptはどのような曲を生成するかを説明します。その他のパラメータの説明
| フィールド | 型 | 説明 |
|---|---|---|
| song_section_start | number | シナリオ3に関連 — 拡張の開始位置、0-1の小数値 |
| song_section_end | number | シナリオ3に関連 — 拡張の終了位置、0-1の小数値 |
| lyrics_placement_start | number | 歌詞配置の開始位置、0-1の小数値 |
| lyrics_placement_end | number | 歌詞配置の終了位置、0-1の小数値 |
| prompt_strength | number | プロンプトの強度、0-1の小数値、デフォルトは0.5 |
| clarity_strength | number | 明瞭度の強度、0-1の小数値、デフォルトは0.5 |
| lyrics_strength | number | 歌詞の強度、0-1の小数値、デフォルトは0.5 |
| generation_quality | number | オプション:0.25 0.5 0.75 1、デフォルトは 0.75。値が高いほど品質は良いですが速度は遅くなります |
| seed | number | ランダムシード、デフォルトは-1(ランダム) |
| bypass_prompt_optimization | boolean | プロンプトの最適化をスキップするかどうか、デフォルトは false |
song_sectionは、フル楽曲内で生成されるセグメントの開始と終了位置を指定します。0%(0)は開始、50%(0.5)は中間、100%(1)は終了に対応します。値のインジケータをクリックすると自動モードに切り替わり、モデルが最適な位置を決定します。これは楽曲拡張機能を使用する場合に特に便利です。lyrics_placementは、フル楽曲内で歌詞を配置する位置を指定します。8%は開始、50%は中間、90%は終了近くのセグメントを生成します。これは楽曲拡張機能を使用する場合に特に便利です。prompt_strengthは、プロンプトが生成されるコンテンツに与える影響の大きさを制御します。値が高いほどプロンプトへの忠実度が増しますが、音声が不自然になる可能性があります。lyrics_strengthは、歌詞が生成されるコンテンツに与える影響の大きさを制御します。値が低いほど自然な音声が生成される可能性がありますが、一部の歌詞コンテンツが無視される可能性があります。clarity_strengthは、オーディオを生成する際のモデルの明瞭度と楽器の分離に対する優先度を制御します。値が高いほどクリアなオーディオが生成される可能性がありますが、サウンドが不自然になる可能性があります。generation_qualityは、生成品質と生成速度のトレードオフを行う実験的機能です。
レスポンスボディ
data は task_id です
{
"code": "success",
"message": "",
"data": "取得したtask_id、次のステップでタスクステータスを照会するために使用"
}{
"code": "success",
"message": "",
"data": "取得したtask_id、次のステップでタスクステータスを照会するために使用"
}タスクステータスの取得
curl --request GET \
--url https://api.openai-hk.com/udio/fetch/27c2553f-0c1b-4149-8712-359e9acff6c7 \
--header 'Authorization: Bearer hk-your-key' \
--header 'Content-Type: application/json'curl --request GET \
--url https://api.openai-hk.com/udio/fetch/27c2553f-0c1b-4149-8712-359e9acff6c7 \
--header 'Authorization: Bearer hk-your-key' \
--header 'Content-Type: application/json'レスポンスボディ
- status の値:
NOT_STARTSUBMITTEDQUEUEDIN_PROGRESSFAILURESUCCESSUNKNOWN
{
"code": "success",
"message": "",
"data": {
"task_id": "dc943e26-ef81-45be-baf7-ce5e121cd448",
"notify_hook": "",
"action": "udio-generate",
"status": "SUCCESS",
"fail_reason": "",
"submit_time": 1731344339,
"start_time": 1731344353,
"finish_time": 1731344393,
"progress": "100%",
"data": {
"songs": [
{
"id": "db71404a-17d4-4fdf-a781-48381362d31b",
"tags": [
"mandopop",
"2010s"
],
"liked": false,
"likes": 0,
"plays": 0,
"title": "Whispers of the Storm",
"artist": "EarthyTimpani8145",
"lyrics": "",
"prompt": "大风大雨",
"user_id": "1cf1a8f9-a14b-4ea9-bc16-5f1cd77613e1",
"disliked": false,
"duration": 32.8106666666667,
"error_id": null,
"finished": true,
"song_path": "https://storage.googleapis.com/udio-artifacts-c33fe3ba-3ffe-471f-92c8-5dfef90b3ea3/samples/28e06eb29c1c4abb9a50c8f6b127afb9/1/Whispers%2520of%2520the%2520Storm.mp3",
"user_tags": [],
"created_at": "2024-11-11T16:58:57.418504+00:00",
"error_code": null,
"error_type": null,
"image_path": "https://imagedelivery.net/C9yUr1FL21Q6JwfYYh2ozQ/a7888419-167e-408b-42d3-7aa6f777ff00/public",
"video_path": null,
"attribution": "",
"description": "",
"publishable": true,
"artist_image": "https://lh3.googleusercontent.com/a/ACg8ocKpwKLHf6tdaLz0OZm_f64g66HWEKmmgxKCtyzkp3M_wFERXA=s96-c",
"error_detail": null,
"published_at": null,
"generation_id": "dc943e26-ef81-45be-baf7-ce5e121cd448",
"replaced_tags": {
"pop": {
"tags": [
"mandopop",
"2010s"
],
"type": "tags"
},
"mandopop, 2010s": {
"tags": [
"mandopop",
"2010s"
],
"type": "tags"
}
},
"original_song_path": null,
"audio_conditioning_type": null
},
{
"id": "e7da256c-e2bf-4b0e-9ef9-0b906d5043f7",
"tags": [
"female vocalist",
"dance-pop",
"passionate",
"energetic",
"uplifting",
"electropop",
"bittersweet",
"contemporary r&b",
"introspective",
"boastful",
"urban",
"ballad",
"brostep",
"mandopop",
"2010s"
],
"liked": false,
"likes": 0,
"plays": 0,
"title": "Storm Over The City",
"artist": "EarthyTimpani8145",
"lyrics": "",
"prompt": "大风大雨",
"user_id": "1cf1a8f9-a14b-4ea9-bc16-5f1cd77613e1",
"disliked": false,
"duration": 32.8106666666667,
"error_id": null,
"finished": true,
"song_path": "https://storage.googleapis.com/udio-artifacts-c33fe3ba-3ffe-471f-92c8-5dfef90b3ea3/samples/28e06eb29c1c4abb9a50c8f6b127afb9/2/Storm%2520Over%2520The%2520City.mp3",
"user_tags": [],
"created_at": "2024-11-11T16:58:57.418504+00:00",
"error_code": null,
"error_type": null,
"image_path": "https://imagedelivery.net/C9yUr1FL21Q6JwfYYh2ozQ/8b07ad93-91d2-4ff7-ef2e-17e0dcb11100/public",
"video_path": null,
"attribution": "",
"description": "",
"publishable": true,
"artist_image": "https://lh3.googleusercontent.com/a/ACg8ocKpwKLHf6tdaLz0OZm_f64g66HWEKmmgxKCtyzkp3M_wFERXA=s96-c",
"error_detail": null,
"published_at": null,
"generation_id": "dc943e26-ef81-45be-baf7-ce5e121cd448",
"replaced_tags": {
"pop": {
"tags": [
"electropop",
"mandopop",
"contemporary r&b",
"dance-pop",
"trap [edm]",
"brostep",
"lgbt",
"boastful",
"passionate",
"introspective",
"lush",
"energetic",
"conscious",
"depressive",
"ballad",
"bittersweet",
"urban",
"uplifting",
"2010s",
"female vocalist"
],
"type": "tags"
},
"electropop, mandopop, contemporary r&b, dance-pop, trap [edm], brostep, lgbt, boastful, passionate, introspective, lush, energetic, conscious, depressive, ballad, bittersweet, urban, uplifting, 2010s, female vocalist": {
"tags": [
"female vocalist",
"dance-pop",
"passionate",
"energetic",
"uplifting",
"electropop",
"bittersweet",
"contemporary r&b",
"introspective",
"boastful",
"urban",
"ballad",
"brostep",
"mandopop",
"2010s"
],
"type": "tags"
}
},
"original_song_path": null,
"audio_conditioning_type": null
}
]
}
}
}{
"code": "success",
"message": "",
"data": {
"task_id": "dc943e26-ef81-45be-baf7-ce5e121cd448",
"notify_hook": "",
"action": "udio-generate",
"status": "SUCCESS",
"fail_reason": "",
"submit_time": 1731344339,
"start_time": 1731344353,
"finish_time": 1731344393,
"progress": "100%",
"data": {
"songs": [
{
"id": "db71404a-17d4-4fdf-a781-48381362d31b",
"tags": [
"mandopop",
"2010s"
],
"liked": false,
"likes": 0,
"plays": 0,
"title": "Whispers of the Storm",
"artist": "EarthyTimpani8145",
"lyrics": "",
"prompt": "大风大雨",
"user_id": "1cf1a8f9-a14b-4ea9-bc16-5f1cd77613e1",
"disliked": false,
"duration": 32.8106666666667,
"error_id": null,
"finished": true,
"song_path": "https://storage.googleapis.com/udio-artifacts-c33fe3ba-3ffe-471f-92c8-5dfef90b3ea3/samples/28e06eb29c1c4abb9a50c8f6b127afb9/1/Whispers%2520of%2520the%2520Storm.mp3",
"user_tags": [],
"created_at": "2024-11-11T16:58:57.418504+00:00",
"error_code": null,
"error_type": null,
"image_path": "https://imagedelivery.net/C9yUr1FL21Q6JwfYYh2ozQ/a7888419-167e-408b-42d3-7aa6f777ff00/public",
"video_path": null,
"attribution": "",
"description": "",
"publishable": true,
"artist_image": "https://lh3.googleusercontent.com/a/ACg8ocKpwKLHf6tdaLz0OZm_f64g66HWEKmmgxKCtyzkp3M_wFERXA=s96-c",
"error_detail": null,
"published_at": null,
"generation_id": "dc943e26-ef81-45be-baf7-ce5e121cd448",
"replaced_tags": {
"pop": {
"tags": [
"mandopop",
"2010s"
],
"type": "tags"
},
"mandopop, 2010s": {
"tags": [
"mandopop",
"2010s"
],
"type": "tags"
}
},
"original_song_path": null,
"audio_conditioning_type": null
},
{
"id": "e7da256c-e2bf-4b0e-9ef9-0b906d5043f7",
"tags": [
"female vocalist",
"dance-pop",
"passionate",
"energetic",
"uplifting",
"electropop",
"bittersweet",
"contemporary r&b",
"introspective",
"boastful",
"urban",
"ballad",
"brostep",
"mandopop",
"2010s"
],
"liked": false,
"likes": 0,
"plays": 0,
"title": "Storm Over The City",
"artist": "EarthyTimpani8145",
"lyrics": "",
"prompt": "大风大雨",
"user_id": "1cf1a8f9-a14b-4ea9-bc16-5f1cd77613e1",
"disliked": false,
"duration": 32.8106666666667,
"error_id": null,
"finished": true,
"song_path": "https://storage.googleapis.com/udio-artifacts-c33fe3ba-3ffe-471f-92c8-5dfef90b3ea3/samples/28e06eb29c1c4abb9a50c8f6b127afb9/2/Storm%2520Over%2520The%2520City.mp3",
"user_tags": [],
"created_at": "2024-11-11T16:58:57.418504+00:00",
"error_code": null,
"error_type": null,
"image_path": "https://imagedelivery.net/C9yUr1FL21Q6JwfYYh2ozQ/8b07ad93-91d2-4ff7-ef2e-17e0dcb11100/public",
"video_path": null,
"attribution": "",
"description": "",
"publishable": true,
"artist_image": "https://lh3.googleusercontent.com/a/ACg8ocKpwKLHf6tdaLz0OZm_f64g66HWEKmmgxKCtyzkp3M_wFERXA=s96-c",
"error_detail": null,
"published_at": null,
"generation_id": "dc943e26-ef81-45be-baf7-ce5e121cd448",
"replaced_tags": {
"pop": {
"tags": [
"electropop",
"mandopop",
"contemporary r&b",
"dance-pop",
"trap [edm]",
"brostep",
"lgbt",
"boastful",
"passionate",
"introspective",
"lush",
"energetic",
"conscious",
"depressive",
"ballad",
"bittersweet",
"urban",
"uplifting",
"2010s",
"female vocalist"
],
"type": "tags"
},
"electropop, mandopop, contemporary r&b, dance-pop, trap [edm], brostep, lgbt, boastful, passionate, introspective, lush, energetic, conscious, depressive, ballad, bittersweet, urban, uplifting, 2010s, female vocalist": {
"tags": [
"female vocalist",
"dance-pop",
"passionate",
"energetic",
"uplifting",
"electropop",
"bittersweet",
"contemporary r&b",
"introspective",
"boastful",
"urban",
"ballad",
"brostep",
"mandopop",
"2010s"
],
"type": "tags"
}
},
"original_song_path": null,
"audio_conditioning_type": null
}
]
}
}
}
OpenAi-HK