> ## 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 LibreChat dengan CometAPI

> Gunakan panduan ini untuk mengonfigurasi LibreChat dengan CometAPI dengan menetapkan base URL, API key, dan opsi model atau provider.

[LibreChat](https://www.librechat.ai/) adalah UI chat open-source yang mendukung banyak provider AI. Hubungkan ke CometAPI dengan mengonfigurasinya sebagai endpoint yang kompatibel dengan OpenAI.

## Prasyarat

* LibreChat — [cloud](https://librechat-librechat.hf.space/), [self-hosted](https://github.com/danny-avila/LibreChat), atau lokal
* 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 dan base URL Anda (`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="Dashboard 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 dan base URL CometAPI" width="2434" height="1232" data-path="images/overview/810968_364193.png" />
    </Frame>
  </Step>

  <Step title="Konfigurasikan endpoint OpenAI">
    Di LibreChat, buka **Settings** → **OpenAI**. Masukkan `https://api.cometapi.com` pada kolom **URL**, tempelkan key Anda ke **API Key**, lalu klik **Save**.

    <Frame>
      <img src="https://mintcdn.com/cometapi/mA1ovj6s0e3RM42l/images/integrations/810968_351621.png?fit=max&auto=format&n=mA1ovj6s0e3RM42l&q=85&s=5d45cd43d93da40b2a2e0242aae24b04" alt="Pengaturan LibreChat — kolom URL dan key OpenAI" width="1024" height="496" data-path="images/integrations/810968_351621.png" />
    </Frame>

    <Frame>
      <img src="https://mintcdn.com/cometapi/mA1ovj6s0e3RM42l/images/integrations/810968_351622.png?fit=max&auto=format&n=mA1ovj6s0e3RM42l&q=85&s=618a09316772d953db084f36234fd8d5" alt="Antarmuka chat LibreChat setelah CometAPI dikonfigurasi" width="1265" height="607" data-path="images/integrations/810968_351622.png" />
    </Frame>
  </Step>

  <Step title="Uji koneksi">
    Mulai percakapan di LibreChat. Balasan yang berhasil mengonfirmasi integrasi berfungsi.
  </Step>
</Steps>

<script type="application/ld+json">
  {`
    {
    "@context": "https://schema.org",
    "@graph": [
      {
        "@type": "HowTo",
        "@id": "https://apidoc.cometapi.com/integrations/librechat#howto",
        "name": "Gunakan LibreChat dengan CometAPI",
        "description": "Gunakan panduan ini untuk mengonfigurasi LibreChat dengan CometAPI dengan menetapkan base URL, API key, dan opsi model atau provider.",
        "step": [
          {
            "@type": "HowToStep",
            "@id": "https://apidoc.cometapi.com/integrations/librechat#step-1",
            "position": 1,
            "name": "Dapatkan API key CometAPI Anda",
            "text": "Buat atau buka akun CometAPI Anda, lalu salin API key yang aktif dari dashboard."
          },
          {
            "@type": "HowToStep",
            "@id": "https://apidoc.cometapi.com/integrations/librechat#step-2",
            "position": 2,
            "name": "Konfigurasikan endpoint OpenAI",
            "text": "Selesaikan langkah Konfigurasikan endpoint OpenAI dalam panduan Gunakan LibreChat dengan CometAPI."
          },
          {
            "@type": "HowToStep",
            "@id": "https://apidoc.cometapi.com/integrations/librechat#step-3",
            "position": 3,
            "name": "Uji koneksi",
            "text": "Pilih model ID saat ini dari halaman CometAPI Models, lalu kirim permintaan pengujian dari integrasi."
          }
        ]
      },
      {
        "@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 LibreChat dengan CometAPI",
            "item": "https://apidoc.cometapi.com/integrations/librechat"
          }
        ]
      }
    ]
    }
    `}
</script>
