About
What is node-chatgpt-api?
node-chatgpt-api offers a versatile client implementation for interacting with ChatGPT and Bing AI, available as a Node.js module, a REST API server, and a CLI application. It supports the official ChatGPT model (gpt-3.5-turbo) via the OpenAI API, replicating chat threads with conversation and message IDs, and offering persistent conversations through Keyv. Users can configure prompt prefixes and custom names for the user and ChatGPT, allowing for personalized chatbot personalities. The tool also includes support for Bing's GPT-4 version of ChatGPT with an experimental BingAIClient, which features a built-in jailbreak mode for unlimited chat messages. Additionally, it provides a ChatGPTBrowserClient for the official ChatGPT website, utilizing a reverse proxy for Cloudflare bypass.
Best used for
Ideal for developers who need to integrate ChatGPT or Bing AI into their Node.js applications, create custom chatbot interfaces, and automate conversational AI tasks. Especially valuable for those looking for flexible deployment options (module, API server, CLI) and persistent conversation management.
Common actions
github copilotface swappinglow-code/no-codeopen-sourceworkflowsdeepfakeautomated workflow"AI Agents"collaboration
Capabilities
Key features
- ChatGPT client
- Bing AI client
- REST API server
- CLI app
- Persistent conversations
- Configurable chatbot personality
- Bing AI jailbreak
Integrations
Not yet documentedPricing & Plans
Open Source ยท Usage-based
FAQs
What models does node-chatgpt-api support?
The tool primarily supports the official ChatGPT model (gpt-3.5-turbo) via the OpenAI API, and also includes experimental support for Bing's GPT-4 version of ChatGPT through its BingAIClient. It also retains support for models like text-davinci-003.
Can I use this tool to automate interactions with the official ChatGPT website?
Yes, the ChatGPTBrowserClient allows interaction with the official ChatGPT website using a reverse proxy for Cloudflare bypass. However, there is a risk of your account being banned if you automate chat.openai.com, so proceed at your own risk.
How does node-chatgpt-api handle conversation persistence?
The tool replicates chat threads with conversation IDs and message IDs, offering persistent conversations using Keyv. Conversations are stored in memory by default, but you can optionally install a storage adapter, such as keyv-file, to persist conversations to a database or JSON file.