> ## Documentation Index
> Fetch the complete documentation index at: https://docs.aihubmix.com/llms.txt
> Use this file to discover all available pages before exploring further.

# GPT-Academic

1. Open the gpt\_academic/config.py file:\\
   <img src="https://mintcdn.com/aihubmix/_Cbum_77AgsRh-CI/public/cn/image16.png?fit=max&auto=format&n=_Cbum_77AgsRh-CI&q=85&s=461ecf466b641c1c2acd03a52e9b2401" alt="Image" width="847" height="341" data-path="public/cn/image16.png" />
2. Locate the API\_KEY variable in config.py and enter [the Key from this site](https://aihubmix.com/token):\\
   <img src="https://mintcdn.com/aihubmix/_Cbum_77AgsRh-CI/public/cn/image17.png?fit=max&auto=format&n=_Cbum_77AgsRh-CI&q=85&s=bf2557779c2388032d503f475fdb8e59" alt="Image" width="856" height="232" data-path="public/cn/image17.png" />
3. Scroll down to find the API\_URL\_REDIRECT variable in config.py. Modify it by copying the following code block directly:

```
API_URL_REDIRECT = {"https://api.openai.com/v1/chat/completions": "https://aihubmix.com/v1/chat/completions"}
```

<img src="https://mintcdn.com/aihubmix/_Cbum_77AgsRh-CI/public/cn/image18.png?fit=max&auto=format&n=_Cbum_77AgsRh-CI&q=85&s=65fc3d203180ae516ecd27052222a12c" alt="Image" width="1304" height="194" data-path="public/cn/image18.png" />

4\. Then you can use it\\

<img src="https://mintcdn.com/aihubmix/_Cbum_77AgsRh-CI/public/cn/image19.png?fit=max&auto=format&n=_Cbum_77AgsRh-CI&q=85&s=b5cfcc3e264032b5bdb7f0b265120c95" alt="Image" width="1246" height="498" data-path="public/cn/image19.png" />

***

Last updated: 2026-06-01
