ComfyUI Node
Gemini Prompt Engineer
Analyzes images using Google's Gemini AI to generate optimized prompts. Supports multiple prompt formats: - FLUX: Detailed artistic prompts with quality markers - SDXL: Positive/negative prompt pairs with weight emphasis - Danbooru: Anime-style booru tags with underscores - Video: Motion and temporal descriptions for video generation Requires Gemini API key (set GEMINI_API_KEY env var or provide in node). Install: pip install google-generativeai
Gemini Prompt Engineer
- image
- prompt
- negative_prompt
◄prompt_typeflux►
◄modelgemini-2.5-flash►
◄api_key►
◄custom_prompt►
◄refresh_modelsfalse►
Category🫶 ComfyAssets/🧠 Prompts
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| prompt_type | COMBO | flux | 4 options: flux, sdxl, danbooru, video |
| model | COMBO | gemini-2.5-flash | 5 options: gemini-2.5-flash, gemini-2.5-pro, gemini-2.0-flash, gemini-1.5-flash, gemini-1.5-pro |
| api_keyopt | STRING | — | |
| custom_promptopt | STRING | — | |
| refresh_modelsopt | BOOLEAN | false | — |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| prompt | STRING | — |
| negative_prompt | STRING | — |