# Models ## Retrieve `client.models.retrieve(stringmodel, RequestOptionsoptions?): LlamaModel` **get** `/models/{model}` ### Parameters - **model:** `string` ### Returns - `LlamaModel` ### Example ```typescript import LlamaAPIClient from 'llama-api-client'; const client = new LlamaAPIClient({ apiKey: 'My API Key', }); const llamaModel = await client.models.retrieve('Llama-3.3-70B-Instruct'); console.log(llamaModel.id); ``` ## List `client.models.list(RequestOptionsoptions?): ModelListResponse` **get** `/models` Lists the currently available models, and provides basic information about each one. ### Returns - **ModelListResponse:** `Array` - **id:** `string` The unique model identifier, which can be referenced in the API. - **created:** `number` The creation time of the model. - **object:** `"model"` The object type, which is always "model" - `"model"` - **owned\_by:** `string` The owner of the model. ### Example ```typescript import LlamaAPIClient from 'llama-api-client'; const client = new LlamaAPIClient({ apiKey: 'My API Key', }); const llamaModels = await client.models.list(); console.log(llamaModels); ``` ## Domain Types ### Llama Model - `LlamaModel` - **id:** `string` The unique model identifier, which can be referenced in the API. - **created:** `number` The creation time of the model. - **object:** `"model"` The object type, which is always "model" - `"model"` - **owned\_by:** `string` The owner of the model.