Skip to content

UddamB/ai-image-generator

Repository files navigation

AI Image Generator

monki

Description

Turn imagination into art. The AI image generator brings imagination to life, producing stunning art, illustrations, and images in seconds. Unleash creativity and express yourself in new ways with the power of AI. Simply enter a few words, and watch AI transform text into incredible art.

Uses the OpenAI API to generate an image based on user prompts; fetches data from the API (DALL-E 3 model) and changes the default image URL to a new image URL provided.

(P.S. I've always wondered how AI creates such fascinating images...)

Tech Stack

Front-End: React.js, HTML, CSS

Back-End: Node.js

API: OpenAI API

Features

  • Infinite prompts and images
  • Creates images in seconds!

Demo

AI.Image.Generator.-.Google.Chrome.2023-08-24.01-25-05.online-video-cutter.com.1.mp4

API Reference

The OpenAI API is used for referencing the API key which is stored in the environment variable REACT_APP_API_KEY.

Installation

This project was bootstrapped with Create React App.

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.

The page will reload when you make changes.
You may also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

About

Turn imagination into art using the OpenAI API

Resources

License

Code of conduct

Stars

Watchers

Forks