Use this API to generate a song from lyrics and a prompt.
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 The model name. Currently only music-2.0 is supported.
music-2.0 A description of the music, specifying style, mood, and scenario.
For example: "Pop, melancholic, perfect for a rainy night".
Length: 10–2000 characters.
10 - 2000Lyrics of the song. Use \n to separate lines. You may add structure tags like [Intro], [Verse], [Chorus], [Bridge], [Outro] to enhance the arrangement.
Length: 10–3000 characters.
10 - 3000Whether to use streaming output.
The output format of the audio. Options: url or hex.
When stream is true, only hex is supported.
⚠️ Note: url links expire after 24 hours, so download promptly.
url, hex Audio output configuration