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

List

List
models.list() -> idstrcreatedintobjectliteralowned_bystrModelListResponse
get/models

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

Returns
ModelListResponsetype
List[idstrcreatedintobjectliteralowned_bystrLlamaModel]
Hide ParametersShow Parameters
idstr

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

createdint

The creation time of the model.

objectliteral
Literal["model"]

The object type, which is always "model"

Hide ParametersShow Parameters
"model"
owned_bystr

The owner of the model.

from llama_api_client import LlamaAPIClient

client = LlamaAPIClient(
    api_key="My API Key",
)
llama_models = client.models.list()
print(llama_models)
200 Example
{
  "data": [
    {
      "id": "id",
      "created": 0,
      "object": "model",
      "owned_by": "owned_by"
    }
  ],
  "object": "list"
}