> ## 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.

# 使用 ChatAll 搭配 CometAPI

> 使用本指南，透過設定 base URL、API key，以及模型或供應商選項來設定 ChatAll 與 CometAPI。

[ChatAll](https://github.com/ai-shifu/ChatALL) 可讓你同時將訊息傳送給多個 AI 模型。將它連接到 CometAPI，即可透過單一金鑰存取 GPT、Claude、Gemini 等模型。

## 先決條件

* 已安裝 [ChatAll](https://github.com/ai-shifu/ChatALL/releases)
* 擁有一個 [CometAPI](https://www.cometapi.com) 帳戶，且有可用的 API key

## 設定

<Steps>
  <Step title="取得你的 CometAPI API key">
    登入 [CometAPI 控制台](https://www.cometapi.com/console)。點擊 **Add API Key**，然後複製你的 key 與 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 控制台 — 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 與 base URL" width="2434" height="1232" data-path="images/overview/810968_364193.png" />
    </Frame>
  </Step>

  <Step title="在 ChatAll 中設定 OpenAI">
    開啟 ChatAll → **Settings** → **OpenAI**。在 **API Address** 欄位輸入 `https://api.cometapi.com/v1`，將你的 CometAPI key 貼到 **API Key**，然後點擊 **Save**。

    <Frame>
      <img src="https://mintcdn.com/cometapi/mA1ovj6s0e3RM42l/images/integrations/810968_351613.png?fit=max&auto=format&n=mA1ovj6s0e3RM42l&q=85&s=223ae91c7aa6c7a300887a624f6648ba" alt="在 ChatAll OpenAI 設定中填入 CometAPI base URL" width="690" height="518" data-path="images/integrations/810968_351613.png" />
    </Frame>

    <Frame>
      <img src="https://mintcdn.com/cometapi/mA1ovj6s0e3RM42l/images/integrations/810968_351614.png?fit=max&auto=format&n=mA1ovj6s0e3RM42l&q=85&s=82546a500cfc0c4f0d161475d08bbf56" alt="在 ChatAll 設定中填寫 API key 欄位" width="1024" height="519" data-path="images/integrations/810968_351614.png" />
    </Frame>
  </Step>

  <Step title="選擇模型">
    點擊模型選擇器以檢視並切換可用模型。

    <Frame>
      <img src="https://mintcdn.com/cometapi/mA1ovj6s0e3RM42l/images/integrations/810968_351615.png?fit=max&auto=format&n=mA1ovj6s0e3RM42l&q=85&s=30485dde702fb471d2d2b45cd7f928fe" alt="ChatAll 模型選擇面板" width="690" height="519" data-path="images/integrations/810968_351615.png" />
    </Frame>

    <Frame>
      <img src="https://mintcdn.com/cometapi/mA1ovj6s0e3RM42l/images/integrations/810968_351616.png?fit=max&auto=format&n=mA1ovj6s0e3RM42l&q=85&s=4dcbfb21b05f291a470c5927cc144999" alt="在 ChatAll 中列出並選取的模型" width="690" height="534" data-path="images/integrations/810968_351616.png" />
    </Frame>
  </Step>
</Steps>

<script type="application/ld+json">
  {`
    {
    "@context": "https://schema.org",
    "@graph": [
      {
        "@type": "HowTo",
        "@id": "https://apidoc.cometapi.com/integrations/chatall-translation#howto",
        "name": "使用 ChatAll 搭配 CometAPI",
        "description": "使用本指南，透過設定 base URL、API key，以及模型或供應商選項來設定 ChatAll 與 CometAPI。",
        "step": [
          {
            "@type": "HowToStep",
            "@id": "https://apidoc.cometapi.com/integrations/chatall-translation#step-1",
            "position": 1,
            "name": "取得你的 CometAPI API key",
            "text": "建立或開啟你的 CometAPI 帳戶，然後從控制台複製一個可用的 API key。"
          },
          {
            "@type": "HowToStep",
            "@id": "https://apidoc.cometapi.com/integrations/chatall-translation#step-2",
            "position": 2,
            "name": "在 ChatAll 中設定 OpenAI",
            "text": "完成「使用 ChatAll 搭配 CometAPI」指南中的「在 ChatAll 中設定 OpenAI」步驟。"
          },
          {
            "@type": "HowToStep",
            "@id": "https://apidoc.cometapi.com/integrations/chatall-translation#step-3",
            "position": 3,
            "name": "選擇模型",
            "text": "完成「使用 ChatAll 搭配 CometAPI」指南中的「選擇模型」步驟。"
          }
        ]
      },
      {
        "@type": "BreadcrumbList",
        "itemListElement": [
          {
            "@type": "ListItem",
            "position": 1,
            "name": "CometAPI 文件",
            "item": "https://apidoc.cometapi.com/"
          },
          {
            "@type": "ListItem",
            "position": 2,
            "name": "整合",
            "item": "https://apidoc.cometapi.com/integrations"
          },
          {
            "@type": "ListItem",
            "position": 3,
            "name": "使用 ChatAll 搭配 CometAPI",
            "item": "https://apidoc.cometapi.com/integrations/chatall-translation"
          }
        ]
      }
    ]
    }
    `}
</script>
