> ## 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 Cherry Studio với CometAPI

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

[CherryStudio](https://docs.cherry-ai.com/cherrystudio/download) là một ứng dụng desktop AI hỗ trợ nhiều nhà cung cấp model. Thêm CometAPI làm nhà cung cấp tùy chỉnh tương thích OpenAI để sử dụng bất kỳ model nào trên nền tảng của chúng tôi.

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

* Đã cài đặt [CherryStudio](https://docs.cherry-ai.com/cherrystudio/download)
* Một tài khoản [CometAPI](https://www.cometapi.com) với API key đang hoạt động

## Thiết lập

<Steps>
  <Step title="Lấy khóa API CometAPI 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 khóa cùng URL cơ sở 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="Khóa API CometAPI và URL cơ sở" width="2434" height="1232" data-path="images/overview/810968_364193.png" />
    </Frame>
  </Step>

  <Step title="Thêm CometAPI làm nhà cung cấp">
    Mở **Settings** → **Model Services** trong CherryStudio. Nhấp vào **Add**, đặt tên cho nhà cung cấp (ví dụ: `CometAPI`), chọn **OpenAI** làm loại nhà cung cấp, rồi nhấp vào **OK**. Nhập `https://api.cometapi.com` vào trường **API Address** và dán khóa của bạn vào trường **Key**.

    <Frame>
      <img src="https://mintcdn.com/cometapi/E4FFvyMYmaOZoldp/images/integrations/810968_355194.png?fit=max&auto=format&n=E4FFvyMYmaOZoldp&q=85&s=93a035c01494c21065a134748e396381" alt="Dịch vụ model CherryStudio — hộp thoại Add provider" width="1078" height="606" data-path="images/integrations/810968_355194.png" />
    </Frame>

    <Frame>
      <img src="https://mintcdn.com/cometapi/E4FFvyMYmaOZoldp/images/integrations/810968_355195.png?fit=max&auto=format&n=E4FFvyMYmaOZoldp&q=85&s=f6edb15b1848812555d0cac24282afcf" alt="Các trường địa chỉ API và khóa đã được điền cho CometAPI" width="1056" height="600" data-path="images/integrations/810968_355195.png" />
    </Frame>
  </Step>

  <Step title="Thêm model">
    Nhấp vào **Add Model** và nhập model ID hiện tại mà bạn muốn sử dụng. Bạn có thể thêm nhiều model.

    <Frame>
      <img src="https://mintcdn.com/cometapi/E4FFvyMYmaOZoldp/images/integrations/810968_355196.png?fit=max&auto=format&n=E4FFvyMYmaOZoldp&q=85&s=9b9f17fe4287de67735320ec5b464e65" alt="Danh sách model CherryStudio hiển thị một model tùy chỉnh đã được thêm" width="1059" height="599" data-path="images/integrations/810968_355196.png" />
    </Frame>
  </Step>

  <Step title="Kiểm tra kết nối">
    Mở một cuộc trò chuyện và gửi một tin nhắn thử nghiệm. Phản hồi thành công xác nhận rằng quá trình thiết lập đang hoạt động.

    <Frame>
      <img src="https://mintcdn.com/cometapi/E4FFvyMYmaOZoldp/images/integrations/810968_360313.png?fit=max&auto=format&n=E4FFvyMYmaOZoldp&q=85&s=305c5fdce1017d6942aa1176b64f3a96" alt="Trò chuyện CherryStudio hiển thị một phản hồi thành công" width="1069" height="590" data-path="images/integrations/810968_360313.png" />
    </Frame>
  </Step>
</Steps>

<Tip>
  Để thêm nhiều model hơn, quay lại cài đặt nhà cung cấp và nhấp lại vào **Add Model**.

  <Frame>
    <img src="https://mintcdn.com/cometapi/E4FFvyMYmaOZoldp/images/integrations/810968_355199.png?fit=max&auto=format&n=E4FFvyMYmaOZoldp&q=85&s=da182754d5fae90778c2c9cc9d5b5727" alt="Cài đặt CherryStudio hiển thị một model tùy chỉnh khác đã được thêm" width="1075" height="609" data-path="images/integrations/810968_355199.png" />
  </Frame>
</Tip>

<script type="application/ld+json">
  {`
    {
    "@context": "https://schema.org",
    "@graph": [
      {
        "@type": "HowTo",
        "@id": "https://apidoc.cometapi.com/integrations/cherrystudio#howto",
        "name": "Sử dụng Cherry Studio với CometAPI",
        "description": "Sử dụng hướng dẫn này để cấu hình Cherry Studio với CometAPI bằng cách thiết lập URL cơ sở, khóa API và các tùy chọn model hoặc nhà cung cấp.",
        "step": [
          {
            "@type": "HowToStep",
            "@id": "https://apidoc.cometapi.com/integrations/cherrystudio#step-1",
            "position": 1,
            "name": "Lấy khóa API 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 khóa API đang hoạt động từ bảng điều khiển."
          },
          {
            "@type": "HowToStep",
            "@id": "https://apidoc.cometapi.com/integrations/cherrystudio#step-2",
            "position": 2,
            "name": "Thêm CometAPI làm nhà cung cấp",
            "text": "Hoàn tất bước Thêm CometAPI làm nhà cung cấp trong hướng dẫn Sử dụng Cherry Studio với CometAPI."
          },
          {
            "@type": "HowToStep",
            "@id": "https://apidoc.cometapi.com/integrations/cherrystudio#step-3",
            "position": 3,
            "name": "Thêm model",
            "text": "Hoàn tất bước Thêm model trong hướng dẫn Sử dụng Cherry Studio với CometAPI."
          },
          {
            "@type": "HowToStep",
            "@id": "https://apidoc.cometapi.com/integrations/cherrystudio#step-4",
            "position": 4,
            "name": "Kiểm tra kết nối",
            "text": "Chọn một model ID hiện tại từ trang Models của CometAPI, sau đó gửi một yêu cầu thử nghiệm 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 Cherry Studio với CometAPI",
            "item": "https://apidoc.cometapi.com/integrations/cherrystudio"
          }
        ]
      }
    ]
    }
    `}
</script>
