Get AI model catalogue
GET
/api/settings/ai/catalogOpenRouter's models, their prices, and what a thousand calls would cost.
Needs the ManageSettings permission.
AuthorizationBearer <token>
An API key, made on Settings, API keys. Every key starts with mbk_.
In: header
Query Parameters
feature?string
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
curl -X GET "https://example.com/api/settings/ai/catalog"{ "feature": "string", "needs": [ "string" ], "now": "2019-08-24T14:15:22Z", "fetchedAt": null, "average": null, "models": [ { "id": "string", "name": null, "maker": "string", "contextLength": null, "maxOutputTokens": null, "inputModalities": [ "string" ], "outputModalities": [ "string" ], "addedAt": null, "inputPerMillion": null, "cachedInputPerMillion": null, "outputPerMillion": null, "priceSource": null, "priceVaries": true, "free": true, "tools": true, "structuredOutput": true, "imagesIn": true, "recommended": true, "missing": [ "string" ], "costPerThousandCalls": null } ], "prices": [ { "model": "string", "inputPerMillion": 0.1, "cachedInputPerMillion": null, "outputPerMillion": 0.1 } ]}Update team AI allowances PUT
Set how many tokens and how many US dollars each team member may use in a month: one default for every member and, where wanted, an allowance of a member's own. A change is recorded in the audit log. Needs the `ManageSettings` permission.
List AI calls GET
AI calls, newest first, with counts and what went wrong. Needs the `ViewOperationalLog` permission.