Professional-grade image generation and editing for TypingMind using Google Gemini 2.5 Flash Image
- Generate Mode - Create stunning images from text prompts
- Edit Mode - Transform uploaded images with AI-powered editing
- Tool Chaining - Edit previously generated images seamlessly
- 9 Preset Modes - Professional Photography, Promotional Products, Corporate Branding, Social Media Content, and more
- Industry Optimization - 10 industry-specific enhancements (Automotive, Healthcare, Technology, Finance, etc.)
- Brand Compliance - 6 brand style modes (Strict Corporate, Luxury Premium, Startup Modern, etc.)
- Style Preferences - 7 visual styles (Photorealistic, Anime/Manga, Oil Painting, Watercolor, etc.)
- 3 Quality Presets - Maximum Consistency, Balanced (default), Creative Exploration
- Custom Parameters - Manual control over temperature, topP, topK
- Multi-Image Support - Generate 1-4 images per request
- Safety Filters - 4-tier safety system (Disabled, Minimal, Balanced, Strict)
- Visit Google AI Studio
- Create or select a project
- Generate an API key
- Keep it secure - never share publicly
Method 1: GitHub Import (Recommended)
1. Copy this repository URL: https://github.com/satwareAG/plugin-gemini-flash-image
2. In TypingMind, go to Plugins → Import
3. Paste the GitHub URL
4. Click Import
Method 2: Manual Installation
1. Download plugin.json and implementation.js
2. In TypingMind, go to Plugins → Import from JSON
3. Paste the plugin.json content
4. Save
- Open plugin settings in TypingMind
- Required: Enter your Gemini API Key
- Optional: Customize defaults:
- Default Image Count (1-4)
- Quality Preset (Balanced recommended)
- Prompt Enhancement Mode (None default)
- Safety Mode (Balanced recommended)
- Industry Focus, Brand Compliance, Style Preference
Generate a new image:
"Generate a professional product photo of a sleek smartwatch"
Edit an uploaded image:
1. Upload an image to the chat
2. "Make this image brighter and more vibrant"
Tool chaining:
1. "Generate a sunset over mountains"
2. "Edit the previous image to add a lake in the foreground"
Prompt: "Create a modern office workspace"
Mode: Generate (no image uploaded)
Output: Professional image of modern office
Settings: Enhancement = "Professional Photography"
Prompt: "A coffee cup on a wooden table"
Output: Studio-quality product photography
Settings:
- Enhancement = "Promotional Products"
- Industry = "Technology"
- Brand = "Startup Modern"
Prompt: "Laptop with company logo"
Output: Marketing-ready tech product image
1. Upload your product photo
2. Prompt: "Remove background and enhance lighting"
Mode: Edit (automatic with uploaded image)
Output: Enhanced product on clean background
Settings: Quality Preset = "Creative Exploration"
Prompt: "Abstract representation of artificial intelligence"
Output: Highly creative, artistic interpretation
| Setting | Type | Default | Description |
|---|---|---|---|
| Gemini API Key | Password | Required | Your Google Gemini API key |
| Default Image Count | Number | 1 | Number of images to generate (1-4) |
| Quality Preset | Enum | Balanced | Consistency/creativity balance |
| Prompt Enhancement Mode | Enum | None | Professional preset mode |
| Custom Prompt Enhancement | Text | - | Your own enhancement instructions |
| Industry Focus | Enum | - | Industry-specific optimization |
| Brand Compliance | Enum | - | Brand style enforcement |
| Default Style | Enum | - | Visual style preference |
| Safety Mode | Enum | Balanced | Content filter strictness |
| Temperature | Number | 0.7 | Randomness (0.0-1.0) |
| Top P | Number | 0.9 | Nucleus sampling |
| Top K | Number | 40 | Top-K sampling |
Professional Presets:
- Professional Photography - Studio lighting, commercial quality
- Promotional Products - Clean backgrounds, marketing-ready
- Artistic Creative - Unique perspectives, museum-worthy
- Corporate Branding - Enterprise-grade, executive level
- Social Media Content - Platform-optimized, viral quality
- Technical Illustration - Precise documentation style
- Lifestyle Photography - Natural, authentic feel
- Product Mockup - Professional staging, showcase quality
- Custom - Use your own enhancement instructions
| Preset | Temperature | Top P | Top K | Best For |
|---|---|---|---|---|
| Maximum Consistency | 0.2 | 0.7 | 20 | Brand materials, product shots |
| Balanced | 0.7 | 0.9 | 40 | General purpose (default) |
| Creative Exploration | 0.9 | 0.95 | 80 | Artistic projects, concepts |
| Custom | User-defined | User-defined | User-defined | Advanced users |
| Mode | Threshold | Use Case |
|---|---|---|
| Disabled | No filtering | Private experimentation only |
| Minimal | High-risk only | Broad creative freedom |
| Balanced | Medium+ (default) | Recommended for most users |
| Strict | Low+ | Corporate, educational settings |
- Model: Gemini 2.5 Flash Image (Generally Available since October 7, 2025)
- Endpoint:
generativelanguage.googleapis.com/v1beta - Resolution: 1024px (automatic optimization)
- Cost: ~$0.039 per image (~1,290 tokens)
- Rate Limits: 300 requests/min (paid), 1,500/day (free tier)
- Features: SynthID watermarking included
read_last_user_message- Access user promptsread_uploaded_files- Access uploaded images for editing
- Type: JavaScript (client-side)
- Output: Cards (image cards)
- Tool Chaining: Supported via
previousRunOutput.cards
- ✅ No hardcoded secrets - User provides API key
- ✅ HTTPS-only - Encrypted communication
- ✅ No logging - API keys never logged
- ✅ Local storage - Keys stored in TypingMind settings only
Solution: You must enter your API key in plugin settings. Get one at Google AI Studio.
Solutions:
- Verify key is correct (copy/paste errors common)
- Ensure key has image generation permissions enabled
- Check if key is active in Google Cloud Console
Solutions:
- Adjust Safety Mode to "Minimal" (settings)
- Modify your prompt to be less explicit
- Review blocked categories in error message
- Consider if content violates Google's policies
Solutions:
- Check if prompt is specific enough
- Verify API quota not exceeded (Google Cloud Console)
- Try reducing image count (n parameter)
- Wait if rate-limited (300/min cap)
Solutions:
- Try different Quality Preset (Creative Exploration for more variation)
- Use Prompt Enhancement Mode for professional results
- Adjust temperature/topP/topK parameters manually
- Add more detail to your prompt
- Use Style Preference to guide aesthetic
Free Tier:
- 1,500 requests per day
- Rate limit: 15 requests per minute
Paid Tier:
- Rate limit: 300 requests per minute
- Cost: $0.039 per image (~1,290 tokens)
- No daily cap (usage-based billing)
- Start with free tier to test
- Monitor usage in Google Cloud Console
- Set up billing alerts
- Use single-image requests for testing
- Batch similar requests when possible
We welcome contributions! Please see our Contributing Guidelines (coming soon).
git clone https://github.com/satwareAG/plugin-gemini-flash-image.git
cd plugin-gemini-flash-image
# Edit plugin.json or implementation.js
# Test in TypingMind via Import from JSON- Follow satware AG coding standards
- No hardcoded secrets
- Comprehensive error handling
- Professional JSDoc documentation
- Clear, actionable error messages
Do NOT create public GitHub issues for security issues.
Email: ja@satware.com (Jane Alesi, Lead AI Architect)
See SECURITY.md for full security policy and previous vulnerability disclosures.
- ✅ v1.0.0 has no hardcoded API keys (secure)
⚠️ Development files inraw/directory contained exposed key (fixed)- Action: Revoke key
AIzaSyAcfq9qXDxw9dP6hZuRrRLgXfGuRoSv0WEif used
See CHANGELOG.md for version history and release notes.
MIT License - see LICENSE file for details.
Copyright (c) 2025 satware AG
- Repository: https://github.com/satwareAG/plugin-gemini-flash-image
- Issues: https://github.com/satwareAG/plugin-gemini-flash-image/issues
- satware AG: https://satware.ai
- Google AI Studio: https://aistudio.google.com/app/apikey
- Gemini API Docs: https://ai.google.dev/
- GitHub Issues for bugs and feature requests
- Discussions for questions and ideas
- Email: ja@satware.com
- Web: https://satware.ai
Made with 🍌 by satware AG