Complete guide to using the AIOX Server API
The AIOX Server API provides access to advanced AI capabilities through simple REST endpoints.
https://app.aioxsuite.com/wp-json/aiox-server/v1/
All API requests require authentication using your API key in the request headers:
X-API-Key: YOUR_API_KEY_HERE
Generate AI responses using the Gemini model.
{
"prompt": "Your prompt here",
"max_tokens": 1000,
"temperature": 0.7
}
{
"success": true,
"data": {
"response": "Generated AI response",
"tokens_used": 150,
"cost": 0.003
}
}
Get your current usage statistics.
{
"success": true,
"data": {
"requests_this_month": 245,
"tokens_used": 12500,
"total_cost": 2.45,
"remaining_requests": 755
}
}
curl -X POST "https://app.aioxsuite.com/wp-json/aiox-server/v1/generate" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"prompt": "Hello, world!"}'
const response = await fetch('https://app.aioxsuite.com/wp-json/aiox-server/v1/generate', {
method: 'POST',
headers: {
'X-API-Key': 'YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
prompt: 'Hello, world!'
})
});
const data = await response.json();
console.log(data);
import requests
url = "https://app.aioxsuite.com/wp-json/aiox-server/v1/generate"
headers = {
"X-API-Key": "YOUR_API_KEY",
"Content-Type": "application/json"
}
data = {
"prompt": "Hello, world!"
}
response = requests.post(url, headers=headers, json=data)
print(response.json())
API requests are subject to rate limits based on your subscription plan:
The API returns standard HTTP status codes and error messages:
{
"success": false,
"error": {
"code": "RATE_LIMIT_EXCEEDED",
"message": "Rate limit exceeded. Please try again later."
}
}
