Skip to content

MngGetAIModels

GET ai/models

The models the configured provider offers, for the model picker of an agent form. The list is cached in the module; force refreshes it from the provider.

Access Control

Allowed: admin.

Request

GET request
GET https://{broker_domain}/ai/models
Authorization: <JWT_TOKEN>
{
  "command": "MngGetAIModels",
  "extID": "1",
  "data": { "force": false }
}
const models = await platform.MngGetAIModels({});

Parameters

Parameter Type Description
force bool Optional. Refresh the cache instead of reading it

Response Data

{
  "rows": [
    {
      "id": "anthropic/claude-sonnet-4.5",
      "name": "Claude Sonnet 4.5",
      "contextLength": 200000,
      "promptPrice": 0.000003,
      "completionPrice": 0.000015
    }
  ],
  "count": 312
}

Prices are per token, as reported by the provider. id is what goes into the agent's model field.

A model without tool support will answer from the knowledge base but will never call platform data, and the answer will simply lack figures. If an agent has tools enabled and tools in its answers is always empty, the model is the first thing to check.

Errors

Code Error Description
403 AI_ACCESS_DENIED The session is not an administrator
502 AI_OPENROUTER_ERROR The provider did not return the catalogue