- サードパーティ
- ゼロデータ保持
テキストプロンプトと歌詞からボーカル付きのフル尺楽曲、またはインストゥルメンタルを生成する MiniMax の音楽生成モデルです。BPM / キーの制御と歌詞の自動生成に対応します。
| モデル情報 | |
|---|---|
| 利用規約とライセンス | リンク ↗ |
| 詳細情報 | リンク ↗ |
| ゼロデータ保持 | はい |
| 料金 | Cloudflare ダッシュボードで料金を見る ↗ |
const response = await env.AI.run(
'minimax/music-2.6',
{
prompt: 'An upbeat electronic dance track with a catchy synth melody and driving beat',
is_instrumental: false,
lyrics_optimizer: true,
},
)
console.log(response)curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"model": "minimax/music-2.6",
"input": {
"prompt": "An upbeat electronic dance track with a catchy synth melody and driving beat",
"is_instrumental": false,
"lyrics_optimizer": true
}
}'{
"gatewayMetadata": {
"keySource": "Unified"
},
"result": {
"audio": "https://minimax-algeng-chat-tts-us.oss-us-east-1.aliyuncs.com/music%2Fprod%2Ftts-20260417092034-QxSPMzdbiRxBSbDb.mp3"
},
"state": "Completed"
}歌詞あり — カスタム歌詞付きの曲を生成します
const response = await env.AI.run(
'minimax/music-2.6',
{
prompt: 'A warm acoustic folk ballad with fingerpicked guitar and gentle vocals',
is_instrumental: false,
lyrics:
'Walking down a dusty road\nWith the sunset painting gold\nEvery step a story told\nOf the places I call home',
lyrics_optimizer: false,
},
)
console.log(response)curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"model": "minimax/music-2.6",
"input": {
"prompt": "A warm acoustic folk ballad with fingerpicked guitar and gentle vocals",
"is_instrumental": false,
"lyrics": "Walking down a dusty road\nWith the sunset painting gold\nEvery step a story told\nOf the places I call home",
"lyrics_optimizer": false
}
}'{
"gatewayMetadata": {
"keySource": "Unified"
},
"result": {
"audio": "https://minimax-algeng-chat-tts-us.oss-us-east-1.aliyuncs.com/music%2Fprod%2Ftts-20260417091919-YiIxwmvIqXtREDcu.mp3"
},
"state": "Completed"
}インストゥルメンタル — ボーカルなしのインストゥルメンタル音楽を生成します
const response = await env.AI.run(
'minimax/music-2.6',
{
prompt: 'A calm lo-fi hip hop instrumental with vinyl crackle and mellow piano chords',
is_instrumental: true,
lyrics_optimizer: false,
},
)
console.log(response)curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"model": "minimax/music-2.6",
"input": {
"prompt": "A calm lo-fi hip hop instrumental with vinyl crackle and mellow piano chords",
"is_instrumental": true,
"lyrics_optimizer": false
}
}'{
"gatewayMetadata": {
"keySource": "Unified"
},
"result": {
"audio": "https://minimax-algeng-chat-tts-us.oss-us-east-1.aliyuncs.com/music%2Fprod%2Ftts-20260417092057-LOwvBOOdyGvAyHkQ.mp3"
},
"state": "Completed"
}高品質音声 — 音声形式とサンプルレートを指定します
const response = await env.AI.run(
'minimax/music-2.6',
{
prompt: 'An orchestral cinematic score building to an epic crescendo with full symphony',
format: 'wav',
is_instrumental: false,
lyrics_optimizer: true,
sample_rate: 44100,
},
)
console.log(response)curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"model": "minimax/music-2.6",
"input": {
"prompt": "An orchestral cinematic score building to an epic crescendo with full symphony",
"format": "wav",
"is_instrumental": false,
"lyrics_optimizer": true,
"sample_rate": 44100
}
}'{
"gatewayMetadata": {
"keySource": "Unified"
},
"result": {
"audio": "https://minimax-algeng-chat-tts-us.oss-us-east-1.aliyuncs.com/music%2Fprod%2Ftts-20260417092208-UGTfqDggHaemCDAW.wav"
},
"state": "Completed"
}自動生成の歌詞 — プロンプトから歌詞をモデルに生成させます
const response = await env.AI.run(
'minimax/music-2.6',
{
prompt: 'A cheerful pop song about a summer road trip with friends',
is_instrumental: false,
lyrics_optimizer: true,
},
)
console.log(response)curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"model": "minimax/music-2.6",
"input": {
"prompt": "A cheerful pop song about a summer road trip with friends",
"is_instrumental": false,
"lyrics_optimizer": true
}
}'{
"gatewayMetadata": {
"keySource": "Unified"
},
"result": {
"audio": "https://minimax-algeng-chat-tts-us.oss-us-east-1.aliyuncs.com/music%2Fprod%2Ftts-20260417092245-UlqOBbhqSXtRPopt.mp3"
},
"state": "Completed"
}prompt
string必須maxLength: 2000音楽のスタイル、雰囲気、シナリオの説明ですlyrics
stringminLength: 1maxLength: 3500歌詞です。行の区切りには `\n` を使います▶sample_rate
いずれか▶bitrate
いずれかformat
stringenum: mp3, wav音声の形式ですlyrics_optimizer
boolean必須デフォルト: falseプロンプトの説明から歌詞を自動生成しますis_instrumental
boolean必須デフォルト: falseインストゥルメンタル(ボーカルなし)の音楽を生成しますaudio
stringformat: uri生成された音声ファイルの URL です