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.

Pricing Overview

8 tiers
$0.0015
/ 1K input tokens
Text Gen
$0.002
/ 1K output tokens
Text Gen
$0.08
/ image
Image Gen
$2.00
/ video
Video Gen
$0.20
/ deck
PPT Gen
$0.03
/ request
TTS Soon
$0.30
/ track
Music Soon
$0.60
/ 3D model
3D Gen Soon

Authentication & Models

1 endpoint
GET /api/v1/models
Description

List all available models. Public — no API key required. Prices shown are exactly what you are billed.

Response
{
  "object": "list",
  "data": [
    {
      "id": "qwen/qwen-plus",
      "name": "Qwen Plus",
      "category": "chat",
      "aliases": ["text-fast", "text-plus", "gpt-3.5-turbo"],
      "context_length": 131072,
      "pricing": { "unit": "per_1M_tokens", "input": 1.5, "output": 2 }
    }
  ]
}

Chat

1 endpoint
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

Images

3 endpoints
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"
}

Video

2 endpoints
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
}

Audio

2 endpoints
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
}

3D

1 endpoint
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"
}

PPT

1 endpoint
POST /api/v1/ppt/generations
Description

Generate PPT outlines from topics.

Request Body
{
  "topic": "AI Industry Trends 2026",
  "slides": 8,
  "language": "en"
}

Pricing API

1 endpoint
GET /api/v1/pricing
Description

Get current API pricing for all models. Public — no API key required. Unified unit: per 1M tokens for chat, per image/video/request for generative media.

Response
{
  "success": true,
  "currency": "USD",
  "pricing": [
    { "model": "qwen/qwen-plus", "unit": "per_1M_tokens", "input": 1.5, "output": 2 },
    { "model": "wan/wan2.6-t2i", "unit": "per_image", "cost": 0.08 }
  ]
}

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"}]}'