> ## 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 GPT Academic với CometAPI

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

[gpt\_academic](https://github.com/binary-husky/gpt_academic) là một công cụ mã nguồn mở giúp cải thiện việc viết học thuật và review code bằng các mô hình ngôn ngữ lớn. Kết nối nó với CometAPI để sử dụng GPT, Claude và các model khác trong quy trình nghiên cứu của bạn.

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

* Đã cài đặt và chạy [gpt\_academic](https://github.com/binary-husky/gpt_academic)
* 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 CometAPI API key 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 base URL 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="CometAPI API key và base URL" width="2434" height="1232" data-path="images/overview/810968_364193.png" />
    </Frame>
  </Step>

  <Step title="Chỉnh sửa config.py">
    Mở `gpt_academic/config.py`. Đặt API endpoint thành `https://api.cometapi.com/v1/chat/completions` và dán CometAPI key của bạn làm giá trị API key.

    <Frame>
      <img src="https://mintcdn.com/cometapi/mA1ovj6s0e3RM42l/images/integrations/810968_351626.png?fit=max&auto=format&n=mA1ovj6s0e3RM42l&q=85&s=0d0043385016ec8ad0260eac8842dec4" alt="gpt_academic config.py — các trường API URL và key" width="1601" height="170" data-path="images/integrations/810968_351626.png" />
    </Frame>
  </Step>

  <Step title="Khởi động lại và kiểm tra">
    Khởi động lại gpt\_academic và thử một tác vụ đơn giản. Phản hồi thành công xác nhận rằng CometAPI đã được kết nối.
  </Step>
</Steps>

<script type="application/ld+json">
  {`
    {
    "@context": "https://schema.org",
    "@graph": [
      {
        "@type": "HowTo",
        "@id": "https://apidoc.cometapi.com/integrations/gpt-academic-optimization#howto",
        "name": "Sử dụng GPT Academic với CometAPI",
        "description": "Sử dụng hướng dẫn này để cấu hình GPT Academic 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.",
        "step": [
          {
            "@type": "HowToStep",
            "@id": "https://apidoc.cometapi.com/integrations/gpt-academic-optimization#step-1",
            "position": 1,
            "name": "Lấy CometAPI API key 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/gpt-academic-optimization#step-2",
            "position": 2,
            "name": "Chỉnh sửa config.py",
            "text": "Hoàn thành bước Chỉnh sửa config.py trong hướng dẫn Sử dụng GPT Academic với CometAPI."
          },
          {
            "@type": "HowToStep",
            "@id": "https://apidoc.cometapi.com/integrations/gpt-academic-optimization#step-3",
            "position": 3,
            "name": "Khởi động lại và kiểm tra",
            "text": "Hoàn thành bước Khởi động lại và kiểm tra trong hướng dẫn Sử dụng GPT Academic 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 GPT Academic với CometAPI",
            "item": "https://apidoc.cometapi.com/integrations/gpt-academic-optimization"
          }
        ]
      }
    ]
    }
    `}
</script>
