> ## 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 uTools ChatGPT Friend với CometAPI

> Sử dụng hướng dẫn này để cấu hình uTools ChatGPT Friend 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 provider.

uTools ChatGPT Friend là một plugin của uTools mang AI chat vào thanh khởi chạy nhanh trên desktop của bạn. Kết nối nó với CometAPI, sau đó chọn model bạn muốn từ [trang Models](/vi/overview/models).

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

* Tài khoản CometAPI với API key đang hoạt động — [lấy tại đây](https://www.cometapi.com/console/token)
* Đã cài đặt uTools — [tải xuống tại đây](https://u.tools/)
* Plugin ChatGPT Friend — [lấy tại đây](https://www.u-tools.cn/plugins/detail/ChatGPT.%E5%A5%BD%E5%8F%8B/index.html)

<Steps>
  <Step title="Lấy API key CometAPI của bạn">
    Đăng nhập vào [bảng điều khiển CometAPI](https://www.cometapi.com/console/token). Nhấp vào **Add API Key** và sao chép API key CometAPI của bạn.

    <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 hiển thị nút 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="Chi tiết API key CometAPI với base URL" width="2434" height="1232" data-path="images/overview/810968_364193.png" />
    </Frame>
  </Step>

  <Step title="Cấu hình ChatGPT Friend">
    Mở plugin ChatGPT Friend trong uTools. Trong phần cài đặt:

    * **Interface Address**: `https://api.cometapi.com`
    * **API Key**: dán API key CometAPI của bạn

    Nhấp vào **Save**.

    <Frame>
      <img src="https://mintcdn.com/cometapi/mA1ovj6s0e3RM42l/images/integrations/810968_351617.png?fit=max&auto=format&n=mA1ovj6s0e3RM42l&q=85&s=007fd1da30f9ca6c807caf2d01205422" alt="Cài đặt ChatGPT Friend với interface address và API key đã được điền" width="1024" height="760" data-path="images/integrations/810968_351617.png" />
    </Frame>
  </Step>

  <Step title="Kiểm tra kết nối">
    Nhập một tin nhắn vào ô chat và gửi đi. Nếu nhận được phản hồi thành công thì nghĩa là việc tích hợp đang hoạt động.

    <Frame>
      <img src="https://mintcdn.com/cometapi/mA1ovj6s0e3RM42l/images/integrations/810968_351618.png?fit=max&auto=format&n=mA1ovj6s0e3RM42l&q=85&s=2f2aecbecc80d2f3042f84d8e9d13d48" alt="ChatGPT Friend hiển thị phản hồi AI thành công" width="1024" height="905" data-path="images/integrations/810968_351618.png" />
    </Frame>

    Nếu lệnh gọi thất bại, hãy kiểm tra lại API key và interface address của bạn hoặc liên hệ [bộ phận hỗ trợ CometAPI](https://www.cometapi.com).
  </Step>
</Steps>

<script type="application/ld+json">
  {`
    {
    "@context": "https://schema.org",
    "@graph": [
      {
        "@type": "HowTo",
        "@id": "https://apidoc.cometapi.com/integrations/utools-chatgpt-friend#howto",
        "name": "Sử dụng uTools ChatGPT Friend với CometAPI",
        "description": "Sử dụng hướng dẫn này để cấu hình uTools ChatGPT Friend 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 provider.",
        "step": [
          {
            "@type": "HowToStep",
            "@id": "https://apidoc.cometapi.com/integrations/utools-chatgpt-friend#step-1",
            "position": 1,
            "name": "Lấy API key CometAPI 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/utools-chatgpt-friend#step-2",
            "position": 2,
            "name": "Cấu hình ChatGPT Friend",
            "text": "Hoàn thành bước Cấu hình ChatGPT Friend trong hướng dẫn Sử dụng uTools ChatGPT Friend với CometAPI."
          },
          {
            "@type": "HowToStep",
            "@id": "https://apidoc.cometapi.com/integrations/utools-chatgpt-friend#step-3",
            "position": 3,
            "name": "Kiểm tra kết nối",
            "text": "Chọn một model ID hiện có từ trang CometAPI Models, sau đó gửi một yêu cầu kiểm tra từ phần tích hợp."
          }
        ]
      },
      {
        "@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 uTools ChatGPT Friend với CometAPI",
            "item": "https://apidoc.cometapi.com/integrations/utools-chatgpt-friend"
          }
        ]
      }
    ]
    }
    `}
</script>
