Imaginify is a full-stack AI-powered application that allows users to:
- 🔮 Generate creative text prompts using AI
- 🎨 Generate images from text prompts using Stable Diffusion
- ✂️ Edit images by removing backgrounds
- 🪄 Future Scope: Inpainting (object removal/replacement), outpainting (extending images)
- Click Generate Text - Backend generates creative text.
- Click Generate Image - Backend uses Stable Diffusion to generate image from the text.
- Click Remove Background - Backend uses
rembgto remove background from generated image.
- Framework: Vue 3 + Vite
- Language: JavaScript
- Styling: Tailwind CSS
- Framework: FastAPI (Python)
- Environment: Conda (imaginify)
- Key Libraries:
rembgfor background removaldiffusersfor image generationtransformersfor text generationPILfor image handling
.
├── backend # FastAPI Backend
│ ├── main.py
│ ├── requirements.txt # To be created if needed
├── frontend # Vue 3 Frontend
│ ├── src
│ │ ├── App.vue
│ │ ├── components
│ │ │ ├── ImageEditor.vue
│ ├── main.js
├── README.md
- Activate Conda environment:
conda activate imaginify
- Install dependencies:
pip install -r requirements.txt
- Start FastAPI backend:
uvicorn main:app --reload
- Visit: http://localhost:8000/docs
- Navigate to
frontend/folder:cd frontend - Install dependencies:
npm install
- Start Vue frontend:
npm run dev
- Visit: http://localhost:5173
| Method | Endpoint | Description |
|---|---|---|
| GET | /generate-text |
Generates creative text prompt |
| GET | /generate-image |
Generates image from generated text prompt |
| POST | /remove-background |
Removes background from uploaded/generated image |
fastapi
uvicorn
pillow
rembg
transformers
diffusers
torch
accelerate
onnxruntime
- Add
Procfilewith:web: uvicorn main:app --host 0.0.0.0 --port $PORT - Deploy to Railway (root = backend folder).
- Build frontend:
npm run build
- Deploy
dist/to Railway Static Service or Vercel.
✅ Object Removal (Inpainting)
✅ Object Replacement (Prompt-based Editing)
✅ Outpainting (Extending Images Beyond Borders)
✅ Project Saving (Save edit history per user)