Unofficial ChatGPT API for development purposes
Top 49.8% on sourcepulse
This repository provides an unofficial API for interacting with ChatGPT, built for development purposes. It allows developers to integrate ChatGPT's capabilities into their applications without relying on official, potentially rate-limited or paid, APIs.
How It Works
The API leverages Playwright and Chromium to automate browser interactions. It opens a Chromium instance, navigates to the ChatGPT web interface, parses the HTML to extract responses, and exposes this functionality through a simple HTTP endpoint. This approach bypasses direct API calls by simulating user interaction.
Quick Start & Requirements
pip install -r requirements.txt
playwright install
python server.py
Highlighted Details
/chat
for queries.Maintenance & Community
The project is a personal undertaking with updates noted as of December 2022. There are no explicit links to community channels or roadmaps provided.
Licensing & Compatibility
The repository does not explicitly state a license. Given its unofficial nature and reliance on another project, compatibility with commercial or closed-source applications is not guaranteed and may be subject to the terms of service of the underlying ChatGPT web interface.
Limitations & Caveats
This is an unofficial project and is not affiliated with OpenAI. The reliance on browser automation and HTML parsing makes it potentially fragile to changes in the ChatGPT web interface, which could break the API without notice.
2 years ago
1 day