MiniMax Music 3
full-length song generation up to five minutes with vocals
3 min readupdated
This model from MiniMax creates complete music tracks up to 5 minutes long from lyrics and a detailed style description, outputting 32 kHz / 16-bit stereo WAV files. Under the hood, it pairs two language models (an 8B Global LLM based on Qwen3-8B that handles song structure, and a 0.6B Local LLM for fine acoustic details) with a synthesizer built on Flow Matching (a method for generating continuous data via smooth flows) and Flow-VAE. Unlike systems that decode audio solely from discrete tokens, the model fuses the hidden states of both LLMs for sharper vocal articulation and richer instrument textures. It is a solid fit for musicians, content creators, and developers who need cohesive compositions with intros, verses, choruses, and evolving arrangements.
Key features
- Long-form generation up to 5 minutes: maintains the musical theme, rhythm, vocal timbre, and progression across the entire song (up to 9,000 acoustic frames at 25 fps).
- Granular structural control: supports section tags in lyrics (
[Intro],[Verse],[Chorus],[Bridge],[Solo],[Outro]) alongside a three-part structured prompt covering general metadata, vocal details, and arrangement. - Flexible VRAM requirements: runs in
bfloat16on GPUs with 24 GB VRAM or more, and can even run on 8 GB cards using CPU offloading and layer streaming. - Broad runtime ecosystem: supported in
diffusers, ComfyUI, and SGLang-Omni (via the/v1/audio/speechAPI endpoint).
What you can do
- Generate a demo track from existing lyrics: annotate your lyrics with verse and chorus tags, then set the tempo (BPM), key, and vocal style using a
diffusersPython pipeline or ComfyUI nodes. - Deploy a local music generation service: spin up a server with SGLang-Omni and send track creation requests over an HTTP API.
- Expand short prompts: use the bundled
music-caption-rewriterskill to turn simple descriptions into detailed, structured prompts split into vocals and instrumentation.
Example
import soundfile as sf, torch
from diffusers import ModularPipeline
pipe = ModularPipeline.from_pretrained("MiniMaxAI/MiniMax-Music3")
pipe.load_components(dtype=torch.bfloat16)
pipe.to("cuda")
audio = pipe(prompt="Genre: acoustic pop. BPM: 96.", lyrics="[verse]\nMorning light", audio_duration=60.0, output="audios")[0]
sf.write("song.wav", audio.T.float().cpu().numpy(), pipe.sampling_rate)
Read more
DetailsArchitecture: Global LLM 8B (based on Qwen3-8B) + Local LLM 0.6B + Flow Matching (2.4B) + Flow-VAE Decoder (123M), 8-layer RVQ tokenizer.
Hardware: CUDA required; ~24 GB VRAM without offloading, ~22 GB with automatic CPU offloading, and from 8 GB VRAM with group offloading (slower).
Limitations: text prompt up to 5,000 tokens, audio up to 9,000 frames (up to 5 minutes), non-streaming generation only; tags and descriptions guide the direction without strictly guaranteeing an exact tempo or key match.










Comments