# AI APIKEY (AI API Key)

<mark style="color:$success;">**Path: AI Gateway > AI APIKEY**</mark>

In this section, you can find instructions on how to configure API keys for AI providers. The system supports managing multiple keys for use by different applications or users.

<figure><img src="https://3495903199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0choIC1BbdPOkKWOYGgk%2Fuploads%2FbHtsSy8qveQhUocc8DBa%2Fimage.png?alt=media&#x26;token=11ce30f3-03ff-4f23-bf4f-88a2f72ba4ad" alt=""><figcaption></figcaption></figure>

#### Create AI APIKEY <a href="#toc212821885" id="toc212821885"></a>

1. Click **Create** to access the AI API key creation page.

<figure><img src="https://3495903199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0choIC1BbdPOkKWOYGgk%2Fuploads%2F3K2ZN2bBVyg6l4bh2hh1%2Fimage.png?alt=media&#x26;token=9d9a62c9-6ce0-471a-a00a-a981c0e3f7f2" alt=""><figcaption></figcaption></figure>

2. Fill in the data or make selections as instructed below. The fields marked with “<mark style="color:$danger;">\*</mark>” are required.

* **API Key Alias**<mark style="color:$danger;">**\***</mark>: An identifiable API key alias.
* **Provider/Model**<mark style="color:$danger;">**\***</mark>: The provider and model configuration created for the AI provider, used to specify the service and model associated with this key.
* **Status**<mark style="color:$danger;">**\***</mark>: Select to **Enable** or **Disable** the AI API key, set to **Disable** by default.
* **API Key Code**<mark style="color:$danger;">**\***</mark>: The key string used to connect to the AI service.
* **Input Limit**<mark style="color:$danger;">**\***</mark>: The maximum number of input tokens allowed per request. Set to *0* for unlimited input.
* **Output Limit**: The maximum number of output tokens allowed per response. Set to *0* for unlimited output.
* **Usage Limit**: Defines the usage restriction policy. Options include ***Reject*** and *Use **Anyway***, with ***Reject*** as the default.
  * **Reject**: Rejects requests when the token count reaches the input or output limit.
  * **Use Anyway**: Forces use of the key even if the token count reaches the input or output limit.

3. Click **Create** to save and exit.

<figure><img src="https://3495903199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0choIC1BbdPOkKWOYGgk%2Fuploads%2FGJp3vtW5twDwM98uYIRw%2Fimage.png?alt=media&#x26;token=4fa62acb-2f52-4627-a8b4-1eadfd9e0995" alt=""><figcaption></figcaption></figure>

&#x20;

#### View AI APIKEY <a href="#toc212821886" id="toc212821886"></a>

1. Search for the AI API key to view, and click on the ![](https://3495903199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0choIC1BbdPOkKWOYGgk%2Fuploads%2F1dg23b9oIneRVLnkP5GK%2Fimage.png?alt=media\&token=dbe9a302-f1eb-44a2-b7f0-230efaf0225a) icon to proceed.

<figure><img src="https://3495903199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0choIC1BbdPOkKWOYGgk%2Fuploads%2FLquTXccLwdcVmAEt1cSK%2Fimage.png?alt=media&#x26;token=222c23ee-fa5e-413c-abc5-baa33ec8ef48" alt=""><figcaption></figcaption></figure>

2. View the AI API key details.

<figure><img src="https://3495903199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0choIC1BbdPOkKWOYGgk%2Fuploads%2Fthv8FxspvhZeVqp5FcfB%2Fimage.png?alt=media&#x26;token=aca7b652-11db-4367-891e-7faad41312e5" alt=""><figcaption></figcaption></figure>

#### Update AI APIKEY <a href="#toc212821887" id="toc212821887"></a>

1. Search for the AI API key to modify, and click on the ![](https://3495903199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0choIC1BbdPOkKWOYGgk%2Fuploads%2F17AcCj5jTbB5mFcxUPsM%2Fimage.png?alt=media\&token=631d98f6-867d-4aec-b043-92beb076b609) icon to access the update page.

<figure><img src="https://3495903199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0choIC1BbdPOkKWOYGgk%2Fuploads%2FLKMYJZmlp0GoslPsga2Q%2Fimage.png?alt=media&#x26;token=c4467ee8-4f3d-48ec-a2a3-7476300c823b" alt=""><figcaption></figcaption></figure>

2. Modify the desired fields, and click **Update** to save and exit.

<figure><img src="https://3495903199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0choIC1BbdPOkKWOYGgk%2Fuploads%2Fe0GnHvJKDTJ8Z1A7eOO6%2Fimage.png?alt=media&#x26;token=1c660c35-9bd0-4871-ae7a-d91417b096f3" alt=""><figcaption></figcaption></figure>

#### Delete AI APIKEY

1. Search for the AI API key to delete, and click on the ![](https://3495903199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0choIC1BbdPOkKWOYGgk%2Fuploads%2FVMMQpDHnomrs1Dk90IIv%2Fimage.png?alt=media\&token=bc732b7a-2158-4be2-ab16-d82321582ff6) icon to proceed.

<figure><img src="https://3495903199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0choIC1BbdPOkKWOYGgk%2Fuploads%2FNDRAnFQJKGBnC90SUmze%2Fimage.png?alt=media&#x26;token=7eba5df0-adcd-4857-80af-9a4a0de4ee07" alt=""><figcaption></figcaption></figure>

2. A warning prompt displaying the message “Confirm Delete?” will pop up. Click Confirm to delete this AI API key and exit.

<div align="left"><figure><img src="https://3495903199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0choIC1BbdPOkKWOYGgk%2Fuploads%2FBxKe0awJWF6jUcbwe4kw%2Fimage.png?alt=media&#x26;token=4b32132d-0474-492b-9080-409fe72b81e0" alt=""><figcaption></figcaption></figure></div>

&#x20;
