OpenAI-compatible API for text, image, video, audio, 3D, and more. One key, all AI capabilities.
Enter your API key here to test endpoints directly. Get one from your dashboard.
List all available models.
Authorization: Bearer sk-xxxx
{
"object": "list",
"data": [
{ "id": "text-fast", "object": "model" },
{ "id": "text-plus", "object": "model" },
{ "id": "image-pro", "object": "model" }
]
}
Chat with AI. Supports streaming (set stream: true).
Authorization: Bearer sk-xxxx
Content-Type: application/json
{
"model": "text-fast",
"messages": [
{ "role": "user", "content": "Hello!" }
],
"stream": false,
"max_tokens": 2000
}
Generate images from text prompts.
{
"prompt": "A cute cat in space",
"size": "1024x1024",
"model": "image-pro"
}
Edit images based on a reference image and prompt.
{
"image": "https://example.com/image.jpg",
"prompt": "Change style to watercolor",
"model": "image-edit"
}
Analyze and understand images.
{
"imageUrl": "https://example.com/photo.jpg",
"prompt": "Describe this image",
"model": "vision"
}
Generate videos from text prompts.
{
"prompt": "A cat playing in a garden",
"resolution": "720P",
"duration": 5,
"model": "video"
}
Generate videos from an image.
{
"image": "https://example.com/image.jpg",
"prompt": "Make the character walk",
"duration": 5
}
Text-to-speech synthesis.
{
"text": "Hello world",
"voice": "longxiaochun",
"model": "tts"
}
Generate music from text prompts.
{
"prompt": "Upbeat electronic music for a workout",
"duration": 30
}
Generate 3D models from text or images.
{
"prompt": "A cute robot character",
"image": "https://example.com/robot.jpg",
"model": "3d"
}
Generate PPT outlines from topics.
{
"topic": "AI Industry Trends 2026",
"slides": 8,
"language": "en"
}
Get current API pricing for all endpoints.
{
"models": {
"text-fast": { "input": 0.001, "output": 0.002 },
"image-pro": { "cost": 0.04 }
}
}
import requests
headers = {"Authorization": "Bearer sk-your-key"}
resp = requests.post(
"https://your-domain.com/api/v1/chat/completions",
headers=headers,
json={"model": "text-fast", "messages": [{"role": "user", "content": "Hello"}]}
)
print(resp.json())
const axios = require('axios');
const resp = await axios.post(
'https://your-domain.com/api/v1/chat/completions',
{ model: 'text-fast', messages: [{ role: 'user', content: 'Hello' }] },
{ headers: { Authorization: 'Bearer sk-your-key' } }
);
console.log(resp.data);
curl -X POST https://your-domain.com/api/v1/chat/completions \
-H "Authorization: Bearer sk-your-key" \
-H "Content-Type: application/json" \
-d '{"model":"text-fast","messages":[{"role":"user","content":"Hello"}]}'