MiniMax Music 2.6
Music Generation • MiniMax • ProxiedMiniMax'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 ↗ |
| Pricing | View pricing in the Cloudflare dashboard ↗ |
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', lyrics_optimizer: true, is_instrumental: false, }, { gateway: { id: 'default' }, })console.log(response){ "state": "Completed", "result": { "audio": "https://minimax-algeng-chat-tts-us.oss-us-east-1.aliyuncs.com/music%2Fprod%2Ftts-20260417092034-QxSPMzdbiRxBSbDb.mp3" }, "gatewayMetadata": { "keySource": "Unified" }}Examples
With Lyrics — Generate a song with custom lyrics
const response = await env.AI.run( 'minimax/music-2.6', { prompt: 'A warm acoustic folk ballad with fingerpicked guitar and gentle vocals', 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, is_instrumental: false, }, { gateway: { id: 'default' }, })console.log(response){ "state": "Completed", "result": { "audio": "https://minimax-algeng-chat-tts-us.oss-us-east-1.aliyuncs.com/music%2Fprod%2Ftts-20260417091919-YiIxwmvIqXtREDcu.mp3" }, "gatewayMetadata": { "keySource": "Unified" }}Instrumental — Generate instrumental music without vocals
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', lyrics_optimizer: false, is_instrumental: true, }, { gateway: { id: 'default' }, })console.log(response){ "state": "Completed", "result": { "audio": "https://minimax-algeng-chat-tts-us.oss-us-east-1.aliyuncs.com/music%2Fprod%2Ftts-20260417092057-LOwvBOOdyGvAyHkQ.mp3" }, "gatewayMetadata": { "keySource": "Unified" }}High Quality Audio — Specify audio format and sample rate
const response = await env.AI.run( 'minimax/music-2.6', { prompt: 'An orchestral cinematic score building to an epic crescendo with full symphony', sample_rate: 44100, format: 'wav', lyrics_optimizer: true, is_instrumental: false, }, { gateway: { id: 'default' }, })console.log(response){ "state": "Completed", "result": { "audio": "https://minimax-algeng-chat-tts-us.oss-us-east-1.aliyuncs.com/music%2Fprod%2Ftts-20260417092208-UGTfqDggHaemCDAW.wav" }, "gatewayMetadata": { "keySource": "Unified" }}Auto-Generated Lyrics — Let the model generate lyrics from the prompt
const response = await env.AI.run( 'minimax/music-2.6', { prompt: 'A cheerful pop song about a summer road trip with friends', lyrics_optimizer: true, is_instrumental: false, }, { gateway: { id: 'default' }, })console.log(response){ "state": "Completed", "result": { "audio": "https://minimax-algeng-chat-tts-us.oss-us-east-1.aliyuncs.com/music%2Fprod%2Ftts-20260417092245-UlqOBbhqSXtRPopt.mp3" }, "gatewayMetadata": { "keySource": "Unified" }}Parameters
stringrequiredmaxLength: 2000Description of the music style, mood, and scenariostringminLength: 1maxLength: 3500Song lyrics, using \n to separate linesone ofone ofstringenum: mp3, wavAudio formatbooleanrequireddefault: falseAutomatically generate lyrics based on the prompt descriptionbooleanrequireddefault: falseGenerate instrumental music (no vocals)stringformat: uriURL to the generated audio file