AI Open Cloud API Documentation

OpenAI-compatible API for text, image, video, audio, 3D, and more. One key, all AI capabilities.

Your API Key

Enter your API key here to test endpoints directly. Get one from your dashboard.

$0.0015
/ 1K input tokens
Text Gen
$0.002
/ 1K output tokens
Text Gen
$0.06
/ image
Image Gen
$1.20
/ video
Video Gen
$0.05
/ deck
PPT Gen
$0.02
/ request
TTS Soon
$0.20
/ track
Music Soon
$0.40
/ 3D model
3D Gen Soon
GET /api/v1/models
Description

List all available models.

Request Headers
Authorization: Bearer sk-xxxx
Response
{
  "object": "list",
  "data": [
    { "id": "text-fast", "object": "model" },
    { "id": "text-plus", "object": "model" },
    { "id": "image-pro", "object": "model" }
  ]
}
POST /api/v1/chat/completions
Description

Chat with AI. Supports streaming (set stream: true).

Request Headers
Authorization: Bearer sk-xxxx
Content-Type: application/json
Request Body
{
  "model": "text-fast",
  "messages": [
    { "role": "user", "content": "Hello!" }
  ],
  "stream": false,
  "max_tokens": 2000
}
Try It
POST /api/v1/images/generations
Description

Generate images from text prompts.

Request Body
{
  "prompt": "A cute cat in space",
  "size": "1024x1024",
  "model": "image-pro"
}
Try It
POST /api/v1/images/edits
Description

Edit images based on a reference image and prompt.

Request Body
{
  "image": "https://example.com/image.jpg",
  "prompt": "Change style to watercolor",
  "model": "image-edit"
}
POST /api/v1/vision
Description

Analyze and understand images.

Request Body
{
  "imageUrl": "https://example.com/photo.jpg",
  "prompt": "Describe this image",
  "model": "vision"
}
POST /api/v1/videos/generations
Description

Generate videos from text prompts.

Request Body
{
  "prompt": "A cat playing in a garden",
  "resolution": "720P",
  "duration": 5,
  "model": "video"
}
POST /api/v1/videos/image-to-video
Description

Generate videos from an image.

Request Body
{
  "image": "https://example.com/image.jpg",
  "prompt": "Make the character walk",
  "duration": 5
}
POST /api/v1/audio/speech
Description

Text-to-speech synthesis.

Request Body
{
  "text": "Hello world",
  "voice": "longxiaochun",
  "model": "tts"
}
POST /api/v1/audio/music
Description

Generate music from text prompts.

Request Body
{
  "prompt": "Upbeat electronic music for a workout",
  "duration": 30
}
POST /api/v1/3d/generations
Description

Generate 3D models from text or images.

Request Body
{
  "prompt": "A cute robot character",
  "image": "https://example.com/robot.jpg",
  "model": "3d"
}
POST /api/v1/ppt/generations
Description

Generate PPT outlines from topics.

Request Body
{
  "topic": "AI Industry Trends 2026",
  "slides": 8,
  "language": "en"
}
GET /api/v1/pricing
Description

Get current API pricing for all endpoints.

Response
{
  "models": {
    "text-fast": { "input": 0.001, "output": 0.002 },
    "image-pro": { "cost": 0.04 }
  }
}

SDK Examples

Python
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())
Node.js
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
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"}]}'