Reference docs for request examples, authentication, model catalog details, and error handling.
Start here for request format, SDK usage, public model IDs, and billing-related implementation notes.
Contents
Use the same request shape as OpenAI. Change only your base URL and the public model ID.
curl https://api.tokenoutput.cc/v1/chat/completions \
-H "Authorization: Bearer sk-your-api-key" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen3.6-plus",
"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="qwen3.6-plus",
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": "Please write a quick greeting."}]
}'
These are the public model IDs currently available to users.
| Public Model ID | Description | Limits | Protocols | Pricing |
|---|---|---|---|---|
| Loading model catalog... | ||||
For plan comparison and buying guidance, use the pricing page.
Use Anthropic SDKs and Claude Code through /v1/messages. The API key may be sent as x-api-key.
curl https://api.tokenoutput.cc/v1/messages \
-H "x-api-key: sk-your-api-key" \
-H "anthropic-version: 2023-06-01" \
-H "Content-Type: application/json" \
-d '{
"model": "claude-sonnet-4-20250514",
"max_tokens": 256,
"messages": [{"role": "user", "content": "Hello!"}]
}'
{
"env": {
"ANTHROPIC_BASE_URL": "https://api.tokenoutput.cc",
"ANTHROPIC_AUTH_TOKEN": "sk-your-api-key",
"ANTHROPIC_MODEL": "claude-sonnet-4-20250514"
}
}
| 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 |
| Client protocol | Provider default | Model override | Behavior |
|---|---|---|---|
| OpenAI Chat | openai_chat | provider_default | Direct pass-through |
| Anthropic Messages | openai_chat | provider_default | Anthropic request converted to OpenAI upstream |
| OpenAI Chat | anthropic_messages | provider_default | OpenAI request converted to Anthropic upstream |
| Any | Any | openai_chat / anthropic_messages | Model override wins |
Create your account when you're ready to move from docs into live usage.
Get started