> ## 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 ChatHub with CometAPI

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

[ChatHub](https://chathub.gg) is a browser extension that lets you talk to multiple AI models simultaneously. Add CometAPI as an OpenAI-compatible provider, then choose the model you want from the [Models page](/overview/models).

## Prerequisites

* [ChatHub](https://chathub.gg) browser extension 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 OpenAI in ChatHub">
    Open ChatHub **Settings** → **OpenAI**. Enter `https://api.cometapi.com` in the **API Host** field, paste your CometAPI key into **API Key**, and click **Save**.

    <Frame>
      <img src="https://mintcdn.com/cometapi/mA1ovj6s0e3RM42l/images/integrations/810968_351578.png?fit=max&auto=format&n=mA1ovj6s0e3RM42l&q=85&s=c4e9ea57615cc53112942cd0eae366c8" alt="ChatHub OpenAI settings with CometAPI host filled in" width="1904" height="911" data-path="images/integrations/810968_351578.png" />
    </Frame>

    <Frame>
      <img src="https://mintcdn.com/cometapi/mA1ovj6s0e3RM42l/images/integrations/810968_351579.png?fit=max&auto=format&n=mA1ovj6s0e3RM42l&q=85&s=dd5c0367a6422ab9eaeea639db6dd55d" alt="API key field filled in ChatHub settings" width="1919" height="929" data-path="images/integrations/810968_351579.png" />
    </Frame>
  </Step>

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

    <Frame>
      <img src="https://mintcdn.com/cometapi/mA1ovj6s0e3RM42l/images/integrations/810968_351580.png?fit=max&auto=format&n=mA1ovj6s0e3RM42l&q=85&s=46845534e1d30cb2d4897b5d9047b0bf" alt="ChatHub showing a successful response from CometAPI" width="1912" height="926" data-path="images/integrations/810968_351580.png" />
    </Frame>
  </Step>
</Steps>
