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
Lists the models available to the caller with their pricing, context length, modalities, and supported parameters, plus presets when the caller is authenticated. An unfiltered call returns every text-output model (often several hundred KB of JSON or more; setoutput_modalities to list models with other outputs); use limit and offset to cap the result and filters such as q, output_modalities, input_modalities, or supported_parameters to narrow it (sort only reorders), or call GET /api/v1/model/{author}/{slug} to inspect a single catalog model. category is a usage shortlist, not a catalog filter: it returns only the top 20 models in that category by past-week token usage, never presets, and cannot be combined with limit, offset, or supported_parameters.
Example 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 (a comma-separated list of text, image, embeddings, audio, video, rerank, speech, transcription, 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.