Skip to content
FramesField
ComfyUI JSON Developer / Local Tooling comfyui-flux-keyframes.api.json
Verified Nov 30, 2026

ComfyUI FLUX.1 Kontext / Dev Keyframe Batch Graph

How to install this ComfyUI JSON

Download the raw JSON file directly from /raw/skills/comfyui-flux-kontext-keyframe-graph, then either run it via the 1-line ComfyUI API command below OR import inside ComfyUI Browser using Settings → Dev Mode → Load (API Format).

Ready-to-run ComfyUI API JSON node graph for batch-generating deterministic 16:9 (1344×768) or 9:16 (768×1344) opening still keyframes locally on 12GB–24GB GPUs using FP8 FLUX weights, fixed integer seeds, and lossless PNG SaveImage output before Wan 2.2 or LTX-2 Image-to-Video.

Compatible agent hosts
ComfyUI Claude Code Python API
Target tool: ComfyUI / FLUX FP8 · License: MIT
  1. STEP 01
    Verify FLUX FP8 model files

    Place flux1-dev-fp8.safetensors (diffusion_models/), clip_l + t5xxl_fp8 (text_encoders/), and ae.safetensors (vae/).

  2. STEP 02
    Download raw JSON & adjust dimensions

    Keep 1344×768 for 16:9 (or change Node 6 to 768×1344 for 9:16); both divide cleanly by 16 and 32 for Wan 2.2 / LTX-2.

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

    Run the Python/curl one-liner below against 127.0.0.1:8188/prompt, or enable ComfyUI Dev Mode to open it visually.

1. Install for your tool

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

Direct raw file (comfyui-flux-keyframes.api.json) ↓
Option A: Download & Queue via ComfyUI API (Headless Batch) bash
Downloads the raw valid JSON graph from /raw/skills/comfyui-flux-kontext-keyframe-graph, wraps it in {"prompt": ...}, and queues 4 deterministic PNG keyframes immediately.
curl -fsSL https://framesfield.com/raw/skills/comfyui-flux-kontext-keyframe-graph -o comfyui-flux-keyframes.api.json
python3 -c 'import json, urllib.request; g=json.load(open("comfyui-flux-keyframes.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-kontext-keyframe-graph.

ComfyUI FLUX.1 Kontext / Dev Keyframe Batch Graph comfyui-flux-keyframes.api.json
{
  "1": {
    "class_type": "UNETLoader",
    "inputs": {
      "unet_name": "flux1-dev-fp8.safetensors",
      "weight_dtype": "fp8_e4m3fn"
    }
  },
  "2": {
    "class_type": "DualCLIPLoader",
    "inputs": {
      "clip_name1": "clip_l.safetensors",
      "clip_name2": "t5xxl_fp8_e4m3fn.safetensors",
      "type": "flux"
    }
  },
  "3": {
    "class_type": "VAELoader",
    "inputs": {
      "vae_name": "ae.safetensors"
    }
  },
  "4": {
    "class_type": "CLIPTextEncode",
    "inputs": {
      "clip": ["2", 0],
      "text": "Medium shot on a 35mm spherical prime at eye level. An industrial designer in a matte charcoal overshirt places a stoneware dial on a sunlit birch workbench. Soft overcast 5600K north-window daylight from 45 degrees camera left, negative fill right, natural realistic texture, muted colors."
    }
  },
  "5": {
    "class_type": "FluxGuidance",
    "inputs": {
      "conditioning": ["4", 0],
      "guidance": 3.5
    }
  },
  "6": {
    "class_type": "EmptySD3LatentImage",
    "inputs": {
      "width": 1344,
      "height": 768,
      "batch_size": 4
    }
  },
  "7": {
    "class_type": "RandomNoise",
    "inputs": {
      "noise_seed": 421908
    }
  },
  "8": {
    "class_type": "BasicGuider",
    "inputs": {
      "model": ["1", 0],
      "conditioning": ["5", 0]
    }
  },
  "9": {
    "class_type": "KSamplerSelect",
    "inputs": {
      "sampler_name": "euler"
    }
  },
  "10": {
    "class_type": "BasicScheduler",
    "inputs": {
      "model": ["1", 0],
      "scheduler": "simple",
      "steps": 24,
      "denoise": 1.0
    }
  },
  "11": {
    "class_type": "SamplerCustomAdvanced",
    "inputs": {
      "noise": ["7", 0],
      "guider": ["8", 0],
      "sampler": ["9", 0],
      "sigmas": ["10", 0],
      "latent_image": ["6", 0]
    }
  },
  "12": {
    "class_type": "VAEDecode",
    "inputs": {
      "samples": ["11", 0],
      "vae": ["3", 0]
    }
  },
  "13": {
    "class_type": "SaveImage",
    "inputs": {
      "images": ["12", 0],
      "filename_prefix": "framesfield_keyframe_16x9"
    }
  }
}

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

