Skip to Content

Models API

API for managing Models resources.

Fields

interface Models { name: string; id: string; provider: string; lab?: string; description?: string; context_length?: number; pricing?: any; capabilities?: any[]; modelUrl?: string; imageUrl?: string; }

API Endpoints

GET /api/models

Retrieves a list of Models with pagination.

Query Parameters

  • limit: Maximum number of items to return (default: 10)
  • page: Page number for pagination (default: 1)
  • sort: Field to sort by (default: createdAt)
  • where: JSON query for filtering results

GET /api/models/:id

Retrieves a single Models by ID.

POST /api/models

Creates a new Models.

PATCH /api/models/:id

Updates an existing Models.

DELETE /api/models/:id

Deletes a Models.

Last updated on