Skip to content
Get started

List available grounded models

client.models.list(RequestOptionsoptions?): ModelListResponse { data, object }
GET/v1/models

List available grounded models

ReturnsExpand Collapse
ModelListResponse { data, object }
data: Array<Data>
id: string
created: number
object: "model"
owned_by: string
_maps_to?: string
object: "list"

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"
}