🎉 MiniMax-M2.7: Peak Performance. Ultimate Value. Master the Complex. ➔ Try Now.





curl --request POST \
--url https://api.minimax.io/v1/lyrics_generation \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: <content-type>' \
--data '
{
"mode": "write_full_song",
"prompt": "A cheerful love song about a summer day at the beach"
}
'{
"song_title": "Summer Breeze Promise",
"style_tags": "Pop, Summer Vibe, Romance, Lighthearted, Beach Pop",
"lyrics": "[Intro]\n(Ooh-ooh-ooh)\n(Yeah)\nSunlight dancing on the waves\n\n[Verse 1]\nSea breeze gently through your hair\nSmiling face, like a summer dream\nWaves are crashing at our feet\nLeaving footprints, you and me\nLaughter echoes on the sand\nEvery moment, a sweet melody\nI see the sparkle in your eyes\nLike the stars in the deep blue sea\n\n[Pre-Chorus]\nYou say this feeling is so wonderful\n(So wonderful)\nWant to stay in this moment forever\n(Right here, right now)\nHeartbeat racing like the ocean waves\n\n[Chorus]\nOh, summer by the sea, our promise true\nIn the sunlight, your silhouette so beautiful\nThe breeze blows away our worries, leaving only sweet\nThis moment, I just want to be with you, eternally\n(Forever with you)\n\n[Verse 2]\n...",
"base_resp": {
"status_code": 0,
"status_msg": "success"
}
}Use this API to generate lyrics, supporting full song creation and lyrics editing/continuation.
curl --request POST \
--url https://api.minimax.io/v1/lyrics_generation \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: <content-type>' \
--data '
{
"mode": "write_full_song",
"prompt": "A cheerful love song about a summer day at the beach"
}
'{
"song_title": "Summer Breeze Promise",
"style_tags": "Pop, Summer Vibe, Romance, Lighthearted, Beach Pop",
"lyrics": "[Intro]\n(Ooh-ooh-ooh)\n(Yeah)\nSunlight dancing on the waves\n\n[Verse 1]\nSea breeze gently through your hair\nSmiling face, like a summer dream\nWaves are crashing at our feet\nLeaving footprints, you and me\nLaughter echoes on the sand\nEvery moment, a sweet melody\nI see the sparkle in your eyes\nLike the stars in the deep blue sea\n\n[Pre-Chorus]\nYou say this feeling is so wonderful\n(So wonderful)\nWant to stay in this moment forever\n(Right here, right now)\nHeartbeat racing like the ocean waves\n\n[Chorus]\nOh, summer by the sea, our promise true\nIn the sunlight, your silhouette so beautiful\nThe breeze blows away our worries, leaving only sweet\nThis moment, I just want to be with you, eternally\n(Forever with you)\n\n[Verse 2]\n...",
"base_resp": {
"status_code": 0,
"status_msg": "success"
}
}HTTP: Bearer Auth
Bearer API_key, can be found in Account Management>API Keys.The media type of the request body. Must be set to application/json to ensure the data is sent in JSON format.
application/json Generation mode.write_full_song: Write a complete songedit: Edit/continue existing lyrics
write_full_song, edit Prompt/instruction describing the song theme, style, or editing direction. If empty, a random song will be generated.
2000Existing lyrics content. Only effective in edit mode. Can be used for continuation or modification of existing lyrics.
3500Song title. If provided, the output will keep this title unchanged.
Successful response
Generated song title. If title was provided in the request, it will be preserved.
Style tags, comma-separated. For example: Pop, Upbeat, Female Vocals
Generated lyrics with structure tags. Can be directly used in the lyrics parameter of the Music Generation API to generate songs.
Supported structure tags (14 types): [Intro], [Verse], [Pre-Chorus], [Chorus], [Hook], [Drop], [Bridge], [Solo], [Build-up], [Instrumental], [Breakdown], [Break], [Interlude], [Outro]
Status code and details
Show child attributes