Skip to content
FramesField
ComfyUI JSON Developer / Local Tooling flux-4x-upscale-print.api.json
Verified Nov 30, 2026

ComfyUI FLUX High-Res 4x Upscale Graph

How to install this ComfyUI JSON

Download the pure raw JSON directly from /raw/skills/comfyui-flux-upscale-and-inpaint-graph, place your source PNG inside ComfyUI/input/, and run via ComfyUI API (127.0.0.1:8188/prompt) or ComfyUI Browser Dev Mode → Load (API Format).

Ready-to-run stock ComfyUI API JSON graph that upscales any 1MP AI still (FLUX.1 Schnell, FLUX 3 1K, Ideogram 4.6) locally for $0 via 4x-UltraSharp (UpscaleModelLoader -> ImageUpscaleWithModel), writing both a 300-DPI 4x print master (4096px) and a Lanczos-oversampled 2x retina web master (2048px) with zero custom node packs.

Compatible agent hosts
ComfyUI Claude Code Python API
Target tool: ComfyUI / 4x-UltraSharp / Print 300 DPI · License: MIT
  1. STEP 01
    Place 4x-UltraSharp.pth & input image

    Put 4x-UltraSharp.pth in ComfyUI/models/upscale_models/ and copy your 1024px PNG to ComfyUI/input/input_plate.png.

  2. STEP 02
    Download raw stock-node ComfyUI API JSON

    Uses 100% built-in ComfyUI core nodes (LoadImage, UpscaleModelLoader, ImageUpscaleWithModel, ImageScaleBy, SaveImage).

  3. STEP 03
    Queue via API or Dev Mode → Load (API Format)

    Outputs both a crisp 4× 300-DPI print master (4096px) and a Lanczos-tightened 2× retina hero (2048px) in seconds.

1. Install for your tool

Pick the app you use below for the exact verified command or config—zero manual guessing.

Direct raw file (flux-4x-upscale-print.api.json) ↓
Option A: Download & Queue via ComfyUI API (Headless Batch) bash
Downloads the raw valid JSON graph from /raw/skills/comfyui-flux-upscale-and-inpaint-graph, wraps it in {"prompt": ...}, and queues your local 4x print + 2x retina upscale immediately.
curl -fsSL https://framesfield.com/raw/skills/comfyui-flux-upscale-and-inpaint-graph -o flux-4x-upscale-print.api.json
python3 -c 'import json, urllib.request; g=json.load(open("flux-4x-upscale-print.api.json")); req=urllib.request.Request("http://127.0.0.1:8188/prompt", data=json.dumps({"prompt": g}).encode(), headers={"Content-Type": "application/json"}); print(urllib.request.urlopen(req).read().decode())'

2. Inspect or download the full ComfyUI JSON file

This is the exact raw file served at /raw/skills/comfyui-flux-upscale-and-inpaint-graph.

ComfyUI FLUX High-Res 4x Upscale Graph flux-4x-upscale-print.api.json
{
  "1": {
    "class_type": "LoadImage",
    "inputs": {
      "image": "input_plate.png"
    }
  },
  "2": {
    "class_type": "UpscaleModelLoader",
    "inputs": {
      "model_name": "4x-UltraSharp.pth"
    }
  },
  "3": {
    "class_type": "ImageUpscaleWithModel",
    "inputs": {
      "upscale_model": ["2", 0],
      "image": ["1", 0]
    }
  },
  "4": {
    "class_type": "SaveImage",
    "inputs": {
      "images": ["3", 0],
      "filename_prefix": "framesfield_4x_print_master"
    }
  },
  "5": {
    "class_type": "ImageScaleBy",
    "inputs": {
      "image": ["3", 0],
      "upscale_method": "lanczos",
      "scale_by": 0.5
    }
  },
  "6": {
    "class_type": "SaveImage",
    "inputs": {
      "images": ["5", 0],
      "filename_prefix": "framesfield_2x_lanczos_retina"
    }
  }
}

3. Test it right away (sample prompt & result)

Sample prompt / input
Place a 1024x1024 FLUX.1 Schnell or FLUX 3 1K product hero in ComfyUI/input/input_plate.png and run Option A.
What happens when it runs
Writes two lossless PNG files to ComfyUI/output/:
1) framesfield_4x_print_master_00001_.png (4096x4096 = 16.8 MP, ready for 13.6" x 13.6" @ 300 DPI print)
2) framesfield_2x_lanczos_retina_00001_.png (2048x2048 = 4.19 MP Lanczos-oversampled web hero plate)

What you need & known limits

Requirements

  • Local ComfyUI installation (runs cleanly even on 6GB–8GB consumer VRAM cards with zero custom node packs required)
  • Download 4x-UltraSharp.pth (or RealESRGAN_x4plus.pth) into ComfyUI/models/upscale_models/
  • Source PNG copied into ComfyUI/input/input_plate.png (or swap Node 1 image filename)

Watch out for

  • Neural upscalers preserve exact product logos and printed typography far more safely than high-denoise diffusion img2img passes—avoid running denoise > 0.25 over brand packaging labels
  • Do not upscale blurry low-res JPEGs with heavy compression artifacts; always feed lossless PNG masters

Frequently Asked Questions

Why output both a 4x master and a Lanczos 0.5x downsampled 2x file?
Upscaling 4x with 4x-UltraSharp and then Lanczos-downsampling by 0.5x produces noticeably tighter micro-contrast and cleaner edge anti-aliasing at 2048px than standard 2x upscaling—while the full 4096px master covers 300 DPI flyers and posters directly.
Does this graph preserve real product label spelling without hallucinating new letters?
Yes. Because ImageUpscaleWithModel is a deterministic super-resolution network rather than a stochastic diffusion sampler, it sharpens existing edges and letterforms faithfully without rewriting label spelling.
Use this page in AI tools or notes
raw .md