Skip to main content
POST

Headers

Authorization
string
required

Bearer API key, e.g. Bearer sk-....

Example:

"Bearer sk-..."

Body

application/json

MiniMax music_generation body.

model
string
required

Music model id from the Model Square.

Example:

"music-2.0"

prompt
string

Style / mood / arrangement description.

Example:

"Upbeat indie pop with bright guitars and a hopeful chorus"

lyrics
string

Optional lyrics text.

Example:

"[Verse]\nCity lights on wet asphalt\n[Chorus]\nWe keep walking through the neon rain"

stream
boolean

Whether to stream (if supported by upstream).

Example:

false

output_format
string

Output packaging, e.g. url / hex (upstream-dependent).

audio_setting
object

Audio encode settings.

aigc_watermark
boolean

AIGC watermark.

lyrics_optimizer
boolean

Optimize lyrics before generation.

is_instrumental
boolean

Instrumental only.

Example:

false

Response

200 - application/json

Music generation result (provider JSON; often includes audio URL / hex)

Upstream MiniMax response (includes base_resp and audio fields).