This was built by watching the excellent video tutorial by Brad Traversy at Traversy Media
This is a simple image generator built with Node.js and Express that uses OpenAI's Dall-E models to generate images.
Generate an API KEY at OpenAI and add it to the .env
file with the key "OPENAI_API_KEY"
Install the dependencies
npm install
Run server
npm start
Visit http://localhost:5555
in your browser.
The endpoint is at POST http://localhost:5555/openai/generateimage
.