sauravhathi / 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.

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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.

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

License:MIT License


Languages

Language:HTML 92.5%Language:CSS 7.5%