This ComfyUI tutorial walks you through a simple, reliable product-image upscaling pipeline built around three nodes: LoadImage, GeminiImage2Node, and SaveImage. You start by loading your product photo, pass it to GeminiImage2Node configured to use the Nano Banana Pro model, and then save the enhanced result. The Nano Banana Pro model is tuned for product imagery—reinforcing edges, materials, and label regions—so you get cleaner type, crisper contours, and more believable surface detail at a higher resolution.
Technically, GeminiImage2Node serves as an API-backed image-to-image processor. It takes the input from LoadImage, requests an upscaled, detail-enhanced version from the Nano Banana Pro model, and returns a refined output while aiming to maintain color and structure. Because the heavy lifting is done via API, the workflow stays lightweight inside ComfyUI: no local checkpoints to manage, consistent outputs between runs (given the same settings), and straightforward saving through SaveImage to your preferred format and path.
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.
FAQ





















