API proxy for converting web ChatGPT to OpenAI API format
Top 15.9% on sourcepulse
This project provides a service to convert ChatGPT web access into an OpenAI-compatible API format, targeting developers and users who need to integrate ChatGPT capabilities into their applications without direct API keys. It offers free access to GPT-3.5 and supports various paid models like GPT-4, GPT-4o, and GPTs, mimicking the official API response structure for broad client compatibility.
How It Works
The core of the project is a reverse-engineered API that intercepts and processes requests to ChatGPT's web interface. It supports both streaming and non-streaming responses, and can handle various models by parsing the model
parameter in requests. For paid models, it utilizes AccessToken
or RefreshToken
for authentication, with features for managing multiple accounts, token refreshing, and load balancing.
Quick Start & Requirements
pip install -r requirements.txt
then python app.py
AccessToken
/RefreshToken
and configuring proxies or environment variables may add time.Highlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
The project relies on reverse-engineering ChatGPT's web interface, making it susceptible to changes by OpenAI that could break functionality. Some IPs may not support the free GPT-3.5 access, and certain models might have regional availability or IP-based restrictions.
2 months ago
1 day