Get started ↗

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.

API BASE URLhttps://key.zhuan.xyz/v1

OpenAI-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"}]
)
Some Claude routes have service limits on system prompts and concurrency. Test actual model behavior before deploying workflows that depend on strict system prompts.

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

StatusWhat to do
401Use a key created on this platform and check Authorization / x-api-key.
402Insufficient balance. Top up and retry; generate your key in the console if needed.
403The account, key or model may be restricted. Contact support with the request ID.
429Rate or concurrency limit exceeded. Respect retry-after and retry with backoff.
502 / 503Service or network temporarily unavailable. Check reconciliation status before resubmitting budget operations.