minimax-music [legacy]
Last updated
Last updated
An advanced AI model that generates diverse high-quality audio compositions by analyzing and reproducing musical patterns, rhythms, and vocal styles from the reference track. Refine the process using a text prompt.
If you donโt have an API key for the Apilaplas API yet, feel free to use our .
Here is an example of generation an audio file based on a sample and a prompt using the music model minimax-music.
The first code block (sample uploading and music generation):
The second code block (retrieving the generated audio file from the server):
Listen to the track we generated:
As an example, we will generate a song using the popular minimax-music model from the Chinese company MiniMax. As you can verify in its , this model accepts an audio sample as inputโextracting information about its vocals and instruments for use in the generation processโalong with a text prompt where we can provide lyrics for our song.
We used a publicly available sample from royalty-free sample database and generated some lyrics in :
You can insert the contents of each of the two code blocks into a separate Python file in your preferred development environment (or, for example, place each part in a separate cell in Jupyter Notebook). Replace <YOUR_API_KEY>
in both fragments with the LAPLAS API Key obtained from your .
Reference song, should contain music and vocals. Must be a .wav or .mp3 file longer than 15 seconds