Restrict AI Models, Not Just Their Providers

A provider allowlist does not approve every model it serves. Restrict model IDs at the credential boundary, test failover and check personal keys.

Sophia Faria
Sophia Faria
Oct 14, 2026 ·

Restricting AI models means controlling which individual model IDs may process a request. A provider allowlist answers a different question: which vendors may serve it. Approving one provider can otherwise admit models your review never approved, including models reached through an aggregator or a fallback route.

Start with the approved model IDs, identify every credential and route that can reach them, and put the restriction where it is enforced for that credential. Selecting a default model does not establish a boundary around all the other choices.

Separate provider, model and credential controls

A model rule is effective only on the requests and credentials it actually covers. Compare controls by their enforcement scope rather than by the label on a settings page.

ControlWhat it decidesLimits individual models?Boundary to check
Workspace provider allowlistWhich providers a workspace may useNot necessarilyWhether each admitted provider brings its full catalog
OpenAI project model permissionsAllowed or denied model IDs for one projectYesOther projects and credentials are separate
Anthropic workspace limitsMembership, keys, spend and per-model request or token ratesNo model allowlist is described in the reviewed pagesVolume limits do not establish model approval
OpenRouter guardrailsA model allowlist and provider allowlist for assigned members or keysYesAn unassigned guardrail enforces nothing
Default-model selectionWhich model is tried firstNoUser changes, other features and fallback routes

A provider row can represent a direct model vendor, an aggregator with a large catalog or a hosted pool. Inventory which one it is before approving it. A pool’s presence in a list does not establish that a particular model inside it is pinned.

Set OpenAI restrictions on the project

Use project model permissions for the project whose key your application will use. OpenAI’s Admin API guide documents two modes: allow_list admits only the listed model IDs; deny_list excludes the listed IDs and otherwise permits available models.

The project-controls Terraform guide exposes the same choice through openai_project_model_permissions. It requires an Admin API key, an existing project and model IDs visible to the organization, including any fine-tuned snapshots in the policy. Removing that Terraform resource deletes the project’s model-permission configuration.

Use a dedicated project when the workload needs a different approved list from other applications. OpenAI’s permissions guide describes a project as the scope for its keys, files and resources; its project roles apply within that project.

An allowlist suits a review that approves named IDs. A denylist leaves other available models permitted, so a new model may be outside the review without being outside the policy. Choose that tradeoff explicitly.

Include the non-chat work that uses the same credential. An approved chat model does not authorize an embedding model automatically. Inventory indexing and retrieval calls before tightening the project list so a restriction does not silently break the workload surrounding chat.

What do Anthropic’s documented controls cover?

The reviewed Anthropic API documentation describes workspace and volume controls, without a model allowlist for API keys. That is a limit of the documented controls reviewed here, not evidence that every possible enterprise arrangement has the same boundary.

Workspaces organize members and keys. Monthly spend limits cap spending; per-model rate limits cap requests and input or output tokens per minute. Those controls govern consumption, rather than documenting which model IDs a key is authorized to call.

The Admin API manages members, workspaces, invites and keys. Its key records include identity, scope and expiry. The reviewed page does not turn those fields into a per-model authorization list.

Inference hooks can send governed prompts to an organization’s security server for an allow-or-deny decision and list model allowlists as a use. They are for Claude Enterprise organizations; Claude Platform API access is outside their scope. Do not treat a control for Enterprise conversations as a control on an application’s API key.

When a provider lacks the model boundary you require, distinguish a procedural rule from an enforced one. Restricting who can edit defaults and reviewing usage can support a policy, but neither proves an unapproved model cannot run. If enforcement is mandatory, do not admit an unrestricted route.

Restrict an aggregator at its own boundary

An aggregator needs both a model review and a routing review. Its name on an approved-provider list may cover many models and suppliers.

OpenRouter’s guardrails include model and provider allowlists. Assign the guardrail to the member, API key or workspace default it is meant to govern; creating an unassigned rule does not protect a request.

