NeuralBridge
Sign in Download IDE
MiniMax

MiniMax Music 2.6

music and songs

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

Context window
—
Max tokens in response
—
Vendor
MiniMax
Release
—
Login
text
Output
audio

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

prompt
The request text: what you want to get. For video: the scene, camera movement and light; for music: genre, mood, instruments, tempo. The length limit depends on the model.
lyrics
Song lyrics, lines separated by line breaks (\n). Song parts are tags in square brackets: [Intro], [Verse], [Pre Chorus], [Chorus], [Bridge], [Outro] and more. Any language. The song length follows the lyrics.
lyrics_optimizerdefault: false
true lets the model write the lyrics from the description (when lyrics is empty). Billed separately, even when lyrics are given.
instrumentaldefault: false
true guarantees a track without vocals. Without it the model decides from the description whether to sing, and writes the lyrics itself.
formatdefault: mp3 · mp3
Audio file format: mp3 or wav (when the model accepts it).
sample_rate16000 · 24000 · 32000 · 44100
Audio sample rate in hertz.
bitrate32000 · 64000 · 128000 · 256000
MP3 bitrate in bit/s: 32000, 64000, 128000 or 256000. Higher means better quality and a bigger file; 256000 by default.

Endpoints

POSThttps://api.neuralbridge.ru/v1/audio/musicprimary
Audio — music — Music and songs: a description or a plan of parts in, audio file out.

Code examples

bash
curl https://api.neuralbridge.ru/v1/audio/music \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "minimax/music-2.6-08130", "prompt": "Warm cinematic ambient, soft piano, subtle strings, hopeful mood", "duration": 30, "instrumental": true}' \
  --output music.mp3

Other MiniMax models

Related models: music and songs

For OpenAI SDK, specify /v1 in base_url. For Anthropic SDK — without /v1.
Prices
Rate to be confirmed
The request cost in rubles — in the response, field usage.cost
Identifier
minimax/music-2.6-08130
Get API key