curl --request POST \
--url https://api.vidgo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "minimax/music-2.6",
"input": {
"prompt": "City pop, 100 BPM, warm female vocals, electric piano, rounded synth bass and a nostalgic evening mood",
"lyrics": "[Verse]\nThe evening lights begin to glow\nWe follow streets we used to know\n[Chorus]\nCarry the melody into the night\nFollow the rhythm until morning light",
"lyrics_optimizer": false,
"is_instrumental": false,
"audio_setting": {
"sample_rate": 44100,
"bitrate": 256000,
"format": "mp3"
}
}
}
'{
"code": 200,
"data": {
"task_id": "task-unified-example",
"status": "running",
"created_time": "2026-09-10T08:00:00"
}
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}"Request timeout"{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}MiniMax
MiniMax Music 2.6
Generate songs and instrumental tracks from style prompts, with custom lyrics, automatic lyric generation and configurable audio output.
POST
/
api
/
generate
/
submit
curl --request POST \
--url https://api.vidgo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "minimax/music-2.6",
"input": {
"prompt": "City pop, 100 BPM, warm female vocals, electric piano, rounded synth bass and a nostalgic evening mood",
"lyrics": "[Verse]\nThe evening lights begin to glow\nWe follow streets we used to know\n[Chorus]\nCarry the melody into the night\nFollow the rhythm until morning light",
"lyrics_optimizer": false,
"is_instrumental": false,
"audio_setting": {
"sample_rate": 44100,
"bitrate": 256000,
"format": "mp3"
}
}
}
'{
"code": 200,
"data": {
"task_id": "task-unified-example",
"status": "running",
"created_time": "2026-09-10T08:00:00"
}
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}"Request timeout"{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}- Submit the request with
VIDGO_API_KEYand save the returnedtask_id. - Use Query Task Status to retrieve the audio. With a
callback_url, Vidgo sends a notification to your webhook when the task reachesfinishedorfailed.
MiniMax Music 2.6
Create complete songs and instrumental tracks from a style prompt. Describe genre, mood, instrumentation, tempo and vocal direction to guide the music.Model
Setmodel to minimax/music-2.6. Place music parameters inside input and the optional callback_url at the request root.
Music Parameters
prompt: Required string of 10-2000 characters describing the musical direction.lyrics: Lyrics string of up to 3500 characters. Supply lyrics whenis_instrumentalandlyrics_optimizerare bothfalse. You can organize the words with section tags such as[Verse]and[Chorus].lyrics_optimizer: Boolean, defaultfalse. Whentrueandlyricsis empty, generates lyrics fromprompt.is_instrumental: Boolean, defaultfalse. Settruefor instrumental music, keeplyricsempty and setlyrics_optimizertofalse.
Creation Modes
Custom Lyrics
Write the musical direction inprompt and the words to sing in lyrics. Keep is_instrumental set to false.
Automatic Lyrics
Describe the musical style, song topic and vocal character inprompt. Set lyrics_optimizer to true, keep lyrics empty and set is_instrumental to false.
Instrumental Music
Describe instruments, rhythm and atmosphere inprompt. Set is_instrumental to true, keep lyrics empty and set lyrics_optimizer to false.
Audio Settings
audio_setting is an optional object with these fields:
sample_rate: Sample rate in Hz. Values:16000,24000,32000,44100. Default:44100.bitrate: Bitrate in bits per second. Values:32000,64000,128000,256000. Default:256000.format: Audio format. Values:mp3,wav,pcm. Default:mp3.
Retrieve the Audio
QueryGET /api/generate/status/{task_id} using the identifier from the submission response. Continue checking while the status is not_started or running.
When the status is finished, read the files array and use file_url from entries with file_type: "audio" to retrieve the music. For a failed task, read error_message and review the request before trying again.Authorizations
Use VIDGO_API_KEY.
Body
application/json
Set model and optional callback_url at the request root. Place music parameters inside input.
Model identifier for MiniMax Music 2.6.
Available options:
minimax/music-2.6 Example:
"minimax/music-2.6"
Supply lyrics for vocal music, enable lyrics_optimizer with empty lyrics for automatic writing, or set is_instrumental to true with empty lyrics and lyrics_optimizer false.
Show child attributes
Show child attributes
Optional HTTP(S) callback URL for task completion or failure notifications.