Overview
api_yi_nano_banana_node is a lightweight ComfyUI custom node contributed by community partner JerrIsTheBesta. It focuses on “drop-in simplicity + easy extension.” Just drop it into your custom_nodes directory, restart ComfyUI, and you can call APIYI’s Nano Banana Pro / Nano Banana 2 image generation directly in your workflow — a perfect starting point for learning and customization.
- 🔗 Source:
github.com/JerrIsTheBesta/api_yi_nano_banana_node - 📜 License: MIT
- 👤 Author: JerrIsTheBesta
- ⭐ Contributed by a community partner — positioned as an example you can extend
Core Features
Two core nodes
APIYI Text to Image + APIYI Multi Image Edit — covers the two most common workflowsDual-model switching
gemini-3-pro-image-preview (Nano Banana Pro) and gemini-3.1-flash-image-previewHigh-res output
Rich aspect ratios
Multi-image editing
Multi Image Edit accepts up to 5 reference images for blending / style transferLightweight & hackable
Supported APIYI Models
Node Details
APIYI Text to Image
Generates images from a text prompt — no input image required. Outputs: generated image + filename identifier.APIYI Multi Image Edit
Accepts up to 5 input images for blending, editing, or composition. Outputs: result image, filename, count of images actually used.Node Parameters
Installation
Step 1: Drop into custom_nodes
custom_nodes:Step 2: Install Python deps
Step 3: Restart ComfyUI
APIYI in the node palette to find:APIYI Text to ImageAPIYI Multi Image Edit
Step 4: Configure APIYI key
- Visit the APIYI Console → Tokens, and create a dedicated key with a usage cap (security best practice)
- Paste the key into the node’s
api_keyfield - No endpoint setup needed — the node uses
https://api.apiyi.cominternally
Step 5: Build a simple workflow
- Text-to-image:
APIYI Text to Image→Preview Image - Multi-image edit: multiple
Load Image→APIYI Multi Image Edit→Preview Image
Usage Examples
Example 1: Text to Image
Example 2: Multi-Image Blending
Extension Ideas
This project is positioned as an example and starting point — fork and extend as needed:Conversational editing
More reference images
Seed control
Batch output
FAQ
Installed the node but can't find it in the palette?
Installed the node but can't find it in the palette?
- Make sure the repo is inside
ComfyUI/custom_nodes/ - Fully restart ComfyUI (not just refresh the frontend)
- Check ComfyUI’s console for any Python import errors
Calls fail with 401 / 403?
Calls fail with 401 / 403?
api_keyis correct and not restricted to the wrong channel- The selected model is on the token’s whitelist
- Account balance is sufficient — see Balance seems enough but calls fail
4K resolution times out frequently?
4K resolution times out frequently?
- Check network path to the API (see CDN image/video downloads are slow)
- Fall back to 2K or Flash during peak hours
Is the API key exposure safe?
Is the API key exposure safe?
How is this different from the other ComfyUI-Nano-Banana-apiyi node?
How is this different from the other ComfyUI-Nano-Banana-apiyi node?
- This node: lightweight example, 2 nodes only, minimal deps — ideal for onboarding and customization
- Full version: richer feature set (conversational editing, 14-image blending), built for production workflows