# How to Add API Keys

<figure><img src="https://1559385099-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKwSDHUZddn74A8yIZpGR%2Fuploads%2FkAQA6fsuB86ZhAdSqAdS%2FCleanShot%202024-10-24%20at%2007.53.54.png?alt=media&#x26;token=93f6664a-f017-4d8d-8463-316484f5a4b5" alt=""><figcaption></figcaption></figure>

To add an API key to your workspace and enable AI usage, follow these steps:

#### Step 1. Ensure Admin Access

* Only users with the **Admin** role can add or manage API keys in the workspace. If you do not have admin privileges, contact your workspace admin.

#### Step 2. Access Workspace Settings

* Click on the **Workspace Settings** option from the left menu.
* Navigate to the **Models & Credentials** section.

#### Step 3. Add a New API Key

* Click on the **+ Add model** button.
* From the dropdown menu, select the API provider you want to add, either **OpenAI** or **Anthropic**.
* In the **API Key** field, paste your API key.
* Click **Save**.

#### Step 4. Enable or Disable Models

* Once the API key is added successfully, the available models for that provider, such as **GPT-4o** or **Claude 3.5**, will be displayed.
* You can toggle each model on or off depending on the needs of your workspace.

#### Step 5. Set Default Models

* In the **Default Models** section, you can select a default model for various functions like Chat, Vision, or Image Generation.
* Choose the desired default model for each function from the dropdown.
* Click **Save** to confirm your selection.
