AI-powered image generation web application built with the MERN stack. Generate high-quality images from text prompts using AI, purchase credits securely through Razorpay, and manage your account with JWT authentication.
- π€ AI-powered image generation from text prompts
- π Secure user authentication with JWT
- π³ Razorpay payment gateway integration
- πͺ Credit-based image generation system
- π± Responsive UI for desktop and mobile
- βοΈ MongoDB Atlas database
- β‘ Fast React + Vite frontend
- π Protected backend APIs
- π― Clean and modern user interface
- React
- Vite
- Tailwind CSS
- React Router DOM
- Axios
- React Toastify
- Node.js
- Express.js
- MongoDB Atlas
- Mongoose
- JWT Authentication
- Bcrypt
- Razorpay
- ClipDrop API
Imagify
β
βββ client
β βββ public
β βββ src
β βββ .env.example
β βββ package.json
β
βββ server
β βββ config
β βββ controllers
β βββ middleware
β βββ models
β βββ routes
β βββ .env.example
β βββ package.json
β
βββ screenshots
β
βββ README.md
βββ .gitignore
git clone https://github.com/Theangryysoul/Imagify.git
cd Imagifycd client
npm installcd ../server
npm installCreate client/.env
VITE_BACKEND_URL=http://localhost:4000
VITE_RAZORPAY_KEY_ID=your_test_or_live_keyCreate server/.env
PORT=4000
MONGODB_URI=your_mongodb_connection_string
JWT_SECRET=your_jwt_secret
CLIPDROP_API=your_clipdrop_api_key
RAZORPAY_KEY_ID=your_razorpay_key
RAZORPAY_KEY_SECRET=your_razorpay_secret
CURRENCY=INRcd server
npm run servercd client
npm run devOpen:
http://localhost:5173
| Plan | Credits | Price |
|---|---|---|
| Basic | 100 | βΉ10 |
| Advanced | 500 | βΉ50 |
| Business | 5000 | βΉ250 |
- User selects a credit plan.
- Backend creates a Razorpay order.
- Razorpay Checkout opens.
- Payment is verified.
- Credits are added to the user's account.
- User can generate more AI images.
- User Registration
- User Login
- JWT-based Authorization
- Protected API Routes
- Secure Password Hashing with bcrypt
| Method | Endpoint | Description |
|---|---|---|
| POST | /api/user/register |
Register a new user |
| POST | /api/user/login |
Login |
| GET | /api/user/credit |
Get available credits |
| POST | /api/user/pay-razor |
Create Razorpay order |
| POST | /api/user/verify-razor |
Verify payment |
| Method | Endpoint | Description |
|---|---|---|
| POST | /api/image/generate-image |
Generate AI image |
This project includes:
client/.env.example
server/.env.example
Copy them before running:
cp client/.env.example client/.env
cp server/.env.example server/.envOn Windows, simply copy each file and rename it to .env.
- Google OAuth
- GitHub OAuth
- Image History
- Download History
- Prompt Templates
- Image Upscaling
- Image Variations
- User Profile
- Dark Mode
- Admin Dashboard
- Payment History
Contributions, suggestions, and bug reports are welcome.
- Fork the repository.
- Create a feature branch.
- Commit your changes.
- Open a Pull Request.
This project is licensed under the MIT License.
Vishal Verma
GitHub: https://github.com/Theangryysoul
If you found this project helpful, consider giving it a β on GitHub.





