MiniMax Music โ
Endpoint: POST https://mps.intl.tencentcloudapi.comAction: CreateAigcAudioTask
MiniMax Music is a music generation model that creates songs from a prompt and supplied lyrics, outputting MP3 (44.1 kHz). Versions 3.0, 2.6, 2.5, and 2.0 are available.
Basic Information โ
| Item | Value |
|---|---|
| ModelName | MiniMaxMusic |
| ModelVersion | 3.0 / 2.6 / 2.5 / 2.0 |
| SceneType | music |
You can supply the lyrics directly.
Request Parameters โ
| Parameter | Required | Type | Description |
|---|---|---|---|
ModelName | Required | String | Fixed value MiniMaxMusic |
ModelVersion | Optional | String | 3.0 / 2.6 / 2.5 / 2.0 |
SceneType | Required | String | music |
Prompt | Required | String | Prompt describing the mood and style of the track |
Duration | Optional | Integer | Length (seconds). 0~60 |
OutputAudioFormat | Optional | String | mp3 or wav |
AdditionalParameters | Optional | String | lyric (lyrics), is_instrumental (whether to remove vocals, Boolean) |
Put the lyrics in AdditionalParameters.lyric and separate line breaks with \n. Specify is_instrumental=true for instrumental tracks.
In the VOD path, CreateAigcAudioTask uses the lyrics field name lyrics (plural) and the vocal removal field instrumental, even though it is the same MiniMaxMusic. MPS uses lyric (singular) and is_instrumental. If your code uses both paths, branch on the field names.
Request Example โ
json
{
"ModelName": "MiniMaxMusic",
"ModelVersion": "2.6",
"SceneType": "music",
"Prompt": "an upbeat pop track with a bright melody",
"AdditionalParameters": "{\"lyric\":\"Sunlight on the windowsill\\nA new day has begun\\nThe breeze carries flowers in\"}",
"OutputAudioFormat": "mp3"
}json
{
"ModelName": "MiniMaxMusic",
"ModelVersion": "3.0",
"SceneType": "music",
"Prompt": "lo-fi hip hop beat for study background",
"AdditionalParameters": "{\"is_instrumental\":true}",
"OutputAudioFormat": "mp3"
}Response Example โ
json
{
"Response": {
"Status": "DONE",
"Message": "ok",
"AudioInfos": [
{
"Url": "https://aigc-output-audio-file-<id>.cos.<region>.myqcloud.com/<file>.mp3?q-sign-algorithm=sha1&..."
}
],
"VideoInfos": ,
"RequestId": "<request-id>"
}
}