Test with the same key your application connects. A successful test using an administrator’s restricted key says nothing about another member’s unrestricted key. Likewise, approving the aggregator itself does not tell you whether every model or provider reachable through it meets the review.

For a hosted pool without a model-level control, the practical choice is whether to admit the pool at all. If only part of its roster is approved, admitting the whole pool does not express that narrower decision.

Test the restriction, fallback and reporting

A refusal test must follow the request to its final result. A blocked first call can still become a successful answer from a fallback model.

  1. Record the boundary. Name the project or workspace, the credential connected to the application and the reviewed model IDs.
  2. Call an approved model. Confirm that the workload still functions with the intended key.
  3. Call a model outside the list. Inspect the provider’s refusal. Do not assume an error status or response body that its documentation does not establish.
  4. Exercise fallback. Determine whether the application stops, retries the same model or switches to a different model or provider. Every reachable route needs the same review.
  5. Exercise another identity. Repeat with personal connections or user-owned keys that the workspace permits. A project restriction does not migrate to them.
  6. Check the usage record. Compare the selected model with the model and provider that actually served the request. Account for reporting delay and any missing streamed usage before calling the audit complete.

Write down the refusal and the final outcome separately. That distinction explains a common surprise: the first credential correctly enforced its policy while the application still returned an answer through another credential.

Limit who can change model defaults and sharing permissions, but use those permissions for the question they answer: who may edit the configuration. They are separate from a provider’s decision about which models a key can call.

Frequently asked questions

When should the model restriction be tested again?

Repeat the refusal and fallback checks when you rotate a credential, change its project, add a provider, change sharing permissions or alter the approved model list. Keep the results with the configuration review so the evidence describes the routes currently in use.

How Insulin handles model restrictions

Insulin’s documented AI Model Policy is provider-level: an org ADMIN maintains Allowed AI integrations, its top row supplies the default for features without a model picker, an empty list means unrestricted, and a provider missing from a non-empty list fails closed, including on failover. A provider row admits every model the connection offers. That includes aggregator catalogs and the documented five-model sets for Cloudflare Workers AI and DigitalOcean GradientAI. The hosted-model (DeepInfra) row admits the whole Fours-hosted pool, not one model. The cited metering page names DeepSeek V4 Pro as its quality tier and DeepSeek V4 Flash, GLM 5.3 Flash and Gemma 4 31B as its light tier. Keep that row only if the whole documented pool is approved. The provider-allowlist article covers the rows and platform-key switch.

Model choices remain on each custom agent’s Default model, editable by its Owner, ADMIN or EDITOR; an org-wide EDITOR share grants that choice broadly. The built-in assistant’s pencil panel also selects its default, tried first before failover, and the reply identifies a model that takes over. The assistant and Personal agents use each member’s providers, never the organization’s keys. That includes personal API keys and Claude Code or Codex connections, so restricting an organization key does not restrict those credentials.

For an organization OpenAI connection, use a key from the restricted project, with the optional Organization ID if needed. The cited integration guide requires deleting and recreating the connection to change the key. Its Connected status confirms storage of an API key, not provider acceptance, so test a request. Include text-embedding-3-small or text-embedding-3-large if the same key serves knowledge bases. The organization Anthropic connection also takes an API key; personal Anthropic connections can use a key or Claude Code. A model-specific rule therefore needs provider enforcement where available, and a documented decision to exclude unrestricted routes where it is not. The model-selection article and hosted-model reference explain those choices.

For observation, Settings → Billing → Usage groups by Model and Provider, including own-key usage attributed to the key’s provider. It re-aggregates every couple of hours; a streamed own-key reply from Cloudflare Workers AI, DigitalOcean GradientAI or Together AI may be missing. Those records help review what ran, but the product does not offer a per-model allowlist or extend one project’s restrictions to every member’s personal connection. You own the credential policies, approved roster, editor access and refusal tests.

Sources

