minimax-music [legacy]
How to Make a Call
API Schemas
Generate a music sample
post
Authorizations
AuthorizationstringRequired
Bearer key
Body
modelundefined · enumRequiredPossible values:
promptstringRequired
Lyrics with optional formatting. You can use a newline to separate each line of lyrics. You can use two newlines to add a pause between lines. You can use double hash marks (##) at the beginning and end of the lyrics to add accompaniment. Maximum 600 characters.
reference_audio_urlstring · uriRequired
Reference song, should contain music and vocals. Must be a .wav or .mp3 file longer than 15 seconds.
Responses
default
application/json
default
Retrieve the generated music sample from the server
get
Authorizations
AuthorizationstringRequired
Bearer key
Query parameters
generation_idstringRequiredExample:
<REPLACE_WITH_YOUR_GENERATION_ID>Responses
200Success
application/json
get
/v2/generate/audio200Success
Quick Code Example
Last updated
Was this helpful?