ComfyUI Extension: ComfyUI_NanaBanana2
Run ComfyUI workflows without the setup
No installs, no CUDA version roulette, no GPU sitting idle on your bill. Bring a workflow and run it in the browser.
ComfyUI nodes for generating and editing images via Nano Banana 2 through Google Vertex AI. (Description by CC)
Looking for a different extension?
Custom Nodes (3)
README
🍌 ComfyUI — Nano Banana 2 Nodes (Vertex AI)
Nœuds ComfyUI pour générer et éditer des images via Nano Banana 2
via Google Vertex AI (gemini-3.1-flash-image).
Installation
cd ComfyUI/custom_nodes
git clone https://github.com/TON_USERNAME/ComfyUI_NanaBanana2.git
Redémarre ComfyUI. Aucune dépendance pip requise.
Auth — Bearer Token
Obtiens un token avec gcloud CLI :
gcloud auth login
gcloud auth print-access-token
3 façons de le fournir (par priorité) :
- Champ
access_tokendirectement dans le noeud - Variable d'env :
export GOOGLE_CLOUD_ACCESS_TOKEN=$(gcloud auth print-access-token) - gcloud installé → le noeud l'appelle automatiquement
⚠️ Le token expire après 1 heure. Régénère-le avec
gcloud auth print-access-token.
Configuration requise
| Paramètre | Valeur |
|---|---|
| project_id | Ton GCP Project ID |
| location | global ← obligatoire pour ce modèle |
| model | gemini-3.1-flash-image |
Nœuds disponibles
🍌 NB2 Text → Image
Génère une image depuis un prompt texte.
| Paramètre | Description |
|---|---|
| prompt | Description de l'image |
| negative_prompt | Ce à éviter |
| aspect_ratio | 1:1 / 16:9 / 9:16 / 3:4 / 4:3 / 21:9... |
| seed | -1 = aléatoire |
| use_search_grounding | Le modèle cherche sur Google pour plus de précision |
🍌 NB2 Image Edit (keep/change)
Édite une image existante. Format de prompt recommandé :
Keep the character and lighting / change the background to a neon cyberpunk street
🍌 NB2 Multi-Image Blend
Fusionne jusqu'à 4 images de référence + un prompt.
Installer gcloud sur Lightning AI
curl https://sdk.cloud.google.com | bash
exec -l $SHELL
gcloud init
gcloud auth login --no-launch-browser
Run ComfyUI workflows without the setup
No installs, no CUDA version roulette, no GPU sitting idle on your bill. Bring a workflow and run it in the browser.