Skip to content

Compatibility

One HOYOAI key and host serve multiple vendor protocols.

Hosts

ClientTypical Base URL
OpenAI SDK / most librarieshttps://api.hoyoai.cn/v1
Clients that forbid /v1https://api.hoyoai.cn
Anthropic / Claude Codeusually https://api.hoyoai.cn
Gemini-native clientshttps://api.hoyoai.cn (path per client)

Protocols

ProtocolPathTypical clients
Chat CompletionsPOST /v1/chat/completionsOpenAI SDK, Cursor
CompletionsPOST /v1/completionsLegacy
ResponsesPOST /v1/responsesAgents / Responses
ImagesPOST /v1/images/generationsImage gen
ModelsGET /v1/modelsListing
MessagesPOST /v1/messagesClaude Code
Gemini nativee.g. /v1beta/models/{model}:generateContentGemini CLI

Prefer Chat Completions to validate keys first. Do not send other aggregators’ proprietary headers or routing fields — they are not part of HOYOAI. Model slugs may differ from official vendor catalogs; use the HOYOAI marketplace.

HOYOAI · OpenAI-compatible AI API aggregation