API reference

LLM

List the language-model providers Hania supports and the models available under each - useful when setting a bot's model. Needs llm:read.

List providers

Method & pathAbility
GET /api/v1/llm/providersllm:read

Returns the provider map (verbatim), wrapped in data. Each provider lists its models and (where applicable) embeddingModels:

{
  "success": true,
  "data": {
    "provider-id": {
      "url": "…",
      "help": "…",
      "models": [{ "id": "model-id", "name": "Model name", "context_window": 128000 }],
      "embeddingModels": [{ "id": "embedding-model-id", "name": "Embedding model name" }]
    },
    "another-provider-id": { }
  }
}
The path is /api/v1/llm/providers - not a bare /api/v1/llm. Use a model's id as the model when creating or updating a bot.