Skip to content

damarudhvarma/AI_Image_Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

AI Image Generator Project

In this AI Image Generator project, I have utilized the Hugging Face API based on the StableDiffusion model along with Aceternity UI. The user-provided prompt is processed to generate an image.

Tools & Technologies Used

  • Build Tool: Vite
  • API: Hugging Face API
  • Server: Express
  • UI: Aceternity UI

Project Setup

Clone the Repository

git clone <repository-url>

Frontend Setup :

cd <repository-directory>

create .env at root of the folder

VITE_HOST= your server URL 

Starting Frontend :

npm i
npm run dev

Backend Setup :

Get API KEY:

Navigate to Server:

cd server

Create a "public" folder at the root of server

After obtaining your API key, add it to the .env file located in the server directory:

API_KEY=your_api_key_here
FRONTEND_URL=""

Starting Backend :

npm install
npx nodemon index.js

Demo video

Demo Video Here

Hosted LInk

Here.

Acknowledgements