AI models per plan
Each customer plan decides which of the panel's AI models its customers may use. A cheap plan can offer a small model and an expensive plan a large one. Customers see the list on their portal AI page, and the panel refuses any model outside it.
A customer's own AI key is not affected. Models a customer uses with their own key are never limited by the plan's list.
Which models you can offer
The list draws on two sources:
| Source | What it is | How a customer reaches it |
|---|---|---|
| Metered AI gateway | Every model your metered AI gateway serves: the bundled local model under its gateway name (deepseek-r1 by default) and any provider model you added to the gateway | With their metered AI key, from an app the panel set up or from their own code |
| Local AI | Models installed in the panel's bundled Local AI (the AI Models page) | An app deployed on the Local AI source while metered AI is off for that customer |
To offer a provider model (for example from OpenAI or OpenRouter), add it to the metered AI gateway first. The panel never hands your own provider key to a customer's app, so the gateway is the only way a customer reaches it.
Set a plan's models (operator)
- Open Business → Customer Plans and edit the plan.
- In AI models, choose:
- All models (the default): customers can use every model the panel offers, including models you add later.
- Only these models: pick the models from the list. You can search it; models are grouped by source.
- Select Save in the AI models section. It saves on its own, apart from the plan form's Save button.
Changing the list needs the plan-edit permission (settings.plans_manage) and is recorded in the audit log as plan.ai_models_set, with the list before and after.
Things to know:
- Existing plans keep working. Every plan starts on All models, which is exactly what customers had before this setting existed.
- An empty list means no model. Only these models with nothing picked leaves the plan's customers with no panel AI model. The editor warns you.
- A model the panel no longer serves stays on the list, marked not available right now, until you remove it. If the gateway or Local AI cannot be reached, its models are not listed, but saved models are kept.
- Resource plans have no AI model list. The setting is on customer plans only.
- Only real model names are accepted. Wildcards (
*,openai/*), the gateway's reserved names (such asall-proxy-modelsorno-default-models) and names with invisible or text-direction characters are refused, because the gateway would read them as "every model" or they could pass for another name.
See every plan at once (operator)
AI Models → Who can use what shows every customer plan against every model in one read-only table. Platform administrators with the plan-edit permission (settings.plans_manage) see the tab; reseller and customer administrators do not.
- By plan: one row per customer plan, one column per model. A cell is Allowed when the plan lists the model, All models when the plan allows every model, and a dot when the plan does not allow it. A plan with an empty list is marked No models. Edit opens that plan in the plan editor, even when it is not on the editor's first page; Edit in Plans opens the plan list. The tab itself changes nothing.
- By model: each model with the plans that include it, its source (Metered AI or Local AI), and Not served right now for a model that is on a plan's list but that the panel does not serve. When the metered AI gateway or Local AI does not answer, its models show We can't check right now instead, because the panel cannot tell whether they are served.
- Customers use their active plan's models. A customer without an active subscription gets none, whatever the table shows.
The table shows what the plans allow. It does not say whether a given call was checked: see How the panel enforces it for which paths the gateway checks. On a narrow screen the table scrolls sideways inside its card.
What customers see
The portal AI page (Your AI) lists them under Models you can use, below the usage and connect boxes:
- Your plan includes every AI model the panel offers, with the models, when the plan allows all models.
- Your plan includes these models, with the plan's list, when the plan has one.
- Your plan includes no panel AI models when the list is empty, or when the customer has no active subscription.
Each model shows a readable name, its exact model name (what an app sends), where it runs and whether it is Ready or Not available right now:
- With your key: a gateway model. The customer reaches it from any app with the address and key in the connect box, and Use this model puts its name into the connect box and its examples. The panel does not know where the gateway runs each model, so no location is shown.
- Shared: a Local AI model on the panel's shared server. Apps the panel sets up use it directly; the customer's key does not reach it, so it has no Use this model.
One model is listed once. On a server with less than 12 GB of RAM the installer keeps the gateway name deepseek-r1 but routes it to the smaller llama3.2:3b in Local AI. The page then titles that entry Llama 3.2 (3B), the model that answers, and says that apps send the name deepseek-r1. When the plan also includes that Local AI model, its Shared entry is folded into the same line, which then shows both With your key and Shared. This applies to any gateway name that the gateway answers with a Local AI model under another name. Gateway models that run elsewhere keep their own name, and no location is shown.
A line under the list says that the app picks the model by its name on every request, and that Use this model only fills the examples in the connect box. A reminder says that models used with the customer's own AI key are not limited by this list.
A login whose role lacks services.view sees the usual "your role does not allow this" message instead.
How the panel enforces it
The list is enforced by the server, not just hidden in the portal:
At the metered AI gateway. Each customer's gateway account, and each of its keys, carries the plan's models next to the plan's monthly budget and rate limits. On every request the gateway checks the customer's key:
- A chat, completion or embedding request for any other model is refused with HTTP 403 and an OpenAI-style error (
"type": "user_model_access_denied"). This applies to requests from an app and to the customer's own code callinghttps://ai.<your domain>/v1directly. - Model names the gateway maps to another model (aliases) are mapped first, so an alias of a model outside the plan is refused too.
- The model list (
GET /v1/models,/v1/model/info) shows only the plan's models. A customer never sees a model that only another customer's plan offers.
The gateway logs every refusal with the model name and without the prompt. The panel does not count refusals yet.
- A chat, completion or embedding request for any other model is refused with HTTP 403 and an OpenAI-style error (
Your own administrator access is not limited. The gateway's master key, which only the panel holds, still reaches and lists every model.
Changes apply without a restart. The list is sent whenever a key is created or rotated and when an app is deployed. These trigger an immediate update of the customer's gateway account and keys:
- a save in the plan editor;
- moving a customer to another plan, on the customer page or through Subscriptions;
- suspending or deleting a customer's subscription.
The gateway check every five minutes, and once at panel start, repairs any drift. That includes keys created before this check existed.
At deploy time. An app the panel configures for the gateway gets the gateway's default model when the plan allows it, otherwise the first model on the plan's list. An app on direct Local AI gets the usual Local AI model when the plan allows it, otherwise the first installed model the plan allows. If the plan allows no Local AI model, the app gets no Local AI address or key at all, and an app that needs AI says so.
If the list cannot be read, the panel creates no gateway key rather than one without limits, and leaves the gateway's current list as it is.
A customer without an active subscription has no plan, so the gateway allows that customer no model.
Usage limits
The plan's metered AI budget, tokens per minute and requests per minute (set under the plan's Capabilities) apply to every allowed model. Usage is metered the same way as before; the model list adds no second meter.
Known limit: direct Local AI is not checked per model
The model list is enforced only for requests that go through the metered AI gateway. The bundled Local AI engine (Ollama) has no per-customer or per-model check: any app that can reach it, and that the panel gave its address, can name any installed model. This applies to an app deployed on direct Local AI (metered AI off for that customer, or a template that only speaks the native Ollama protocol). The panel picks an allowed model for such an app and gives it no Local AI address when the plan allows no Local AI model, but a customer who edits the app's own settings can name another installed model.
To enforce the list for Local AI as well, turn on metered AI for the customer so Local AI goes through the gateway.
Removing the feature (rollback)
The gateway keeps each customer's model list until the panel changes it. Before you roll back to a panel version without this setting, set every plan to All models and wait for the next gateway check (at most five minutes), so every customer's gateway account is reset to all models. Otherwise customers keep their restricted list on the gateway after the rollback, and the older panel never clears it. If you have already rolled back, clear the list for each affected customer with the gateway's /user/update call and "models": [], and for each of that customer's keys with /key/update and "models": [].
API
| Route | Who | What |
|---|---|---|
GET /api/v1/plans/{id}/ai-models | Platform administrators | The plan's mode and models, and the models the panel serves now |
PUT /api/v1/plans/{id}/ai-models | Platform administrators with settings.plans_manage | Body {"restricted": false} for all models, or {"restricted": true, "models": [{"source": "gateway", "name": "gpt-4o"}]}. source is gateway or local; at most 100 models per source |
GET /api/v1/ai/access | Platform administrators with settings.plans_manage | Every customer plan (all models, a list, or none) and every model with the plans that include it and whether the panel serves it now |
GET /api/v1/portal/ai-models | The signed-in customer (services.view) | The models of their own active plan. It takes no plan or customer id |
Agents can read the same data over MCP: get_plan_ai_models (admin MCP server, takes plan_id) returns what the first route returns, and list_plan_ai_models (tenant MCP server, needs services.view, takes no arguments) returns the token's own customer's plan, as the portal route does. get_ai_model_access (admin MCP server, no arguments) returns what GET /api/v1/ai/access returns. Changing a plan's list has no MCP tool; it is done in the plan editor. See MCP Server.
See also Service Plans and How AI works.