/v1/music_upload
.refer_voice
or refer_instrumental
is required.refer_voice
is provided, the system can output music data normally. The generated music will be a segment of dry vocal humming that aligns with refer_voice
and the provided lyrics, without any instrumental accompaniment./v1/music_upload
.refer_voice
or refer_instrumental
is required.refer_instrumental
is provided, the system can output music data normally. The generated music will be a segment of pure instrumental music that aligns with refer_instrumental
, without any vocals.\n
) to separate each line of lyrics. Use two consecutive newline characters (\n\n
) to insert a pause in the middle of the lyrics. Add double hashes (##
) at the beginning and end of the lyrics to include instrumental accompaniment. The maximum length supported is 200 characters (each Chinese character, punctuation mark, and letter counts as 1 character).curl --location --request POST 'https://api.302.ai/minimaxi/v1/music_generation' \
--header 'Authorization: Bearer sk-jls4AaVBGoe1GwZD64qZA1qyKTN1MPHa4NmvH1cT68z7K1Zz' \
--form 'refer_voice=""' \
--form 'refer_instrumental=""' \
--form 'lyrics=""' \
--form 'model="music-01"'
{}