API Documentation

Base URL

https://your-domain.com/api/chat

Authentication

Include your API key in the Authorization header:

Authorization: Bearer YOUR_API_KEY

Request Body

{
  "model": "deepseek-chat",  // or "qwen-max", "glm-4"
  "messages": [
    { "role": "user", "content": "Hello!" }
  ],
  "stream": false
}

Example (cURL)

curl -X POST https://your-domain.com/api/chat \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "deepseek-chat",
    "messages": [{"role": "user", "content": "Explain quantum computing"}]
  }'

Models

ModelContextPrice / 1M tokens
deepseek-chat64K$0.50
qwen-max32K$0.80
glm-4128K$0.60