Overview
Comfyui-LuckNanoBananaPro is a ComfyUI custom node contributed by community user luckdvr. It calls Gemini 3 Pro Image Preview / Flash through APIYI for text-to-image and multi-image editing. Compared to basic nodes, its biggest strength is engineering polish: built-in timeout/retry, real-time progress, native ComfyUI seed modes, and up to 14 stacked image inputs — ideal for heavier production workflows.
Project Info
- 🔗 Source:
github.com/luckdvr/Comfyui-LuckNanoBananaPro - 📜 License: MIT / Apache-2.0 (dual)
- 👤 Author: luckdvr
- ⭐ Community contribution, built for APIYI
Core Features
Up to 14 image inputs
image_01 ~ image_14 slots stack up to 14 reference images, matching Nano Banana Pro’s theoretical input ceilingMulti-tier resolution
1K / 2K / 4K output with adaptive timeout — balance speed and quality
15 aspect ratios
Rich presets covering vertical, horizontal, square, and cinematic widescreen
Dual-model switch
Toggle between
gemini-3-pro-image-preview (Pro) and gemini-3.1-flash-image-preview (Flash)Timeout & retry
timeout_seconds (10-600s) + retry_times (1-20) — stable even at peak hoursReal-time progress
Built-in status / percentage / elapsed-time display — no more black-box runs
Native seed modes
Supports ComfyUI’s standard fixed / random / increment / decrement seed patterns
MIT / Apache-2.0 dual license
Permissive license — commercial and derivative work welcome
Supported APIYI Models
Node Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
api_key | string | Yes | - | APIYI token — we recommend a dedicated key with usage cap |
prompt | string | Yes | - | Generation or editing instruction |
model | enum | Yes | gemini-3-pro-image-preview | Model selection (Pro / Flash) |
image_size | enum | No | 2K | Output resolution (1K / 2K / 4K) |
aspect_ratio | enum | No | 1:1 | One of 15 aspect ratios |
timeout_seconds | int | No | 120 | Per-request timeout (10-600s) |
retry_times | int | No | 3 | Retry count on failure (1-20) |
seed | int | No | 0 | Random seed (works with ComfyUI’s seed modes) |
image_01 … image_14 | IMAGE | No | - | Optional reference images (up to 14) |
Installation
Step 4: Configure APIYI key
- Visit APIYI Console → Tokens, create a dedicated key with a usage cap (best practice)
- Paste the key into the
api_keyfield - The node already points at
api.apiyi.com— no endpoint setup required
Usage Examples
Example 1: High-stability text-to-image
Example 2: Multi-image blending
Example 3: Seed sweeps
Use ComfyUI’s native seed management inincrement mode to batch-run multiple seeds and compare variations of the same prompt.
FAQ
Node not found after installing?
Node not found after installing?
- Confirm the repo lives at
ComfyUI/custom_nodes/Comfyui-LuckNanoBananaPro - Dependencies installed without errors (requests / Pillow / numpy especially)
- Fully restart ComfyUI (refresh alone is not enough)
4K times out often?
4K times out often?
The node lets you tune
timeout_seconds directly:- Start with
timeout_seconds=300for 4K - Pair with
retry_times=5for automatic retries against network jitter - If still flaky, see CDN image/video downloads are slow to optimize your network path
Will all 14 reference images be used?
Will all 14 reference images be used?
You can wire up to 14, but whether they’re actually used depends on your prompt. Reference them explicitly in the prompt (e.g.,
image_01, image_02) or describe each one’s role — the model will pick up on your instructions.Calls return 401 / 403?
Calls return 401 / 403?
- Check
api_keyand ensure it’s not restricted to the wrong channel - Selected model must be on the token’s whitelist
- Account balance — see Balance seems enough but calls fail
How is this different from the other two Nano Banana ComfyUI nodes?
How is this different from the other two Nano Banana ComfyUI nodes?
- nano-banana-comfyui (full-featured): emphasizes conversational editing and multi-turn memory
- apiyi-nano-banana-node (lite): minimal code, great for learning/customization
- Luck Nano Banana Pro (this page): engineering parameters (timeout / retry / 14 images), built for batch and production
Related Resources
Nano Banana Pro API
Full model capabilities and API reference
ComfyUI node collection
Browse all Nano Banana ComfyUI nodes
FAQ: CDN download slow
4K images downloading slowly? Read this
APIYI Console
Manage keys, usage, and channels