---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://framesfield.com/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
title: "Runnable ComfyUI API JSON Graphs for Local GPUs"
description: "Stock-node, validated ComfyUI API JSON graphs for local 8GB–24GB GPUs—covering Apache 2.0 Alibaba Wan 2.2 I2V, Lightricks LTX-2 native audio-video, Apache 2.0 FLUX.1 Schnell 4-step stills, FLUX FP8 keyframes, 4x-UltraSharp 300 DPI upscaling, and headless Python batch queuing."
canonical: "https://framesfield.com/skills/for/comfyui"
---

# Runnable ComfyUI API JSON Graphs for Local GPUs

> Stock-node, validated ComfyUI API JSON graphs for local 8GB–24GB GPUs—covering Apache 2.0 Alibaba Wan 2.2 I2V, Lightricks LTX-2 native audio-video, Apache 2.0 FLUX.1 Schnell 4-step stills, FLUX FP8 keyframes, 4x-UltraSharp 300 DPI upscaling, and headless Python batch queuing.

- **Canonical URL:** https://framesfield.com/skills/for/comfyui
- **Target Install Path:** `Queue via http://127.0.0.1:8188/prompt  OR  Settings -> Dev Mode -> Load (API Format)`
- **Verified Modules:** 6
- **Last Verified:** 2026-12-01

## Host Architecture

ComfyUI separates human visual graphs (`UI Format`, containing canvas X/Y positions) from headless execution graphs (`API Format`, a clean node-ID dictionary submitted to `http://127.0.0.1:8188/prompt`). Every graph in this directory ships strictly as validated **API Format JSON** built on stock native ComfyUI nodes wherever possible—preventing dependency-hell custom-node crashes and guaranteeing real terminal `SaveImage` or `SaveVideo` output nodes so automated batch queues never reject jobs with `"Prompt has no outputs"`.

## Quickstart (run-comfyui-api-graph.sh)

```bash
# 1. Start local ComfyUI cleanly for 12GB–24GB NVIDIA GPUs (with CPU text-encoder offload)
export PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True
# python main.py --lowvram --preview-method auto

# 2. Download a pure API-Format JSON graph directly from /raw/skills/
curl -fsSL https://framesfield.com/raw/skills/comfyui-flux-schnell-apache-4step-graph -o flux_schnell.api.json

# 3. Queue safely wrapped in {"prompt": ...} (NEVER POST raw flat JSON directly to /prompt!)
python3 -c '
import json, urllib.request
g = json.load(open("flux_schnell.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())
'
```

## All 6 Verified ComfyUI Modules

| # | Name | Type | Target Tool | Docs URL | Raw Payload URL |
| --- | --- | --- | --- | --- | --- |
| 04 | ComfyUI Wan 2.2 Dual-Expert I2V Graph | ComfyUI JSON | ComfyUI | https://framesfield.com/skills/comfyui-character-turnaround | https://framesfield.com/raw/skills/comfyui-character-turnaround |
| 10 | ComfyUI FLUX.1 Kontext / Dev Keyframe Batch Graph | ComfyUI JSON | ComfyUI / FLUX FP8 | https://framesfield.com/skills/comfyui-flux-kontext-keyframe-graph | https://framesfield.com/raw/skills/comfyui-flux-kontext-keyframe-graph |
| 29 | ComfyUI Lightricks LTX-2 I2V Video Graph | ComfyUI JSON | ComfyUI / Lightricks LTX-2 | https://framesfield.com/skills/comfyui-ltx2-audio-video-graph | https://framesfield.com/raw/skills/comfyui-ltx2-audio-video-graph |
| 37 | ComfyUI FLUX High-Res 4x Upscale Graph | ComfyUI JSON | ComfyUI / 4x-UltraSharp / Print 300 DPI | https://framesfield.com/skills/comfyui-flux-upscale-and-inpaint-graph | https://framesfield.com/raw/skills/comfyui-flux-upscale-and-inpaint-graph |
| 45 | ComfyUI FLUX.1 Schnell 4-Step Commercial Graph | ComfyUI JSON | ComfyUI / FLUX.1 Schnell (Apache 2.0) | https://framesfield.com/skills/comfyui-flux-schnell-apache-4step-graph | https://framesfield.com/raw/skills/comfyui-flux-schnell-apache-4step-graph |
| 49 | ComfyUI Wan 2.2 I2V 121-Frame Apache 2.0 Graph | ComfyUI JSON | ComfyUI / Alibaba Wan 2.2 I2V (Apache 2.0) | https://framesfield.com/skills/comfyui-wan-2-2-i2v-apache-graph | https://framesfield.com/raw/skills/comfyui-wan-2-2-i2v-apache-graph |

