The 'Nano Banana Pro: AI Image Enhancement' workflow is designed to upscale and enhance AI-generated images, transforming them into high-resolution 4K outputs with improved sharpness and coherence. This workflow leverages the power of the Nano Banana Pro model, known for its exceptional ability to refine image details and enhance visual quality. The process begins with the LoadImage node, which allows users to upload their AI-generated images into the system. The core of the enhancement process is handled by the GeminiImage2Node, which applies sophisticated algorithms to upscale and enhance the image. Finally, the SaveImage node ensures that the enhanced image is saved in the desired format and location.
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 Pro: AI Image Enhancement" (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("utility_nanobanana_pro_ai_image_fix_api.json");
const asset = client.assets.fromFile("input.png");
wf.setInput("2", "image", asset); // LoadImage
const job = await client.run(wf);
await job.getOutputs("5")[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















