AI Image Generator is a full-stack web application that allows users to create custom images using AI technology. The application leverages black-forest-labs/flux-schnell's powerful image generation capabilities to transform text prompts into unique visual creations.
- Text-to-Image Generation: Convert your ideas into images with AI
- Community Showcase: Browse images created by other users
- Search Functionality: Find images by keywords or prompts
- Download Options: Save your favorite generated images
- Responsive Design: Seamless experience on desktop and mobile devices
- React.js + Vite
- Tailwind CSS
- React Router
- File-saver
- Node.js
- Express.js
- MongoDB
- Mongoose
- black-forest-labs/flux-schnell with OpenAI SDK by Nebius AI Studio API
- Cloudinary (for image storage)
- Node.js (v14.0.0 or later)
- MongoDB
- black-forest-labs/flux-schnell Nebius AI Studio API Key
-
Clone the repository:
git clone https://github.com/codexharoon/ai_image_gen.git cd ai_image_gen -
Install backend dependencies:
cd server npm install -
Install frontend dependencies:
cd ../client npm install -
Create a
.envfile in the root directory and add your credentials:MONGODB_URL=your_mongodb_connection_string FLUXSCHNELL_API_KEY=your_fluxschnell_api_key CLOUDINARY_CLOUD_NAME=your_cloudinary_cloud_name CLOUDINARY_API_KEY=your_cloudinary_api_key CLOUDINARY_API_SECRET=your_cloudinary_api_secret
-
Run the development servers:
# Start the backend server cd server npm run dev # Start the frontend server cd ../client npm run dev
-
Access the application at http://localhost:5173
- Enter a descriptive text prompt in the input field
- Click "Generate" to create an AI-generated image
- Browse the community showcase to see other users' creations
- Download images you like by clicking the download button
Contributions are welcome! Feel free to open issues or submit pull requests.
- Fork the repository
- Create your feature branch:
git checkout -b feature/amazing-feature
- Commit your changes:
git commit -m 'Add some amazing feature' - Push to the branch:
git push origin feature/amazing-feature
- Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Software Engineer: Code x Haroon
- Email: info@codexharoon.com
- GitHub: codexharoon
- Project Link: https://github.com/codexharoon/ai_image_gen.git
- black-forest-labs/flux-schnell for the AI image generation API
- MongoDB for the database solution
- Tailwind CSS for the styling framework
- All contributors and supporters of this project