A Python plugin for GIMP 3.0.4+ that integrates AI image generation capabilities directly into GIMP. This is a beta release seeking testers on all platforms.
Currently supports OpenAI's gpt-image-1 models for inpainting and image generation. Future plans include support for additional AI providers.
- 🎨 AI Inpainting: Fill selected areas with AI-generated content using text prompts and selection masks
- 🖼️ AI Image Generation: Create new images from text descriptions as new layers
- 🔄 AI Layer Composite: Intelligently blend AI content into existing images
- ⚙️ Easy Configuration: Built-in settings dialog, no external config files needed
- GIMP 3.0.4 or newer (all GIMP 3.X versions from 3.0.4 onwards)
- Internet connection for AI API calls
- OpenAI API key (get one at platform.openai.com)
- Zero external dependencies - uses only Python standard library + GIMP APIs
Just 2 files to copy! No external dependencies or complex setup.
- Download the latest release ZIP
- Extract the ZIP file
- Run the installer:
python3 install_plugin.py - Restart GIMP and configure your API key
Done! The installer handles everything automatically.
- Download 2 files:
gimp-ai-plugin.pyandcoordinate_utils.py - Create folder: Make a
gimp-ai-pluginfolder in your GIMP plug-ins directory - Copy files: Put both files in that folder, restart GIMP
👉 Read the Complete Installation Guide (INSTALL.md) 👈
The installation guide includes:
- ✅ Step-by-step instructions for beginners
- ✅ How to find your GIMP plugin directory on Windows/Mac/Linux
- ✅ Screenshots and visual examples
- ✅ How to get and configure your OpenAI API key
- ✅ Troubleshooting for "Filter → AI not found" issues
Plugin folder location by OS (replace 3.0 with your GIMP version):
- Windows:
%APPDATA%\GIMP\3.0\plug-ins\gimp-ai-plugin\ - macOS:
~/Library/Application Support/GIMP/3.0/plug-ins/gimp-ai-plugin/ - Linux:
~/.config/GIMP/3.0/plug-ins/gimp-ai-plugin/
Note: The automated installer will detect all compatible GIMP versions (3.0.4+) and let you choose which one to install to.
Required folder structure:
plug-ins/
└── gimp-ai-plugin/ ← Create this folder
├── gimp-ai-plugin.py ← Required file #1
└── coordinate_utils.py ← Required file #2
After copying files:
- Linux/macOS: Run
chmod +x gimp-ai-plugin.pyin the folder - Restart GIMP completely
- Look for
Filters → AIin the menu
- Get an OpenAI API key from platform.openai.com
- In GIMP: go to
Filters → AI → Settings - Paste your API key (starts with
sk-) - Click OK - it's saved automatically!
First time? See INSTALL.md for detailed API key instructions.
Fill selected areas with AI-generated content using text prompts
- Open image in GIMP
- Make a selection of area to inpaint (or no selection for full image)
- Go to
Filters → AI → Inpainting - Choose processing mode:
- 🔍 Focused (High Detail): Best for small edits, maximum resolution, selection required
- 🖼️ Full Image (Consistent): Best for large changes, works with or without selection
- Enter prompt (e.g., "blue sky with clouds", "remove the object")
- Result: New layer with AI-generated content, automatically masked to selection area
Selection Mask Behavior:
- Soft masks: AI can redraw content outside the selection to maintain visual coherence
- With selection: Final result is masked to show only within selected area, but AI considers surrounding context
- No selection (Full Image mode): Entire image is processed and replaced
- Smart feathering: Automatic edge blending for seamless integration
- Open or create any GIMP document
- Go to
Filters → AI → Image Generator - Enter prompt (e.g., "a red dragon on mountain")
- New layer created with generated image
Intelligently combines multiple visible layers using AI guidance
-
Set up your layers:
- Bottom layer = base/background (what gets modified)
- Upper layers = elements to integrate (people, objects, etc.)
- Make sure desired layers are visible
-
Go to
Filters → AI → Layer Composite -
Enter integration prompt (e.g., "blend the person naturally into the forest scene")
-
Choose mode:
- ✅ Include selection mask: Uses selection on base layer to limit where changes occur
- ❌ No mask: AI can modify the entire base layer to integrate upper layers
-
Result: A new layer is created, taking the base layer and intelligently modifying it to incorporate all visible layers
- Check TROUBLESHOOTING.md first
- Report at: GitHub Issues
- INSTALL.md - Complete installation guide for users
- TROUBLESHOOTING.md - Common issues and solutions
- CHANGELOG.md - What's new and known issues
- TODO.md - Development roadmap
- RELEASE.md - Release process for maintainers
Releases are automated via GitHub Actions. See RELEASE.md for details.
Quick overview:
- Label PRs with
major,minor, orpatchfor version bumps - Merge to
maintriggers automated release creation - The workflow builds the package and creates a GitHub release
build_release.py- Creates distributable ZIP packages (used by workflow)tools/bump_version.py- Bumps version ingimp-ai-plugin.py(used by workflow)
MIT License - see LICENSE file for details