
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.
GET https://comfy.org/workflows/download/45638e198c1d.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 "Nano Banana 2: Image Edit" (Python)
from comfy_sdk import Comfy
client = Comfy(api_key="comfyui-...")
# This workflow, exported in API format (see note below)
wf = client.workflows.from_file("api_google_nano_banana2_image_edit_api.json")
asset = client.assets.from_file("input.png")
wf.set_input("16", "image", asset) # LoadImage
job = client.run(wf)
for output in job.get_outputs("9"): # SaveImage
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














