MiniMax Music 2.6
MiniMax music model: songs with vocals from a style description and your own lyrics (or lyrics written by the model) and instrumental tracks. The model picks the length; you pay per track.
Specifications
Description
What it does
- A song with your lyrics: prompt sets the style, mood, vocals, instruments, tempo (BPM) and key; lyrics holds the words in any language with part tags [Verse], [Chorus], [Bridge] and more.
- A song with lyrics by the model: lyrics_optimizer: true writes the words from the description (billed separately).
- Instrumental music: instrumental: true gives a track without vocals, no lyrics needed.
- The model picks the length: 1.5–2 minutes with short lyrics, about 5 minutes without lyrics. The length cannot be set.
- Quality: MP3 with sample_rate (16000–44100 Hz) and bitrate (32000–256000 bit/s); 44.1 kHz and 256 kbit/s by default.
How to call
POST /v1/audio/music with a JSON body. prompt is required (up to 2000 characters). A song needs lyrics (up to 3500 characters) or lyrics_optimizer: true.
{"model": "minimax/music-2.6-08130", "prompt": "A warm acoustic folk ballad with fingerpicked guitar and gentle vocals", "lyrics": "[Verse]\nWalking down a dusty road\nWith the sunset painting gold\n[Chorus]\nOf the places I call home"}Instrumental:
{"model": "minimax/music-2.6-08130", "prompt": "A calm lo-fi hip hop instrumental with vinyl crackle and mellow piano chords", "instrumental": true}The model understands descriptions best in English and in sentences rather than tag lists; lyrics can be in any language.
Response
The response is the track file itself (audio/mpeg). The X-NB-Audio-Seconds header holds the track length in seconds. A song with short lyrics takes about a minute, a long track 3–5 minutes and sometimes up to 15 minutes, so set a client timeout of 16 minutes. Idempotency-Key header (up to 200 characters): repeating a request with the same key does not start a second paid generation; it waits for and returns the track already paid for.
Errors
- 400: invalid input, such as an empty description, a song without lyrics or lyrics_optimizer, lyrics with instrumental, an unsupported sample_rate or bitrate. The error text names the field.
- 402: not enough funds on the balance.
- 429: the model queue is busy, try again later.
- 502 or 504: the track was not received; nothing is charged.
Price
You pay per track of any length. Auto lyrics (lyrics_optimizer: true) cost extra. The prices are shown on this page.
Parameters
Endpoints
Code examples
Other MiniMax models
Related models: music and songs
/v1 in base_url. For Anthropic SDK — without /v1.