comfyui-genmedia-gemini-api
ComfyUI custom nodes for Google GenMedia models, with Gemini API (API key)
Perfil do pacote
- Status
- Verificado
- Publicador
- @catnipglitch
- Fonte
- GitHub
README
Based on GoogleCloudPlatform/comfyui-google-genmedia-custom-nodes (Apache 2.0). Added: Gemini API key authentication, Nano Banana 2 (Gemini 3.1 Flash Image), Veo 3.1 Lite, and Placeholder nodes for workflow prototyping.
This is not an officially supported Google product. This project is not eligible for the Google Open Source Software Vulnerability Rewards Program.
comfyui-genmedia-gemini-api
ComfyUI custom nodes for Google GenMedia models, with Gemini API (API key) and Vertex AI (ADC) dual authentication support.
Supported models:
- Gemini
- Gemini 2.5 Flash Image (Nano Banana 🍌)
- Gemini 3.1 Flash Image (Nano Banana 2 🍌🍌) — NEW
- Gemini 3 Pro Image (Nano Banana Pro 🍌)
- Imagen3
- Imagen4
- Lyria2
- Veo2
- Veo3.1 / Veo3.1 Fast / Veo3.1 Lite — NEW
- Virtual-try-on
- Placeholder nodes (🧪) — NEW: API-free dummy image generation for workflow testing
Authentication
Option A: Gemini API key (recommended for containers)
Set one of the following environment variables. No GCP project or region required.
export GOOGLE_API_KEY=AIza...
# or
export GEMINI_API_KEY=AIza...
Option B: Vertex AI (ADC)
All nodes accept gcp_project_id and gcp_region as optional inputs and use the Vertex AI APIs. If you are running ComfyUI on GKE as described in ComfyUI on GKE guide, the Vertex AI APIs will be authenticated with GKE workload identity and no additional action is required.
If you are running your own (local) ComfyUI installation, you will need to install the custom nodes and authenticate to Google Cloud as a user or a Service Account. See installation section for details.
Pricing
All the custom nodes provided with this repo use Vertex AI APIs to generate content and hence, Vertex AI pricing is applied to each API call. See Vertex AI Pricing for the model that you want to use.
Note : If you store the content in Google Cloud Storage using these custom nodes, refer to Google Cloud Storage pricing.
Installing the Google Generative Media custom nodes
ComfyUI on GKE
If you want to run ComfyUI on GKE and use these custom nodes, follow the ComfyUI on GKE guide that will spin up ComfyUI on GKE with these custom nodes installed and ready to use.
ComfyUI running locally
If you are running ComfyUI locally or at a place other than GCP and want to use these custom nodes, you need to perform the following steps to install them:
- Download these custom nodes in one of the following ways:
-
Using the ComfyUI Manager
- Go to ComfyUI Manager --> Custom Node Manager --> search for
comfyui-google-genmedia-custom-nodes. Click Install.
- Go to ComfyUI Manager --> Custom Node Manager --> search for
-
Manual installation using git
-
Open the terminal on the machine that is running ComfyUI and change to the directory where ComfyUI is running from.
cd <PATH_TO_COMFYUI_INSTALLATION> E.g if your ComfyUI is running from "/home/user/username/ComfyUI", replace <PATH_TO_COMFYUI_INSTALLATION> with "/home/user/username/" -
Change to the custom_nodes folder.
cd ComfyUI/custom_nodes -
Clone this repository in the custom_nodes folder:
git clone https://github.com/GoogleCloudPlatform/comfyui-google-genmedia-custom-n
-
-
Nós neste pacote
Nós 20
Nós neste pacote
Nós 20- Gemini25FlashImage
- Gemini31FlashImage
- Gemini3ProImage
- GeminiNode25
- Imagen3TextToImageNode
- Imagen4TextToImageNode
- Lyria2TextToMusicNode
- Placeholder25FlashImage
- Placeholder31FlashImage
- Placeholder3ProImage
- Veo2GcsUriImageToVideoNode
- Veo2ImageToVideoNode
- Veo2TextToVideoNode
- Veo3GcsUriImageToVideoNode
- Veo3ImageToVideoNode
- Veo3ReferenceToVideo
- Veo3TextToVideoNode
- VeoVideoSaveAndPreview
- VeoVideoToVHSNode
- VirtualTryOn
Fontes
3 fontes
Fontes
3 fontesVerificado 19 de out.
Verificado 19 de out.
Trechos de fonte
1 trecho
Trechos de fonte
1 trechoSource context: Repo catnipglitch/comfyui-genmedia-gemini-api
