Contact
Skip to the page text

Documentation / Guides / Inference API

List Models

GET https://<platform-address>/v1/models
Authorization: Bearer onprem-gw-your-key

Response

OpenAI-compatible list shape:

{
  "object": "list",
  "data": [
    { "id": "my-model-id", "object": "model", "created": 0, "owned_by": "ai-gateway" }
  ]
}

created is always 0 and owned_by is always "ai-gateway" -- only id carries information. Use id as the model value in requests.

Which models appear

GET /v1/models lists the deployed models with an OpenAI-schema interface. Models that answer a passthrough API (OCR and other non-LLM services, routed by path prefix) are not listed here -- see Passthrough APIs and the APIs page (/apis) for those.

Other /v1 operations

POST /v1/models is a read-only listing. Every other POST /v1/... path is forwarded to the engine unchanged, with the model name in the body selecting the route. An embedding request to /v1/embeddings therefore works when the deployed engine serves embeddings. Listed in /v1/models does not by itself mean every operation is callable -- the engine decides.

Found a mistake, or is something missing? Suggest an improvement to this page on GitHub.

Platform release 5.10.4, . Source of this page at v5.10.4. This page as Markdown.