## Recommended Starter Bundles

1. **100% Apache 2.0 Commercial Studio (16–24GB GPU):** `FLUX.1 Schnell 4-Step Graph + Wan 2.2 I2V Graph + 4x-UltraSharp Print Upscaler` — End-to-end $0-API offline still, 300 DPI print, and 720p→1080p commercial video pipeline.
2. **Headless Overnight Batch Farm:** `ComfyUI Headless Batch Runner Skill + Validated API JSON Graphs + FFmpeg Conform` — Automated CSV-driven rendering of 50+ SKU plates or video takes overnight.

## Best Practices

1. **Place weights in exact ComfyUI/models/ subdirectories:** Diffusion weights (Wan 2.2, FLUX FP8) go into `models/diffusion_models/` or `models/unet/`, text encoders (T5-XXL, CLIP-L, Qwen2.5-VL) into `models/text_encoders/`, VAEs into `models/vae/`, and `4x-UltraSharp.pth` into `models/upscale_models/`.
2. **Always lock video dimensions ÷ 32 and frames to 4n+1 / 8n+1:** Use `1280×704` (16:9) or `704×1280` (9:16), 81 frames for Wan 2.2 (16fps), and 121 frames for LTX-2 (24fps). Verify custom dimensions in our Print DPI & ComfyUI Calculator.
3. **Separate Apache 2.0 commercial checkpoints from personal R&D weights:** Keep Apache 2.0 FLUX.1 Schnell, Wan 2.2, and Qwen-Image 20B strictly separated from Non-Commercial FLUX.1 Dev so client campaigns remain 100% commercially cleared.

## Troubleshooting

- **HTTP 400 "Prompt has no outputs" or blank canvas when dragging JSON into browser:** Wrap POST payloads in `{"prompt": graph}` and use Settings -> Enable Dev Mode Options -> Load (API Format) in the browser UI. (https://framesfield.com/fixes/comfyui-prompt-has-no-outputs-api-error)
- **torch.OutOfMemoryError (CUDA OOM) on 12GB–16GB NVIDIA cards:** Use FP8/GGUF Q4_K_M/NVFP4 weights, set `batch_size=1`, replace `VAEDecode` with `VAEDecodeTiled`, and launch with `--lowvram` + 32–64GB system RAM. (https://framesfield.com/fixes/comfyui-cuda-out-of-memory-16gb-gpu)
- **Tensor shape mismatch crash inside KSampler on Wan 2.2 or LTX-2:** Never feed 1920×1080 raw into `/32` video latents (`1080 / 32 = 33.75`). Snap canvas to `1280×704` and frame counts to `4n+1` (81) or `8n+1` (121). (https://framesfield.com/fixes/comfyui-wan-ltx-frame-count-tensor-mismatch)

## FAQs

### Why does ComfyUI reject API-format JSON files if I drag-and-drop them normally?

Default browser drag-and-drop in ComfyUI expects UI-layout JSON with visual node coordinates. To open clean API-format JSON files visually, enable Settings -> Enable Dev Mode Options -> Load (API Format), or submit them directly to http://127.0.0.1:8188/prompt wrapped in {"prompt": ...}.

### Do these ComfyUI graphs require installing risky third-party custom node packs?

Our core FLUX.1 Schnell, FLUX Keyframe, and 4x-UltraSharp graphs run strictly on built-in stock ComfyUI nodes, and every video graph documents exact native model folders upfront.

### Which ComfyUI graphs are 100% Apache 2.0 safe for paid commercial client work?

Skill 04 (Alibaba Wan 2.2 I2V), Skill 45 (FLUX.1 Schnell 4-Step Commercial Graph), and Skill 37 (4x-UltraSharp print upscaling) run completely offline with permissive commercial clearance.

### How much GPU VRAM and system RAM do I need to run these local graphs smoothly?

FLUX.1 Schnell (NF4/FP8) and 4x-UltraSharp run on 8GB–12GB VRAM; Wan 2.2 (GGUF/FP8) and LTX-2 (NVFP4/FP8) run comfortably on 16GB–24GB VRAM paired with 32GB–64GB system RAM. Check your exact card in /tools/vram-calculator.

### How do I check exact installed model filenames accepted by my local ComfyUI server?

Open http://127.0.0.1:8188/object_info/UNETLoader (or CheckpointLoaderSimple) in your browser or via curl to see the exact file paths ComfyUI recognizes on disk.
