# Text Model Tab

### Setting Up the Text Model

* Navigate to the Text Model Tab in the settings.
* In the "Base URL" field,  input URL in OpenAI compatible format.
* Enter API key in the in the "API Key" field.&#x20;
* You can use any OpenAI-compatible API key and Base URL after [locally deployed models](../../../running-models-locally) which create OpenAI compatible endpoints.
* Click **Fetch Model** to view available models.
  * By default, image generation and voice transcription models are excluded.
  * To request support for additional models, please open an issue with the "enhancement" tag on our GitHub repository.
* Select your preferred model from the list.
* Click **Save Settings** to store your selected model and Base URL.
  * Note: These settings are not encrypted.

<figure><img src="https://1851364694-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYtqjJid953znO0BBNHvR%2Fuploads%2Fh9j5su0iHSa4nuUisubq%2FScreenshot%202024-09-07%20at%209.59.28%20PM.jpg?alt=media&#x26;token=d63c9691-d254-44b6-b1e6-e9e7e48e3409" alt=""><figcaption><p>Text Model Tab in Settings</p></figcaption></figure>

### Managing the Text Model API Key

* To encrypt and save your API key:
  * Enter your API key in the designated field.
  * Click the "Save Key" button.
  * Create a password when prompted.
* To delete a saved key:
  * Click the "Delete Key" button.
* Locking and Unlocking:
  * The application will request your password to unlock the API key each time you open it.
  * You can manually lock/unlock the key using the "🔒 Lock" or "🔓 Unlock" buttons in this tab.