Primary sources for the platform rules cited above. Last verified October 14, 2026. Providers change their products, prices and terms without notice — check the source before relying on a detail.

  • Insulin Getting Started — Fours Doc — AI Model Policy: Settings → Organization → AI Model Policy decides which AI providers may serve the organization; AI features may use only the integrations on the Allowed AI integrations list; the top entry is the organization default for any feature with no model picker of its own; an empty list means no restriction; an integration missing from a non-empty list fails closed; the hosted-model (DeepInfra) entry pins no particular model and admits the pool; Settings: only an org ADMIN changes Organization tabs
  • Insulin Agents — Fours Doc — Creating a Custom Agent: the Default model chosen from the models connected providers make available, open-source model aggregators serving large catalogs, Cloudflare Workers AI and DigitalOcean GradientAI offering a fixed set of five chat models each; Sharing Agents: EDITOR edits the default model; Org-Wide Sharing grants EDITOR or USER to everyone; Model Selection: a failed model call retries on the next connected provider, and the built-in assistant and Personal agents add each member's own providers and never reach the organization's keys; Where you set the model: the pencil panel for the built-in assistant, which runs that model first and then fails over; the reply naming the model that took over
  • Insulin What Is Metered — Fours Doc — The Fours-hosted pool running on one supplier and the hosted models it names, read for their names and tiers only: DeepSeek V4 Pro as the quality tier, and DeepSeek V4 Flash, GLM 5.3 Flash and Gemma 4 31B as the light tier; BYOK usage attributed to the provider whose key was used, with a streamed reply from Cloudflare Workers AI, DigitalOcean GradientAI or Together AI possibly missing from the breakdown
  • Insulin Reading Your Usage — Fours Doc — The Usage panel on Settings → Billing grouping a period by Model (which model was used) and by Provider (which provider served it), and the breakdown re-aggregated every couple of hours
  • Insulin Knowledge Bases — Fours Doc — Choosing an embedding model: own-provider embedding models added for each connected provider, OpenAI's being text-embedding-3-small and text-embedding-3-large
  • Integrations — Fours Doc — Connection health: each time Settings → Integrations opens, Fours re-checks the stored credential against the provider, except for integrations connected with an API key, where the check confirms the key is stored but not that the provider still accepts it
  • Integrations OpenAI — Fours Doc — The org-level OpenAI connection uses an OpenAI API key, with an optional Organization ID; editing the API key is not supported, so changing it means deleting the integration and creating a new one; the user-level connection uses Codex
  • Integrations Anthropic — Fours Doc — The org-level Anthropic connection uses an Anthropic API key; at the user level, a personal API key or a Claude Code connection tied to the member's own Anthropic account
  • Model, tool, and data controls with Terraform | OpenAI API — Restrict model access: openai_project_model_permissions applies an allowlist or a list of denied models to one project, allow_list permitting only the models in model_ids and deny_list permitting available models except those; each model ID must be visible to the organization, fine-tuned snapshots included; removing the resource deletes the project's model-permission configuration; the setup uses an Admin API key
  • Admin APIs | OpenAI API — Restrict model access for projects: project model permissions set through the Admin API, allow_list allowing only the listed models and deny_list blocking them while allowing other available models
  • Manage permissions in the OpenAI platform — Key concepts: a project is a workspace for keys, files and resources, and project roles grant access within only that project
  • Workspaces - Claude Platform Docs — Read for a model allow-list and found none: a workspace holds members, service accounts, API keys and resource limits; an API key can be scoped to one workspace; spend limits cap monthly spending, and rate limits, set with Edit next to a model, cap requests and tokens per minute
  • Admin API - Claude Platform Docs — Read for a model allow-list and found none: the Admin API manages the organization's members, workspaces, invites and API keys, and each API key carries its principal, scope and expiry
  • Inference hooks - Claude Platform Docs — Each governed prompt sent to the organization's AI security server for an allow or deny verdict, with model allowlists among the listed uses; available to Claude Enterprise organizations, with Platform organizations (API access through the Claude Platform) out of scope

Browse every post on the Insulin Blog

Stay Updated

New posts, product updates and marketplace strategy are shared on LinkedIn as they publish.

Follow Fours on LinkedIn