cURL
curl --request GET \ --url https://api.example.com/api/llm/models \ --header 'X-Session-API-Key: <api-key>'
{ "models": [ "<string>" ] }
List all available LLM models supported by LiteLLM.
Args: provider: Optional provider name to filter models by.
Note: Bedrock models are excluded unless AWS credentials are configured.
Filter models by provider (e.g., 'openai', 'anthropic')
Successful Response
Response containing the list of available LLM models.
Was this page helpful?