Skip to main content
POST
Create Music Generation Task

Overview

Generate music from text descriptions and lyrics using the MiniMax Music 2.0 model. Music 2.0 offers:
  • Style description — specify music style, mood, and scenario via prompt
  • Lyrics support — provide song lyrics with lyrics_prompt
  • Structure tags — organize songs with [Intro], [Verse], [Chorus], [Bridge], [Outro] tags
  • Up to 5 minutes — generate songs up to 5 minutes long
  • Audio customization — configurable format (MP3/PCM/FLAC), sample rate, and bitrate

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
prompt
string
required

A description of the music, specifying style, mood, and scenario. 10-2000 characters.

Required string length: 10 - 2000
lyrics_prompt
string
required

Lyrics of the song. Use \n to separate lines. You may add structure tags like [Intro], [Verse], [Chorus], [Bridge], [Outro] to enhance the arrangement. 10-3000 characters.

Required string length: 10 - 3000
audio_setting
object | null

Audio configuration settings.

Response

202 - application/json

Accepted - Task created successfully

task_info
object