Skip to content
  • Auto
  • Light
  • Dark
Log in to API

List

List
client.models.list(RequestOptionsoptions?): idstringcreatednumberobject"model"owned_bystringModelListResponse
get/models

Lists the currently available models, and provides basic information about each one.

Returns
ModelListResponsealias
Array<idstringcreatednumberobject"model"owned_bystringLlamaModel>
Hide ParametersShow Parameters
idstring

The unique model identifier, which can be referenced in the API.

creatednumber

The creation time of the model.

object"model"

The object type, which is always "model"

Hide ParametersShow Parameters
"model"
owned_bystring

The owner of the model.

import LlamaAPIClient from 'llama-api-client';

const client = new LlamaAPIClient({
  apiKey: 'My API Key',
});

const llamaModels = await client.models.list();

console.log(llamaModels);
200 Example
{
  "data": [
    {
      "id": "id",
      "created": 0,
      "object": "model",
      "owned_by": "owned_by"
    }
  ],
  "object": "list"
}