AI API
Unified AI API gateway supporting multiple AI providers including OpenAI, Anthropic, Google AI, and more. Access powerful AI capabilities through a single, consistent interface.
Overview
Integrate the AI API into your applications with ease. This API offers high performance, reliability, and comprehensive documentation to get you started quickly.
Features
- 99.9% Uptime Guarantee
- 1,000+ requests per hour
- JSON formatted responses
- Secure HTTPS endpoints
- Real-time data processing
Endpoints
https://devapi.autoplannerx.com/api/v1/ai-api/chat/completions
Create a chat completion using OpenAI-compatible models (OpenAI, Deepseek, Mistral, Groq, Together AI, xAI, etc.).
https://devapi.autoplannerx.com/api/v1/ai-api/messages
Send messages using Anthropic Claude models.
https://devapi.autoplannerx.com/api/v1/ai-api/models/{model}/generateContent
Generate content using Google AI (Gemini) models.
https://devapi.autoplannerx.com/api/v1/ai-api/models
List available AI models from your selected provider.
Code Examples
Pick an endpoint and a language. Replace YOUR_API_KEY with a key from your dashboard.
curl -X POST "https://devapi.autoplannerx.com/api/v1/ai-api/chat/completions" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"deepseek-chat","messages":[{"role":"user","content":"Write a haiku about APIs."}]}'
const response = await fetch('https://devapi.autoplannerx.com/api/v1/ai-api/chat/completions', {
method: 'POST',
headers: {
'X-API-Key': 'YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
"model": "deepseek-chat",
"messages": [
{
"role": "user",
"content": "Write a haiku about APIs."
}
]
})
});
if (!response.ok) {
throw new Error(`Request failed: ${response.status}`);
}
const data = await response.json();
console.log(data);
// Node.js 18+ as an ES module (.mjs). Set DEVAPI_KEY in your environment.
const response = await fetch('https://devapi.autoplannerx.com/api/v1/ai-api/chat/completions', {
method: 'POST',
headers: {
'X-API-Key': process.env.DEVAPI_KEY,
'Content-Type': 'application/json'
},
body: JSON.stringify({
"model": "deepseek-chat",
"messages": [
{
"role": "user",
"content": "Write a haiku about APIs."
}
]
})
});
if (!response.ok) {
throw new Error(`Request failed: ${response.status}`);
}
console.log(await response.json());
<?php
$ch = curl_init('https://devapi.autoplannerx.com/api/v1/ai-api/chat/completions');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => json_encode([
'model' => 'deepseek-chat',
'messages' => [
[
'role' => 'user',
'content' => 'Write a haiku about APIs.',
],
],
]),
CURLOPT_HTTPHEADER => [
'X-API-Key: YOUR_API_KEY',
'Content-Type: application/json',
],
]);
$response = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
if ($status !== 200) {
die('Request failed: ' . $response);
}
$data = json_decode($response, true);
print_r($data);
import requests
response = requests.post(
"https://devapi.autoplannerx.com/api/v1/ai-api/chat/completions",
headers={"X-API-Key": "YOUR_API_KEY"},
json={
"model": "deepseek-chat",
"messages": [
{
"role": "user",
"content": "Write a haiku about APIs.",
},
],
},
)
response.raise_for_status()
print(response.json())
curl -X GET "https://devapi.autoplannerx.com/api/v1/ai-api/models" \
-H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://devapi.autoplannerx.com/api/v1/ai-api/models', {
method: 'GET',
headers: {
'X-API-Key': 'YOUR_API_KEY'
}
});
if (!response.ok) {
throw new Error(`Request failed: ${response.status}`);
}
const data = await response.json();
console.log(data);
// Node.js 18+ as an ES module (.mjs). Set DEVAPI_KEY in your environment.
const response = await fetch('https://devapi.autoplannerx.com/api/v1/ai-api/models', {
method: 'GET',
headers: {
'X-API-Key': process.env.DEVAPI_KEY
}
});
if (!response.ok) {
throw new Error(`Request failed: ${response.status}`);
}
console.log(await response.json());
<?php
$ch = curl_init('https://devapi.autoplannerx.com/api/v1/ai-api/models');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'X-API-Key: YOUR_API_KEY',
],
]);
$response = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
if ($status !== 200) {
die('Request failed: ' . $response);
}
$data = json_decode($response, true);
print_r($data);
import requests
response = requests.get(
"https://devapi.autoplannerx.com/api/v1/ai-api/models",
headers={"X-API-Key": "YOUR_API_KEY"},
)
response.raise_for_status()
print(response.json())
Try It
Requests go to the live gateway with your key. They count toward your rate limit and are billed like any other call ($0.0400 per call before account discounts). Your key is only used for this request and is never saved.