Skip to main content
POST
Flow Music Upload
flow-music-upload imports a public audio file as a Flow Music clip, so you can extend, replace, cover, split, download, or render it. Confirm live rates on the SnapGen models page. Failed tasks are not charged.
string
required
Set to flow-music-upload.
string
required
Public http or https URL of the audio, with a common audio extension such as .mp3 or .wav.
string
Optional public https URL that receives one signed event when the task finishes. See Task webhooks.
string
Required with webhook: 16 to 256 characters, used to sign the delivery.

Request

The response is HTTP 202 with a task object and a Location: /v1/tasks/{id} header. Poll GET /v1/tasks/{id} every 10 to 20 seconds until status is succeeded or failed.

Result

result.tracks[0] is the imported clip. Pass this task’s id as source_task_id to extend, replace, cover, split, download, or render it.
Result URLs are kept for about 72 hours. Download the files you want to keep. See Music generation tasks for the task lifecycle, result fields, webhooks, and errors.