This is a simple image generator using OpenAI API. you can generate images by entering short description of the image or by entering a keyword.
- Enter your OpenAI API key
- Enter a short description of the image or a keyword
- Select image size
- Select number of images
- Click on generate button
- Double click on the image to download it
Note:
Sign up for an API key and add it to the api.js
file
Clone the project
git clone https://github.com/sauravhathi/image-generator-using-openai-api
Go to the project directory
- Create api.js file in the root directory and add your API key
const api = "YOUR_API_KEY";
cd image-generator-openai
Open index.html
in your browser