MiniMax Music 2.6
Music Generation • MiniMax
minimax/music-2.6
- Third-party
- Zero data retention
MiniMax's music generation model that creates full-length songs with vocals from text prompts and lyrics, or instrumental tracks. Supports BPM/key control and auto-generated lyrics.
| Model Info | |
|---|---|
| Terms and License | link ↗ |
| More information | link ↗ |
| Zero data retention | Yes |
| Pricing | <ul><li>Per track$0.15</li><li>Per lyrics generation$0.01</li></ul> |
Usage
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"
}
Examples
<details>
<summary>With Lyrics — Generate a song with custom lyrics</summary>
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"
}
</details>
<details>
<summary>Instrumental — Generate instrumental music without vocals</summary>
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"
}
</details>
<details>
<summary>High Quality Audio — Specify audio format and sample rate</summary>
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"
}
</details>
<details>
<summary>Auto-Generated Lyrics — Let the model generate lyrics from the prompt</summary>
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"
}
</details>
Parameters
prompt
stringrequiredmaxLength: 2000Description of the music style, mood, and scenario
lyrics
stringminLength: 1maxLength: 3500Song lyrics, using \n to separate lines
▶sample_rate
one of
▶bitrate
one of
format
stringenum: mp3, wavAudio format
lyrics_optimizer
booleanrequireddefault: falseAutomatically generate lyrics based on the prompt description
is_instrumental
booleanrequireddefault: falseGenerate instrumental music (no vocals)
audio
stringformat: uriURL to the generated audio file
API Schemas (Raw)
Was this helpful?
YesNo
On this page
{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/ai/models/minimax/music-2.6/#page","headline":"MiniMax Music 2.6","description":"MiniMax's music generation model that creates full-length songs with vocals from text prompts and lyrics, or instrumental tracks. Supports BPM/key control and auto-generated lyrics.","url":"https://developers.cloudflare.com/ai/models/minimax/music-2.6/","inLanguage":"en","image":"https://developers.cloudflare.com/og-docs.png","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}
description: MiniMax Speech 2.8 HD focuses on studio-grade audio generation with emotion control, multilingual support (40+ languages), and voice cloning. title: MiniMax Speech 2.8 HD image: https://developers.cloudflare.com/og-docs.png
Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/llms.txt
Use this file to discover all available pages before exploring further.

