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

Retrieve

Retrieve
client.models.retrieve(stringmodel, RequestOptionsoptions?): idstringcreatednumberobject"model"owned_bystringLlamaModel
get/models/{model}
Parameters
modelstring
Returns
idstringcreatednumberobject"model"owned_bystringLlamaModel
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);
200 Example
{
  "id": "id",
  "created": 0,
  "object": "model",
  "owned_by": "owned_by"
}