ShareAI Platform Docs

Restrict an API key to models and providers

Configure ShareAI API key model and provider access, understand combined restrictions and distinguish permission from device-routing priority.

View as Markdown
On this page

Access restrictions limit what a key may use. They are useful when an integration should reach only a specific set of models, providers, or both.

Review the access settings while creating or managing an API key.Review the access settings while creating or managing an API key.
Review the access settings while creating or managing an API key.

Configure access#

  1. Open API keys in the owning workspace.
  2. Open the key’s access configuration.
  3. Select the allowed models and/or providers exposed by the configuration.
  4. Review and save the selection.
  5. Test an allowed request and handle access-denied errors in your application.
ConfigurationMeaning
Model restriction onlyThe request must target an allowed model.
Provider restriction onlyExecution must use an allowed provider.
Both restrictionsBoth the model and provider must be allowed.
No explicit restrictionThe key is not narrowed by that restriction; account permissions and availability still apply.

Restrictions apply to fallback too#

An alternate route must remain inside the key’s permitted access. A fallback cannot turn a disallowed provider or model into an allowed one.

Priority is separate#

Priority over my Device influences which eligible device is tried first. It does not remove model/provider restrictions or create model availability.

If an expected request is denied#

Compare the exact model identifier, provider restriction, workspace and credential in use. Check that the integration actually loaded the updated key configuration before broadening permissions.

Last updated September 15, 2026

ShareAI Platform Docs
All documentation

Search by title or content.

Ask about this page

Choose an assistant to explore this page. You can also copy the page and paste it into your conversation.

Ask ChatGPTAsk ClaudeAsk GrokAsk ShareAI