# Model Configuration

Quick configuration for custom AI providers

1. Open Chatbox, click the settings button in the sidebar to enter the settings page
2. Click on Model Provider option

<figure><img src="https://4224693089-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQJqwBd5dQAMECw6g39KF%2Fuploads%2Fgit-blob-c6698922f96752e1b248747916a24bd2b2d4648b%2Fimage%20(1).png?alt=media" alt="" width="375"><figcaption></figcaption></figure>

3. If the AI provider you need is not available, you can click the "Add" button at the bottom to add a provider.
4. Enter the API provider name, select the appropriate option based on the provider's API type, such as OpenAI API compatible for GPT models, or Google Gemini compatible for Gemini models

<figure><img src="https://4224693089-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQJqwBd5dQAMECw6g39KF%2Fuploads%2Fgit-blob-3cc644f31801dfdffe1444e2f574fc580dfc6b4c%2Fimage%20(2).png?alt=media" alt="" width="375"><figcaption></figcaption></figure>

5. Fill in the API Key and API Host according to the provider's information. The API path generally doesn't need to be filled in, defaulting to `/v1/chat/completions`. Refer to the provider's information for specifics.

   <figure><img src="https://4224693089-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQJqwBd5dQAMECw6g39KF%2Fuploads%2Fgit-blob-53f83d7b31607276d40c8f5bd8bb79877f2661d9%2Fimage%20(3).png?alt=media" alt="" width="375"><figcaption></figcaption></figure>
6. Add at least one model, check the corresponding capability configuration for the model (optional, unconfigured models are treated as plain text models)

<figure><img src="https://4224693089-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQJqwBd5dQAMECw6g39KF%2Fuploads%2Fgit-blob-098678e88a9de3d9c1fa53562186d93a4fa3d42a%2Fimage%20(4).png?alt=media" alt="" width="375"><figcaption></figcaption></figure>

7. After saving, click the "Check" button, and it should show connection successful

<figure><img src="https://4224693089-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQJqwBd5dQAMECw6g39KF%2Fuploads%2Fgit-blob-36b0b42ba2bfea80bea38e5766b97f6eb5a76301%2Fimage%20(5).png?alt=media" alt="" width="375"><figcaption></figcaption></figure>

8. Return to the home page, create a new conversation, and you can start chatting

   <figure><img src="https://4224693089-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQJqwBd5dQAMECw6g39KF%2Fuploads%2Fgit-blob-39ba77cdb6d34e2201870aa4b66298938a09837d%2Fimage%20(6).png?alt=media" alt="" width="375"><figcaption></figcaption></figure>
