HitPaw: Portrait Diffusion Upscaler - After
HitPaw: Portrait Diffusion Upscaler - Before

This ComfyUI workflow, titled 'HitPaw: Portrait Diffusion Upscaler,' is designed to enhance low-quality portrait images by increasing their resolution and improving detail. The workflow leverages the HitPawGeneralImageEnhance model, which specializes in refining skin textures and facial features, resulting in high-fidelity portraits. The process begins with the LoadImage node, where users upload their low-quality images. The core of the enhancement is handled by the HitPawGeneralImageEnhance node, which applies sophisticated diffusion techniques to upscale the image while preserving and enhancing crucial details. Finally, the SaveImage node allows users to save the enhanced image for further use.

Technically, this workflow utilizes a combination of nodes that streamline the image enhancement process. The LoadImage node imports the image into the workflow, while the HitPawGeneralImageEnhance node performs the heavy lifting by applying advanced AI algorithms to upscale the image. The ImageCompare node is available under Nodes 2.0, providing users with a side-by-side comparison of the original and enhanced images, ensuring the improvements are visually evident. This workflow is particularly useful for photographers, graphic designers, and social media influencers who need to enhance portrait images without losing quality.

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.

ultility_hitpaw_general_image_enhance.json
Fetching workflow JSON…

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

Frequently Asked Questions

View all workflows
Showing 30 of 30 templates