Nano Banana 2 Lite:文本转图像

Nano Banana 2 Lite:文本转图像是一个极简、速度优先的 ComfyUI 工作流,利用 Google 的 Gemini 3.1 Flash-Lite Image 模型,将简短文本提示快速转为图片。无需文件输入,适合快速概念设计和高效迭代——从想法到画面只需几秒。每次可生成多张图片,便于并排对比和探索。

底层由 GeminiNanoBanana2V2 节点调用 Gemini 3.1 Flash-Lite Image API,输入你的文本提示(如节点支持,也可交错文本+图片内容),返回生成图片。输出直接传递给 SaveImageAdvanced,可自定义保存文件夹和文件名。Flash-Lite Image 针对低延迟优化,适合高频迭代——调整提示词、重新排队、对比、优化,几乎无等待。

虽然流程简化,但节点仍提供实用的生成控制(如输出数量和尺寸,具体以节点为准),可在速度和细节间灵活调整。如需参考引导,节点支持交错内容时可用,但基础文本转图像无需图片输入。

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.

d6109704c9d6.json
Fetching workflow JSON…

Run it from TypeScript or Python with the Comfy SDK. The same code targets Comfy Cloud or a ComfyUI you host yourself — only the base URL changes.

// Install (beta)
npm i @comfyorg/sdk

// Run this workflow (TypeScript)
import { Comfy } from "@comfyorg/sdk";

const client = new Comfy({ apiKey: "comfyui-..." });
const wf = await client.workflows.fromFile("workflow_api.json");
const job = await client.run(wf);
await job.getOutputs("<output-node-id>")[0].toFile("output.png");

The SDK takes a workflow in API format: open this workflow in ComfyUI and use File → Export Workflow (API).

Comfy Cloud API access requires a plan with an API key.

常见问题

常见问题

查看所有工作流
Character
Cinematic
Image to Video
Lip Sync
Multiple Angles
Portrait
Style Reference
Style Transfer
Text to Video
Video Generation
Video
Showing 30 of 30 templates