Unified API (Preview)
Unified API List Models
Returns every chat and embedding model reachable through the unified endpoint, with a response shape identical to the official OpenAI API.
v1/modelsThis endpoint is currently in gated rollout and is available to a limited set of tenants only. If your request returns a permission error, your account has not been added to the allowlist yet. For production, please use the stable native endpoints (/openai, /anthropic, /google). API behavior may change in future releases during the preview without prior notice.
Authorizations
Use the following format for authentication: Bearer sk-pat-YourAccessToken
The key value is your HAI Gateway Personal Access Token (starting with sk-pat-), identical to the OpenAI Relay channel. No separate API key from any upstream provider is required.
Base URL
Description
Returns every model the current account can invoke through the unified endpoint — aggregated across OpenAI, Anthropic, Google, and compatible providers, covering both chat and embedding capabilities. The response shape is identical to the official OpenAI /v1/models endpoint; each id is the value you pass as model when calling chat/completions or embeddings.
curl https://api.hai.network/unified-preview/openai/v1/models \
-H "Authorization: Bearer sk-pat-YourAccessToken"{
"object": "list",
"data": [
{
"id": "gpt-5.4-2026-03-05",
"object": "model",
"created": 1741132800,
"owned_by": "system"
},
{
"id": "claude-opus-4-6",
"object": "model",
"created": 1738339200,
"owned_by": "system"
},
{
"id": "gemini-2.5-pro",
"object": "model",
"created": 1740268800,
"owned_by": "system"
},
{
"id": "text-embedding-3-small",
"object": "model",
"created": 1705276800,
"owned_by": "system"
}
]
}