Clear setup instructions plus a complete public model ID list.
Contents
Use the same request shape as OpenAI. Change only your base URL and model id.
curl https://api.tokenoutput.cc/v1/chat/completions \
-H "Authorization: Bearer sk-your-api-key" \
-H "Content-Type: application/json" \
-d '{
"model": "DeepSeek-V3.2",
"messages": [{"role": "user", "content": "Hello!"}]
}'
All requests require your API key in the Authorization header.
from openai import OpenAI
client = OpenAI(
api_key="sk-your-api-key",
base_url="https://api.tokenoutput.cc/v1"
)
resp = client.chat.completions.create(
model="GLM-5",
messages=[{"role": "user", "content": "Hello"}]
)
import OpenAI from 'openai';
const client = new OpenAI({
apiKey: 'sk-your-api-key',
baseURL: 'https://api.tokenoutput.cc/v1',
});
const resp = await client.chat.completions.create({
model: 'QWEN3.6-PLUS',
messages: [{ role: 'user', content: 'Hello' }],
});
Set stream: true to receive SSE chunks.
curl -N https://api.tokenoutput.cc/v1/chat/completions \
-H "Authorization: Bearer sk-your-api-key" \
-H "Content-Type: application/json" \
-d '{
"model": "QWEN3.6-PLUS",
"stream": true,
"messages": [{"role": "user", "content": "请用中文写一句问候"}]
}'
These are the model IDs you can pass in the model field.
| Public Model ID | Provider | Notes |
|---|---|---|
| deepseek-chat | deepseek | General coding / chat |
| deepseek-reasoner | deepseek | Reasoning tasks |
| qwen-turbo | qwen | Fast and low cost |
| qwen-plus | qwen | Balanced quality/cost |
| qwen-max | qwen | Higher quality |
| qwen-long | qwen | Long documents |
| glm-4-plus | zhipu | Flagship GLM |
| glm-4-flash | zhipu | Fast GLM |
| glm-4-air | zhipu | Balanced GLM |
| DeepSeek-V3.2 | tokenbase | Tokenbase upstream |
| GLM-5 | tokenbase | Tokenbase upstream |
| GLM-4.7 | tokenbase | Tokenbase upstream |
| kimi-k2.5 | tokenbase | Tokenbase upstream |
| MiniMax-M2.5 | tokenbase | Tokenbase upstream |
| doubao-seed-2.0-pro | tokenbase | Tokenbase upstream |
| QWEN3.6-PLUS | tokenbase | Tokenbase upstream |
| Code | Meaning |
|---|---|
| 400 | Bad request or unsupported model |
| 401 | Invalid or missing API key |
| 402 | Insufficient pay-as-you-go balance |
| 429 | Rate limited |
| 502 | Upstream provider error |