
Nano Banana 2 Lite: Text to Image is a minimal, speed-focused ComfyUI workflow that turns short text prompts into images using Google’s Gemini 3.1 Flash-Lite Image model. It’s built for rapid concepting and quick iterations—no file inputs required—so you can move from idea to visual in seconds. The workflow produces one or more images per prompt, making side-by-side exploration straightforward.
Under the hood, the GeminiNanoBanana2V2 node handles the API call to Gemini 3.1 Flash-Lite Image, taking your text prompt (and optionally interleaved text+image content when supported) and returning generated images to the graph. Outputs are sent directly to SaveImageAdvanced, which writes the results to disk with your chosen folder and filename settings. Because Flash-Lite Image is optimized for low latency, this setup excels at fast iteration loops—adjust the prompt, re-queue, compare, and refine—with minimal overhead.
While it’s streamlined, the node still exposes practical generation controls (such as output count and size, as provided by the node), letting you balance speed and visual detail for early-stage exploration. If you need reference guidance, the workflow supports interleaved content when the node’s interface enables it, but it’s not required for basic text-to-image generation.
API
Use this workflow from code
Every Comfy workflow is a JSON graph. The payload below is this workflow, exactly as ComfyUI runs it — fetch it from the URL, keep it in version control, or load it in ComfyUI and run it node by node.
GET https://comfy.org/workflows/download/d6109704c9d6.jsonFetching workflow JSON…
Run it from Python or TypeScript with the Comfy SDK. The same code targets Comfy Cloud or a ComfyUI you host yourself — only the base URL changes.
# Install (beta)
pip install comfy-sdk # Python
npm i @comfyorg/sdk # TypeScript
# Run this workflow (Python)
from comfy_sdk import Comfy
client = Comfy(api_key="comfyui-...")
wf = client.workflows.from_file("workflow_api.json")
job = client.run(wf)
for output in job.get_outputs("<output-node-id>"):
output.to_file(output.name)The SDK takes a workflow in API format: open this workflow in ComfyUI and use File → Export Workflow (API). API access requires a Comfy Cloud plan with an API key. SDK docs · Get an API key
FAQ













