minimax-music-2.6/text-to-musicGeneration type:
text_to_musicEndpoint:
POST /api/asset_generator/
Pricing
3.0 credits per output. Prices are per output. When a request asks for several outputs, the charge is this price times the number of outputs.Quick start
Input parameters
Send these fields ininput_params.
string
required
The text description that guides the audio generation process. This prompt defines what you want to hear in the generated audio content.Minimum characters:
1.
Maximum characters: 2000.string
default:"music-2.6"
required
The AI model to use for music generationAllowed values:
"music-2.6".object
required
Audio configuration settings
string
default:"url"
required
Specifies the format of the output audio.Allowed values:
"url".string
Optional lyrics with structure tags such as [Verse] and [Chorus]. Leave empty to generate lyrics from the prompt.Minimum characters:
0.
Maximum characters: 3500.boolean
default:true
Generate lyrics from the prompt when lyrics are empty.
boolean
default:false
Generate music without vocals; lyrics are not required.
Complete JSON schema
Complete JSON schema
Response
The request returns the task withstatus: "initializing". Poll GET /api/asset_generator/{id}/ until status is done or failed, or pass a webhook_url to be notified. A finished task lists its files in assets and the credits it charged in credits_used.
