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

# Gunakan Plugin Translation IntelliJ dengan CometAPI

> Gunakan panduan ini untuk mengonfigurasi Plugin Translation IntelliJ dengan CometAPI dengan menetapkan base URL, API key, serta opsi model atau provider.

[IntelliJ Translation Plugin](https://plugins.jetbrains.com/plugin/8579-translation) menambahkan kemampuan terjemahan AI langsung ke dalam IDE JetBrains. Hubungkan ke CometAPI untuk menerjemahkan kode dan teks tanpa meninggalkan editor Anda.

## Prasyarat

* [IntelliJ IDEA](https://www.jetbrains.com/idea/) atau IDE JetBrains lainnya

* Plugin Translation terpasang — cari **Translation** di JetBrains Marketplace

  <Frame>
    <img src="https://mintcdn.com/cometapi/mA1ovj6s0e3RM42l/images/integrations/810968_352994.png?fit=max&auto=format&n=mA1ovj6s0e3RM42l&q=85&s=3ea7331394d52a903c9b550830689eef" alt="JetBrains Marketplace menampilkan plugin Translation" width="972" height="806" data-path="images/integrations/810968_352994.png" />
  </Frame>

* Akun [CometAPI](https://www.cometapi.com) dengan API key yang aktif

## Penyiapan

<Steps>
  <Step title="Dapatkan API key CometAPI Anda">
    Masuk ke [dashboard CometAPI](https://www.cometapi.com/console). Klik **Add API Key** lalu salin key Anda.

    <Frame>
      <img src="https://mintcdn.com/cometapi/E4FFvyMYmaOZoldp/images/integrations/810968_360264.png?fit=max&auto=format&n=E4FFvyMYmaOZoldp&q=85&s=686b18e5eda53581cd92f39b18683c01" alt="Dashboard CometAPI — bagian API key" width="1920" height="1005" data-path="images/integrations/810968_360264.png" />
    </Frame>

    <Frame>
      <img src="https://mintcdn.com/cometapi/E4FFvyMYmaOZoldp/images/integrations/810968_360265.png?fit=max&auto=format&n=E4FFvyMYmaOZoldp&q=85&s=4a5a528f1fbbeb3da7ace18066b73bd1" alt="Dialog Add API Key di konsol CometAPI" width="1914" height="999" data-path="images/integrations/810968_360265.png" />
    </Frame>

    <Frame>
      <img src="https://mintcdn.com/cometapi/E4FFvyMYmaOZoldp/images/integrations/810968_360266.png?fit=max&auto=format&n=E4FFvyMYmaOZoldp&q=85&s=8462dfff1cf0a880c44effc7dccbc131" alt="API key dan base URL CometAPI" width="1920" height="975" data-path="images/integrations/810968_360266.png" />
    </Frame>
  </Step>

  <Step title="Konfigurasikan engine terjemahan">
    Klik ikon Translation Plugin di toolbar IDE → **Settings** → **Translation**. Pilih **OpenAI Translation** sebagai engine. Di panel pengaturan sebelah kanan, masukkan `https://api.cometapi.com` pada kolom **API Endpoint** (kolom kedua secara default adalah `/v1/chat/completions`). Tempelkan key CometAPI Anda ke **API Key** lalu klik **Confirm**.

    <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="Dashboard CometAPI — tombol Add API Key dan daftar 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="Detail API key CometAPI" width="2434" height="1232" data-path="images/overview/810968_364193.png" />
    </Frame>
  </Step>

  <Step title="Uji integrasi">
    Klik **Test Service** di pengaturan plugin. Verifikasi yang berhasil mengonfirmasi bahwa penyiapan berfungsi.

    <Frame>
      <img src="https://mintcdn.com/cometapi/mA1ovj6s0e3RM42l/images/integrations/810968_352997.png?fit=max&auto=format&n=mA1ovj6s0e3RM42l&q=85&s=2acec03c1fcd4584cf8448d588cf5d68" alt="Pengujian IntelliJ Translation Plugin — hasil berhasil" width="1092" height="944" data-path="images/integrations/810968_352997.png" />
    </Frame>
  </Step>
</Steps>

<Tip>
  Untuk menambahkan model kustom, masukkan model ID saat ini di kolom konfigurasi model pada plugin.

  <Frame>
    <img src="https://mintcdn.com/cometapi/mA1ovj6s0e3RM42l/images/integrations/810968_352998.png?fit=max&auto=format&n=mA1ovj6s0e3RM42l&q=85&s=1138ce4ff04851f6db1ff996ea91f667" alt="Pengaturan model IntelliJ Translation Plugin yang menampilkan model kustom telah ditambahkan" width="1215" height="874" data-path="images/integrations/810968_352998.png" />
  </Frame>
</Tip>

<script type="application/ld+json">
  {`
    {
    "@context": "https://schema.org",
    "@graph": [
      {
        "@type": "HowTo",
        "@id": "https://apidoc.cometapi.com/integrations/intellij-translation-plugin#howto",
        "name": "Gunakan IntelliJ Translation Plugin dengan CometAPI",
        "description": "Gunakan panduan ini untuk mengonfigurasi IntelliJ Translation Plugin dengan CometAPI dengan menetapkan base URL, API key, serta opsi model atau provider.",
        "step": [
          {
            "@type": "HowToStep",
            "@id": "https://apidoc.cometapi.com/integrations/intellij-translation-plugin#step-1",
            "position": 1,
            "name": "Dapatkan API key CometAPI Anda",
            "text": "Buat atau buka akun CometAPI Anda, lalu salin API key aktif dari dashboard."
          },
          {
            "@type": "HowToStep",
            "@id": "https://apidoc.cometapi.com/integrations/intellij-translation-plugin#step-2",
            "position": 2,
            "name": "Konfigurasikan engine terjemahan",
            "text": "Selesaikan langkah Konfigurasikan engine terjemahan dalam panduan Gunakan IntelliJ Translation Plugin dengan CometAPI."
          },
          {
            "@type": "HowToStep",
            "@id": "https://apidoc.cometapi.com/integrations/intellij-translation-plugin#step-3",
            "position": 3,
            "name": "Uji integrasi",
            "text": "Selesaikan langkah Uji integrasi dalam panduan Gunakan IntelliJ Translation Plugin dengan CometAPI."
          }
        ]
      },
      {
        "@type": "BreadcrumbList",
        "itemListElement": [
          {
            "@type": "ListItem",
            "position": 1,
            "name": "Dokumentasi CometAPI",
            "item": "https://apidoc.cometapi.com/"
          },
          {
            "@type": "ListItem",
            "position": 2,
            "name": "Integrasi",
            "item": "https://apidoc.cometapi.com/integrations"
          },
          {
            "@type": "ListItem",
            "position": 3,
            "name": "Gunakan IntelliJ Translation Plugin dengan CometAPI",
            "item": "https://apidoc.cometapi.com/integrations/intellij-translation-plugin"
          }
        ]
      }
    ]
    }
    `}
</script>
