Quickstart

Gọi API đầu tiên của bạn

Năm phút từ đăng ký đến phản hồi đầu tiên.

Đăng ký miễn phí

1. Lấy API key

Tạo tài khoản tại /signup. Bạn sẽ nhận $2 credit dùng thử và một API key có prefix zr-... trong dashboard.

2. Đặt base URL

Trỏ bất kỳ SDK tương thích OpenAI nào về gateway của chúng tôi:

https://api.zionrouter.com/v1

3. Gọi API đầu tiên

Chọn ngôn ngữ. Tên model chấp nhận model của bất kỳ provider nào — chúng tôi route phía sau.

curl
curl https://api.zionrouter.com/v1/chat/completions \
  -H "Authorization: Bearer zr-..." \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-5-mini",
    "messages": [{"role": "user", "content": "Hello"}]
  }'
python
from openai import OpenAI

client = OpenAI(
    api_key="zr-...",
    base_url="https://api.zionrouter.com/v1",
)

resp = client.chat.completions.create(
    model="gpt-5-mini",
    messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)
node
import OpenAI from "openai";

const client = new OpenAI({
  apiKey: "zr-...",
  baseURL: "https://api.zionrouter.com/v1",
});

const resp = await client.chat.completions.create({
  model: "gpt-5-mini",
  messages: [{ role: "user", content: "Hello" }],
});
console.log(resp.choices[0].message.content);

4. Xem usage trong dashboard

Mọi request hiển thị realtime với cost, latency, và model upstream đã phục vụ.

Bắt đầu routing trong 60 giây.

Nạp bất kỳ số tiền nào để bắt đầu. Không cần thẻ tín dụng.

Trả theo dùngKhông cần thẻDaily Access từ $0/tháng