> ## 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 Immersive Translation với CometAPI

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

[Immersive Translation](https://immersivetranslate.com/) là một tiện ích mở rộng trình duyệt cho dịch song ngữ. Kết nối nó với CometAPI để sử dụng bất kỳ model nào trên nền tảng của chúng tôi cho việc dịch.

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

* Đã cài đặt tiện ích mở rộng trình duyệt Immersive Translation — hãy tìm nó trong cửa hàng tiện ích mở rộng của trình duyệt

  <Frame>
    <img src="https://mintcdn.com/cometapi/E4FFvyMYmaOZoldp/images/integrations/810968_360315.png?fit=max&auto=format&n=E4FFvyMYmaOZoldp&q=85&s=f922401fe2555358631fed147db49b0f" alt="Cửa hàng tiện ích mở rộng trình duyệt hiển thị Immersive Translation" width="549" height="278" data-path="images/integrations/810968_360315.png" />
  </Frame>

  <Frame>
    <img src="https://mintcdn.com/cometapi/E4FFvyMYmaOZoldp/images/integrations/810968_360316.png?fit=max&auto=format&n=E4FFvyMYmaOZoldp&q=85&s=c504344ed770c68c806c17bca6b3084b" alt="Trang cài đặt tiện ích mở rộng Immersive Translation" width="1824" height="960" data-path="images/integrations/810968_360316.png" />
  </Frame>

* 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 API key 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 key 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="API key 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 dịch vụ tương thích OpenAI">
    Nhấp chuột phải vào biểu tượng tiện ích Immersive Translation → **Extension Settings** → **Translation Services**. Nhấp vào **Add OpenAI Compatible Service**, nhập `https://api.cometapi.com/v1/chat/completions` vào trường **API Address**, rồi dán key của bạn vào **API Key**.

    <Frame>
      <img src="https://mintcdn.com/cometapi/mA1ovj6s0e3RM42l/images/integrations/810968_351546.png?fit=max&auto=format&n=mA1ovj6s0e3RM42l&q=85&s=e4437b20cd9e8cdbedfa0410b0cf1d3c" alt="Cài đặt tiện ích Immersive Translation — hộp thoại thêm dịch vụ" width="1909" height="942" data-path="images/integrations/810968_351546.png" />
    </Frame>

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

  <Step title="Kiểm tra dịch vụ">
    Nhấp vào **Test Service** trong bảng cài đặt. Xác minh thành công cho thấy việc tích hợp đang hoạt động.

    <Frame>
      <img src="https://mintcdn.com/cometapi/mA1ovj6s0e3RM42l/images/integrations/810968_351548.png?fit=max&auto=format&n=mA1ovj6s0e3RM42l&q=85&s=d5f341f7b99ab31d939ac1f10f5ad06f" alt="Kiểm tra dịch vụ Immersive Translation hiển thị kết quả thành công" width="1916" height="934" data-path="images/integrations/810968_351548.png" />
    </Frame>
  </Step>
</Steps>

<Tip>
  Bạn cũng có thể tùy chỉnh model ID trên trang cài đặt bằng cách nhập model ID mà bạn muốn sử dụng.
</Tip>

<script type="application/ld+json">
  {`
    {
    "@context": "https://schema.org",
    "@graph": [
      {
        "@type": "HowTo",
        "@id": "https://apidoc.cometapi.com/integrations/immersive-translation#howto",
        "name": "Sử dụng Immersive Translation với CometAPI",
        "description": "Sử dụng hướng dẫn này để cấu hình Immersive Translation với CometAPI bằng cách thiết lập URL cơ sở, 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/immersive-translation#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/immersive-translation#step-2",
            "position": 2,
            "name": "Thêm CometAPI làm dịch vụ tương thích OpenAI",
            "text": "Hoàn thành bước Thêm CometAPI làm dịch vụ tương thích OpenAI trong hướng dẫn Sử dụng Immersive Translation với CometAPI."
          },
          {
            "@type": "HowToStep",
            "@id": "https://apidoc.cometapi.com/integrations/immersive-translation#step-3",
            "position": 3,
            "name": "Kiểm tra dịch vụ",
            "text": "Hoàn thành bước Kiểm tra dịch vụ trong hướng dẫn Sử dụng Immersive Translation 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 Immersive Translation với CometAPI",
            "item": "https://apidoc.cometapi.com/integrations/immersive-translation"
          }
        ]
      }
    ]
    }
    `}
</script>
