> ## 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 NextAI Translator with CometAPI

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

[OpenAI Translator](https://github.com/openai-translator/openai-translator) is a cross-platform translation tool. Configure it to use CometAPI’s OpenAI-compatible endpoint to power translations with any supported model.

## Prerequisites

* [OpenAI Translator](https://github.com/openai-translator/openai-translator/releases) 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 OpenAI Translator. The general settings page appears on first launch. Select **OpenAI** as the model provider, enter `https://api.cometapi.com` in the **URL** field, and paste your key into **API Key**.

    <Frame>
      <img src="https://mintcdn.com/cometapi/mA1ovj6s0e3RM42l/images/integrations/810968_351576.png?fit=max&auto=format&n=mA1ovj6s0e3RM42l&q=85&s=c7b5e6b50d97dc3b7c26a7254f6642a7" alt="OpenAI Translator settings — URL and API key fields" width="1894" height="1014" data-path="images/integrations/810968_351576.png" />
    </Frame>
  </Step>

  <Step title="Test the translation">
    Select some text and trigger a translation. A successful result confirms the integration is working.
  </Step>
</Steps>

<Tip>
  To use a custom model, check **No model API support**, select **Custom** from the model dropdown, and type the current model ID manually.

  <Frame>
    <img src="https://mintcdn.com/cometapi/mA1ovj6s0e3RM42l/images/integrations/810968_351577.png?fit=max&auto=format&n=mA1ovj6s0e3RM42l&q=85&s=620c2aa95b307cd69cb2d657547e2e83" alt="OpenAI Translator — custom model ID option" width="1920" height="997" data-path="images/integrations/810968_351577.png" />
  </Frame>
</Tip>
