AI Token API Documentation

OpenAI-compatible API for 11+ Chinese AI models. Base URL: https://eaf9553505eeb8f5-115-190-107-107.serveousercontent.com/v1

Overview

The AI Token API is fully compatible with the OpenAI API specification. You can use any OpenAI SDK or tool by simply changing the base URL. All standard operations are supported: chat completions, streaming, function calling, and more.

Authentication

Include your API key in the Authorization header:

Authorization: Bearer your-api-key

API keys can be obtained from your dashboard after registration.

Available Models

Model IDProviderContextInput $/MOutput $/M
deepseek-v4DeepSeek128K$0.28$0.42
deepseek-v3DeepSeek128K$0.27$0.40
deepseek-r1DeepSeek128K$0.55$2.19
deepseek-v4-flashDeepSeek128K$0.04$0.11
qwen3.6-flashAlibaba128K$0.06$0.06
qwen3-flashAlibaba128K$0.05$0.05
qwen-plusAlibaba128K$0.40$1.20
qwen-maxAlibaba128K$0.80$2.40
glm-4-flashZhipu AI128K$0.04$0.04
glm-4-airZhipu AI128K$0.10$0.10
kimi-k3Moonshot128K$0.14$0.14

Chat Completions

POST /v1/chat/completions

{
  "model": "deepseek-v4",
  "messages": [
    {"role": "system", "content": "You are a helpful assistant."},
    {"role": "user", "content": "Hello!"}
  ],
  "temperature": 0.7,
  "max_tokens": 2048,
  "stream": false
}

Request Parameters

ParameterTypeRequiredDescription
modelstringYesModel ID (see models table)
messagesarrayYesArray of message objects
temperaturefloatNo0.0-2.0, default 0.7
max_tokensintegerNoMaximum tokens in response
streambooleanNoEnable streaming response
top_pfloatNoNucleus sampling parameter

Streaming

Set "stream": true to receive Server-Sent Events (SSE):

data: {"id":"chatcmpl-xxx","choices":[{"delta":{"content":"Hello"},"index":0}]}

data: {"id":"chatcmpl-xxx","choices":[{"delta":{"content":" world"},"index":0}]}

data: [DONE]

Error Codes

CodeMeaningResolution
401Invalid API keyCheck your API key
429Rate limit exceededWait and retry
500Internal server errorRetry or contact support
503Model temporarily unavailableTry a different model

SDKs & Libraries

Works with any OpenAI-compatible SDK: