AI Image Generator + Editor: Text-to-Image & Image-to-Image in One Workflow
Transform ideas into stunning visuals or edit existing images with a single API call.
Powered by Google's Gemini 2.5 Flash (Nano), this n8n workflow handles both text-only prompts AND image editing requests - automatically routing to the right process based on what your users submit.
What This Does:
✅ Dual-Mode Processing: Automatically detects if user uploaded an image or sent text-only
✅ Text-to-Image Generation: Create images from scratch using natural language prompts
✅ Image-to-Image Editing: Upload a reference image and describe changes in plain English
✅ Google Drive Integration: Automatically uploads results with shareable links
✅ Professional Email Delivery: Sends beautifully designed emails with download links
✅ 7-Day Link Expiration Warning: Keeps users informed about download deadlines
✅ Built-in Social Sharing: Pre-formatted share buttons for viral growth
✅ Referral System Ready: Email template includes referral reward messaging
Perfect For:
- SaaS founders building AI image tools
- Agencies offering AI editing services
- Content creators needing automated image workflows
- Marketers running image generation campaigns
- Developers building image APIs for clients
Technical Features:
Smart Routing Logic:
- Conditional branching detects uploaded images
- Routes to appropriate AI model based on input type
- Single webhook endpoint handles both use cases
Complete File Handling:
- Extracts base64 from uploaded images
- Converts AI responses to proper image files
- Uploads to organized Google Drive folders
- Generates public shareable links
Professional Email System:
- Responsive HTML design works on all devices
- Gradient styling and modern UI
- Social proof elements built-in
- Clear CTAs for conversions
What You Get:
- Complete n8n workflow (import and go)
- Pre-built email template (customizable HTML)
- Webhook API endpoint configuration
- Google Drive folder structure
- Setup documentation
- Example use cases
Requirements:
- OpenRouter API key (Gemini 2.5 Flash access)
- Google Drive API credentials
- Email sending capability (SMTP or n8n email node)
- n8n instance (cloud or self-hosted)
Stop building from scratch. Launch your AI image service today.