AI Image Studio App is a web application that allows users to generate and modify images using AI technology. The application uses the Gemini AI model from Google for image generation and modification.
- AI Image Generation: Generate completely new images based on text prompts
- AI Image Modification: Upload existing images and modify them using text prompts
- Cloud Storage: All generated and modified images are stored in Cloudinary
- Responsive Design: Works seamlessly across desktop and mobile devices
The project is structured into two main parts:
- Built with Angular 19
- Uses TailwindCSS for styling
- Communicates with the backend API for image processing
- Express.js server
- MongoDB database for storing image metadata
- Google Generative AI (Gemini) for image generation and modification
- Cloudinary for image storage
-
Frontend:
- Angular 19
- TailwindCSS
- RxJS
-
Backend:
- Node.js
- Express.js
- MongoDB/Mongoose
- Google Generative AI (@google/generative-ai)
- Cloudinary
- Multer for file handling
- Node.js (v14 or later)
- MongoDB instance
- Google Gemini API key
- Cloudinary account
-
Clone the repository
git clone https://github.com/yourusername/ai-image-studio.git cd ai-image-studio
-
Install frontend dependencies
npm install
-
Install backend dependencies
cd backend npm install
-
Set up environment variables:
-
Copy the
.example.env
to.env
in the backend directory -
Fill in your credentials:
MONGO_URI=your_mongodb_connection_string GEMINI_API_KEY=your_google_gemini_api_key CLOUDINARY_CLOUD_NAME=your_cloudinary_cloud_name CLOUDINARY_API_KEY=your_cloudinary_api_key CLOUDINARY_API_SECRET=your_cloudinary_api_secret PORT=5000
-
-
Start the backend server
cd backend npm run dev
-
Start the Angular frontend (in another terminal)
cd .. # Return to the project root npm start
-
Open your browser at
http://localhost:4200
POST /api/image/generate
: Generate an image from a text promptPOST /api/image/modify
: Modify an uploaded image using a text promptGET /api/image/all
: Get all previously generated and modified images
The application is deployed using Vercel:
- Frontend: https://ai-image-studio-app-app.vercel.app
- Backend: https://ai-image-studio-app-api.vercel.app
This project is licensed under the MIT License - see the LICENSE file for details.
Created by Manthan Ankolekar