List
List
client.models.list(RequestOptionsoptions?): idstringcreatednumberobject"model"owned_bystringModelListResponse
get/models
Lists the currently available models, and provides basic information about each one.
Returns
ModelListResponsealias
import LlamaAPIClient from 'llama-api-client';
const client = new LlamaAPIClient({
apiKey: 'My API Key',
});
const llamaModels = await client.models.list();
console.log(llamaModels);200 Example
{
"data": [
{
"id": "id",
"created": 0,
"object": "model",
"owned_by": "owned_by"
}
],
"object": "list"
}