NylorunDocsBeta
Management APIModels

List model providers and models

GET
/v1/tenant/models

Each model says what it reads (inputs: its catalog's inputs and those the operator added) and what may be added (addableInputs).

Authorization

managementKey
headerAuthorizationBearer <token>

A management key of the Tenant (role management): it reaches the Management API (/v1/tenant/*) and /v1/me, as itself, never for a subject. Issued only on the Tenant's machine (nylorun-operate keys put <id> --role management) or from NYLORUN_MANAGEMENT_KEY_FILE. Never accepted from a browser (Origin).

Header Parameters

Nylorun-Protocol*string

The protocol version, 18

Response Body

Provider and model names, and their inputs

application/json
  1. response
providers*array<>
import { createAdmin } from "@nylorun/admin";const admin = createAdmin();const catalog = await admin.models.catalog();
{  "providers": [    {      "id": "string",      "name": "string",      "models": [        {          "id": "string",          "name": "string",          "inputs": [            "text"          ],          "addableInputs": [            "text"          ]        }      ]    }  ]}