Skip to content

Quick Start (5 min)

Four steps to get going.

1. Sign up, then claim your trial credit

Open the sign-up page and register with your email (or a third-party login).

  • Email verification is required: enter your email → get the code → finish sign-up.
  • After signing up, contact our support to claim free trial credit (WeChat / Telegram / email — see Support). The credit works for pay-as-you-go.

2. Top up or subscribe (optional)

When your credit runs out:

  • Top up: on the purchase page choose an amount (denominated in USD; paid in CNY at the live exchange rate).
  • Subscribe: VIP / SVIP plans for heavy usage — see Subscription Plans.

3. Create an API key

Go to API Keys → Create → copy the key (sk-...).

🔐 Treat your API key like a password. Never share it or commit it to public repos.

4. Start calling

HJToken is compatible with OpenAI and Anthropic APIs. Point your tool/code at HJToken's base URL and use your key.

API base URL: https://api.hjtoken.cn

OpenAI-compatible

bash
curl https://api.hjtoken.cn/v1/chat/completions \
  -H "Authorization: Bearer $HJTOKEN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"gpt-5.4","messages":[{"role":"user","content":"Hello"}]}'

Anthropic-compatible (Claude)

bash
curl https://api.hjtoken.cn/v1/messages \
  -H "x-api-key: $HJTOKEN_API_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "Content-Type: application/json" \
  -d '{"model":"claude-sonnet-4-5","max_tokens":1024,"messages":[{"role":"user","content":"Hello"}]}'

Python (OpenAI SDK)

python
from openai import OpenAI

client = OpenAI(
    api_key="your-HJToken-API-Key",
    base_url="https://api.hjtoken.cn/v1",
)
resp = client.chat.completions.create(
    model="gpt-5.4",
    messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)
ClientHow to configure
CursorSettings → Models → set API Key and Base URL https://api.hjtoken.cn/v1. Claude models require the anthropic/ prefixed name — see Using with Cursor for the full walkthrough
Claude CodeANTHROPIC_BASE_URL=https://api.hjtoken.cn, ANTHROPIC_API_KEY=your-key
Cherry StudioAdd provider → OpenAI-compatible → set Base URL & API Key
Any SDKPoint base_url to https://api.hjtoken.cn/v1

Exact model names are listed on the Pricing page / Available Channels.

Track spend anytime on Usage. Trouble? See the FAQ.

AI API gateway powered by Claude / OpenAI / Gemini