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

# Ernie

> This guide walks you through setting up your Baidu ERNIE API key within Eigent to enable the Ernie model for your AI workforce.

### Prerequisites

* **Get your API Key:** If you haven't already, generate a key in the
  [Baidu AI Cloud Qianfan console](https://console.bce.baidu.com/qianfan/ais/console/applicationConsole/application).
* **Copy the Key:** Keep your API key ready to paste.

### Configuration Steps

#### 1. Access Application Settings

* Launch Eigent and navigate to the **Home Page**.
* Click on the **Agent** tab, then click on the **Models** button.

<img src="https://mintcdn.com/eigentai-0b34069f/_GpxIx_W_ZtChA6B/images/model_setting.png?fit=max&auto=format&n=_GpxIx_W_ZtChA6B&q=85&s=04fe5892a7e54a3a03185afcf7daad78" alt="Ernie 1 Pn" width="2400" height="1600" data-path="images/model_setting.png" />

#### 2. Locate Model Configuration

* Scroll down to the **Custom Model** area.
* Look for the **Ernie** card.

#### 3. Enter API Details

Click on the Ernie card and fill in the following fields:

* **API Key:** Paste the key you generated from Baidu AI Cloud Qianfan.
* **API Host:** Enter the API endpoint host.
  * *Example:* `https://qianfan.baidubce.com/v2`
* **Model Type:** Enter the specific model version you wish to use.
  * *Example:* `ernie-5.0`
* **Save:** Click the **Save** button to apply your changes.

<img src="https://mintcdn.com/eigentai-0b34069f/SEfvVYEPyfpIim6s/images/ernie.png?fit=max&auto=format&n=SEfvVYEPyfpIim6s&q=85&s=84c865a80acb40c62448a2eef93141c6" alt="Ernie 2 Pn" width="2400" height="1600" data-path="images/ernie.png" />

#### 4. Set as Default & Verify

* Once saved, the **"Set as Default"** button on the Ernie card will be
  selected/active.
* **You are ready to go.** Your Eigent agents can now utilize the Ernie model.

***
