This is an image generation tool that allows users to preview the top five generated images. Users can also download the images. The tool is built using DeepSeek Janus Pro 7B, along with Vite, React, and Tailwind CSS
- Generate multiple images from text descriptions
- Preview top 5 generated images in a responsive grid
- Download generated images in WebP format
- Customize generation parameters:
- Seed value for reproducibility
- Guidance scale (CFG Weight) for creativity control
- Temperature settings for variation control
- Responsive design for all devices
- Modern, intuitive user interface
- Real-time loading states and error handling
- DeepSeek Janus Pro 7B - AI Model
- Vite - Build tool and development server
- React - UI Framework
- Tailwind CSS - Styling
- Lucide React - Icons
- @gradio/client - AI Model Integration
Before you begin, ensure you have the following installed:
- Node.js (v16 or higher)
- npm (comes with Node.js)
- Clone the repository:
git clone https://github.com/AJOYSR/AI-Image-generator.git
cd ai-image-generator- Install dependencies:
npm install- Create a hugging face token from hugging face from this link:
https://huggingface.co/settings/tokensPaste that into your .env file
- Start the development server:
npm run dev- Open your browser and visit:
http://localhost:5173
- Enter a descriptive prompt in the text area
- (Optional) Adjust generation parameters:
- Seed: Set a specific seed for reproducible results
- Guidance: Adjust how closely the generation follows your prompt
- Temperature: Control the randomness of the generation
- Click "Generate Images" and wait for the results
- Preview the generated images in the gallery
- Download any images you like using the download button
ai-image-generator/
├── src/
│ ├── App.tsx # Main application component
│ ├── main.tsx # Application entry point
│ └── assets/ # Static assets
├── public/ # Public assets
├── index.html # HTML template
├── package.json # Project dependencies and scripts
├── tailwind.config.js # Tailwind CSS configuration
├── tsconfig.json # TypeScript configuration
└── vite.config.ts # Vite configuration
└── .env # Env file for hf_token
To contribute to this project:
- Fork the repository
- Create a feature branch:
git checkout main- Make your changes
- Test thoroughly
- Submit a pull request
All rights reserved - AJOY SARKER © 2025
AJOY SARKER
- GitHub: AJOYSR
- LinkedIn: Ajoy Sarker
- Stack Overflow: Ajoy Sarker
- DeepSeek AI for providing the Janus Pro 7B model
- The Vite, React, and Tailwind CSS communities for their excellent tools and documentation
