REST API untuk berbagai kebutuhan developer
EmiliaAPI menyediakan koleksi lengkap endpoint untuk: AI chatbot (GPT, Claude, Llama), media downloader (YouTube, TikTok, Instagram), search engine, image processing, dan berbagai tools produktivitas lainnya.
https://api.emiliabot.my.id
fetch('https://api.emiliabot.my.id/ai/openai?text=Hello')
.then(res => res.json())
.then(data => console.log(data.result));
Gratis! Sebagian besar endpoint tidak memerlukan API key
const text = 'Apa itu JavaScript?';
const url = `https://api.emiliabot.my.id/ai/openai?text=${encodeURIComponent(text)}`;
fetch(url)
.then(response => response.json())
.then(data => {
if (data.status) {
console.log('Result:', data.result);
}
});
import requests
url = "https://api.emiliabot.my.id/ai/openai"
params = {"text": "Apa itu Python?"}
response = requests.get(url, params=params)
data = response.json()
print(data['result'])
$text = urlencode('Apa itu PHP?');
$url = "https://api.emiliabot.my.id/ai/openai?text=$text";
$response = file_get_contents($url);
$data = json_decode($response, true);
echo $data['result'];
curl "https://api.emiliabot.my.id/ai/openai?text=Hello"
fetch('https://api.emiliabot.my.id/ai/llama33', {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
prompt: 'Kamu adalah AI helper',
text: 'Jelaskan AI'
})
})
.then(res => res.json())
.then(data => console.log(data.result));
import requests
url = "https://api.emiliabot.my.id/ai/llama33"
data = {
"prompt": "Kamu adalah AI helper",
"text": "Jelaskan AI"
}
response = requests.post(url, json=data)
print(response.json()['result'])
$url = "https://api.emiliabot.my.id/ai/llama33";
$data = json_encode([
"prompt" => "Kamu adalah AI helper",
"text" => "Jelaskan AI"
]);
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type:application/json']);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($ch);
echo json_decode($result)->result;
{
"status": true,
"creator": "Revall",
"result": "Response data disini..."
}
{
"status": false,
"creator": "Revall",
"error": "Error message"
}
async function sendMessage(message) {
const response = await fetch(
`https://api.emiliabot.my.id/ai/openai?text=${encodeURIComponent(message)}`
);
const data = await response.json();
return data.result;
}
async function downloadTikTok(url) {
const api = `https://api.emiliabot.my.id/download/tiktok?url=${encodeURIComponent(url)}`;
const response = await fetch(api);
const data = await response.json();
return data.result.data.play; // Video URL
}
async function searchYoutube(query) {
const api = `https://api.emiliabot.my.id/search/youtube?q=${encodeURIComponent(query)}`;
const response = await fetch(api);
const data = await response.json();
return data.result; // Array of videos
}
async function generateImage(prompt) {
const api = `https://api.emiliabot.my.id/ai/magicstudio?prompt=${encodeURIComponent(prompt)}`;
const response = await fetch(api);
const data = await response.json();
return data.result; // Image URL
}
async function apiCall(endpoint, params) {
try {
const url = new URL(`https://api.emiliabot.my.id${endpoint}`);
Object.keys(params).forEach(key =>
url.searchParams.append(key, params[key])
);
const response = await fetch(url);
const data = await response.json();
if (!data.status) {
throw new Error(data.error || 'API Error');
}
return data.result;
} catch (error) {
console.error('API Call failed:', error.message);
throw error;
}
}
// Usage
apiCall('/ai/openai', {text: 'Hello'})
.then(result => console.log(result))
.catch(error => console.error(error));
⚠️ Limit: Max 10 requests per detik. Jika melebihi, server akan cooldown 60-120 detik.
32 AI models: GPT, Llama, DeepSeek, Mistral, dll
/ai/*
TikTok, YouTube, Instagram, Mediafire, dll
/download/*
YouTube, Google, Spotify, TikTok, NPM, dll
/search/*
TTS, emoji mix, NSFW check, host info
/tools/*
News, streaming, jadwal, doujin
/anime/*
Text to image, iPhone chat generator
/imagecreator/*