本对比工作流展示 Nano Banana 2 Lite(通过 GeminiNanoBanana2V2 节点)如何根据你的编辑指令将源图像转变为新图,并以 ImageCompare 并排显示原图与结果,便于快速判断变化与一致性。
流程受控:两侧均源自同一张原图(LoadImage),仅模型编辑不同。这样便于评估速度与保真度、风格偏移程度、结构或身份保持情况。Nano Banana 2 Lite 注重响应速度和高效编辑,适合常见任务(如色彩调整、小物体增删),如需复杂或大范围变换,建议精细指令或多次迭代。
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.
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.
常见问题
















