image-generator-using-openai-api icon indicating copy to clipboard operation
image-generator-using-openai-api copied to clipboard

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.

Image Generator using OpenAI API

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.

Demo

https://sauravhathi.github.io/image-generator-using-openai-api/

image

images generated by AI

image

image

image

How to use

  • 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

API Reference

OpenAI API

Note: Sign up for an API key and add it to the api.js file

Run Locally

Clone the project

  git clone https://github.com/sauravhathi/image-generator-using-openai-api

Go to the project directory

  1. 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

Authors

License

MIT