Skip to content

Quick Start & Dual Domains ​

Get from a new account to your first verified model response on RKAPI in under five minutes.

Four-Step Quick Start ​

  1. Create or sign in to your account Visit the web console at https://s2pbxm0xv5y.adtyai-fz.top to register or sign in. We recommend enabling 2FA early—see Account Security & PAT.
  2. Fund your wallet Open Wallet in the console to add USD balance via an available online payment channel or redeem a quota voucher. See Wallet, Bonus & Vouchers.
  3. Create an API key with a concrete model group Before generating a key, check Pricing and Channel Availability to select the concrete model group that carries the models, pricing tier, and reliability profile your workload needs. Then open API Keys, create a new key, bind it to that concrete model group, and copy the sk-... secret.
  4. Point your client to the API domain Configure your CLI tool, desktop app, or SDK to use https://api.zwwbai.com (with or without /v1 depending on the protocol—see API Reference).

Dual-Domain Separation ​

RKAPI intentionally separates web console traffic from high-throughput model API traffic across two domains:

DomainPrimary RoleModel API Calls (/v1/*, /v1beta/*)Console Access
https://s2pbxm0xv5y.adtyai-fz.topWeb Console & DocumentationRejected with HTTP 403 (api_domain_required)Yes
https://api.zwwbai.comDedicated Model API GatewaySupported (all OpenAI, Anthropic, Gemini routes)Also supported

Why www Rejects API Requests

Sending model requests to https://s2pbxm0xv5y.adtyai-fz.top/v1/... or https://s2pbxm0xv5y.adtyai-fz.top/v1beta/... will always fail with HTTP 403 and error code api_domain_required.

This isolation protects API latency and streaming stability from web frontend and static asset traffic. Always configure https://api.zwwbai.com as your client's base URL.

Quick Base URL Cheat Sheet ​

Different client ecosystems expect slightly different URL suffixes:

  • OpenAI-compatible clients & Codex CLI: https://api.zwwbai.com/v1
  • Anthropic SDK & Claude Code: https://api.zwwbai.com (do not append /v1—the client appends /v1/messages itself)
  • Gemini Native SDK (google-genai): https://api.zwwbai.com (the SDK appends /v1beta/models/... automatically)

Quick Smoke Test with curl ​

Replace <YOUR_API_KEY> with a key created in the console and verify connectivity against the OpenAI-compatible Chat Completions endpoint.

macOS / Linux ​

bash
curl -sS https://api.zwwbai.com/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <YOUR_API_KEY>" \
  -d '{
    "model": "gpt-5.4",
    "messages": [
      { "role": "user", "content": "Reply with OK and nothing else." }
    ],
    "max_tokens": 32
  }'

Windows PowerShell ​

powershell
curl.exe -sS "https://api.zwwbai.com/v1/chat/completions" `
  -H "Content-Type: application/json" `
  -H "Authorization: Bearer <YOUR_API_KEY>" `
  -d "{\"model\":\"gpt-5.4\",\"messages\":[{\"role\":\"user\",\"content\":\"Reply with OK and nothing else.\"}],\"max_tokens\":32}"

A successful response returns HTTP 200 with a JSON payload containing choices[0].message.content and a usage token summary:

json
{
  "id": "chatcmpl-01J9EXAMPLE",
  "object": "chat.completion",
  "model": "gpt-5.4",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "OK"
      },
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 14,
    "completion_tokens": 2,
    "total_tokens": 16
  }
}

Choosing a Model for the Smoke Test

Make sure the model value in your test request is included in the concrete model group assigned to your API key. You can list all models available to a key by sending GET https://api.zwwbai.com/v1/models with the same Authorization: Bearer header.

Next Steps ​