Flow Music
Generate Lyrics
Flow Music generates lyrics from a prompt. The result can be filled into the lyrics field of the Generate Music endpoint
POST
Authentication
All endpoints require Bearer Token authenticationGet your API Key:Visit the API Key management page to get your API KeyAdd it to the request header:
Request Parameters
Model name, must be
"flowmusic" (case-insensitive)Prompt for generating lyrics, ≤ 3000 charactersIt is recommended to describe the song’s theme, style, and mood to get better-fitting lyricsExample:
"A rock song about perseverance"Response
Response status code, 200 on success
Array of returned data
Use Cases
Scenario 1: Generate lyrics by theme
Scenario 2: Fill generated lyrics into a song
First generate lyrics; once done, take thetitle and lyrics from result.lyrics[0] and fill them into the Generate Music endpoint:
Query Task ResultsLyrics generation is an asynchronous task; a
task_id is returned after submission. Use the Get Task Status endpoint to query generation progress and results.Completed Task Result Example
Query response example (GET /v1/music/tasks/{task_id}):