MiniMax Music 3 minimax-music3
Songs with vocals from lyrics and a style caption, up to six minutes, 32 kHz stereo.
Output
$0.001 / second
Inputs
| Input | Accepts |
|---|---|
text | max prompt 6,000 characters |
Parameters
Does not stream.
| Parameter | Type | Values | Default |
|---|---|---|---|
task | string | text2music | |
lyrics | any | ||
duration | integer | 30–360 seconds | 300 |
n | integer | 1–1 | 1 |
seed | integer | ||
response_format | string | mp3, wav, flac, opus, aac, pcm | mp3 |
sample_rate | integer | 8000, 16000–48000 | 32000 |
bitrate | integer | 32000, 64000–320000 | 256000 |
bpm | integer | 30–300 | |
key | any | ||
time_signature | any |
Endpoints
A request
curl https://api.vultrinference.com/v1/music \
-H "Authorization: Bearer $VULTR_INFERENCE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "minimax-music3",
"prompt": "Global Metadata\nBasic Attributes: bpm is 118. key is F, and scale is minor. Disco Pop / Nu-Disco.\nVocal Details\nBright female lead, close-miked, light doubles on the chorus.\nArrangement\nFour-on-the-floor kick, slap bass, string stabs, filtered synth swells into the chorus.",
"lyrics": "[Verse]\nCity lights are humming low\nEvery window starts to glow\n[Chorus]\nWe keep on running through the night",
"duration": 180,
"response_format": "mp3",
"callback_url": "https://example.com/hooks/music"
}'import os
import requests
response = requests.post(
"https://api.vultrinference.com/v1/music",
headers={"Authorization": f"Bearer {os.environ['VULTR_INFERENCE_API_KEY']}"},
json={
"model": "minimax-music3",
"prompt": "Global Metadata\nBasic Attributes: bpm is 118. key is F, and scale is minor. Disco Pop / Nu-Disco.\nVocal Details\nBright female lead, close-miked, light doubles on the chorus.\nArrangement\nFour-on-the-floor kick, slap bass, string stabs, filtered synth swells into the chorus.",
"lyrics": "[Verse]\nCity lights are humming low\nEvery window starts to glow\n[Chorus]\nWe keep on running through the night",
"duration": 180,
"response_format": "mp3",
"callback_url": "https://example.com/hooks/music",
},
)
print(response.json())const response = await fetch("https://api.vultrinference.com/v1/music", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.VULTR_INFERENCE_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"model": "minimax-music3",
"prompt": "Global Metadata\nBasic Attributes: bpm is 118. key is F, and scale is minor. Disco Pop / Nu-Disco.\nVocal Details\nBright female lead, close-miked, light doubles on the chorus.\nArrangement\nFour-on-the-floor kick, slap bass, string stabs, filtered synth swells into the chorus.",
"lyrics": "[Verse]\nCity lights are humming low\nEvery window starts to glow\n[Chorus]\nWe keep on running through the night",
"duration": 180,
"response_format": "mp3",
"callback_url": "https://example.com/hooks/music"
}),
});
console.log(await response.json());