Flow Music
Replace Section
Flow Music replaces a section of previously generated audio. Regenerates the segment between start_s and end_s according to an editing instruction
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)Source music clip_id, from a successful task’s
result.music[].clip_idReplacement start time (seconds)
Replacement end time (seconds)
Editing instruction for the replaced sectionExample:
"Replace with a piano version"Title of the music after replacement
Random seed, used to reproduce or control the generation result
Response
Response status code, 200 on success
Array of returned data
Use Cases
Scenario 1: Replace seconds 10-20 with a piano version
Query Task ResultsSection replacement is an asynchronous task; a
task_id is returned after submission. Use the Get Task Status endpoint to query generation progress and results. The replacement output is a new clip_id (the whole song is re-rendered with the specified segment replaced); use the new clip_id for subsequent operations.Completed Task Result Example
Query response example (GET /v1/music/tasks/{task_id}):