Skip to main content
POST

Authentication

string
required
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

string
required
Model name, must be "flowmusic" (case-insensitive)
string
required
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

integer
Response status code, 200 on success
array
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 the title 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}):