List models
API documentation
Models API
List available models, inspect supported endpoint types, and track model lifecycle metadata.
GET
List models
Overview
Use the Models API to discover which models are available to you. Each model includes the endpoint families it supports and lifecycle metadata you can use to migrate away from deprecated or retired models.Endpoints
GET https://api.siray.ai/v1/modelsGET https://api.siray.ai/v1/models/{model}
Authorization: Bearer <SIRAY_API_TOKEN>
List response structure
Retrieve response structure
Fields
id: Model identifier used in request payloads.object: Alwaysmodelfor each model item.created: Unix timestamp attached to the model metadata.owned_by: Owner derived fromid. If the ID contains/, this is the part before the first/; otherwise it is the full model ID.supported_endpoint_types: Endpoint families supported by the model. Empty array means the API could not determine a supported endpoint type.status: Lifecycle state of the model. Values are listed below.deprecated_at: Unix timestamp when the model was deprecated. Omitted when empty.retired_at: Unix timestamp when the model was retired. Omitted when empty.replaced_by: Replacement model ID. Omitted when empty.
Supported endpoint types
Lifecycle status values
Usage examples
List all models available to the token:
For provider-qualified IDs that contain /, URL-encode the slash if your HTTP client does not preserve it in path parameters.
Authorizations
API token passed as a Bearer token in the Authorization header.
