Developer Docs

OpenAI-compatible by default, Anthropic-native supported

No SDK rewrite required. Existing Cursor, Claude Code, OpenAI SDK, and gateway tools can be switched with one base URL change.

OpenAI endpoint

https://api.hainangateway.ai/v1

Anthropic endpoint

https://api.hainangateway.ai

Quick start

  1. Create account and complete KYC tier verification.
  2. Recharge token balance via Stripe / PayPal / enterprise settlement.
  3. Create API key in Console > API Keys.
  4. Switch your base URL and start inference traffic.

cURL sample

curl https://api.hainangateway.ai/v1/chat/completions \
  -H "Authorization: Bearer sk-your-key" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "qwen3.5-397b-a17b",
    "messages": [{"role": "user", "content": "Hello from overseas gateway"}],
    "temperature": 0.3
  }'