A minimalistic Python API for OpenAI's official ChatGPT and Bing's Chatbot
This repository has been archived on 2025-09-28. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
Find a file
2023-03-13 10:59:49 +01:00
chatgpt_pyapi Strip trailing and leading newlines from Bing Chatbot answers 2023-03-13 10:59:49 +01:00
.gitignore Initial commit 2023-03-09 14:07:46 +01:00
cli.py Added cli and moved official API to chatgpt_pyapi.openai 2023-03-13 08:09:32 +01:00
example.py Added Bing's Chatbot, extended API and example, updated README 2023-03-13 10:44:01 +01:00
LICENSE Updated License 2023-03-09 16:56:02 +01:00
README.md Updated README 2023-03-13 10:46:55 +01:00

ChatGPT-PyAPI

A minimalistic Python API for OpenAI's ChatGPT and Bing's Chatbot

Supported APIs

  • Official ChatGPT API by OpenAI
  • Unofficial API for Bing Chatbot (required EdgeGPT to be installed)

Official ChatGPT API by OpenAI

You need an API key for the official ChatGPT API.

Unofficial API for Bing Chatbot

This requires your Cookies to be exported to a json file. See EdgeGPT's README for more infos.