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.
- type a short description of the image or a keyword
- click on the generate button and wait 3-5 seconds for the images to load
- you will get 3 images generated by the API
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