Project Introduction#
Important: No API key required
The feature of this project is the use of G4F API's WebUI.
Through a user-friendly interface, enhanced jailbreak functionality, and a completely free experience of ChatGPT's powerful features.
FreeGPT is a project that utilizes various free AI conversation API providers. Each provider is an API that provides responses generated by different AI models. The source code associated with these services can be found in the G4F folder.
It is worth noting that due to the wide scope of this project, the free services registered here may receive a large number of requests, which may result in temporary unavailability or access restrictions. Therefore, it is common to encounter situations where these services are offline or unstable. We recommend that you search for your own provider and add it to your personal project to avoid instability and unavailability of services. In the Providers folder within the project, you will find several past or current provider examples. It is easy to follow the logic of these examples to find free GPT services and merge requests into your specific FreeGPT project.
Please note that the selection and integration of other providers is the responsibility of the user and is not directly related to the FreeGPT project, as this project serves as an example of how to combine the G4F API with a web interface.
Method 1#
To start using this project, you need to clone the repository and install Python on your system.
Run the following command to clone the repository:
git clone https://github.com/ramonvc/freegpt-webui.git
Navigate to the project directory:
cd freegpt-webui
Install dependencies:
pip install -r requirements.txt
Run the application:
To run the application, run the following command:
python run.py
Access the application in your browser using the following URL:
http://127.0.0.1:1338
Method 2#
Run with Docker
Pull the Docker image from Docker Hub:
docker pull ramonvc/freegpt-webui
Run the application with Docker:
docker run -p 1338:1338 ramonvc/freegpt-webui
Access the application in your browser using the following URL:
http://127.0.0.1:1338
Automatic Proxy
This application includes an automatic proxy feature, allowing it to be used with multiple free proxy servers. freeGPT API rejects certain connections, especially when hosted in the cloud (Azure, AWS, Google Cloud). The automatic proxy will automatically solve this problem for you. Once enabled, the application will automatically retrieve and test proxy servers, updating the working proxy list every 30 minutes.
To enable it, simply go to the config.json file and change the value of "use_auto_proxy" to true.
"use_auto_proxy": true
It is best to personally verify and use your own magic internet access, otherwise it may be frustrating if it gets slow...