Flow Music
Extend Music
Flow Music continues a previously generated audio clip. Extends the music from a specified time point according to an editing instruction
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
Source music clip_id, from a successful task’s
result.music[].clip_idThe source task must have succeeded. External audio can first be imported via Upload Audio to obtain a clip_id.
number
required
Time point (seconds) to start the extension fromCannot exceed the source clip’s duration
number
required
Extension duration (seconds)Maximum:
164 secondsstring
required
Editing instruction for the extended musicExample:
"Continue the verse melody, add strings"string
Title of the extended music
string
Random seed, used to reproduce results
Response
integer
Response status code, 200 on success
array
Array of returned data
Use Cases
Scenario 1: Extend 60 seconds from the chorus
Query Task ResultsMusic extension is an asynchronous task; a
task_id is returned after submission. Use the Get Task Status endpoint to query generation progress and results. The extension output is a new clip_id; use the new clip_id for subsequent operations.Completed Task Result Example
Query response example (GET /v1/music/tasks/{task_id}):