How necto-pro/n8n-nodes-nano-banana works
This repository is an n8n community node for using Gemini models in automated text and image workflows. A workflow supplies either manually mapped messages or JSON, optionally including images by URL or base64. The node prepares image parts, calls Gemini with the selected model and generation settings, and returns generated content and image data to n8n. Credentials provide the Google API key. The excerpts show image fetching and Gemini invocation; credential implementation and other unsampled details are represented only where documented.
Main entry points: Gemini.node.ts Nano Banana Node · imageUtils.ts Image Utilities · GeminiApi.credentials.ts API Credentials
Components 7
n8n Workflow
- n8n Runtime
Gemini Integration
- Nano Banana Node
nodes/Gemini/Gemini.node.ts - API Credentials
credentials/GeminiApi.credentials.ts
Image Handling
- Image Utilities
nodes/Gemini/utils/imageUtils.ts
Other components
- Workflow Author
- Image URL Host
- Google Gemini API
Connections 7
- Workflow Author → n8n Runtime: configures workflow
README.md - n8n Runtime → Nano Banana Node: runs node
README.md - Nano Banana Node → API Credentials: gets API key
- Nano Banana Node → Image Utilities: prepares images
nodes/Gemini/Gemini.node.ts - Image Utilities → Image URL Host: fetches image
nodes/Gemini/utils/imageUtils.ts - Nano Banana Node → Google Gemini API: generates content
nodes/Gemini/Gemini.node.ts - Nano Banana Node → n8n Runtime: returns results
nodes/Gemini/Gemini.node.ts