API Documentation

AI-AllInOne provides a unified, OpenAI-compatible API to access 53+ AI models — including Qwen, DeepSeek, GLM, Kimi, MiniMax, StepFun, and more. Chat, embeddings, rerank, image generation, video generation, ASR, and TTS in one platform.

Quick Start

Get up and running in 3 steps:

1

Create an Account

Sign up at ai-allinone.com with your email. No credit card required to get started.

2

Get Your API Key

After logging in, go to the API Keys page and create a key. Your key starts with aak-. New users receive free credits to test the API.

3

Send Your First Request

Use your key to make a chat completion request:

curl
curl https://ai-allinone.com/v1/chat/completions \
  -H "Authorization: Bearer aak-your-key" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepseek-v4-flash",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

OpenAI SDK Compatible

Simply change base_url to https://ai-allinone.com/v1 and use your aak- key. All OpenAI-compatible SDKs (Python, Node.js, Go, etc.) work out of the box.

Try it in the Playground

No code required. Test models interactively in your browser with streaming support, token counting, and latency metrics.

Open Playground →

Authentication

All API requests require authentication via your API key in the Authorization header.

API Key Format

Your API key starts with aak- followed by a random string, e.g. aak-live-x8k2m9f4q7z3.

Header Usage

http
Authorization: Bearer aak-your-key
Content-Type: application/json

Keep Your Key Secure

Never expose your API key in client-side code or public repositories. Use environment variables and server-side proxies in production. You can create and revoke keys at any time from the dashboard.

Base URL

Base URL

https://ai-allinone.com

All API endpoints are relative to this base URL. The API path prefix is /v1.

Online Playground

The built-in playground lets you test any model directly from your browser — no setup required.

  • Select from 53+ models with live pricing display
  • Toggle streaming on/off to see SSE responses in real time
  • View TTFT (Time To First Token), total latency, and token usage
  • Custom system prompt support
  • Use your own API key — requests are billed to your account
Launch Playground →

Chat Completions

POST/v1/chat/completions

Creates a model response for the given chat conversation. Fully compatible with the OpenAI Chat Completions API.

Request Body

ParameterTypeRequiredDescription
modelstringYesModel ID from the model list (e.g. deepseek-v4-flash, qwen3.7-max)
messagesarrayYesArray of message objects with role and content
streambooleanNoEnable SSE streaming. Default: false
temperaturenumberNoSampling temperature (0–2). Default: model-dependent
max_tokensintegerNoMaximum tokens to generate
top_pnumberNoNucleus sampling parameter (0–1)
response_formatobjectNoForce JSON output with {"type":"json_object"}

Example Request

curl
curl https://ai-allinone.com/v1/chat/completions \
  -H "Authorization: Bearer aak-your-key" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepseek-v4-pro",
    "messages": [
      {"role": "system", "content": "You are a helpful assistant."},
      {"role": "user", "content": "What is the capital of France?"}
    ],
    "stream": false,
    "temperature": 0.7
  }'

Example Response

json
{
  "id": "chatcmpl-abc123",
  "object": "chat.completion",
  "model": "deepseek-v4-pro",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "The capital of France is Paris."
      },
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 25,
    "completion_tokens": 8,
    "total_tokens": 33
  }
}

Streaming

Set "stream": true to receive Server-Sent Events (SSE). The response format is identical to OpenAI's streaming format.

Embeddings

POST/v1/embeddings

Creates an embedding vector representing the input text. Compatible with the OpenAI Embeddings API.

Request Body

ParameterTypeRequiredDescription
modelstringYesEmbedding model: text-embedding-v4, text-embedding-v3, qwen3-vl-embedding, multimodal-embedding-v1
inputstring/arrayYesText or array of texts to embed
curl
curl https://ai-allinone.com/v1/embeddings \
  -H "Authorization: Bearer aak-your-key" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "text-embedding-v4",
    "input": "The quick brown fox jumps over the lazy dog"
  }'

Rerank

POST/v1/rerank

Re-ranks documents based on relevance to a query. Useful for RAG pipelines.

Available Rerank Models

  • gte-rerank-v2 — GTE Rerank V2
  • qwen3-rerank — Qwen3 Rerank
  • qwen3-vl-rerank — Qwen3 VL Rerank (multimodal)
curl
curl https://ai-allinone.com/v1/rerank \
  -H "Authorization: Bearer aak-your-key" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gte-rerank-v2",
    "query": "What is DeepSeek?",
    "documents": ["DeepSeek is an AI lab.", "The weather is nice."],
    "top_n": 2
  }'

Video Generation

POST/v1/video/generations

Generates video from text or image prompts.

Available Video Models

Model IDNameTier
doubao-seedance-2-0-260128Seedance 2.0Premium
doubao-seedance-2-0-fast-260128Seedance 2.0 FastStandard
doubao-seedance-2-0-mini-260615Seedance 2.0 MiniEconomy
doubao-seedance-1-0-pro-250528Seedance 1.0 ProPremium
happyhorse-1.1-t2vHappy Horse 1.1 T2VPremium
happyhorse-1.1-i2vHappy Horse 1.1 I2VPremium

Example

curl
curl https://ai-allinone.com/v1/video/generations \
  -H "Authorization: Bearer aak-your-key" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "doubao-seedance-2-0-260128",
    "prompt": "A cat sitting on a windowsill watching rain fall outside"
  }'

Image Generation

POST/v1/images/generations

Generates images from text prompts. Compatible with the OpenAI Images API.

Available Image Models

Model IDNameTier
wan2.7-image-proWan 2.7 Image ProPremium
wanx2.1-t2i-plusWanx 2.1 T2I PlusStandard
wanx2.1-t2i-turboWanx 2.1 T2I TurboEconomy
wanx2.0-t2i-turboWanx 2.0 T2I TurboEconomy
qwen-image-2.0-proQwen Image 2.0 ProStandard

