Skip to main content
gpt_academic is an open-source tool that enhances academic writing and code review using large language models. Connect it to CometAPI to use GPT, Claude, and other models in your research workflows.

Prerequisites

Setup

1

Get your CometAPI API key

Log in to the CometAPI dashboard. Click Add API Key and copy your key and base URL (https://api.cometapi.com).
CometAPI dashboard — Add API Key
CometAPI API key and base URL
2

Edit config.py

Open gpt_academic/config.py. Set the API endpoint to https://api.cometapi.com/v1/chat/completions and paste your CometAPI key as the API key value.
gpt_academic config.py — API URL and key fields
3

Restart and test

Restart gpt_academic and try a simple task. A successful response confirms CometAPI is connected.