Skip to main content
The models endpoints let you discover which AI models your API key can access and inspect the details of any individual model. Use these endpoints at runtime to build dynamic model selectors, validate a model ID before sending a generation request, or check when a model was added to the platform.

Endpoints

List all models

Returns an array of all models available to your account, including chat, completion, and embedding models.

Get a specific model

Returns the details for a single model identified by its model_id. Returns a 404 Not Found error if the model does not exist or is not accessible with your API key.

Request Examples

Response Fields

Each model object in the API response contains the following fields.
string
The unique identifier for the model (e.g., "swytcho-pro"). Pass this value as the model parameter in chat, completion, and embedding requests.
string
Always "model".
integer
Unix timestamp (seconds) indicating when this model was made available on the platform.
string
The organization that owns and maintains this model (e.g., "swytcho" for first-party models or the provider name for third-party models).

Example Response — List All Models

Example Response — Single Model

Call GET /v1/models at application startup to build a dynamic list of available models rather than hard-coding model IDs. This ensures your application automatically surfaces newly released models and gracefully handles the removal of deprecated ones without requiring a code deployment.