Overview
comfyui-image-annotator is an interactive image annotation ComfyUI node contributed by community user luckdvr. Its core value: lowering the prompt-writing barrier. Instead of struggling to describe “replace the red button in the top-left corner,” you simply circle, click, or box the area you want to change and let the model see exactly where to edit. Designed to sit before the Nano Banana Pro node in a three-stage pipeline: “image → annotate → API.”
- 🔗 Source:
github.com/luckdvr/comfyui-image-annotator - 📜 License: MIT
- 👤 Author: luckdvr
- ⭐ Community contribution — same author as Luck Nano Banana Pro
Core Features
Three annotation types
Real-time rendering
Zoom / pan / select
50-step undo
Dual outputs
Customizable styling
Supported APIYI Models
This node does not call any API on its own — it only annotates. The annotated image can feed any APIYI model that accepts image input. Best pairings:Node Details
Input
Outputs
Installation
Step 1: Clone into custom_nodes
Step 2: Restart ComfyUI
ImageAnnotator in the node palette.Step 3: Wire up the three-stage workflow
ImageAnnotator canvas, then write a simple prompt in the downstream API node (e.g., “replace the marked area with a red sports car”) and run.Usage Examples
Example 1: Local replacement (beginner friendly)
Load the source image
LoadImage — load a photo of your living roomAnnotate the target region
ImageAnnotator — draw a rectangle around the empty space next to the sofaWrite a one-liner prompt
Luck Nano Banana Pro — prompt: “Put a green indoor plant in the marked area”Run and save
Example 2: Multi-region precise edits
Use polygon to outline clothing + point for a hat location + rectangle for the background, then prompt:Example 3: Visual Q&A / understanding
With Gemini / Qwen-VL: ask the model to explain “what is the object inside the rectangle and what’s its role in the scene.” Annotations give the model precise visual anchors.FAQ
Why is this great for people who struggle with prompts?
Why is this great for people who struggle with prompts?
Do the annotation marks affect generation quality?
Do the annotation marks affect generation quality?
Node not found after installation?
Node not found after installation?
- Confirm the directory:
ComfyUI/custom_nodes/comfyui-image-annotator - Fully restart ComfyUI (frontend refresh is not enough)
- Check ComfyUI’s console for errors
Can I output JSON only without rendering?
Can I output JSON only without rendering?
annotations_json output downstream. Useful when you want to pass coordinates into a custom script for post-processing.Best practices when pairing with Luck Nano Banana Pro?
Best practices when pairing with Luck Nano Banana Pro?
LoadImage → ImageAnnotator → Luck Nano Banana Pro- Wire
ImageAnnotator.annotated_imageintoLuck Nano Banana Pro.image_01 - Use natural-language prompts describing “what to do to the marked region”
- If the first result is off, use Luck Nano Banana Pro’s
retry_timesor seed modes to re-run