Speech Recognition & Synthesis

ASR (Speech-to-Text)

Transcribe audio files to text. Billed per second of audio.

  • fun-asr — Fun ASR Economy
  • qwen3-asr-flash — Qwen3 ASR Flash Standard
  • sensevoice-v1 — SenseVoice V1 Standard

TTS (Text-to-Speech)

Synthesize speech from text. Billed per character.

  • cosyvoice-v3.5-plus — CosyVoice V3.5 Plus Premium
  • cosyvoice-v3-plus — CosyVoice V3 Plus Standard
  • cosyvoice-v3-flash — CosyVoice V3 Flash Economy

Model List

All 53 active models. For real-time pricing, see the pricing page. Check system status for availability.

Chat / Language Models Premium

Model IDDisplay NameContext
qwen3.7-maxQwen3.7 Max1M
deepseek-v4-proDeepSeek V4 Pro128K
glm-5.2GLM-5.2128K
kimi-k3Kimi K3128K
qvq-maxQvQ Max128K
qwen3.5-omni-plusQwen3.5 Omni Plus1M
qwen3-vl-plusQwen3 VL Plus256K

Chat / Language Models Standard

Model IDDisplay Name
deepseek-v4-flashDeepSeek V4 Flash
qwen3.7-plusQwen3.7 Plus
qwen3.6-plusQwen3.6 Plus
qwen3.6-flashQwen3.6 Flash
glm-5.1GLM-5.1
glm-5GLM-5
glm-4.7GLM-4.7
kimi-k2.7-codeKimi K2.7 Code
kimi-k2.6Kimi K2.6
kimi-k2.5Kimi K2.5
kimi-k2-thinkingKimi K2 Thinking
MiniMax/MiniMax-M3MiniMax M3
qwen3-coder-plusQwen3 Coder Plus
qwq-plusQwQ Plus
qwen-longQwen Long
stepfun/step-3.7-flashStep 3.7 Flash

Chat / Language Models Economy

Model IDDisplay Name
qwen3.5-flashQwen3.5 Flash
qwen3.5-plusQwen3.5 Plus
qwen3-coder-flashQwen3 Coder Flash
glm-4.5-airGLM-4.5 Air
MiniMax-M2.5MiniMax M2.5
qwen3-vl-flashQwen3 VL Flash

Programmatic Model List

Fetch the live model list (including all embedding, rerank, image, video, ASR, and TTS models) via:

bash
curl https://ai-allinone.com/api/public/models

Code Examples

Python (OpenAI SDK)

python
from openai import OpenAI

client = OpenAI(
    api_key="aak-your-key",
    base_url="https://ai-allinone.com/v1"
)

response = client.chat.completions.create(
    model="deepseek-v4-flash",
    messages=[
        {"role": "system", "content": "You are a helpful assistant."},
        {"role": "user", "content": "Hello!"}
    ]
)

print(response.choices[0].message.content)

Python (Streaming)

python
from openai import OpenAI

client = OpenAI(
    api_key="aak-your-key",
    base_url="https://ai-allinone.com/v1"
)

stream = client.chat.completions.create(
    model="qwen3.7-max",
    messages=[{"role": "user", "content": "Tell me a story"}],
    stream=True
)

for chunk in stream:
    if chunk.choices[0].delta.content:
        print(chunk.choices[0].delta.content, end="")

Node.js (OpenAI SDK)

javascript
import OpenAI from "openai";

const client = new OpenAI({
  apiKey: "aak-your-key",
  baseURL: "https://ai-allinone.com/v1",
});

const response = await client.chat.completions.create({
  model: "deepseek-v4-flash",
  messages: [
    { role: "system", content: "You are a helpful assistant." },
    { role: "user", content: "Hello!" },
  ],
});

console.log(response.choices[0].message.content);

Embeddings (Python)

python
from openai import OpenAI

client = OpenAI(
    api_key="aak-your-key",
    base_url="https://ai-allinone.com/v1"
)

response = client.embeddings.create(
    model="text-embedding-v4",
    input="The quick brown fox"
)

print(response.data[0].embedding[:5])  # first 5 dimensions

Error Codes

CodeMeaningSolution
400Bad request — invalid parameters or model nameCheck your request body format and model ID
401Unauthorized — invalid or missing API keyVerify your aak- key is correct and active
402Payment required — insufficient balanceTop up your account on the Wallet page
404Not found — model not availableCheck the model name. See model list
429Rate limit exceededReduce request frequency
500Internal server errorRetry. If persistent, contact support
502Bad gateway — upstream errorUpstream temporarily unavailable. Wait and retry
504Gateway timeoutUpstream took too long. Retry with simpler prompt

Error Response Format

json
{
  "error": {
    "message": "Insufficient balance. Please top up your account.",
    "type": "insufficient_balance",
    "code": "insufficient_balance"
  }
}

Billing

All API usage is billed in USD based on token/character/second/image consumption, depending on the model type. Pricing is transparent — see the pricing page for per-model rates.

Billing Types

TypeUnitModels
tokenPer 1K tokens (input + output)Chat/Language models
embeddingPer 1K input tokensEmbedding models
rerankPer 1K input tokensRerank models
imagePer image generatedImage generation models
videoPer video generatedVideo generation models
audio_secondPer second of audioASR models
characterPer characterTTS models

Pay-As-You-Go

No monthly fees, no minimum commitment. You only pay for what you use. Deposit credits via the Wallet page and track your spending in the dashboard.

System Status

Check real-time service health and model availability at ai-allinone.com/status.