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

# Sử dụng ChatAll với CometAPI

> Sử dụng hướng dẫn này để cấu hình ChatAll với CometAPI bằng cách thiết lập base URL, API key và các tùy chọn model hoặc nhà cung cấp.

[ChatAll](https://github.com/ai-shifu/ChatALL) cho phép bạn gửi tin nhắn đến nhiều mô hình AI cùng lúc. Kết nối nó với CometAPI để truy cập GPT, Claude, Gemini và nhiều mô hình khác chỉ với một key.

## Điều kiện tiên quyết

* Đã cài đặt [ChatAll](https://github.com/ai-shifu/ChatALL/releases)
* Tài khoản [CometAPI](https://www.cometapi.com) có API key đang hoạt động

## Thiết lập

<Steps>
  <Step title="Lấy CometAPI API key của bạn">
    Đăng nhập vào [bảng điều khiển CometAPI](https://www.cometapi.com/console). Nhấp vào **Add API Key** và sao chép key cùng base URL của bạn (`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="Bảng điều khiển 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 và base URL" width="2434" height="1232" data-path="images/overview/810968_364193.png" />
    </Frame>
  </Step>

  <Step title="Cấu hình OpenAI trong ChatAll">
    Mở ChatAll → **Settings** → **OpenAI**. Nhập `https://api.cometapi.com/v1` vào trường **API Address**, dán CometAPI key của bạn vào **API Key**, rồi nhấp **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="Cài đặt OpenAI của ChatAll với base URL CometAPI" 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="Trường API key đã được điền trong cài đặt ChatAll" width="1024" height="519" data-path="images/integrations/810968_351614.png" />
    </Frame>
  </Step>

  <Step title="Chọn model">
    Nhấp vào bộ chọn model để xem và chuyển đổi giữa các model có sẵn.

    <Frame>
      <img src="https://mintcdn.com/cometapi/mA1ovj6s0e3RM42l/images/integrations/810968_351615.png?fit=max&auto=format&n=mA1ovj6s0e3RM42l&q=85&s=30485dde702fb471d2d2b45cd7f928fe" alt="Bảng chọn model trong 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="Các model được liệt kê và chọn trong 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": "Sử dụng ChatAll với CometAPI",
        "description": "Sử dụng hướng dẫn này để cấu hình ChatAll với CometAPI bằng cách thiết lập base URL, API key và các tùy chọn model hoặc nhà cung cấp.",
        "step": [
          {
            "@type": "HowToStep",
            "@id": "https://apidoc.cometapi.com/integrations/chatall-translation#step-1",
            "position": 1,
            "name": "Lấy CometAPI API key của bạn",
            "text": "Tạo hoặc mở tài khoản CometAPI của bạn, sau đó sao chép một API key đang hoạt động từ bảng điều khiển."
          },
          {
            "@type": "HowToStep",
            "@id": "https://apidoc.cometapi.com/integrations/chatall-translation#step-2",
            "position": 2,
            "name": "Cấu hình OpenAI trong ChatAll",
            "text": "Hoàn thành bước Cấu hình OpenAI trong ChatAll trong hướng dẫn Sử dụng ChatAll với CometAPI."
          },
          {
            "@type": "HowToStep",
            "@id": "https://apidoc.cometapi.com/integrations/chatall-translation#step-3",
            "position": 3,
            "name": "Chọn model",
            "text": "Hoàn thành bước Chọn model trong hướng dẫn Sử dụng ChatAll với CometAPI."
          }
        ]
      },
      {
        "@type": "BreadcrumbList",
        "itemListElement": [
          {
            "@type": "ListItem",
            "position": 1,
            "name": "Tài liệu CometAPI",
            "item": "https://apidoc.cometapi.com/"
          },
          {
            "@type": "ListItem",
            "position": 2,
            "name": "Tích hợp",
            "item": "https://apidoc.cometapi.com/integrations"
          },
          {
            "@type": "ListItem",
            "position": 3,
            "name": "Sử dụng ChatAll với CometAPI",
            "item": "https://apidoc.cometapi.com/integrations/chatall-translation"
          }
        ]
      }
    ]
    }
    `}
</script>
