This project was built to play a little bit with OpenAI API capabilities.
- Clone Project.
- Install packages by running
npm install - Generate and copy API key from OpenAI
- API key can be consumed by
.envor byLocalStorage, forLocalStoragemethod, jump to section 9 - Create new file and name it
.env - Copy the API key from section 3 and paste it into
.envfile as follow:OPENAI_API_KEY="<PASTE_YOUR_API_KEY>" - Run the project -
npm run dev - Open browser http://localhost:3000
- If you didn't use the
.envmethod, click onInsert OpenAI keyon the landing page, paste the API key from section 3, and click save - Enjoy
The project should be served on port 3000, in case that port is not available, Next.js will increment port number until available.
Running on http://localhost:3000/completion
Running on http://localhost:3000/image-creation
Running on http://localhost:3000/image-variation
Question: Why I'm getting the error message - You exceeded your current quota, please check your plan and billing details.
Answer: Link for explanation.



