> ## 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 Open WebUI with CometAPI

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

[Open WebUI](https://openwebui.com/) is a self-hosted web interface for AI models. Configure it to use CometAPI as an external OpenAI-compatible connection.

## Prerequisites

* [Open WebUI](https://openwebui.com/) running (self-hosted or via the demo at [open.zetatechs.online](https://openwebui.com/))
* 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="Add an external OpenAI connection">
    In Open WebUI, go to **Admin Panel** → **Settings** → **External Connections**. Enable **External Link OpenAI API**, enter `https://api.cometapi.com/v1` in the **API Address** field, paste your key into the **Key** field, and click **Save**.

    <Frame>
      <img src="https://mintcdn.com/cometapi/mA1ovj6s0e3RM42l/images/integrations/810968_351624.png?fit=max&auto=format&n=mA1ovj6s0e3RM42l&q=85&s=4878931888f1deeda5365545bc35a01a" alt="Open WebUI external connections settings with CometAPI URL entered" width="1265" height="346" data-path="images/integrations/810968_351624.png" />
    </Frame>

    <Frame>
      <img src="https://mintcdn.com/cometapi/mA1ovj6s0e3RM42l/images/integrations/810968_351625.png?fit=max&auto=format&n=mA1ovj6s0e3RM42l&q=85&s=40e7df7cb60b43a4b585ededa36847f2" alt="Open WebUI settings saved with CometAPI connection active" width="1265" height="408" data-path="images/integrations/810968_351625.png" />
    </Frame>
  </Step>

  <Step title="Test the connection">
    Start a chat and send a test message. A successful reply confirms the integration is working.
  </Step>
</Steps>
