This endpoint allows users to extend an existing audio file or stream by appending new audio content after a specific timestamp. The new audio is generated using a prompt (e.g., describing the desired sound) and optional lyrics.
ℹ️Experimental Feature: We do not guarantee continuous reliability and a bug-free experience as this feature is in beta.
| Parameter | Type | Required | Description |
|---|---|---|---|
audio_file | UploadFile | Optional | Upload the audio file to extend. Required if audio_url is not provided. |
audio_url | String | Optional | Public or S3 URL to the input audio. Required if audio_file is not provided. |
extend_after | Float | Required | Time (in seconds) after which new audio is generated. |
prompt | String | Optional | Describes the desired extension sound. Example: “Add a melodic flute section” |
lyrics | String | Optional | Optional lyrics for the extended segment. Max 2000 characters. |
gender | String | Optional | Voice style if vocals are generated. Must be one of male, female, neutral. |
webhook_url | String | Optional | Callback URL for async result delivery. |
💡 Note: You must provide eitheraudio_fileoraudio_url— at least one is required.
content-type: multipart/form-data
🔐 Replace{path_to_your_audio_file},api_key, andwebhook_urlbefore executing.
Webhook responses include detailed metadata including task_id, conversion_id, audio files (conversion_path), lyrics etc.
extend_after, or neither audio_file nor audio_url provided.URL or S3 path to the input audio.
"https://mybucket.s3.amazonaws.com/song.mp3"
Time in seconds after which to start the extension.
35
Uploaded audio file to be extended.
Describes how the extended section should sound.
"Add a calming piano outro"
Optional lyrics for the extended segment.
2000"Let the journey fade away"
Voice style if vocal content is generated.
male, female, neutral "neutral"
Callback URL for async processing results.
"https://example.com/webhook"