List available grounded models
client.models.list(RequestOptionsoptions?): ModelListResponse { data, object }
GET/v1/models
List available grounded models
Returns
List available grounded models
import CementedAI from 'cemented.ai';
const client = new CementedAI({
apiKey: process.env['CEMENTED_AI_API_KEY'], // This is the default and can be omitted
});
const models = await client.models.list();
console.log(models.data);{
"data": [
{
"id": "id",
"created": 0,
"object": "model",
"owned_by": "owned_by",
"_maps_to": "_maps_to"
}
],
"object": "list"
}Returns Examples
{
"data": [
{
"id": "id",
"created": 0,
"object": "model",
"owned_by": "owned_by",
"_maps_to": "_maps_to"
}
],
"object": "list"
}