OpenAI has introduced their latest image generation model in the API. I created a GUI to locally run the model to generate the images.
-
Install Node.js Make sure you have Node.js installed on your system.
-
Install Dependencies Run the following command to install all dependencies:
npm install
-
Configure Environment Variables
- Rename the file
.env.example
to.env
. - Open
.env
and set your OpenAI API key and other required variables.
- Rename the file
-
Start the Development Server Run:
npm run dev
-
Generate Images Use the application to generate images with the new gpt-image-1 model.
Note: You must have a valid OpenAI API key to use this project.