# Models ## Retrieve `models.retrieve(strmodel) -> LlamaModel` **get** `/models/{model}` ### Parameters - **model:** `str` ### Returns - `LlamaModel` ### Example ```python from llama_api_client import LlamaAPIClient client = LlamaAPIClient( api_key="My API Key", ) llama_model = client.models.retrieve( "Llama-3.3-70B-Instruct", ) print(llama_model.id) ``` ## List `models.list() -> ModelListResponse` **get** `/models` Lists the currently available models, and provides basic information about each one. ### Returns - **ModelListResponse:** `List[LlamaModel]` - **id:** `str` The unique model identifier, which can be referenced in the API. - **created:** `int` The creation time of the model. - **object:** `Literal["model"]` The object type, which is always "model" - `"model"` - **owned\_by:** `str` The owner of the model. ### Example ```python from llama_api_client import LlamaAPIClient client = LlamaAPIClient( api_key="My API Key", ) llama_models = client.models.list() print(llama_models) ``` ## Domain Types ### Llama Model - `class LlamaModel` - **id:** `str` The unique model identifier, which can be referenced in the API. - **created:** `int` The creation time of the model. - **object:** `Literal["model"]` The object type, which is always "model" - `"model"` - **owned\_by:** `str` The owner of the model.