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
Source music clip_id, from a successful task’s result.music[].clip_id
number
required
Replacement start time (seconds)
number
required
Replacement end time (seconds)
end_s must be greater than start_s and cannot exceed the source clip’s duration.
string
required
Editing instruction for the replaced sectionExample: "Replace with a piano version"
string
Title of the music after replacement
integer
Random seed, used to reproduce or control the generation result

Response

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