About ChatGPT API (unofficial)

The ChatGPT API (unofficial) is a Node.js client that provides a convenient interface to interact with the official ChatGPT API. Developed by transitive-bullshit, this package is a wrapper around ChatGPT by OpenAI and includes TypeScript support.

Here are four key features of this API

  1. Support for GPT-4: As of April 10, 2023, the package fully supports GPT-4, the latest version of the Generative Pretrained Transformer model by OpenAI.
  2. Two Methods of Access: The API provides two methods for accessing the ChatGPT API – the official ChatGPT API and the unofficial proxy API. The official API is more robust and recommended, but it’s not free. The unofficial proxy API is free but relies on a third-party server and is rate-limited.
  3. Command Line Interface (CLI): The package includes a CLI that allows users to interact with the API directly from the command line. This feature requires an OpenAI API key.
  4. Customizable and Robust: The API allows users to override the default model and any OpenAI chat completion parameters to fully customize the assistant. It also supports streaming via the onProgress handler and can add a timeout using the timeoutMs option.