Last updated 3 months ago
const axios = require('axios'); const url = 'https://api.aimlapi.com/?ids[0]=ID'; const headers = { 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_API_KEY' }; axios.get(url, { headers: headers }) .then(response => { console.log(response.data); }) .catch(error => { console.error(error); });
import requests url = "https://api.aimlapi.com/?ids[0]=ID" headers = { 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_API_KEY' } response = requests.get(url, headers=headers) print(response.text)
message = "hello world" puts message
Retrieves information about audio generated in Suno AI, including metadata and settings.
const response = await fetch('https://api.aimlapi.com/?ids=text', { method: 'GET', headers: {}, }); const data = await response.json();
[ { "image_url": "https://example.com", "audio_url": "https://example.com", "video_url": "https://example.com" } ]