/chatgpt-api

Node.js client for the unofficial ChatGPT API.

Primary LanguageTypeScriptMIT LicenseMIT

ChatGPT API

  1. Open chat.openai.com and get your cookie __Secure-next-auth.session-token
  2. Drop the cookie in .env file – starts with ey
  3. yarn add chatgpt
  4. npx tsx src/terminal.ts

Credit