HAI Gateway Docs

Platform OpenAPI

My Models

List all available models for the current account and their supported API endpoint types.

GETinfo/my-models

Authorizations

Authorizationstringheaderrequired

Bearer sk-pat-YourAccessToken

This endpoint uses a platform-level token (starting with sk-pat-), consistent with the Relay Mode provider endpoints.

Base URL

About the schemas field

Each model's schemas lists the API endpoint types it supports. Common values include: openai_chat_completions, openai_responses, anthropic_messages, google-ai-generate-content. Models on the Bailian preview channel are labeled as compatible_openai_chat_completions, compatible_openai_responses, compatible_anthropic_messages. modelFamily can be used to identify the provider: openai / anthropic / google / bailian / zhipu.

cURL
Default
cURL:Default
curl https://api.hai.network/info/my-models \
  -H "Authorization: Bearer sk-pat-YourAccessToken"
200
Default
200:Default
[
  {
    "modelId": "claude-sonnet-4-20250514",
    "modelFamily": "anthropic",
    "schemas": [
      { "schema": "anthropic_messages" }
    ],
    "createdAt": "2025-05-14T00:00:00.000Z"
  },
  {
    "modelId": "gpt-4.1",
    "modelFamily": "openai",
    "schemas": [
      { "schema": "openai_chat_completions" },
      { "schema": "openai_responses" }
    ],
    "createdAt": "2025-04-14T00:00:00.000Z"
  },
  {
    "modelId": "gemini-2.5-pro",
    "modelFamily": "google",
    "schemas": [
      { "schema": "google-ai-generate-content" }
    ],
    "createdAt": "2025-03-01T00:00:00.000Z"
  }
]