Sample prompt / input
Set node 6 to width: 768, height: 1344 for native 9:16 Reels/Shorts keyframes, keep seed fixed at 421908, and run Option A against local ComfyUI.
What happens when it runs
Writes 4 lossless PNG opening stills (`ComfyUI/output/framesfield_keyframe_16x9_00001_.png` .. `00004_.png`) at dimensions divisible by 32—ready to move into `ComfyUI/input/` for Wan 2.2 (Skill 04) or Lightricks LTX-2 Image-to-Video.

What you need & known limits

Requirements

  • Local ComfyUI installation with NVIDIA 12GB–24GB+ VRAM GPU and 32GB+ system RAM
  • Weights downloaded into standard ComfyUI folders: flux1-dev-fp8.safetensors (diffusion_models/), clip_l.safetensors + t5xxl_fp8_e4m3fn.safetensors (text_encoders/), and ae.safetensors (vae/)

Watch out for

  • FLUX.1 Dev open weights carry a non-commercial license unless licensed commercially through Black Forest Labs—verify license terms or use FLUX.1 Schnell (Apache 2.0) / hosted FLUX 3 Image ($0.048/1K, 10 free refs) or FLUX 3 Image Klein ($0.009/1K) API for paid client work
  • Drop batch_size from 4 to 1 on 12GB VRAM cards to avoid out-of-memory spikes during latent decoding

Complete your 100% local open-weight pipeline

Once you approve a crisp PNG keyframe from this batch graph, feed it directly into Skill 04: ComfyUI Wan 2.2 Dual-Expert I2V Graph following Workflow 05: Local Zero-API-Cost Image-to-Video Pipeline with Wan 2.2 MoE & ComfyUI, and review VRAM sizing and commercial license rules in Guide 08: Running Open-Weight AI Video Locally: GPUs, VRAM & ComfyUI Setup. If you prefer hosted cloud APIs instead of managing local checkpoints, Black Forest Labs now recommends FLUX 3 Image ($0.048/1K, up to 10 free reference images) or FLUX 3 Image Klein ($0.009/1K), while local ComfyUI users continue running FLUX.1 Dev / Kontext [dev] or FLUX 3 Image Klein open weights.

Frequently Asked Questions

Why does this graph default to 1344×768 instead of 1920×1080?
FLUX models peak in compositional sharpness around 1 megapixel (~1344×768 for 16:9 or 768×1344 for 9:16), and both 1344 and 768 divide cleanly by 16 and 32—preventing tensor shape crashes when you pass the saved PNG straight into Alibaba Wan 2.2 or Lightricks LTX-2.
Why is FluxGuidance set to 3.5 instead of 7.5 like legacy SDXL workflows?
Guidance-distilled FLUX checkpoints expect a guidance scale between 2.5 and 3.5. Pushing guidance above 5.0 creates brittle plastic contrast and oversaturated color halos.
Should I use this local FLUX.1 Dev graph or Black Forest Labs' newer FLUX 3?
For hosted cloud APIs, Black Forest Labs now recommends FLUX 3 Image ($0.048/1K with up to 10 free reference images) or FLUX 3 Image Klein ($0.009/1K). For local ComfyUI pipelines, this graph stays pinned to real verified FLUX.1 Dev / Kontext [dev] FP8 weights (flux1-dev-fp8.safetensors), while teams adopting newer local open weights can also evaluate FLUX 3 Image Klein (5.6B, FLUX Kommunity License) on 24GB GPUs.
Use this page in AI tools or notes
raw .md