List models

Returns all models available to the current API key.

GET /v1/models

Auth: {'type': 'bearer', 'prefix': 'sk-', 'description': 'Pass your API key in the `Authorization: Bearer sk-xxx` header.'}

Compatible with OpenAI model list endpoint. If the key is configured with `allowed_models`, only returns the allowed list; otherwise returns all enabled models.

Responses

Example

curl https://api.router.ai/v1/models \
  -H "Authorization: Bearer sk-xxx"

API reference