Extend Audio Using Prompt and Optional Lyrics
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.
post/v1/extend
Request
- Base URLhttps://api.musicgpt.com/api/public
- AuthAPI key in header Authorization
Request body multipart/form-data
Example request
{
"audio_url": "https://mybucket.s3.amazonaws.com/song.mp3",
"extend_after": 35,
"prompt": "Add a calming piano outro",
"lyrics": "Let the journey fade away",
"gender": "neutral",
"webhook_url": "https://example.com/webhook"
}Response
Successfully initiated extend task
Example response
{
"success": true,
"message": "Extend request submitted successfully",
"task_id": "task-extend-789",
"conversion_id_1": "extend-a1b2",
"conversion_id_2": "extend-c3d4",
"eta": 38,
"credit_estimate": 42
}Changes
No recorded changes to this operation across all 1 revision of this API.