Models - TypeScript SDK
The TypeScript SDK and docs are currently in beta. Report issues on GitHub.
(models)
Overview
Model information endpoints
Available Operations
- count - Get total count of available models
- list - List all models and their properties
- listForUser - List models filtered by user provider preferences
count
Get total count of available models
Example Usage
Standalone function
The standalone function version of this method:
React hooks and utilities
This method can be used in React components through the following hooks and associated utilities.
Check out this guide for information about each of the utilities below and how to get started using React hooks.
Parameters
Response
Promise<models.ModelsCountResponse>
Errors
list
List all models and their properties
Example Usage
Standalone function
The standalone function version of this method:
React hooks and utilities
This method can be used in React components through the following hooks and associated utilities.
Check out this guide for information about each of the utilities below and how to get started using React hooks.
Parameters
Response
Promise<models.ModelsListResponse>
Errors
listForUser
List models filtered by user provider preferences
Example Usage
Standalone function
The standalone function version of this method:
React hooks and utilities
This method can be used in React components through the following hooks and associated utilities.
Check out this guide for information about each of the utilities below and how to get started using React hooks.
Parameters
Response
Promise<models.ModelsListResponse>