Skip to content

MiniMax Music โ€‹

Updated

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 โ€‹

ItemValue
ModelNameMiniMaxMusic
ModelVersion3.0 / 2.6 / 2.5 / 2.0
SceneTypemusic

You can supply the lyrics directly.

Request Parameters โ€‹

ParameterRequiredTypeDescription
ModelNameRequiredStringFixed value MiniMaxMusic
ModelVersionOptionalString3.0 / 2.6 / 2.5 / 2.0
SceneTypeRequiredStringmusic
PromptRequiredStringPrompt describing the mood and style of the track
DurationOptionalIntegerLength (seconds). 0~60
OutputAudioFormatOptionalStringmp3 or wav
AdditionalParametersOptionalStringlyric (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>"
  }
}

Built with VitePress ยท Deployed on Tencent EdgeOne Pages