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

# Use Chatbox with CometAPI

> Use this guide to configure Chatbox with CometAPI by setting the base URL, API key, and model or provider options.

[Chatbox](https://chatboxai.app/) is a cross-platform desktop client for AI models. Connect it to CometAPI using the OpenAI-compatible API settings.

## Prerequisites

* [Chatbox](https://chatboxai.app/) installed
* A [CometAPI](https://www.cometapi.com) account with an active API key

## Setup

<Steps>
  <Step title="Get your CometAPI API key">
    Log in to the [CometAPI dashboard](https://www.cometapi.com/console). Click **Add API Key** and copy your key and base URL (`https://api.cometapi.com`).

    <Frame>
      <img src="https://mintcdn.com/cometapi/SZhlxZhCnMLn__BW/images/overview/810968_364191.png?fit=max&auto=format&n=SZhlxZhCnMLn__BW&q=85&s=aef81a83f29f8eb16655ed4060425f50" alt="CometAPI dashboard — Add API Key" width="3824" height="1892" data-path="images/overview/810968_364191.png" />
    </Frame>

    <Frame>
      <img src="https://mintcdn.com/cometapi/HhtmQffktazbxUvS/images/overview/810968_364193.png?fit=max&auto=format&n=HhtmQffktazbxUvS&q=85&s=d893f659267150d0faf45f99eb5dffc1" alt="CometAPI API key and base URL" width="2434" height="1232" data-path="images/overview/810968_364193.png" />
    </Frame>
  </Step>

  <Step title="Configure the API provider">
    Open Chatbox **Settings** → **Model**. Select **OpenAI API** as the provider, enter `https://api.cometapi.com` in the **API Domain** field, paste your key into **API Key**, and click **Save**.

    <Frame>
      <img src="https://mintcdn.com/cometapi/mA1ovj6s0e3RM42l/images/integrations/810968_351530.png?fit=max&auto=format&n=mA1ovj6s0e3RM42l&q=85&s=897d856de596dae4af3fda696b975dd6" alt="Chatbox settings showing OpenAI API selected and CometAPI domain entered" width="1275" height="960" data-path="images/integrations/810968_351530.png" />
    </Frame>
  </Step>

  <Step title="Test the connection">
    Send a test message in Chatbox. A successful reply confirms the integration is working.

    <Frame>
      <img src="https://mintcdn.com/cometapi/E4FFvyMYmaOZoldp/images/integrations/810968_360312.png?fit=max&auto=format&n=E4FFvyMYmaOZoldp&q=85&s=9169ae33248ac9cb492a8a2db68a928b" alt="Chatbox chat window showing a successful response" width="1715" height="1030" data-path="images/integrations/810968_360312.png" />
    </Frame>
  </Step>
</Steps>

<Tip>
  To add more models, go to the Chatbox settings page and add a new model entry using the current model ID you want.

  <Frame>
    <img src="https://mintcdn.com/cometapi/mA1ovj6s0e3RM42l/images/integrations/810968_351533.png?fit=max&auto=format&n=mA1ovj6s0e3RM42l&q=85&s=8f40c5a9ebb52b6e664f855c356a8505" alt="Chatbox settings page showing a new custom model added" width="1276" height="941" data-path="images/integrations/810968_351533.png" />
  </Frame>
</Tip>
