# AI Provider

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

The **AI Provider** leverages the **API Composer** to integrate multiple AI service providers, enabling users to manage these providers and access diverse AI functions through a single, unified interface.

<figure><img src="https://3495903199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0choIC1BbdPOkKWOYGgk%2Fuploads%2FhZXWgL0h0fPL4lOpWDSD%2Fimage.png?alt=media&#x26;token=551c79a2-c3f8-428d-bd98-af60a70ea85c" alt=""><figcaption></figcaption></figure>

#### Create AI Provider <a href="#toc212821881" id="toc212821881"></a>

1. Click **Create** to access the AI provider creation page.

<figure><img src="https://3495903199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0choIC1BbdPOkKWOYGgk%2Fuploads%2FpNpGyHbqe3YZz2phK5Ke%2Fimage.png?alt=media&#x26;token=defa8770-13f4-4965-a812-89b2c4a4974e" 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.

* **Provider Alias**<mark style="color:$danger;">\*</mark>: An identifiable provider alias.
* **Enable**<mark style="color:$danger;">\*</mark>: Select to **Enable** or **Disable** the provider, set to **Disable** by default.
* **Model**<mark style="color:$danger;">\*</mark>: An identifiable model name.
* **Generate API**<mark style="color:$danger;">\*</mark>: The API endpoint used for text generation and related functions.
* **Count Token API**: The API endpoint used to calculate the number of tokens consumed by prompts and responses.

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%2FEtQeJzON9gD3gu8MCDIy%2Fimage.png?alt=media&#x26;token=608eee2b-3919-446b-ac73-3baed91f3991" alt=""><figcaption></figcaption></figure>

#### Update AI Provider <a href="#toc212821882" id="toc212821882"></a>

1. Search for the AI provider to modify, and click on the ![](https://3495903199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0choIC1BbdPOkKWOYGgk%2Fuploads%2F7HFQnCp2ETzfcTbeCMBM%2Fimage.png?alt=media\&token=b67d94b9-e127-4f0c-83c6-df890c3a3a5a) 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%2FhozfUsPzE4IKtEsJifpc%2Fimage.png?alt=media&#x26;token=2c7fc54a-33c6-4773-adba-f97e23bda9ca" 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%2FXQJw6l54BjRccdb9qrDS%2Fimage.png?alt=media&#x26;token=16cf52f2-f21c-457f-b4fa-58db7b584248" alt=""><figcaption></figcaption></figure>

&#x20;

#### Delete AI Provider <a href="#toc212821883" id="toc212821883"></a>

1. Search for the AI provider to delete, and click on the ![](https://3495903199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0choIC1BbdPOkKWOYGgk%2Fuploads%2Ftz5fmQAGxRq1L1Voet31%2Fimage.png?alt=media\&token=16a9c3f7-3b41-4dba-bb37-c0f3e9182ee1) icon to proceed.

<figure><img src="https://3495903199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0choIC1BbdPOkKWOYGgk%2Fuploads%2FWppxIoqvacATCnUcEqpz%2Fimage.png?alt=media&#x26;token=7faa6550-91d6-4e4a-94c5-bbb2bf97629e" alt=""><figcaption></figcaption></figure>

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

![](https://3495903199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0choIC1BbdPOkKWOYGgk%2Fuploads%2FtI0tpU7ZrE2JaYgiQ1LP%2Fimage.png?alt=media\&token=646e8234-6d39-41a1-a365-d581ec1153ed)&#x20;

***

### What you can do next :&#x20;

#### Apply Your AI Provider Settings

After completing the AI Provider configuration, you can now start applying these capabilities to an actual API.

We recommend proceeding to the [**API Registry**](https://docs.tpi.dev/guide/api-management/api-registry) to register a new API, and enable the AI Gateway settings you just configured. This will allow your customers to start using the features immediately.

#### Explore other chapter
