API Platform

List Models

List the models available to the current tenant. This endpoint aligns with GET /v1/models and returns a list only; it does not provide the GET /v1/models/{model} detail endpoint.

GET
/v1/models

Returns the list of models available to the current tenant. No request body, no query parameters; the response is a list object.

Authentication

Add Authorization: Bearer <API_KEY> to the request header to authenticate. You can generate a key on the "API Keys" page of the console.

Example
curl https://api.mosi.cn/v1/models \
  -H "Authorization: Bearer $MOSS_API_KEY"

Request parameters

No request body and no query parameters; the complete request is the authentication example above.

Response fields

FieldTypeAlways returnedDescription
objectstringYes

Always list.

data[].idstringYes

The model id; the model field in public requests takes this value.

data[].objectstringYes

Always model.

data[].createdintegerYes

Model record creation time, a Unix timestamp in seconds.

data[].owned_bystringYes

The model owner; subject to the actual server response.

Response example

Response example
{
  "object": "list",
  "data": [
    {
      "id": "moss-tts",
      "object": "model",
      "created": 1710000000,
      "owned_by": "agw"
    }
  ]
}

Next steps