Skip to Content
DocsAINOX PLATFORM

Model providers & language models

Connect the workspace to an OpenAI-compatible endpoint, choose which of its models people can chat with, and pick the workspace default.

A model provider is the connection between your workspace and the service that actually runs the language models — a hosted API, a self-hosted inference server, or anything else that speaks the OpenAI API. Until a workspace has at least one provider with an enabled model, the chat composer shows a Configure a model warning and nothing can be asked.

Registering a provider does two things: it stores the endpoint and its credentials, and it asks the endpoint which models it offers. You then decide which of those models the workspace is allowed to use, and which one is the default.

Prerequisites

  • Workspace admin or owner. Managing providers needs the Manage AI providers permission — without it the page is read-only and the Add Model Provider, refresh and edit controls are hidden.
  • An endpoint that answers GET {base URL}/models with an OpenAI-style model list, plus its API key if the endpoint requires one.

Open the Model Provider page

  1. Click the gear icon (Admin) near the bottom of the left rail. Model Provider is the first entry in the admin sidebar and the page Admin opens on by default. Each registered provider is a card showing its base URL, an API-key hint, when it was added, and how many of its models are enabled.

Add a provider

  1. Click Add Model Provider and pick a provider type. Today there is one: OpenAI-Compatible, which covers OpenAI itself and any server that implements the same API.

  2. The dialog asks for three things. Name identifies the provider on its card and in the model pickers, which list each model as provider · model, so use something recognisable. Base URL is the API root — the part before /models, usually ending in /v1. API key is optional and can be left blank for endpoints that do not authenticate.

  3. Fill the fields in. The API key is masked as you type; use the eye icon at the end of the field to check it before saving.

  4. Click Next: Models. The workspace calls the endpoint straight away to fetch its model list, and the provider is only saved if that call succeeds. A wrong key, an unreachable host or an endpoint that does not return a model list all stop the save and explain themselves in the dialog — for example Provider rejected the API key. Double-check the key and try again. — with your input preserved so you can correct it.

  5. The Models step lists the discovered models with a search box. Switch on the models people may use, then click Next: Usage limits. You can also change models later from the provider's card. The models you switch on become available only when you finish the dialog, after its usage limits are saved or skipped; closing the dialog early adds nothing.

  6. The Usage limits step is shown to members who can manage usage limits. Set the provider's limits as described in Limit a provider's usage and click Add provider, or click Skip, add without limits. Without that permission the dialog ends at the Models step with Done.

  7. The provider appears in the list. Until a model is switched on it shows an amber No models enabled pill: the connection works and the models were discovered, but nobody can use them yet.

Choose which models people can use

  1. Click the chevron on the right of a provider card to expand its discovered models. Every model has a switch, and all of them start off.

  2. Switch on the models you want available. The change saves immediately, the counter updates, and once at least one model is on the pill turns green and reads Active.

    Enabling a model adds it to the workspace's catalog. Whether people can pick it in chat is then decided by Model access: the workspace baseline for chats outside a project, and each project's own list of allowed models. A project picks up newly enabled models on its own only when Auto-allow new catalog models is on, and new projects start with it off.

    Use the refresh icon next to the chevron whenever the endpoint gains or loses models. It re-reads the model list, and any enabled model the endpoint no longer offers is switched off.

Limit a provider's usage

Usage limits are set per provider and block new calls to its models in chat, App Builder and workflows once recorded usage reaches them. Setting them needs the Manage spending limits permission.

  1. Each provider card shows its limit type: Token limit, Budget limit (USD) or No usage limits. Click Set up usage limits on a card without limits, or View usage limits on one that has them.

  2. Choose the limit type. Token limit counts input and output tokens and suits self-hosted models; Budget limit (USD) counts dollars, estimated from model list prices (OpenAI, Anthropic, Gemini) or the cost the provider reports (OpenRouter). The type can't be changed once it's saved.

    A budget limit needs a price for every call, so two rules apply:

    • Only providers at OpenRouter, OpenAI, Anthropic or Google Gemini can take a budget limit. Any other provider, such as a self-hosted one, can use a token limit only.
    • A model with no known price can't be used while a budget limit applies to the person calling it. Every OpenRouter model has a price; on OpenAI, Anthropic and Gemini, a model the built-in price list doesn't include (for example a fine-tuned or brand-new model) is refused until the limit is paused or removed. Pick a priced model for chat, App Builder and workflows instead.

    For any other provider, the set-up shows Budget limit (USD) greyed out with the reason. When you pick a budget, the set-up lists the models you enable that have no known price. Once a budget is saved, those models show No known price on the provider card, and its Usage limits page lists the enabled ones. If the provider's base URL later moves off OpenRouter, OpenAI, Anthropic and Gemini, the page warns that every model on it is refused while a budget applies. A member who picks a refused model sees Model has no known price in the chat, naming the model and the provider.

  3. Pick the Period every limit of the provider resets on: per day, per week (Monday to Sunday) or per month, in UTC. Then set the amounts you need: a total for the Workspace, a total for each Group (a call counts toward every group the caller belongs to), and a total for single Members. Leave a level empty for no limit there.

  4. On the provider's Usage limits page (Settings › Model Provider › View usage limits) you can see what each limit has used, add more limits, give a workspace or group limit a per-member amount, edit, pause or delete a limit, and Change period. A member's own limit replaces the workspace and group per-member amounts for them.

Calls to models that do not come from one of the workspace's providers, such as the server's built-in model, are not limited.

Set the workspace default model

  1. Click System model setting at the top of the page. The picker lists every enabled model across all providers, written as provider · model, with a search box for long lists. Choosing one makes it the model new chats start with; it is marked with a tick here and with a Default badge next to the model in its provider card.

    If no model is enabled anywhere, the button is disabled — enable one first.

Edit or remove a provider

  1. Open the … menu on a provider card. It offers Edit settings and Remove.

  2. Edit settings reopens the same three fields. The API key box is blank on purpose — its placeholder reads Leave blank to keep current key. Leave it that way to keep the current key, or type a new one to replace it. The stored key is never shown back to you — only a short hint of its last characters appears on the card.

  3. Remove — or the Delete button inside the edit dialog — asks for confirmation first. Existing chat threads keep their full history, but new chats lose access to that provider's models.

Check the default before removing

Removing the provider that owns the workspace default model leaves new chats without one. Point System model setting at a model on another provider first.

Notes

  • The three statuses. Green Active means reachable with at least one model enabled. Amber No models enabled means reachable but unusable — switch a model on. Red Not connected means no models were discovered; refresh the provider to retry, then check the base URL and key.
  • Embedding, reranking and OCR models are hidden. The list only shows models that can hold a conversation, so an endpoint that also serves an embedding model will show fewer models here than it reports.
  • The base URL must be the API root. Discovery adds /models to it (unless it already ends that way), but chats are sent to the base URL itself, so give it the root (for example ending in /v1), not a full model-list URL.
  • API keys are stored encrypted and never returned to the browser, which is why the card and the edit dialog only ever show a hint.
  • Providers are workspace-scoped: adding one here does not affect any other workspace.

On this page