Skip to main content

Fetch Generations

API Reference​

Get information about generated audio in Suno AI.​

Retrieves information about audio generated in Suno AI, including metadata and settings.

path=/ method=get

Request

JavaScript

const response = await fetch('https://api.umamiai.xyz/v1/?ids=text', {
method: 'GET',
headers: {"Authorization": "Bearer YOUR_UMAMIAI_API_KEY"},
});
const data = await response.json();

Python

import requests

response = requests.get(
"https://api.umamiai.xyz/v1/?ids=text",
headers={"Authorization": "Bearer YOUR_UMAMIAI_API_KEY"},
)
data = response.json()

Curl

curl -L \
-H 'Authorization: Bearer YOUR_UMAMIAI_API_KEY' \
'https://api.umamiai.xyz/v1/?ids=text'

Response

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

Examples​

JavaScript

const axios = require('axios');

const url = 'https://api.umamiai.xyz/v1/?ids[0]=ID';
const headers = {
'Content-Type': 'application/json',
'Authorization': 'Bearer YOUR_UMAMIAI_API_KEY'
};

axios.get(url, { headers: headers })
.then(response => {
console.log(response.data);
})
.catch(error => {
console.error(error);
});

Python

import requests

url = "https://api.umamiai.xyz/v1/?ids[0]=ID"
headers = {
'Content-Type': 'application/json',
'Authorization': 'Bearer YOUR_UMAMIAI_API_KEY'
}
response = requests.get(url, headers=headers)

print(response.text)

Ruby

message = "hello world"
puts message