Create AI model
create_ai_modelAdd a model to the organisation's AI model catalog (the twin of ankra ai models create): the catalog the chat model picker and the AI lanes choose from. key, display_name and model_id are required; endpoint_id names the organisation's own OpenAI-compatible endpoint that serves it. Needs ai.manage (organisation owners and admins). Never takes or returns a provider key.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"key": "<key>",
"display_name": "<display_name>",
"model_id": "<model_id>"
},
"name": "create_ai_model"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | The catalog key: lowercase letters, digits and hyphens, unique in the organisation's catalog. | |
| tier | No | The tier the model fills (quick, standard or deep); empty for none. | |
| model_id | Yes | The provider's model id, e.g. claude-opus-5, or the model a custom endpoint serves. | |
| is_enabled | No | Whether the picker offers the model; default true. | |
| sort_order | No | Position in the picker; lower first. | |
| description | No | A short description shown beside the name. | |
| endpoint_id | No | The id of the organisation's OpenAI-compatible endpoint that serves the model (list_ai_endpoints names them); omit or null for an Ankra-managed model. | |
| display_name | Yes | The name the chat model picker shows. | |
| supports_tools | No | Whether the model can call tools; default true. | |
| supports_images | No | Whether the model reads images; default false. | |
| max_output_tokens | No | The most tokens one answer may carry; 0 for the default. | |
| supports_thinking | No | Whether the model supports extended thinking; default false. | |
| context_window_tokens | No | The model's context window in tokens; 0 for the default. |