Fetch Generations
API Reference
Examples
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
Last updated