This is a simple image generator built with Node.js and Express that uses OpenAI's Dall-E models to generate images.
In order to run the app you have to Generate an API KEY at OpenAI and add it to the .env
file.
then,
Install the dependencies
npm install
To start the server run the following command in your terminal
npm start
Visit http://localhost:3000
in your browser.
The endpoint is at POST http://localhost:3000/openai/generateimage
.