Skip to content

List models

GET /v1/models
Terminal window
curl --silent --show-error \
'https://omrouter.com/v1/models' \
--header "Authorization: Bearer $OMROUTER_API_KEY"
{
"object": "list",
"success": true,
"data": [
{
"id": "model-name",
"object": "model",
"owned_by": "provider",
"supported_endpoint_types": ["openai", "openai-response"]
}
]
}
Field Meaning
data[].id Model name to send in the request’s model field.
data[].owned_by Model provider.
data[].supported_endpoint_types Request formats supported by the model.

If the API key has a model restriction, the endpoint returns only the models allowed for that key.

Status Meaning
401 The API key is missing or invalid.
403 The API key is disabled or does not have permission.
429 Too many requests.

See Models for the endpoint used by each returned request format.