Skip to main content
GET
/
models
JavaScript
import Cerca from '@cerca-dev/sdk';

const client = new Cerca({
  apiKey: process.env['CERCA_API_KEY'], // This is the default and can be omitted
});

const models = await client.models.list();

console.log(models.models);
{
  "models": [
    {
      "capabilities": [
        "<string>"
      ],
      "contextWindowTokens": 123,
      "defaultMaxOutputTokens": 123,
      "id": "<string>",
      "name": "<string>",
      "requestHeadroomTokens": 123
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.cerca.dev/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

Available model descriptors.

models
object[]
required