- Clone this repo
- Add your OpenAI API key to .env file (sign up at https://beta.openai.com for account / key)
- Install node_modules by running
npm installoryarn installin terminal - In
pages/api/openai.jsyou construct your request to OpenAI API - In
pages/index.jsyou tweak your UI/UX - start the dev server with
yarn devornpm run devcommand
For more stuff like this checkout lablab.ai
If you don't have a setup on your computer that allow to run code locally, then use https://replit.com/
For more on Artificial Intelligence, checkout this links