API Reference
List available models
Models advertised by the currently configured provider.
GET
/config/llm/modelsanyFor openai/anthropic this fetches the provider's live models API and falls back to a static built-in list on any failure. ollama lists what's pulled locally.
Responses
200Models for the active provider
json
{
"provider_name": "ollama",
"models": [ { "name": "qwen2.5-coder:latest", "provider": "ollama" } ]
}502Provider unreachable
json
{ "detail": "could not reach provider to list models" }