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 & path | Ability |
|---|---|
GET /api/v1/llm/providers | llm:read |
Returns the provider map (verbatim), wrapped in data. Each provider lists its models and (where applicable) embeddingModels:
{
"success": true,
"data": {
"openai": {
"url": "…",
"help": "…",
"models": [{ "id": "gpt-4o", "name": "GPT-4o (128K) — $2.50/$10.00 per 1M" }],
"embeddingModels": [{ "id": "text-embedding-3-small", "name": "…(1536)" }]
},
"openrouter": { },
"google": { },
"anthropic": { },
"hania": { }
}
}
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.