Replit Template for the unofficial ChatGPT API.
Get ChatGPT-API working with just one click in your Replit account. Feel free to copy this Template and start using it!
This is a bash REPL with Node v18 that demonstrates (unofficial) ChatGPT-API running in a Headful Puppeteer (Chromium) on Replit.
Please consider that this is not the official OpenAI ChatGPT API.
Google and Microsoft accounts doesn't require solving a Captcha when logging in. If you decide for the OpenAI e-mail account, you'll need to solve the captcha either manually (through the Replit Output) or using a third-party service that can solve it for you.
- Fork the Replit Template to your account
- Create two Replit Secrets (Tools > Secrets): one for your EMAIL and one for your PASSWORD. This is important to keep your account info private.
- Set the account type by changing "isLogin" variables inside the 'index.js' file
./js/index.js
:
- For OpenAI Account, both values have to be false:
const isGoogleLogin = false;
const isMicrosoftLogin = false;
- For Google Account, set Google to true and Microsoft to false:
const isGoogleLogin = true;
const isMicrosoftLogin = false;
- For Microsoft Account, set Google to false and Microsoft to true:
const isGoogleLogin = false;
const isMicrosoftLogin = true;
-
You're all set! Press 'Run' to say "Hello World" to your ChatGPT instance
-
Edit the index.js to use the ChatGPT-API according to your needs
If you like it, considering following me for future updates and works:
- Travis Fischer for the ChatGPT-API (Unofficial NodeJS API)
- Vikash Loomba for the (Headful) Puppeteer on Replit
- shêr from the ChatGPT Hacking Discord for suggesting a better implementation of the login handler on the index.js code