music-1.5

This documentation is valid for the following list of our models:

  • minimax/music-1.5

The model creates full-length songs (up to 4 minutes) featuring natural-sounding vocals and detailed instrumental arrangements.

Setup your API Key

If you don’t have an API key for the AI/ML API yet, feel free to use our Quickstart guide.

API Schemas

Generate music sample

This endpoint generates a new music piece based on the voice and/or instrumental pattern identifiers obtained from the first endpoint above. The generation can be completed in 60-80 seconds or take a bit more.

post
Authorizations
AuthorizationstringRequired

Bearer key

Body
modelundefined Β· enumRequiredPossible values:
promptstring Β· min: 10 Β· max: 300Required

A description of the music, specifying style, mood, and scenario. Length: 10–300 characters.

lyricsstring Β· min: 10 Β· max: 3000Required

Lyrics of the song. Use ( ) to separate lines. You may add structure tags like [Intro], [Verse], [Chorus], [Bridge], [Outro] to enhance the arrangement. Length: 10–3000 characters.

Example: [Verse] Streetlights flicker, the night breeze sighs Shadows stretch as I walk alone An old coat wraps my silent sorrow Wandering, longing, where should I go [Chorus] Pushing the wooden door, the aroma spreads In a familiar corner, a stranger gazes
Responses
post
/v2/generate/audio
default

Retrieve the generated music sample from the server

After sending a request for music generation, this task is added to the queue. Based on the service's load, the generation can be completed in 50-60 seconds or take a bit more.

get
Authorizations
AuthorizationstringRequired

Bearer key

Query parameters
generation_idstringRequired
Responses
default

Quick Code Example

Here’s an example of generating an audio file using a prompt with style instructions and a separate parameter for the lyrics.

Response

Listen to the track we generated:

Last updated

Was this helpful?