https://medium.com/codingthesmartway-com-blog/how-to-use-openais-chatgpt-api-in-node-js-3f01c1f8d473
This is application is basically work like ChatGPT and give answer, we need to write our question in terminal and it will give answer in terminal for same.
npm init -y
npm install dotenv
npm install openai
npm install readline-sync
Generate your api Key and paste it in env file.