Unofficial API in Python logo

Unofficial API in Python

Free

Reverse engineered ChatGPT API for Python. Extensible for chatbots.

FreeFree tier
Type
Open Source

About Unofficial API in Python

This open-source Python library provides a reverse-engineered API for OpenAI's ChatGPT, enabling developers to integrate ChatGPT into their own applications, chatbots, and command-line tools. It supports GPT-4, plugins, custom models, and conversation history. The package includes a command-line interface with multi-line input and a developer API for programmatic access. It uses a cloudflare bypass proxy to simplify usage. Note: the repository is archived (read-only) as of August 2023.

Key Features

Reverse-engineered ChatGPT API
Supports GPT-4 and other models
Plugin support
Cloudflare bypass proxy
Command-line interface with multi-line input
Developer API with streamed responses
Configurable conversation history and parent ID
Authentication via email/password or access token

Pros & Cons

Pros
  • Free and open source
  • Extensible for various chatbot applications
  • Supports GPT-4 and plugins
  • Streamed responses for real-time interaction
  • Multi-line command-line input
  • Configurable proxy for bypassing restrictions
Cons
  • Repository archived and no longer maintained (read-only)
  • Requires separate proxy for cloudflare bypass
  • Rate limited (proxy: 5 req/10 sec, OpenAI: 50 req/hr)
  • Not an official OpenAI API, may break with updates
  • Limited documentation

Best For

Building chatbotsAutomating conversations with ChatGPTIntegrating ChatGPT into custom applicationsCommand-line ChatGPT interactionTesting and experimentation with GPT-4

FAQ

How do I install the package?
Install via pip: python -m pip install --upgrade revChatGPT
What Python version is required?
Minimum Python 3.9, recommended Python 3.11+.
Does it support GPT-4?
Yes, set the model to 'gpt-4' in the configuration. Plus accounts may need a PUID.
How do I authenticate?
You can authenticate using email/password or an access token from ChatGPT's session.
Is this project still maintained?
The repository was archived on August 10, 2023, and is now read-only. It is no longer actively maintained.