Skip to content

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.

License

Notifications You must be signed in to change notification settings

sauravhathi/image-generator-using-openai-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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