Quick start
- Register at https://api.hoyoai.cn
- Create an API key under Tokens / API Keys
- Top up via Wallet (e.g. Alipay)
- Call with Base URL
https://api.hoyoai.cn/v1
bash
curl https://api.hoyoai.cn/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "claude-sonnet-4-6",
"messages": [{"role": "user", "content": "Hello, HOYOAI!"}]
}'Use exact model IDs from the model marketplace.
Next: Auth · API overview · Clients