API Documentation
Base URL
https://your-domain.com/api/chatAuthentication
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
| Model | Context | Price / 1M tokens |
|---|---|---|
| deepseek-chat | 64K | $0.50 |
| qwen-max | 32K | $0.80 |
| glm-4 | 128K | $0.60 |