POST
/v2/minimax/generateMiniMax Music生成 API
統合された MiniMax Musicを通じて音楽を生成します。
POST
https://udioapi.pro/api/v2/minimax/generateヒント
MiniMax エンジン: MiniMax が必要な場合は、このエンドポイントを使用します。
ポーリング: 成功または失敗するまで /v2/minimax/feed?workId=... を呼び出します。
リクエストヘッダー
| 名前 | 必須 | 説明 |
|---|---|---|
名前Authorization | 必須はい | 説明認証用ベアラートークン |
名前Content-Type | 必須はい | 説明application/json |
リクエストボディ
MiniMax 生成リクエスト
共通パラメータ
| パラメータ | 型 | 必須 | 説明 | 例 |
|---|---|---|---|---|
パラメータprompt | 型string | 必須はい | 説明音楽生成プロンプト | 例Cinematic orchestral pop, emotional female vocal, warm piano, strings, gradual build, polished studio mix. |
パラメータlyrics | 型string | 必須はい | 説明MiniMax Music 2.5 では必須です。10〜3000文字で入力してください。 | 例Verse 1: The city lights are fading\nChorus: We rise into the morning glow |
パラメータbitrate | 型number | 必須いいえ | 説明オーディオビットレート | 例256000 |
パラメータsample_rate | 型number | 必須いいえ | 説明オーディオサンプルレート | 例44100 |
パラメータcallback_url | 型string | 必須いいえ | 説明オプションのコールバック URL | 例https://api.example.com/webhooks/minimax |
パラメータpublic | 型boolean | 必須いいえ | 説明タスクをパブリックにできるかどうか | 例false |
Response Fields
Generate Response
| フィールド | 型 | 説明 | 例 |
|---|---|---|---|
フィールドcode | 型number | 説明Response code. 200 means the task was created successfully. | 例200 |
フィールドmessage | 型string | 説明Human-readable response message. | 例success |
フィールドdata.task_id | 型string | 説明MiniMax generation task ID. Use it as workId when polling the feed endpoint. | 例n74abc123music |
フィールドdata.status | 型string | 説明Initial task status. | 例IN_PROGRESS |
レスポンス
json
{
"code": 200,
"message": "success",
"data": {
"task_id": "n74abc123music",
"status": "IN_PROGRESS",
"type": "text2music"
}
}コード例
curl
curl -X POST "https://udioapi.pro/api/v2/minimax/generate" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "Cinematic orchestral pop, emotional female vocal, warm piano, strings, gradual build, polished studio mix.",
"lyrics": "Verse 1: The city lights are fading\nChorus: We rise into the morning glow",
"bitrate": 256000,
"sample_rate": 44100,
"callback_url": "https://api.example.com/webhooks/minimax"
}'