QUICK START
A few lines. A world of models.
Quick start
Register, sign in, and top up online. After payment confirmation, generate an API key in the console. Each user has one active key and later top-ups are credited automatically. Revocation preserves unused credit; a positive balance lets you generate a replacement. Never commit your key to public repositories or put it in frontend code.
https://key.zhuan.xyz/v1OpenAI-compatible API
Supports Chat Completions, Responses and other available OpenAI-compatible endpoints. Use the exact model ID listed on the pricing page.
from openai import OpenAI
client = OpenAI(
api_key="sk-zhuan-your-key",
base_url="https://key.zhuan.xyz/v1"
)
response = client.chat.completions.create(
model="claude-sonnet-4-6",
messages=[{"role": "user", "content": "Hello"}],
stream=True
)
for chunk in response:
print(chunk.choices[0].delta.content or "", end="")curl https://key.zhuan.xyz/v1/models \
-H "Authorization: Bearer sk-zhuan-your-key"You can also use https://key.zhuan.xyz/openai/v1. Model availability and technical limits depend on platform announcements and actual API responses.
Anthropic-compatible API
import anthropic
client = anthropic.Anthropic(
api_key="sk-zhuan-your-key",
base_url="https://key.zhuan.xyz/proxy"
)
message = client.messages.create(
model="claude-sonnet-4-6", max_tokens=1024,
messages=[{"role": "user", "content": "Hello"}]
)Keys and budgets
Your account has one available balance. Confirmed top-ups automatically fund an existing key; otherwise generate your key once your balance is positive. Administrators can directly increase or reduce credit. Pricing is locked when a key is created. Pausing immediately blocks new gateway requests.
API keys authorize model calls only, not management APIs. Each user has a stable anonymous end-user identifier for risk isolation. Budgets and spend are synchronized through the platform API; synchronization delays do not make requests free.
Common errors
| Status | What to do |
|---|---|
| 401 | Use a key created on this platform and check Authorization / x-api-key. |
| 402 | Insufficient balance. Top up and retry; generate your key in the console if needed. |
| 403 | The account, key or model may be restricted. Contact support with the request ID. |
| 429 | Rate or concurrency limit exceeded. Respect retry-after and retry with backoff. |
| 502 / 503 | Service or network temporarily unavailable. Check reconciliation status before resubmitting budget operations. |