Skip to content
FramesField
ComfyUI JSON Developer / Local Tooling flux-schnell-4step-apache.api.json
Verified Nov 30, 2026

ComfyUI FLUX.1 Schnell 4-Step Commercial Graph

How to install this ComfyUI JSON

Download the raw JSON directly from /raw/skills/comfyui-flux-schnell-apache-4step-graph, then queue via the ComfyUI API command below OR import in ComfyUI Browser using Settings → Enable Dev Mode Options → Load (API Format).

Ready-to-run stock ComfyUI API JSON graph for Black Forest Labs FLUX.1 Schnell (Apache 2.0 commercial open weights): generates crisp 1024x1024 or 1344x768 stills locally in 4 steps (euler/simple, zero CFG overhead) on 8GB–16GB consumer GPUs for $0 API cost with zero custom node packs.

Compatible agent hosts
ComfyUI Claude Code Python API
Target tool: ComfyUI / FLUX.1 Schnell (Apache 2.0) · License: MIT
  1. STEP 01
    Place Apache 2.0 FLUX.1 Schnell weights

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

  2. STEP 02
    Keep steps locked at 4 (zero high-CFG node)

    Schnell is timestep-distilled: steps: 4, euler, simple, and BasicGuider wired directly to CLIPTextEncode.

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

    Generates 4 commercial-safe lossless PNG comps in seconds on 12–16GB cards—ready for 4x print upscale (Skill 37).

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

ComfyUI FLUX.1 Schnell 4-Step Commercial Graph flux-schnell-4step-apache.api.json
{
  "1": {
    "class_type": "UNETLoader",
    "inputs": {
      "unet_name": "flux1-schnell-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": "Clean Swiss editorial studio product photograph on an 85mm prime lens. A matte stoneware pour-over kettle resting on a pale honed travertine counter beside a folded natural linen towel. Soft diffused 5600K overcast north-window daylight from 45 degrees camera left, subtle grounded contact shadow, zero clutter, realistic tactile ceramic glaze."
    }
  },
  "5": {
    "class_type": "EmptySD3LatentImage",
    "inputs": {
      "width": 1024,
      "height": 1024,
      "batch_size": 4
    }
  },
  "6": {
    "class_type": "RandomNoise",
    "inputs": {
      "noise_seed": 804219
    }
  },
  "7": {
    "class_type": "BasicGuider",
    "inputs": {
      "model": ["1", 0],
      "conditioning": ["4", 0]
    }
  },
  "8": {
    "class_type": "KSamplerSelect",
    "inputs": {
      "sampler_name": "euler"
    }
  },
  "9": {
    "class_type": "BasicScheduler",
    "inputs": {
      "model": ["1", 0],
      "scheduler": "simple",
      "steps": 4,
      "denoise": 1.0
    }
  },
  "10": {
    "class_type": "SamplerCustomAdvanced",
    "inputs": {
      "noise": ["6", 0],
      "guider": ["7", 0],
      "sampler": ["8", 0],
      "sigmas": ["9", 0],
      "latent_image": ["5", 0]
    }
  },
  "11": {
    "class_type": "VAEDecode",
    "inputs": {
      "samples": ["10", 0],
      "vae": ["3", 0]
    }
  },
  "12": {
    "class_type": "SaveImage",
    "inputs": {
      "images": ["11", 0],
      "filename_prefix": "framesfield_schnell_apache"
    }
  }
}

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

Sample prompt / input
Leave steps=4, set Node 5 to width: 1344, height: 768 for 16:9 web heroes (or 1024x1024 for product squares), and run Option A against local ComfyUI.
What happens when it runs
Writes 4 commercially cleared Apache 2.0 lossless PNG stills (`ComfyUI/output/framesfield_schnell_apache_00001_.png` .. `00004_.png`) in ~8–18 seconds total on a consumer 12GB–16GB GPU.

What you need & known limits

Requirements

  • Local ComfyUI installation with NVIDIA 8GB–16GB+ VRAM GPU (drop batch_size to 1 on 8GB–12GB cards)
  • Apache 2.0 weights in standard ComfyUI folders: flux1-schnell-fp8.safetensors (diffusion_models/), clip_l.safetensors + t5xxl_fp8_e4m3fn.safetensors (text_encoders/), and ae.safetensors (vae/)

Watch out for

  • Do NOT insert a high FluxGuidance node (3.5+) or push steps to 25—Schnell is timestep-distilled specifically for 1–4 steps without CFG inflation
  • For multi-line poster typography offline, swap to Apache 2.0 Alibaba Qwen-Image 20B (Workflow 16)

Frequently Asked Questions

Why does this graph omit the FluxGuidance node used in FLUX.1 Dev graphs?
FLUX.1 Schnell is distilled to operate without classifier-free guidance (effective CFG 1.0) in 1–4 steps. Wiring CLIPTextEncode straight into BasicGuider matches the official Schnell inference recipe and keeps lighting natural.
Are outputs from this FLUX.1 Schnell graph safe for paid commercial client projects?
Yes. Black Forest Labs released FLUX.1 Schnell weights under the permissive Apache 2.0 license, allowing unrestricted commercial use offline with zero per-image API fees.
Use this page in AI tools or notes
raw .md