ComfyUI Extension
ComfyUI-VertexAI-Gemini
ComfyUI-VertexAI-Gemini
JioJe/ComfyUI-VertexAI-Gemini
Nodes1
On cloudLocal install
CategoryAI/Google
Stars3
Updated5 months ago
Nodes (1)
Readme
ComfyUI-VertexAI-Gemini
ComfyUI-VertexAI-Gemini is a custom node that connects ComfyUI to Google Vertex AI Gemini models for text generation, image understanding, image editing, and video analysis.
Features
- Supports multiple Gemini model variants exposed by Vertex AI
- Accepts up to 9 input images for multi-image prompting and editing
- Injects
Image 1,Image 2, ... labels to make cross-image instructions more reliable - Accepts frame sequences for video analysis workflows
- Provides aspect-ratio hints without force-resizing the final image
Installation
cd ComfyUI/custom_nodes
git clone https://github.com/JioJe/ComfyUI-VertexAI-Gemini.git
cd ComfyUI-VertexAI-Gemini
pip install -r requirements.txt
Optional Proxy Configuration
If your environment requires a proxy to access Google services, set the standard environment variables before launching ComfyUI:
set http_proxy=http://127.0.0.1:7897
set https_proxy=http://127.0.0.1:7897
Vertex AI API Key
Create a Google Cloud project, enable Vertex AI, and generate an API key. Paste that key into the node's api_key input inside ComfyUI.
Inputs
prompt: text prompt or editing instructionapi_key: Vertex AI API keymodel: target Gemini modelmode: auto, text, image understanding, image editing, or video analysisaspect_ratio: output composition hintimagetoimage_9: optional image inputsvideo: optional video frame sequence input
Outputs
text: model text responseimage: generated or edited image
Example Prompt
Keep the subject from Image 1 unchanged, replace the background with the environment from Image 2, and keep the overall color tone consistent.
Notes
- For video analysis, install
opencv-python - Aspect ratio is treated as a prompt hint, not a hard resize rule
- This project is released under the MIT License