{ "model_id": "minimax/music-2.6", "provider_id": "minimax", "name": "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.", "task": "Music Generation", "tags": [ "Music", "Audio Generation", "Vocals", "Instrumental" ], "context_length": null, "max_output_tokens": null, "schema_version": "1.0.0", "pricing": { "Per track": 0.15, "Per lyrics generation": 0.01 }, "examples": [ { "name": "Simple Prompt", "description": "Generate music from a style description with auto-generated lyrics", "input": { "prompt": "An upbeat electronic dance track with a catchy synth melody and driving beat", "is_instrumental": false, "lyrics_optimizer": true }, "output": { "audio": "https://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/minimax__music-2.6/simple-prompt.mp3" }, "raw_response": { "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" }, "code_snippets": [ { "label": "typescript", "language": "typescript", "code": "const response = await env.AI.run(\n 'minimax/music-2.6',\n {\n prompt: 'An upbeat electronic dance track with a catchy synth melody and driving beat',\n is_instrumental: false,\n lyrics_optimizer: true,\n },\n)\nconsole.log(response)" }, { "label": "curl", "language": "bash", "code": "curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \\\n --header \"Authorization: Bearer $CLOUDFLARE_API_TOKEN\" \\\n --header \"Content-Type: application/json\" \\\n --data '{\n \"model\": \"minimax/music-2.6\",\n \"input\": {\n \"prompt\": \"An upbeat electronic dance track with a catchy synth melody and driving beat\",\n \"is_instrumental\": false,\n \"lyrics_optimizer\": true\n }\n}'" } ] }, { "name": "With Lyrics", "description": "Generate a song with custom lyrics", "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 }, "output": { "audio": "https://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/minimax__music-2.6/with-lyrics.mp3" }, "raw_response": { "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" }, "code_snippets": [ { "label": "typescript", "language": "typescript", "code": "const response = await env.AI.run(\n 'minimax/music-2.6',\n {\n prompt: 'A warm acoustic folk ballad with fingerpicked guitar and gentle vocals',\n is_instrumental: false,\n lyrics:\n 'Walking down a dusty road\\nWith the sunset painting gold\\nEvery step a story told\\nOf the places I call home',\n lyrics_optimizer: false,\n },\n)\nconsole.log(response)" }, { "label": "curl", "language": "bash", "code": "curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \\\n --header \"Authorization: Bearer $CLOUDFLARE_API_TOKEN\" \\\n --header \"Content-Type: application/json\" \\\n --data '{\n \"model\": \"minimax/music-2.6\",\n \"input\": {\n \"prompt\": \"A warm acoustic folk ballad with fingerpicked guitar and gentle vocals\",\n \"is_instrumental\": false,\n \"lyrics\": \"Walking down a dusty road\\nWith the sunset painting gold\\nEvery step a story told\\nOf the places I call home\",\n \"lyrics_optimizer\": false\n }\n}'" } ] }, { "name": "Instrumental", "description": "Generate instrumental music without vocals", "input": { "prompt": "A calm lo-fi hip hop instrumental with vinyl crackle and mellow piano chords", "is_instrumental": true, "lyrics_optimizer": false }, "output": { "audio": "https://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/minimax__music-2.6/instrumental.mp3" }, "raw_response": { "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" }, "code_snippets": [ { "label": "typescript", "language": "typescript", "code": "const response = await env.AI.run(\n 'minimax/music-2.6',\n {\n prompt: 'A calm lo-fi hip hop instrumental with vinyl crackle and mellow piano chords',\n is_instrumental: true,\n lyrics_optimizer: false,\n },\n)\nconsole.log(response)" }, { "label": "curl", "language": "bash", "code": "curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \\\n --header \"Authorization: Bearer $CLOUDFLARE_API_TOKEN\" \\\n --header \"Content-Type: application/json\" \\\n --data '{\n \"model\": \"minimax/music-2.6\",\n \"input\": {\n \"prompt\": \"A calm lo-fi hip hop instrumental with vinyl crackle and mellow piano chords\",\n \"is_instrumental\": true,\n \"lyrics_optimizer\": false\n }\n}'" } ] }, { "name": "High Quality Audio", "description": "Specify audio format and sample rate", "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 }, "output": { "audio": "https://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/minimax__music-2.6/high-quality-audio.wav" }, "raw_response": { "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" }, "code_snippets": [ { "label": "typescript", "language": "typescript", "code": "const response = await env.AI.run(\n 'minimax/music-2.6',\n {\n prompt: 'An orchestral cinematic score building to an epic crescendo with full symphony',\n format: 'wav',\n is_instrumental: false,\n lyrics_optimizer: true,\n sample_rate: 44100,\n },\n)\nconsole.log(response)" }, { "label": "curl", "language": "bash", "code": "curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \\\n --header \"Authorization: Bearer $CLOUDFLARE_API_TOKEN\" \\\n --header \"Content-Type: application/json\" \\\n --data '{\n \"model\": \"minimax/music-2.6\",\n \"input\": {\n \"prompt\": \"An orchestral cinematic score building to an epic crescendo with full symphony\",\n \"format\": \"wav\",\n \"is_instrumental\": false,\n \"lyrics_optimizer\": true,\n \"sample_rate\": 44100\n }\n}'" } ] }, { "name": "Auto-Generated Lyrics", "description": "Let the model generate lyrics from the prompt", "input": { "prompt": "A cheerful pop song about a summer road trip with friends", "is_instrumental": false, "lyrics_optimizer": true }, "output": { "audio": "https://pub-04a6d208d361438ea01b797e6973bd19.r2.dev/catalog/minimax__music-2.6/auto-generated-lyrics.mp3" }, "raw_response": { "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" }, "code_snippets": [ { "label": "typescript", "language": "typescript", "code": "const response = await env.AI.run(\n 'minimax/music-2.6',\n {\n prompt: 'A cheerful pop song about a summer road trip with friends',\n is_instrumental: false,\n lyrics_optimizer: true,\n },\n)\nconsole.log(response)" }, { "label": "curl", "language": "bash", "code": "curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \\\n --header \"Authorization: Bearer $CLOUDFLARE_API_TOKEN\" \\\n --header \"Content-Type: application/json\" \\\n --data '{\n \"model\": \"minimax/music-2.6\",\n \"input\": {\n \"prompt\": \"A cheerful pop song about a summer road trip with friends\",\n \"is_instrumental\": false,\n \"lyrics_optimizer\": true\n }\n}'" } ] } ], "default_example": null, "code_snippets": [], "supports_async": false, "zdr": true, "zdr_comment": null, "external_info": "https://www.minimaxi.com/", "terms": "https://www.minimaxi.com/terms", "cover_image_url": "https://pub-26f1392c1b674324be6786695bd72257.r2.dev/minimax/music-2.6.png", "metadata": { "Audio Formats": "mp3, wav", "Max Duration": "~6 minutes", "Modes": "Vocals, Instrumental, Auto-Lyrics" }, "request_formats": null, "providers": null, "provider_details": [ { "id": "minimax", "pricing": { "output_tracks": 0.15, "output_lyrics": 0.01 } } ], "banner": null, "created_at": "2026-05-22 17:53:20", "schema": { "input": { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "prompt": { "type": "string", "maxLength": 2000, "description": "Description of the music style, mood, and scenario" }, "lyrics": { "description": "Song lyrics, using \\n to separate lines", "type": "string", "minLength": 1, "maxLength": 3500 }, "sample_rate": { "description": "Audio sample rate", "anyOf": [ { "type": "number", "const": 16000 }, { "type": "number", "const": 24000 }, { "type": "number", "const": 32000 }, { "type": "number", "const": 44100 } ] }, "bitrate": { "description": "Audio bitrate", "anyOf": [ { "type": "number", "const": 32000 }, { "type": "number", "const": 64000 }, { "type": "number", "const": 128000 }, { "type": "number", "const": 256000 } ] }, "format": { "description": "Audio format", "type": "string", "enum": [ "mp3", "wav" ] }, "lyrics_optimizer": { "default": false, "description": "Automatically generate lyrics based on the prompt description", "type": "boolean" }, "is_instrumental": { "default": false, "description": "Generate instrumental music (no vocals)", "type": "boolean" } }, "required": [ "prompt", "lyrics_optimizer", "is_instrumental" ], "additionalProperties": false }, "output": { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "audio": { "type": "string", "format": "uri", "description": "URL to the generated audio file" } }, "required": [ "audio" ], "additionalProperties": false } } }