This two-stage ComfyUI workflow turns a low- or mid-resolution image into a high-fidelity result using the Wan2.2 diffusion model in controlled image-to-image mode. After you LoadImage, GeminiNodeV3 analyzes the picture and generates a concise descriptive prompt that conditions Wan2.2 during upscaling. The pipeline then runs in two passes inside the Image Controlled Upscale group: a coarse first pass to establish structure at a larger size, followed by a fine second pass to restore and enhance details while keeping the original look.
Stage 1 and Stage 2 are implemented with the custom upscaler nodes (8c62a455-6744-43c8-9352-543905ed4db7 and 058e194e-5740-4f04-a9ca-7c741daecfcc), which accept your resize factor, denoise strength, and sampler steps. Author notes provide practical ranges: use 0.20–0.40 denoise for a more creative, coarse pass and 0.10–0.20 for detail-preserving refinement; 25 steps for quick results, or 50+ for maximum quality. PreviewAny gives you live feedback, ImageCompare shows side-by-side before/after in the Image Compare group, and SaveImage exports the final output. A MarkdownNote inside the workflow summarizes the guidance so you can quickly dial in the right settings for different images.
This iterative approach is especially effective for AI-generated images or stylized art that benefit from prompt-guided reconstruction. By pairing auto-prompting (GeminiNodeV3) with Wan2.2’s image-to-image strengths, the workflow preserves identity while recovering edges, textures, and fine details that simple pixel upscalers can miss.
API
Use este workflow a partir do código
Todo workflow Comfy é um grafo JSON. O payload abaixo é este workflow, exatamente como o ComfyUI executa — obtenha-o pela URL, mantenha-o no controle de versão ou carregue-o no ComfyUI e execute nó por nó.
Execute a partir de TypeScript ou Python com o Comfy SDK. O mesmo código serve para o Comfy Cloud ou um ComfyUI hospedado por você — apenas a URL base muda.
// 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");O SDK utiliza um workflow no formato API: abra este workflow no ComfyUI e use Arquivo → Exportar Workflow (API).
O acesso à API do Comfy Cloud requer um plano com chave de API.





















