Overview
Model information endpointsAvailable Operations
- get - Get a model by its slug
- list - List all models and their properties
- count - Get total count of available models
- listForUser - List models filtered by user provider preferences, privacy settings, and guardrails
get
Returns full details for a single model identified by its author and slug (e.g. openai/gpt-4). Supports variant suffixes (e.g. openai/gpt-4:free) and resolves known slug aliases.Example Usage
Standalone function
The standalone function version of this method:Parameters
Response
Promise<models.ModelResponse>Errors
list
List all models and their propertiesExample Usage
Standalone function
The standalone function version of this method:Parameters
Response
Promise<operations.GetModelsResponse>Errors
count
Get total count of available modelsExample Usage
Standalone function
The standalone function version of this method:Parameters
Response
Promise<models.ModelsCountResponse>Errors
listForUser
List models filtered by user provider preferences, privacy settings, and guardrails. Returns text-output models by default; passoutput_modalities (e.g. image,audio,embeddings or all) to include other modalities. If requesting through a regional hostname, the results will be filtered to models that satisfy in-region routing for that region.