Skip to main content

Extend an Audio

Extend an audio clip using Suno AI.​

Extends an existing audio clip using Suno AI, allowing for seamless audio continuation.

path=/extend method=post

Request

JavaScript

const response = await fetch('https://api.umamiai.xyz/v1/extend', {
method: 'POST',
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_UMAMIAI_API_KEY"
},
body: JSON.stringify({
"audio_id": "text",
"prompt": "text",
"continue_at": "text",
"title": "text",
"tags": "text"
}),
});
const data = await response.json();

Python

import requests

response = requests.post(
"https://api.umamiai.xyz/v1/extend",
headers={"Content-Type":"application/json","Authorization": "Bearer YOUR_UMAMIAI_API_KEY"},
json={"audio_id":"text","prompt":"text","continue_at":"text","title":"text","tags":"text"}
)
data = response.json()

Curl

curl -L \
-X POST \
-H 'Authorization: Bearer YOUR_UMAMIAI_API_KEY' \
-H 'Content-Type: application/json' \
'https://api.umamiai.xyz/v1/extend' \
-d '{"audio_id":"text","prompt":"text","continue_at":"text","title":"text","tags":"text"}'

Response

[
{
"image_url": "https://example.com",
"audio_url": "https://example.com",
"video_url": "https://example.com"
}
]