--- title: Ernie description: 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. ![Ernie 1 Pn](/docs/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. ![Ernie 2 Pn](/docs/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. ---