---
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: "ComfyUI FLUX.1 Kontext / Dev Keyframe Batch Graph"
description: "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."
canonical: "https://framesfield.com/skills/comfyui-flux-kontext-keyframe-graph"
---

# ComfyUI FLUX.1 Kontext / Dev Keyframe Batch Graph

> 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.

- **Canonical URL:** https://framesfield.com/skills/comfyui-flux-kontext-keyframe-graph
- **Raw Payload URL:** https://framesfield.com/raw/skills/comfyui-flux-kontext-keyframe-graph
- **Asset Type:** ComfyUI JSON
- **Compatible Hosts:** ComfyUI, Claude Code, Python API
- **Target Creative Tool:** ComfyUI / FLUX FP8
- **License:** MIT
- **Last Verified:** 2026-11-30
- **Source Reference:** https://github.com/comfyanonymous/ComfyUI

## Setup & Install

```bash
curl -fsSL https://framesfield.com/raw/skills/comfyui-flux-kontext-keyframe-graph -o comfyui-flux-keyframes.api.json

```

## Copyable Asset (comfyui-flux-keyframes.api.json)

```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"
    }
  }
}
```

## Example Input

```text
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.
```

## Expected Output

```text
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.
```

## 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/`)

## Known Limits

- 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

## Implementation Notes

## 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](/skills/comfyui-character-turnaround) following [Workflow 05: Local Zero-API-Cost Image-to-Video Pipeline with Wan 2.2 MoE & ComfyUI](/workflows/open-weight-local-video-render), and review VRAM sizing and commercial license rules in [Guide 08: Running Open-Weight AI Video Locally: GPUs, VRAM & ComfyUI Setup](/guides/open-weight-local-ai-video-hardware-guide). If you prefer hosted cloud APIs instead of managing local checkpoints, Black Forest Labs now recommends [FLUX 3 Image](/specs/flux-3) (`$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.
