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

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

[FastGPT](https://cloud.tryfastgpt.ai/) is a knowledge-base-powered AI workflow platform. Configure a CometAPI key as an OpenAI-compatible third-party account to use it across all workflows.

## Prerequisites

* A [FastGPT](https://cloud.tryfastgpt.ai/login) account
* 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 CometAPI as a third-party account">
    In FastGPT, go to **Account Settings** → **Third-party Accounts** → **OpenAI Account**. Enter `https://api.cometapi.com/v1` in the **URL** field (include the `/v1` suffix). Paste your CometAPI key into **API Key** and click **Confirm**.

    <Frame>
      <img src="https://mintcdn.com/cometapi/E4FFvyMYmaOZoldp/images/integrations/810968_355099.png?fit=max&auto=format&n=E4FFvyMYmaOZoldp&q=85&s=e1ef9869db75622178961784ac09ad57" alt="FastGPT third-party accounts — OpenAI Account option" width="1919" height="914" data-path="images/integrations/810968_355099.png" />
    </Frame>

    <Frame>
      <img src="https://mintcdn.com/cometapi/E4FFvyMYmaOZoldp/images/integrations/810968_355100.png?fit=max&auto=format&n=E4FFvyMYmaOZoldp&q=85&s=0e7fcb0a8cc9fb390aa9911795252967" alt="URL and API key fields filled in for CometAPI in FastGPT" width="1189" height="788" data-path="images/integrations/810968_355100.png" />
    </Frame>
  </Step>

  <Step title="Test the connection">
    Create a workflow with an LLM node and run it. A successful response confirms the setup is working.

    <Frame>
      <img src="https://mintcdn.com/cometapi/E4FFvyMYmaOZoldp/images/integrations/810968_355101.png?fit=max&auto=format&n=E4FFvyMYmaOZoldp&q=85&s=e8c96cab8e14e0be6ddd6c0f48c43b8f" alt="FastGPT workflow showing a successful response from CometAPI" width="1875" height="938" data-path="images/integrations/810968_355101.png" />
    </Frame>
  </Step>
</Steps>

<Warning>
  The URL must include the `/v1` suffix: `https://api.cometapi.com/v1`. Omitting it will cause connection failures.
</Warning>
