List Available Models
Use the GET /v1/models endpoint to retrieve the list of LLM models available from the configured provider.
This endpoint is compatible with the OpenAI Models API
and proxies the request to the upstream model provider configured via environment variables.
Request
No request body or query parameters are required.
Response
The endpoint returns a standard OpenAI models list:
Using Python
Using the OpenAI Python SDK
Provider Configuration
The server determines which upstream provider to query based on the MAIN_MODEL_ENGINE and related environment variables.
The following providers are supported.
OpenAI
NVIDIA NIM
vLLM / TRT-LLM
Anthropic
Azure OpenAI
The engine name azure_openai is also accepted as an alias for azure.
Cohere
Custom OpenAI-Compatible Endpoint
For any provider that exposes an OpenAI-compatible /v1/models endpoint, set MAIN_MODEL_BASE_URL:
The server falls back to querying MAIN_MODEL_BASE_URL when the engine is not in the built-in provider table.
Authentication
The endpoint forwards the Authorization header from the incoming request to the upstream provider.
If no Authorization header is present, the server uses the API key from the appropriate environment variable for the configured engine.
Error Responses
If the engine is not in the built-in provider table and MAIN_MODEL_BASE_URL is not set, the endpoint returns an empty model list instead of an error.