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.

GET https://comfy.org/workflows/download/915d8a703908.json
Fetching 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 this workflow (Python)
from comfy_sdk import Comfy

client = Comfy(api_key="comfyui-...")
wf = client.workflows.from_file("workflow_api.json")
job = client.run(wf)
for output in job.get_outputs("<output-node-id>"):
    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

Frequently Asked Questions

View all workflows
Character
Cinematic
Image to Video
Lip Sync
Multiple Angles
Portrait
Style Reference
Style Transfer
Text to Video
Video Generation
Video
Showing 30 of 30 templates