Transform any photo into a professional headshot in seconds with AI-powered enhancement. Perfect for LinkedIn profiles, resumes, and professional portfolios.
- 🤖 AI-Powered Enhancement - Advanced AI technology for professional results
- 🗑️ Background Remover - Automatically removes and replaces backgrounds
- 👁️ Smart Blur - Professional depth-of-field effects
- 💖 Quality Enhancer - Improves image resolution and clarity
- ⭐ Beautification - Subtle retouching for a polished look
- 🎨 9 Unique Styles - Multiple professional suit styles and colors
- ⚡ Instant Results - Generate headshots in seconds
- 📱 Responsive Design - Works perfectly on all devices
- Frontend: React 19, TypeScript, Tailwind CSS
- AI Model: Gemini API, using Gemini 2.5 Flash Image Preview (aka Nano Banana) (
gemini-2.5-flash-image-preview) - Image Processing: React Image Crop
- File Handling: JSZip for batch downloads
- Deployment: Vercel
Prerequisites: Node.js 18+
-
Clone the repository:
git clone https://github.com/your-username/ai-professional-headshot-generator.git cd ai-professional-headshot-generator -
Install dependencies:
npm install
-
Set up environment variables:
cp .env.example .env
Add your Gemini API key to
.env:GEMINI_API_KEY=your_gemini_api_key_here -
Run the development server:
npm run dev
-
Open your browser: Navigate to
http://localhost:5173
-
Push to GitHub:
git add . git commit -m "Initial commit" git push origin main
-
Deploy on Vercel:
- Connect your GitHub repository to Vercel
- Add
GEMINI_API_KEYenvironment variable in Vercel dashboard - Deploy automatically
- Upload Photo - Drag & drop or select your image (PNG, JPG, WEBP)
- Crop & Adjust - Use the built-in cropper for perfect framing
- AI Processing - Powered by Gemini API's
gemini-2.5-flash-image-previewmodel (aka Nano Bana - Generate - AI creates 9 professional headshot variations with different suit styles
- Download - Save individual images or download all as ZIP
The AI generates headshots in various professional styles:
- Classic Styles: Navy blue, black, light gray suits
- Modern Styles: Charcoal gray, brown, dark green suits
- Minimalist Styles: Burgundy, beige, deep charcoal suits
GEMINI_API_KEY- Your Google Gemini API key (required)
- PNG (recommended)
- JPEG/JPG
- WEBP
This project is licensed under the MIT License.
© 2025 HeadshotAI Professional Generator. Made with ♥ for professional success.