
The 'Nano Banana 2: Image Edit' workflow is designed to facilitate seamless image editing by leveraging advanced AI models. This workflow allows users to upload an image alongside a text prompt, which guides the modifications to be made on the original image. The core of this workflow is the GeminiNanoBanana2 model, renowned for its ability to maintain subject consistency and deliver high visual fidelity in the edited images. By utilizing nodes such as LoadImage and BatchImagesNode, users can handle multiple images efficiently, while the SaveImage node ensures that the final outputs are stored for easy access.
This workflow is particularly useful for users who need to make precise edits to images without losing the essence of the original content. The MarkdownNote node provides a convenient way to document changes or add instructions, enhancing the workflow's usability in collaborative environments. The integration of these nodes within ComfyUI offers a robust platform for both individual creators and teams looking to streamline their image editing processes.
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 "Nano Banana 2: Image Edit" (TypeScript)
import { Comfy } from "@comfyorg/sdk";
const client = new Comfy({ apiKey: "comfyui-..." });
// This workflow, exported in API format (see note below)
const wf = await client.workflows.fromFile("api_google_nano_banana2_image_edit_api.json");
const asset = client.assets.fromFile("input.png");
wf.setInput("16", "image", asset); // LoadImage
const job = await client.run(wf);
await job.getOutputs("9")[0].toFile("output.png"); // SaveImageThe 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.
FAQ













