> ## Documentation Index
> Fetch the complete documentation index at: https://docs.novita.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Model Access for API Keys

Model access controls which models an individual API key can call. It does not change your team's enabled model range. Instead, it limits the models that a key can call within that range. Calls to models outside the key's model access policy are rejected.

<Info>
  This capability covers models in the LLM product line. Standalone image and video multimodal capabilities are not currently included in model access configuration.
</Info>

Examples:

* **Separate keys by purpose**: let production keys call only stable models and experimental keys call only low-cost models.
* **Limit unexpected costs**: if a key makes unexpected calls to high-cost models, restrict it to a smaller set of models.
* **Limit shared keys**: for a key shared with a contractor or partner, allow only the agreed models.

## Access modes

Each API key has one of two access modes:

| Access mode          | Meaning                                                                                                                                                                                                      |
| :------------------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| All enabled models   | Default mode. The key can access all models your team has enabled, including models enabled in the future. You can exclude specific models. Future enabled models remain accessible unless you exclude them. |
| Selected models only | The key can access only the models you select. Models your team enables later are not added automatically; you must add them yourself.                                                                       |

In both modes, the accessible models never exceed your team's enabled model range and never include models that the platform has taken offline.

* All enabled models: accessible models = team's enabled models (including future ones) − excluded models.
* Selected models only: accessible models = selected models (intersected with the team's enabled models).

## Configure model access

<Note>
  Only team admins can configure model access for an API key. Developers and Basic members see a read-only summary for keys they can access but cannot edit it. Billing members do not see model access.
</Note>

<Steps>
  <Step title="Open Key Management">
    Go to [Key Management](https://novita.ai/settings/key-management) and find the API key you want to configure.
  </Step>

  <Step title="Open model access settings">
    While creating or editing the key, open the **Model Access** section.
  </Step>

  <Step title="Choose an access mode">
    Select **All enabled models** or **Selected models only**:

    * For **All enabled models**, add any models you want to block under **Excluded models**.
    * For **Selected models only**, add at least one model under **Accessible models**.
  </Step>

  <Step title="Save">
    After you save, the new model access settings may take some time to take effect.
  </Step>
</Steps>

<Tip>
  When creating or editing a key, you can reuse another key's settings within the same team with **Copy config** and **Paste config**. After pasting, save the settings or adjust them first.
</Tip>

## When a model is taken offline

<Warning>
  A model being taken offline and an API key access restriction are different situations. Once a model is offline, no API key can call it. This is not a model access configuration problem with a particular key.
</Warning>

If the platform takes a model offline, it is removed from the set of available models:

* Calls to that model immediately return a "model unavailable" response, even if the key previously had access to it.
* If a key's saved configuration still contains the offline model, the model remains visible but is greyed out. Remove it before saving; otherwise, the configuration cannot be saved.

## When a call is rejected

<Warning>
  An offline model returns a "model unavailable" response. This is not a key permission denial and does not return `model_access_denied`.
</Warning>

When an API key calls a model outside its model access policy, the call returns HTTP 403 with the error code `model_access_denied`. Contact your team admin to adjust the policy.

See also [Common Error Codes](/guides/error).

## Related

* [API Keys](/guides/llm-api-keys) — create, store, and manage API keys, including expiration and OpenAPI boundaries.
* [Network Access for API Keys](/guides/llm-network-access) — restrict which source IPs can use a key.
* [Get API Key Model Access Policy](/api-reference/key-get-model-access-policy) — read a key's model access policy programmatically.
