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

Retrieve

Retrieve
models.retrieve(strmodel) -> idstrcreatedintobjectliteralowned_bystrLlamaModel
get/models/{model}
Parameters
modelstr
Returns
idstrcreatedintobjectliteralowned_bystrLlamaModel
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)
200 Example
{
  "id": "id",
  "created": 0,
  "object": "model",
  "owned_by": "owned_by"
}