Skip to content
Python

Freefield base

neuregexd6909b27dfa6
diff --git a/.env.example b/.env.example
new file mode 100644
index 0000000..4064fb2
--- /dev/null
+++ b/.env.example
@@ -0,0 +1,7 @@
+# Gateway in front of comfy-api-proxy (the Modal URL printed by `modal deploy infra/modal_app.py`,
+# or http://127.0.0.1:8000 when running the gateway locally).
+COMFY_BASE_URL=https://YOUR-WORKSPACE--freefield-backend-serve.modal.run
+# Same value as the FREEFIELD_TOKEN in the Modal secret "freefield".
+FREEFIELD_TOKEN=
+# Let the web UI and the CLI run draft apps too (their workflows have not been run on a GPU yet).
+# FREEFIELD_DRAFTS=1
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000..b956450
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,4 @@
+* text=auto eol=lf
+*.png binary
+*.mp4 binary
+*.webp binary
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..7991d81
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,10 @@
+node_modules/
+out/
+.env
+.env.local
+lab/results/
+lab/assets/*.mp4
+lab/assets/*.png
+__pycache__/
+*.pyc
+.venv/
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..8ffc83b
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,25 @@
+MIT License
+
+Copyright (c) 2026 Sammir Femat (neuregex)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
+Model weights are not part of this repository and keep their own licenses;
+each app's app.json lists them. Camera vocabulary in apps/cinema-studio comes
+from open-higgsfield-ai (MIT).
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..7d7ae85
--- /dev/null
+++ b/README.md
@@ -0,0 +1,146 @@
+# Freefield
+
+Open-source Higgsfield on ComfyUI: every app is one folder, every model is open weights.
+
+Freefield rebuilds Higgsfield's creative apps (image, video, VFX, audio) on top of ComfyUI and the Comfy SDK.
+There is no per-app code. Each app is a folder in `apps/` with an `app.json` manifest and a ComfyUI workflow in API
+format; the web UI, the runner, the model downloads, the VRAM map and the tests are all derived from those manifests.
+
+```
+browser ──▶ web/ + server/ (Node, Comfy SDK) ──▶ gateway :8000 ──▶ comfy-api-proxy :8189 ──▶ ComfyUI :8188
+ menu and forms drawn token check, Comfy API v2 your GPU
+ from apps/*/app.json unloads the GPU in front of ComfyUI (Modal or local)
+ when the app changes
+```
+
+## Status
+
+| | |
+|---|---|
+| Apps | 29 manifests, each with a workflow: 21 *ready* (an official template with only the edits listed in its recipe) and 8 *drafts* (models or LoRAs combined in ways a GPU run still has to confirm) |
+| Workflows | Built from official sources by `tools/build_apps.py` (the two smoke apps are hand-written) and accepted by ComfyUI's validator: ComfyUI `e3bee7f` (0.42.0), ComfyUI-LTXVideo `44c8a36`, ComfyUI-CrossViewWarp `fbb1e93` |
+| LoRA lab | 46 cases, at least one per app; the prompt each one would queue (values, overrides and inserted LoRAs) passes the same validator |
+| End to end | Web UI → server → gateway → comfy-api-proxy → ComfyUI tested with the model-free smoke apps; lab chaining tested the same way |
+| CI | `.github/workflows/validate.yml` runs all of the above on every push, including a CPU-only ComfyUI that checks every workflow and lab case (about 3 minutes) |
+| GPU runs | Not yet. VRAM figures below are weight sizes, not measurements |
+
+## Apps
+
+| App | Rebuilds | Model | On a 24 GB card | Status |
+|---|---|---|---|---|
+| `z-image` | Create Image | Z-Image Turbo (int8) | fits whole, 12.2 GB | ready |
+| `styles` | Image styles | Krea 2 Turbo (int8) + Krea's nine official style LoRAs, picked from a list | fits whole, 19.4 GB | ready |
+| `style-reference` | Style transfer | Krea 2 Turbo (int8) + style-reference LoRA | fits whole, 19.4 GB | ready |
+| `cinema-studio` | Cinematic Cameras | Z-Image Turbo + camera/lens vocabulary | fits whole, 12.2 GB | ready |
+| `edit` | Inpaint / Edit | FLUX 3 Image Klein (int8) | fits whole, 11.0 GB | ready |
+| `relight` | Relight | Qwen Image Edit 2509 (fp8) + Relight and Lightning LoRAs, light presets | tight: 21.5 GB largest phase | ready |
+| `upscale`, `upscale-video` | Upscale | SeedVR2 3B (int8) | fits whole, 4.0 GB | ready |
+| `remove-bg` | Background removal | BiRefNet | fits whole, 0.4 GB | ready |
+| `smooth` | Slow motion / smoothing | FILM frame interpolation | fits whole, 0.1 GB | ready |
+| `video`, `video-t2v` | Create Video (with audio) | LTX-2.5 22B distilled (int8) | tight: 21.5 GB largest phase | ready |
+| `vfx-clean-plate`, `vfx-day-to-night`, `vfx-water` | VFX | LTX-2.5 + official IC-LoRAs | tight: 21.8–22.4 GB | draft |
+| `transitions` | Effects / Transitions | LTX-2.5 + transition LoRA (2.3) | tight: 21.9 GB | draft |
+| `camera-moves` | Camera Controls | Wan 2.2 Fun Camera (fp8): pans, zooms and rolls on an image, with a 4-step fast preset | fits by phases, 15.3 GB | ready |
+| `camera-copy` | Camera Controls | LTX-2.5 + Cameraman v2 IC-LoRA (2.3): copies the camera move of a reference clip | tight: 22.1 GB | draft |
+| `music` | Audio | MiniMax Music 3 | fits whole, 14.3 GB | ready |
+| `sfx` | Audio | Stable Audio 3 medium | fits whole, 10.4 GB | ready |
+| `recast` | Character swap | SCAIL-2 (int8) + SAM 3.1 tracking: replace a person in a video, or animate a character | fits by phases, 18.6 GB | ready |
+| `motion-transfer` | Character / motion swap | Wan Animate 2 (int8) | fits by phases, 16.6 GB | draft |
+| `reshoot` | Camera angles | MiniMax H3 + MoGe + CrossView | needs Modal: 27.1 GB text encoder | draft |
+| `product-shot` | Product placement | FLUX 3 Image Klein (int8) with product-photography scenes | fits whole, 11.0 GB | ready |
+| `speak` | Speak | LTX-2.5 image-to-video voicing a quoted line (voice, lip sync and motion in one pass, no TTS) | tight: 21.5 GB largest phase | ready |
+| `character` | Soul ID | FLUX 3 Image Klein, reference image (int8) | fits whole, 11.0 GB | ready |
+| `talking` | Lipsync / Speak | LTX-2.5 audio-to-video (int8) | tight: 21.5 GB largest phase | draft |
+| `smoke`, `smoke-invert` | — | none | — | ready |
+
+Full table: [`docs/vram-map.md`](docs/vram-map.md) (`python tools/catalog.py vram`). Between two apps with different
+base models the gateway calls ComfyUI's `POST /free`, so nothing from the previous app stays in VRAM.
+
+## Run it
+
+You need Node 22.6+, Python 3.10+ and a [Modal](https://modal.com) account.
+
+```sh
+# 0. what is missing: Node, Modal login and secrets, Hugging Face license access per model, .env
+python tools/doctor.py
+
+# 1. secrets (once)
+modal secret create freefield FREEFIELD_TOKEN=$(python -c "import secrets;print(secrets.token_urlsafe(32))")
+modal secret create huggingface HF_TOKEN=hf_... # accept the LTX-2.5 and FLUX 3 Klein licenses on the Hub first
+
+# 2. models into the "freefield-models" volume, per pack (see packs/index.json)
+python tools/catalog.py packs
+modal run infra/modal_app.py::download --pack image
+
+# 3. backend (private: it needs the token)
+modal deploy infra/modal_app.py # FREEFIELD_GPU=A10G to try the 24 GB plan
+
+# 4. web app
+npm install
+cp .env.example .env # COMFY_BASE_URL = the URL from step 3, FREEFIELD_TOKEN = same token
+npm run serve # http://127.0.0.1:3000
+npm run app -- z-image --set prompt="a red bicycle against a white wall" # or from the terminal
+```
+
+Any ComfyUI works as the backend: run `comfy-api-proxy` next to it and `python infra/gateway.py` in front, and point
+`COMFY_BASE_URL` at the gateway. Pointing it straight at a `comfy-api-proxy` (or another Comfy API v2 endpoint) works
+too; only the unload-between-apps step is skipped. Draft apps stay locked in the UI and the CLI until you set
+`FREEFIELD_DRAFTS=1` (or pass `--draft` to `npm run app`).
+
+## The LoRA lab
+
+`lab/cases.json` lists LoRA experiments: reference clips are generated first, then every LoRA runs on them with a
+fixed seed. The lab downloads missing models, records time and peak VRAM per case, and keeps going when one fails;
+a case whose model could not be downloaded (say, a license not yet accepted) is skipped with the reason.
+
+```sh
+python tools/comfy_validate.py --comfy-dir /path/to/ComfyUI --placeholders --lab lab/cases.json # free, CPU: every case's prompt is valid
+modal run lab/lab_modal.py # all cases on an L40S
+modal run lab/lab_modal.py --apps camera-moves,relight # only these apps (their reference cases come along)
+FREEFIELD_GPU=A10G modal run lab/lab_modal.py --only ic-clean-plate
+modal volume get freefield-lab <run_id> lab/results/<run_id>
+python lab/review.py lab/results/<run_id> --apply-peaks # review page + measured VRAM into app.json
+```
+
+Every app has at least one case, so a full run measures the peak VRAM of the whole catalog (46 cases, close to 300 GB
+of models). Suggested order for the first GPU runs, smallest downloads first so problems show up cheaply:
+
+1. `python tools/doctor.py` until nothing blocking is left.
+2. Image apps (about 80 GB): `modal run lab/lab_modal.py --apps edit,character,product-shot,cinema-studio,styles,style-reference,relight,remove-bg,upscale`.
+3. LTX-2.5 and audio (48 + 29 GB): `--apps video-t2v,video,speak,talking,music,sfx,smooth,upscale-video`, then
+ `--apps vfx-clean-plate,vfx-day-to-night,vfx-water,camera-copy,transitions`.
+4. Wan and SCAIL (40 + 29 + 25 GB): `--apps camera-moves,recast,motion-transfer`.
+5. Re-shoot (55 GB, needs the 48 GB card): `--apps reshoot`.
+6. Review, apply the measured peaks, and set `"status": "ready"` on the drafts that passed.
+
+## Add an app
+
+1. Get the workflow in API format: add a recipe to `tools/build_apps.py` (official template + explicit edits), or
+ export it from ComfyUI with *Export (API)*.
+2. Write `apps/<id>/app.json`: inputs and where each one binds (`node` + `field`), outputs, and every model with its
+ Hugging Face repo, size and phase. The schema is `schema/app.schema.json`. A `select` option can carry `sets`
+ (extra node fields written when it is chosen, like the LoRA file that goes with a style), and `presets` change
+ several fields at once (the 4-step mode of `camera-moves`).
+3. Check it:
+ ```sh
+ npm run validate # schema, bindings, declared models vs. loaders
+ bash tools/ci_comfyui.sh /tmp/comfyui # once: CPU ComfyUI at the pinned commit + pinned custom nodes
+ python tools/comfy_validate.py --comfy-dir /tmp/comfyui --placeholders
+ python tools/catalog.py all # packs and VRAM map
+ npm test
+ ```
+
+`tools/comfy_validate.py` creates empty model files and tiny inputs so ComfyUI's own validator can check a workflow on
+any machine, CPU included. `tools/ui2api.py` converts UI workflows (with subgraphs and dynamic widgets) to API format
+using the node definitions in `tools/object_info.json`.
+
+## Credits and licenses
+
+Code: MIT. Model weights are not in this repository and keep their own licenses, listed in each `app.json`
+(Apache-2.0, MIT, LTX-2.x Community License, FLUX Kommunity License, Krea 2 Community License, SAM License, Stable
+Audio Community License, MiniMax H3 Community License). Some community LoRAs are research-only or non-commercial (Cameraman v2 in `camera-copy`); their
+`app.json` says so and the web UI shows it next to the model. Workflows are adapted from ComfyUI's official templates and Lightricks' ComfyUI-LTXVideo examples;
+the cloud text-encoder branch in Lightricks' examples is removed so every app runs on open weights only. Camera and
+lens vocabulary in `cinema-studio` comes from [open-higgsfield-ai](https://github.com/sunnychase/open-higgsfield-ai) (MIT).
+
+Use footage and characters you own or have permission for; the apps are meant for SFW work.
diff --git a/apps/camera-copy/app.json b/apps/camera-copy/app.json
new file mode 100644
index 0000000..eab5013
--- /dev/null
+++ b/apps/camera-copy/app.json
@@ -0,0 +1,233 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "camera-copy",
+ "name": "Camera Copy",
+ "section": "video",
+ "pack": "video-ltx25",
+ "status": "draft",
+ "higgsfield_feature": "Camera Controls",
+ "summary": "Copies the camera move of any reference clip onto your image: push-ins, pans, orbits, cranes.",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "ComfyUI-LTXVideo example_workflows/2.5/LTX-2.5_V2V_ICLoRA_Single_Stage_Distilled.json (44c8a36)",
+ "comfyui": "0.42.0",
+ "notes": "Gemma API text encoder removed (local encoding only), int8 weights. The reference clip is the IC-LoRA guide; your image is the first frame at 0.6 strength. Cameraman v2 was trained on LTX-2.3; not run on 2.5 yet. The clip's audio is still passed as audio reference, as in the example."
+ },
+ "inputs": [
+ {
+ "id": "image",
+ "type": "image",
+ "label": "Your first frame",
+ "required": true,
+ "limits": {
+ "max_mb": 20
+ },
+ "help": "Same aspect ratio as the reference clip works best",
+ "bind": [
+ {
+ "node": "2004",
+ "field": "image"
+ }
+ ]
+ },
+ {
+ "id": "clip",
+ "type": "video",
+ "label": "Camera move to copy",
+ "required": true,
+ "limits": {
+ "max_mb": 200,
+ "seconds": [
+ 2,
+ 8
+ ]
+ },
+ "help": "Any clip whose camera motion you want; its content is ignored",
+ "bind": [
+ {
+ "node": "5001",
+ "field": "file"
+ }
+ ]
+ },
+ {
+ "id": "prompt",
+ "type": "textarea",
+ "label": "Describe the shot",
+ "required": true,
+ "default": "The camera slowly pushes in toward her face, soft studio light, shallow depth of field",
+ "help": "Naming the camera move helps; an empty prompt sometimes works best",
+ "bind": [
+ {
+ "node": "5508",
+ "field": "value"
+ }
+ ]
+ },
+ {
+ "id": "negative",
+ "type": "textarea",
+ "label": "Must not appear",
+ "default": "static camera, frozen frame, blurry, distorted",
+ "bind": [
+ {
+ "node": "5509",
+ "field": "value"
+ }
+ ]
+ },
+ {
+ "id": "hold",
+ "type": "slider",
+ "label": "Stick to your image",
+ "min": 0.3,
+ "max": 1.0,
+ "step": 0.05,
+ "default": 0.6,
+ "help": "Lower leaves more room for the camera to move",
+ "bind": [
+ {
+ "node": "9002:3159",
+ "field": "strength"
+ }
+ ]
+ },
+ {
+ "id": "strength",
+ "type": "slider",
+ "label": "Follow the reference move",
+ "min": 0.5,
+ "max": 1.3,
+ "step": 0.05,
+ "default": 1.0,
+ "bind": [
+ {
+ "node": "5004:5606",
+ "field": "strength_model"
+ }
+ ]
+ },
+ {
+ "id": "size",
+ "type": "select",
+ "label": "Resolution (short side)",
+ "default": 544,
+ "options": [
+ {
+ "value": 512,
+ "label": "512 px"
+ },
+ {
+ "value": 544,
+ "label": "544 px"
+ },
+ {
+ "value": 576,
+ "label": "576 px"
+ },
+ {
+ "value": 720,
+ "label": "720 px"
+ }
+ ],
+ "help": "The LoRA follows the move better at higher resolution",
+ "bind": [
+ {
+ "node": "5548:5026",
+ "field": "resize_type.shorter_size"
+ }
+ ]
+ },
+ {
+ "id": "seed",
+ "type": "seed",
+ "label": "Seed",
+ "default": -1,
+ "help": "-1 picks a random seed",
+ "bind": [
+ {
+ "node": "5516:4832",
+ "field": "noise_seed"
+ }
+ ]
+ }
+ ],
+ "outputs": [
+ {
+ "node": "4852",
+ "type": "video",
+ "label": "Video"
+ }
+ ],
+ "models": [
+ {
+ "repo": "Lightricks/LTX-2.5",
+ "file": "diffusion_models/ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors",
+ "dir": "diffusion_models",
+ "gb": 21.5,
+ "phase": "denoise",
+ "gated": true,
+ "license": "LTX-2.x Community License"
+ },
+ {
+ "repo": "Lightricks/LTX-2.5",
+ "file": "text_encoders/gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors",
+ "dir": "text_encoders",
+ "gb": 15.37,
+ "phase": "encode",
+ "gated": true,
+ "license": "LTX-2.x Community License"
+ },
+ {
+ "repo": "Lightricks/LTX-2.5",
+ "file": "vae/ltx-2.5-video-vae-bf16.safetensors",
+ "dir": "vae",
+ "gb": 1.47,
+ "phase": "decode",
+ "gated": true,
+ "license": "LTX-2.x Community License"
+ },
+ {
+ "repo": "Lightricks/LTX-2.5",
+ "file": "vae/ltx-2.5-audio-vae-bf16.safetensors",
+ "dir": "vae",
+ "gb": 0.36,
+ "phase": "decode",
+ "gated": true,
+ "license": "LTX-2.x Community License"
+ },
+ {
+ "repo": "Comfy-Org/gemma-4",
+ "file": "text_encoders/gemma4_e2b_it_int8_convrot.safetensors",
+ "dir": "text_encoders",
+ "gb": 5.2,
+ "phase": "encode",
+ "license": "Apache-2.0",
+ "optional": true
+ },
+ {
+ "repo": "Cseti/LTX2.3-22B_IC-LoRA-Cameraman_v2",
+ "file": "LTX2.3-22B_IC-LoRA-Cameraman_v2_14000.safetensors",
+ "dir": "loras",
+ "gb": 0.65,
+ "phase": "denoise",
+ "license": "Research only, non-commercial (see model card)"
+ }
+ ],
+ "custom_nodes": [
+ {
+ "repo": "https://github.com/Lightricks/ComfyUI-LTXVideo",
+ "commit": "44c8a36b7c31ee00b4271daed11dc2a4aa481140"
+ }
+ ],
+ "credits": [
+ "LTX-2.5 by Lightricks",
+ "Cameraman v2 IC-LoRA by Cseti (research, non-commercial)",
+ "Workflow adapted from Lightricks' ComfyUI-LTXVideo examples"
+ ],
+ "test": {
+ "image": "test/portrait.png",
+ "clip": "test/clip.mp4",
+ "size": 512
+ }
+}
diff --git a/apps/camera-copy/workflow.api.json b/apps/camera-copy/workflow.api.json
new file mode 100644
index 0000000..f1ea494
--- /dev/null
+++ b/apps/camera-copy/workflow.api.json
@@ -0,0 +1,715 @@
+{
+ "2004": {
+ "class_type": "LoadImage",
+ "inputs": {
+ "image": "example.png"
+ },
+ "_meta": {
+ "title": "Load Image"
+ }
+ },
+ "4852": {
+ "class_type": "SaveVideo",
+ "inputs": {
+ "video": [
+ "5518:4849",
+ 0
+ ],
+ "filename_prefix": "freefield/camera-copy",
+ "format": "auto",
+ "format.codec": "auto",
+ "codec": "auto"
+ },
+ "_meta": {
+ "title": "Save Video"
+ }
+ },
+ "5001": {
+ "class_type": "LoadVideo",
+ "inputs": {
+ "file": ""
+ },
+ "_meta": {
+ "title": "Load Video"
+ }
+ },
+ "5004:5600": {
+ "class_type": "VAELoader",
+ "inputs": {
+ "vae_name": "ltx-2.5-audio-vae-bf16.safetensors"
+ },
+ "_meta": {
+ "title": "Load VAE - Audio"
+ }
+ },
+ "5004:5601": {
+ "class_type": "VAELoader",
+ "inputs": {
+ "vae_name": "ltx-2.5-video-vae-bf16.safetensors"
+ },
+ "_meta": {
+ "title": "Load VAE - Video"
+ }
+ },
+ "5004:5602": {
+ "class_type": "UNETLoader",
+ "inputs": {
+ "unet_name": "ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors",
+ "weight_dtype": "default"
+ },
+ "_meta": {
+ "title": "Load Diffusion Model"
+ }
+ },
+ "5004:5604": {
+ "class_type": "CLIPLoader",
+ "inputs": {
+ "clip_name": "gemma4_e2b_it_int8_convrot.safetensors",
+ "type": "ltxv",
+ "device": "default"
+ },
+ "_meta": {
+ "title": "Load CLIP - Text Enhancer"
+ }
+ },
+ "5004:5605": {
+ "class_type": "CLIPLoader",
+ "inputs": {
+ "clip_name": "gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors",
+ "type": "ltxv",
+ "device": "default"
+ },
+ "_meta": {
+ "title": "Load CLIP - Text Encoder"
+ }
+ },
+ "5004:5606": {
+ "class_type": "LTXICLoRALoaderModelOnly",
+ "inputs": {
+ "model": [
+ "5004:5602",
+ 0
+ ],
+ "lora_name": "LTX2.3-22B_IC-LoRA-Cameraman_v2_14000.safetensors",
+ "strength_model": 1
+ },
+ "_meta": {
+ "title": "🅛🅣🅧 IC-LoRA Loader Model Only"
+ }
+ },
+ "5014:1241": {
+ "class_type": "LTXVConditioning",
+ "inputs": {
+ "positive": [
+ "5014:2483",
+ 0
+ ],
+ "negative": [
+ "5014:2612",
+ 0
+ ],
+ "frame_rate": [
+ "5548:9006",
+ 2
+ ]
+ },
+ "_meta": {
+ "title": "LTXVConditioning"
+ }
+ },
+ "5014:2483": {
+ "class_type": "CLIPTextEncode",
+ "inputs": {
+ "clip": [
+ "5004:5605",
+ 0
+ ],
+ "text": [
+ "5014:5556",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "CLIP Text Encode (Positive Prompt)"
+ }
+ },
+ "5014:2612": {
+ "class_type": "CLIPTextEncode",
+ "inputs": {
+ "clip": [
+ "5004:5605",
+ 0
+ ],
+ "text": [
+ "5509",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "CLIP Text Encode (Negative Prompt)"
+ }
+ },
+ "5014:4990": {
+ "class_type": "ResizeImageMaskNode",
+ "inputs": {
+ "input": [
+ "2004",
+ 0
+ ],
+ "resize_type": "scale longer dimension",
+ "resize_type.longer_size": 1536,
+ "scale_method": "lanczos"
+ },
+ "_meta": {
+ "title": "Resize Image/Mask"
+ }
+ },
+ "5014:5019": {
+ "class_type": "ComfyNotNode",
+ "inputs": {
+ "value": [
+ "5014:5506",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Not (use image > bypass_i2v)"
+ }
+ },
+ "5014:5506": {
+ "class_type": "PrimitiveBoolean",
+ "inputs": {
+ "value": true
+ },
+ "_meta": {
+ "title": "Boolean"
+ }
+ },
+ "5014:5546": {
+ "class_type": "TextGenerateLTX2Prompt",
+ "inputs": {
+ "clip": [
+ "5004:5604",
+ 0
+ ],
+ "image": [
+ "5014:4990",
+ 0
+ ],
+ "prompt": [
+ "5508",
+ 0
+ ],
+ "max_length": 600,
+ "sampling_mode": "on",
+ "sampling_mode.temperature": 0.01,
+ "sampling_mode.top_k": 0,
+ "sampling_mode.top_p": 1,
+ "sampling_mode.min_p": 0,
+ "sampling_mode.repetition_penalty": 1.15,
+ "sampling_mode.seed": 0,
+ "sampling_mode.presence_penalty": 0,
+ "thinking": false,
+ "use_default_template": true,
+ "mtp": "auto"
+ },
+ "_meta": {
+ "title": "Positive prompt + image enhancer - TextGenerateLTX2Prompt"
+ }
+ },
+ "5014:5555": {
+ "class_type": "ComfySwitchNode",
+ "inputs": {
+ "on_false": [
+ "5014:9004",
+ 0
+ ],
+ "on_true": [
+ "5014:5546",
+ 0
+ ],
+ "switch": [
+ "5014:5506",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "If/Else Switch"
+ }
+ },
+ "5014:5556": {
+ "class_type": "ComfySwitchNode",
+ "inputs": {
+ "on_false": [
+ "5508",
+ 0
+ ],
+ "on_true": [
+ "5014:5555",
+ 0
+ ],
+ "switch": false
+ },
+ "_meta": {
+ "title": "If/Else Switch"
+ }
+ },
+ "5014:9004": {
+ "class_type": "TextGenerateLTX2Prompt",
+ "inputs": {
+ "clip": [
+ "5004:5604",
+ 0
+ ],
+ "prompt": [
+ "5508",
+ 0
+ ],
+ "max_length": 600,
+ "sampling_mode": "on",
+ "sampling_mode.temperature": 0.01,
+ "sampling_mode.top_k": 0,
+ "sampling_mode.top_p": 1,
+ "sampling_mode.min_p": 0,
+ "sampling_mode.repetition_penalty": 1.15,
+ "sampling_mode.seed": 0,
+ "sampling_mode.presence_penalty": 0,
+ "thinking": false,
+ "use_default_template": true,
+ "mtp": "auto"
+ },
+ "_meta": {
+ "title": "Positive prompt (t2v) enhancer - TextGenerateLTX2Prompt"
+ }
+ },
+ "5508": {
+ "class_type": "PrimitiveStringMultiline",
+ "inputs": {
+ "value": ""
+ },
+ "_meta": {
+ "title": "Prompt (positive)"
+ }
+ },
+ "5509": {
+ "class_type": "PrimitiveStringMultiline",
+ "inputs": {
+ "value": ""
+ },
+ "_meta": {
+ "title": "Prompt (negative)"
+ }
+ },
+ "5516:4828": {
+ "class_type": "CFGGuider",
+ "inputs": {
+ "model": [
+ "5004:5606",
+ 0
+ ],
+ "positive": [
+ "9002:5012",
+ 0
+ ],
+ "negative": [
+ "9002:5012",
+ 1
+ ],
+ "cfg": 1
+ },
+ "_meta": {
+ "title": "CFG Guider"
+ }
+ },
+ "5516:4829": {
+ "class_type": "SamplerCustomAdvanced",
+ "inputs": {
+ "noise": [
+ "5516:4832",
+ 0
+ ],
+ "guider": [
+ "5516:4828",
+ 0
+ ],
+ "sampler": [
+ "5516:4831",
+ 0
+ ],
+ "sigmas": [
+ "5516:4984",
+ 0
+ ],
+ "latent_image": [
+ "9002:4528",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "SamplerCustomAdvanced"
+ }
+ },
+ "5516:4831": {
+ "class_type": "KSamplerSelect",
+ "inputs": {
+ "sampler_name": "euler_ancestral"
+ },
+ "_meta": {
+ "title": "KSamplerSelect"
+ }
+ },
+ "5516:4832": {
+ "class_type": "RandomNoise",
+ "inputs": {
+ "noise_seed": 42
+ },
+ "_meta": {
+ "title": "RandomNoise"
+ }
+ },
+ "5516:4845": {
+ "class_type": "LTXVSeparateAVLatent",
+ "inputs": {
+ "av_latent": [
+ "5516:4829",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Separate AV Latent"
+ }
+ },
+ "5516:4984": {
+ "class_type": "ManualSigmas",
+ "inputs": {
+ "sigmas": "1.0, 0.99375, 0.9875, 0.98125, 0.975, 0.909375, 0.725, 0.421875, 0.0"
+ },
+ "_meta": {
+ "title": "ManualSigmas"
+ }
+ },
+ "5516:5000": {
+ "class_type": "LTXVCropGuides",
+ "inputs": {
+ "positive": [
+ "9002:5012",
+ 0
+ ],
+ "negative": [
+ "9002:5012",
+ 1
+ ],
+ "latent": [
+ "5516:4845",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "LTXVCropGuides"
+ }
+ },
+ "5518:4848": {
+ "class_type": "LTXVAudioVAEDecode",
+ "inputs": {
+ "samples": [
+ "5516:4845",
+ 1
+ ],
+ "audio_vae": [
+ "5004:5600",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "LTXV Audio VAE Decode"
+ }
+ },
+ "5518:4849": {
+ "class_type": "CreateVideo",
+ "inputs": {
+ "images": [
+ "5518:5538",
+ 0
+ ],
+ "audio": [
+ "5518:4848",
+ 0
+ ],
+ "fps": [
+ "5548:9006",
+ 2
+ ],
+ "bit_depth": 8,
+ "color_space": "sRGB",
+ "codec": "none"
+ },
+ "_meta": {
+ "title": "Create Video"
+ }
+ },
+ "5518:5538": {
+ "class_type": "VAEDecodeTiled",
+ "inputs": {
+ "samples": [
+ "5516:5000",
+ 2
+ ],
+ "vae": [
+ "5004:5601",
+ 0
+ ],
+ "tile_size": 512,
+ "overlap": 64,
+ "temporal_size": 64,
+ "temporal_overlap": 8
+ },
+ "_meta": {
+ "title": "VAE Decode (Tiled)"
+ }
+ },
+ "5548:5026": {
+ "class_type": "ResizeImageMaskNode",
+ "inputs": {
+ "input": [
+ "5548:9006",
+ 0
+ ],
+ "resize_type": "scale shorter dimension",
+ "resize_type.shorter_size": 544,
+ "scale_method": "lanczos"
+ },
+ "_meta": {
+ "title": "Resize Image/Mask"
+ }
+ },
+ "5548:5029": {
+ "class_type": "GetImageSize",
+ "inputs": {
+ "image": [
+ "5548:5026",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Get Image Size"
+ }
+ },
+ "5548:9006": {
+ "class_type": "GetVideoComponents",
+ "inputs": {
+ "video": [
+ "5001",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Get Video Components"
+ }
+ },
+ "5548:9010": {
+ "class_type": "ComfyMathExpression",
+ "inputs": {
+ "values.a": [
+ "5548:5029",
+ 2
+ ],
+ "values.b": [
+ "5548:9006",
+ 2
+ ],
+ "expression": "a / b"
+ },
+ "_meta": {
+ "title": "audio duration = frames / fps"
+ }
+ },
+ "5548:9011": {
+ "class_type": "EmptyAudio",
+ "inputs": {
+ "duration": [
+ "5548:9010",
+ 0
+ ],
+ "sample_rate": 44100,
+ "channels": 2
+ },
+ "_meta": {
+ "title": "silence fallback"
+ }
+ },
+ "5548:9012": {
+ "class_type": "AudioMerge",
+ "inputs": {
+ "audio1": [
+ "5548:9006",
+ 1
+ ],
+ "audio2": [
+ "5548:9011",
+ 0
+ ],
+ "merge_method": "add"
+ },
+ "_meta": {
+ "title": "use source audio, else silence"
+ }
+ },
+ "9002:3059": {
+ "class_type": "EmptyLTXVLatentVideo",
+ "inputs": {
+ "width": [
+ "5548:5029",
+ 0
+ ],
+ "height": [
+ "5548:5029",
+ 1
+ ],
+ "length": [
+ "5548:5029",
+ 2
+ ],
+ "batch_size": 1
+ },
+ "_meta": {
+ "title": "Empty LTXV Latent Video"
+ }
+ },
+ "9002:3159": {
+ "class_type": "LTXVImgToVideoInplace",
+ "inputs": {
+ "vae": [
+ "5004:5601",
+ 0
+ ],
+ "image": [
+ "5014:4990",
+ 0
+ ],
+ "latent": [
+ "9002:3059",
+ 0
+ ],
+ "bypass": [
+ "5014:5019",
+ 0
+ ],
+ "strength": 0.6
+ },
+ "_meta": {
+ "title": "LTXVImgToVideoInplace"
+ }
+ },
+ "9002:4528": {
+ "class_type": "LTXVConcatAVLatent",
+ "inputs": {
+ "video_latent": [
+ "9002:5012",
+ 2
+ ],
+ "audio_latent": [
+ "9002:9008",
+ 2
+ ]
+ },
+ "_meta": {
+ "title": "Concat AV Latent"
+ }
+ },
+ "9002:5012": {
+ "class_type": "LTXAddVideoICLoRAGuide",
+ "inputs": {
+ "positive": [
+ "9002:9005",
+ 0
+ ],
+ "negative": [
+ "9002:9005",
+ 1
+ ],
+ "vae": [
+ "5004:5601",
+ 0
+ ],
+ "latent": [
+ "9002:3159",
+ 0
+ ],
+ "image": [
+ "5548:5026",
+ 0
+ ],
+ "latent_downscale_factor": [
+ "5004:5606",
+ 1
+ ],
+ "frame_idx": 0,
+ "strength": 1,
+ "crop": "disabled",
+ "use_tiled_encode": false,
+ "tile_size": 256,
+ "tile_overlap": 64,
+ "use_streaming": false,
+ "tile_frames": 97
+ },
+ "_meta": {
+ "title": "🅛🅣🅧 Add Video IC-LoRA Guide"
+ }
+ },
+ "9002:9005": {
+ "class_type": "LTXVConditioning",
+ "inputs": {
+ "positive": [
+ "5014:1241",
+ 0
+ ],
+ "negative": [
+ "5014:1241",
+ 1
+ ],
+ "frame_rate": [
+ "5548:9006",
+ 2
+ ]
+ },
+ "_meta": {
+ "title": "LTXVConditioning"
+ }
+ },
+ "9002:9007": {
+ "class_type": "VAEEncodeAudio",
+ "inputs": {
+ "audio": [
+ "5548:9012",
+ 0
+ ],
+ "vae": [
+ "5004:5600",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "VAE Encode Audio"
+ }
+ },
+ "9002:9008": {
+ "class_type": "LTXVSetAudioRefTokens",
+ "inputs": {
+ "positive": [
+ "9002:9005",
+ 0
+ ],
+ "negative": [
+ "9002:9005",
+ 1
+ ],
+ "audio_latent": [
+ "9002:9007",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "freeze the source audio"
+ }
+ }
+}
diff --git a/apps/camera-moves/app.json b/apps/camera-moves/app.json
new file mode 100644
index 0000000..8c2751e
--- /dev/null
+++ b/apps/camera-moves/app.json
@@ -0,0 +1,332 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "camera-moves",
+ "name": "Camera Moves",
+ "section": "video",
+ "pack": "video-wan-camera",
+ "status": "ready",
+ "higgsfield_feature": "Camera Controls",
+ "summary": "Animates your image with a precise camera move: pans, zooms and rolls at the speed you pick (Wan 2.2 Fun Camera).",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "video_wan2_2_14B_fun_camera.json",
+ "comfyui": "0.42.0",
+ "notes": "The template's bypassed 4-step Lightning LoRAs are re-added at strength 0 (a no-op); the fast preset switches them on with the template's own 4-step settings."
+ },
+ "inputs": [
+ {
+ "id": "image",
+ "type": "image",
+ "label": "Start image",
+ "required": true,
+ "limits": {
+ "max_mb": 20
+ },
+ "bind": [
+ {
+ "node": "97",
+ "field": "image"
+ }
+ ]
+ },
+ {
+ "id": "prompt",
+ "type": "textarea",
+ "label": "What happens in the shot",
+ "required": true,
+ "default": "A quiet harbor at dawn, fishing boats rocking gently, gulls flying over the water, soft golden light",
+ "bind": [
+ {
+ "node": "107",
+ "field": "text"
+ }
+ ]
+ },
+ {
+ "id": "camera",
+ "type": "select",
+ "label": "Camera move",
+ "default": "Zoom In",
+ "options": [
+ {
+ "value": "Static",
+ "label": "Static (no move)"
+ },
+ {
+ "value": "Pan Up",
+ "label": "Pan up"
+ },
+ {
+ "value": "Pan Down",
+ "label": "Pan down"
+ },
+ {
+ "value": "Pan Left",
+ "label": "Pan left"
+ },
+ {
+ "value": "Pan Right",
+ "label": "Pan right"
+ },
+ {
+ "value": "Zoom In",
+ "label": "Zoom in"
+ },
+ {
+ "value": "Zoom Out",
+ "label": "Zoom out"
+ },
+ {
+ "value": "Anti Clockwise (ACW)",
+ "label": "Rotate counter-clockwise"
+ },
+ {
+ "value": "ClockWise (CW)",
+ "label": "Rotate clockwise"
+ }
+ ],
+ "bind": [
+ {
+ "node": "108",
+ "field": "camera_pose"
+ }
+ ]
+ },
+ {
+ "id": "speed",
+ "type": "slider",
+ "label": "Move speed",
+ "min": 0.2,
+ "max": 3.0,
+ "step": 0.1,
+ "default": 1.0,
+ "bind": [
+ {
+ "node": "108",
+ "field": "speed"
+ }
+ ]
+ },
+ {
+ "id": "width",
+ "type": "select",
+ "label": "Width",
+ "default": 640,
+ "options": [
+ {
+ "value": 480,
+ "label": "480 px"
+ },
+ {
+ "value": 640,
+ "label": "640 px"
+ },
+ {
+ "value": 720,
+ "label": "720 px"
+ },
+ {
+ "value": 832,
+ "label": "832 px"
+ },
+ {
+ "value": 960,
+ "label": "960 px"
+ }
+ ],
+ "bind": [
+ {
+ "node": "108",
+ "field": "width"
+ }
+ ]
+ },
+ {
+ "id": "height",
+ "type": "select",
+ "label": "Height",
+ "default": 640,
+ "options": [
+ {
+ "value": 480,
+ "label": "480 px"
+ },
+ {
+ "value": 640,
+ "label": "640 px"
+ },
+ {
+ "value": 720,
+ "label": "720 px"
+ },
+ {
+ "value": 832,
+ "label": "832 px"
+ },
+ {
+ "value": 960,
+ "label": "960 px"
+ }
+ ],
+ "bind": [
+ {
+ "node": "108",
+ "field": "height"
+ }
+ ]
+ },
+ {
+ "id": "frames",
+ "type": "select",
+ "label": "Length",
+ "default": 81,
+ "options": [
+ {
+ "value": 49,
+ "label": "3 s"
+ },
+ {
+ "value": 81,
+ "label": "5 s"
+ }
+ ],
+ "bind": [
+ {
+ "node": "108",
+ "field": "length"
+ }
+ ]
+ },
+ {
+ "id": "seed",
+ "type": "seed",
+ "label": "Seed",
+ "default": -1,
+ "help": "-1 picks a random seed",
+ "bind": [
+ {
+ "node": "102",
+ "field": "noise_seed"
+ }
+ ]
+ }
+ ],
+ "presets": [
+ {
+ "id": "fast",
+ "label": "Fast: 4 steps with the Lightning LoRAs (less motion, about 5x quicker)",
+ "sets": [
+ {
+ "node": "ff_lora_high",
+ "field": "strength_model",
+ "value": 1.0
+ },
+ {
+ "node": "ff_lora_low",
+ "field": "strength_model",
+ "value": 1.0
+ },
+ {
+ "node": "102",
+ "field": "steps",
+ "value": 4
+ },
+ {
+ "node": "102",
+ "field": "cfg",
+ "value": 1.0
+ },
+ {
+ "node": "102",
+ "field": "end_at_step",
+ "value": 2
+ },
+ {
+ "node": "103",
+ "field": "steps",
+ "value": 4
+ },
+ {
+ "node": "103",
+ "field": "cfg",
+ "value": 1.0
+ },
+ {
+ "node": "103",
+ "field": "start_at_step",
+ "value": 2
+ }
+ ]
+ }
+ ],
+ "outputs": [
+ {
+ "node": "106",
+ "type": "video",
+ "label": "Video"
+ }
+ ],
+ "models": [
+ {
+ "repo": "Comfy-Org/Wan_2.2_ComfyUI_Repackaged",
+ "file": "split_files/diffusion_models/wan2.2_fun_camera_high_noise_14B_fp8_scaled.safetensors",
+ "dir": "diffusion_models",
+ "gb": 15.3,
+ "phase": "denoise",
+ "license": "Apache-2.0"
+ },
+ {
+ "repo": "Comfy-Org/Wan_2.2_ComfyUI_Repackaged",
+ "file": "split_files/diffusion_models/wan2.2_fun_camera_low_noise_14B_fp8_scaled.safetensors",
+ "dir": "diffusion_models",
+ "gb": 15.3,
+ "phase": "denoise2",
+ "license": "Apache-2.0"
+ },
+ {
+ "repo": "Comfy-Org/Wan_2.1_ComfyUI_repackaged",
+ "file": "split_files/text_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensors",
+ "dir": "text_encoders",
+ "gb": 6.74,
+ "phase": "encode",
+ "license": "Apache-2.0"
+ },
+ {
+ "repo": "Comfy-Org/Wan_2.2_ComfyUI_Repackaged",
+ "file": "split_files/vae/wan_2.1_vae.safetensors",
+ "dir": "vae",
+ "gb": 0.25,
+ "phase": "decode",
+ "license": "Apache-2.0"
+ },
+ {
+ "repo": "Comfy-Org/Wan_2.2_ComfyUI_Repackaged",
+ "file": "split_files/loras/wan2.2_i2v_lightx2v_4steps_lora_v1_high_noise.safetensors",
+ "dir": "loras",
+ "gb": 1.23,
+ "phase": "denoise",
+ "license": "Apache-2.0",
+ "optional": true
+ },
+ {
+ "repo": "Comfy-Org/Wan_2.2_ComfyUI_Repackaged",
+ "file": "split_files/loras/wan2.2_i2v_lightx2v_4steps_lora_v1_low_noise.safetensors",
+ "dir": "loras",
+ "gb": 1.23,
+ "phase": "denoise2",
+ "license": "Apache-2.0",
+ "optional": true
+ }
+ ],
+ "credits": [
+ "Wan 2.2 Fun Camera by Alibaba PAI (Apache-2.0)",
+ "Lightning LoRAs by lightx2v",
+ "Workflow: ComfyUI official template"
+ ],
+ "test": {
+ "image": "test/portrait.png",
+ "width": 480,
+ "height": 480,
+ "frames": 49
+ }
+}
diff --git a/apps/camera-moves/workflow.api.json b/apps/camera-moves/workflow.api.json
new file mode 100644
index 0000000..6d7e3dc
--- /dev/null
+++ b/apps/camera-moves/workflow.api.json
@@ -0,0 +1,299 @@
+{
+ "91": {
+ "class_type": "VAELoader",
+ "inputs": {
+ "vae_name": "wan_2.1_vae.safetensors"
+ },
+ "_meta": {
+ "title": "Load VAE"
+ }
+ },
+ "92": {
+ "class_type": "UNETLoader",
+ "inputs": {
+ "unet_name": "wan2.2_fun_camera_high_noise_14B_fp8_scaled.safetensors",
+ "weight_dtype": "default"
+ },
+ "_meta": {
+ "title": "Load Diffusion Model"
+ }
+ },
+ "95": {
+ "class_type": "UNETLoader",
+ "inputs": {
+ "unet_name": "wan2.2_fun_camera_low_noise_14B_fp8_scaled.safetensors",
+ "weight_dtype": "default"
+ },
+ "_meta": {
+ "title": "Load Diffusion Model"
+ }
+ },
+ "96": {
+ "class_type": "CLIPLoader",
+ "inputs": {
+ "clip_name": "umt5_xxl_fp8_e4m3fn_scaled.safetensors",
+ "type": "wan",
+ "device": "default"
+ },
+ "_meta": {
+ "title": "Load CLIP"
+ }
+ },
+ "97": {
+ "class_type": "LoadImage",
+ "inputs": {
+ "image": "video_wan2_2_14B_fun_camera_start_image.jpg"
+ },
+ "_meta": {
+ "title": "Load Image"
+ }
+ },
+ "98": {
+ "class_type": "WanCameraImageToVideo",
+ "inputs": {
+ "positive": [
+ "107",
+ 0
+ ],
+ "negative": [
+ "99",
+ 0
+ ],
+ "vae": [
+ "91",
+ 0
+ ],
+ "start_image": [
+ "97",
+ 0
+ ],
+ "camera_conditions": [
+ "108",
+ 0
+ ],
+ "width": [
+ "108",
+ 1
+ ],
+ "height": [
+ "108",
+ 2
+ ],
+ "length": [
+ "108",
+ 3
+ ],
+ "batch_size": 1
+ },
+ "_meta": {
+ "title": "WanCameraImageToVideo"
+ }
+ },
+ "99": {
+ "class_type": "CLIPTextEncode",
+ "inputs": {
+ "clip": [
+ "96",
+ 0
+ ],
+ "text": "色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走"
+ },
+ "_meta": {
+ "title": "CLIP Text Encode (Negative Prompt)"
+ }
+ },
+ "100": {
+ "class_type": "ModelSamplingSD3",
+ "inputs": {
+ "model": [
+ "ff_lora_high",
+ 0
+ ],
+ "shift": 8.000000000000002
+ },
+ "_meta": {
+ "title": "ModelSamplingSD3"
+ }
+ },
+ "101": {
+ "class_type": "ModelSamplingSD3",
+ "inputs": {
+ "model": [
+ "ff_lora_low",
+ 0
+ ],
+ "shift": 8
+ },
+ "_meta": {
+ "title": "ModelSamplingSD3"
+ }
+ },
+ "102": {
+ "class_type": "KSamplerAdvanced",
+ "inputs": {
+ "model": [
+ "100",
+ 0
+ ],
+ "positive": [
+ "98",
+ 0
+ ],
+ "negative": [
+ "98",
+ 1
+ ],
+ "latent_image": [
+ "98",
+ 2
+ ],
+ "add_noise": "enable",
+ "noise_seed": 12802742726693,
+ "steps": 20,
+ "cfg": 3.5,
+ "sampler_name": "euler",
+ "scheduler": "simple",
+ "start_at_step": 0,
+ "end_at_step": 10,
+ "return_with_leftover_noise": "enable"
+ },
+ "_meta": {
+ "title": "KSampler (Advanced)"
+ }
+ },
+ "103": {
+ "class_type": "KSamplerAdvanced",
+ "inputs": {
+ "model": [
+ "101",
+ 0
+ ],
+ "positive": [
+ "98",
+ 0
+ ],
+ "negative": [
+ "98",
+ 1
+ ],
+ "latent_image": [
+ "102",
+ 0
+ ],
+ "add_noise": "disable",
+ "noise_seed": 0,
+ "steps": 20,
+ "cfg": 3.5,
+ "sampler_name": "euler",
+ "scheduler": "simple",
+ "start_at_step": 10,
+ "end_at_step": 10000,
+ "return_with_leftover_noise": "disable"
+ },
+ "_meta": {
+ "title": "KSampler (Advanced)"
+ }
+ },
+ "104": {
+ "class_type": "VAEDecode",
+ "inputs": {
+ "samples": [
+ "103",
+ 0
+ ],
+ "vae": [
+ "91",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "VAE Decode"
+ }
+ },
+ "105": {
+ "class_type": "CreateVideo",
+ "inputs": {
+ "images": [
+ "104",
+ 0
+ ],
+ "fps": 16
+ },
+ "_meta": {
+ "title": "Create Video"
+ }
+ },
+ "106": {
+ "class_type": "SaveVideo",
+ "inputs": {
+ "video": [
+ "105",
+ 0
+ ],
+ "filename_prefix": "freefield/camera-moves",
+ "format": "auto",
+ "format.codec": "auto"
+ },
+ "_meta": {
+ "title": "Save Video"
+ }
+ },
+ "107": {
+ "class_type": "CLIPTextEncode",
+ "inputs": {
+ "clip": [
+ "96",
+ 0
+ ],
+ "text": "Two rovers race past, leaving clear tracks. Base tower antenna flashes rapidly, modules flicker with light. Ship speeds toward giant planet, engine lights brilliant.\n"
+ },
+ "_meta": {
+ "title": "CLIP Text Encode (Positive Prompt)"
+ }
+ },
+ "108": {
+ "class_type": "WanCameraEmbedding",
+ "inputs": {
+ "camera_pose": "Static",
+ "width": 720,
+ "height": 720,
+ "length": 81,
+ "speed": 1,
+ "fx": 0.5,
+ "fy": 0.5,
+ "cx": 0.5,
+ "cy": 0.5
+ },
+ "_meta": {
+ "title": "WanCameraEmbedding"
+ }
+ },
+ "ff_lora_high": {
+ "class_type": "LoraLoaderModelOnly",
+ "inputs": {
+ "model": [
+ "92",
+ 0
+ ],
+ "lora_name": "wan2.2_i2v_lightx2v_4steps_lora_v1_high_noise.safetensors",
+ "strength_model": 0.0
+ },
+ "_meta": {
+ "title": "Freefield LoRA"
+ }
+ },
+ "ff_lora_low": {
+ "class_type": "LoraLoaderModelOnly",
+ "inputs": {
+ "model": [
+ "95",
+ 0
+ ],
+ "lora_name": "wan2.2_i2v_lightx2v_4steps_lora_v1_low_noise.safetensors",
+ "strength_model": 0.0
+ },
+ "_meta": {
+ "title": "Freefield LoRA"
+ }
+ }
+}
diff --git a/apps/character/app.json b/apps/character/app.json
new file mode 100644
index 0000000..7fc2b6b
--- /dev/null
+++ b/apps/character/app.json
@@ -0,0 +1,119 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "character",
+ "name": "Consistent Character",
+ "section": "image",
+ "pack": "image-flux3",
+ "status": "ready",
+ "higgsfield_feature": "Soul ID",
+ "summary": "Puts the person from your reference photo into a new scene and keeps their look (FLUX 3 Image Klein).",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "image_flux3_klein_distilled_image_edit.json",
+ "comfyui": "0.42.0",
+ "notes": "Same pipeline as edit; the scene is wrapped in an identity-preserving template. Wording still to tune in the lab."
+ },
+ "inputs": [
+ {
+ "id": "reference",
+ "type": "image",
+ "label": "Reference photo",
+ "required": true,
+ "limits": {
+ "max_mb": 20
+ },
+ "bind": [
+ {
+ "node": "11",
+ "field": "image"
+ }
+ ]
+ },
+ {
+ "id": "scene",
+ "type": "textarea",
+ "label": "New scene",
+ "required": true,
+ "default": "walking through a night market in Mexico City, string lights, light rain",
+ "bind": [
+ {
+ "node": "4",
+ "field": "text",
+ "template": "The same person as in <ref_image_0>, {scene}. Keep the face, hairstyle and build identical."
+ }
+ ]
+ },
+ {
+ "id": "steps",
+ "type": "slider",
+ "label": "Steps",
+ "min": 8,
+ "max": 32,
+ "step": 1,
+ "default": 16,
+ "bind": [
+ {
+ "node": "7",
+ "field": "steps"
+ }
+ ]
+ },
+ {
+ "id": "seed",
+ "type": "seed",
+ "label": "Seed",
+ "default": -1,
+ "help": "-1 picks a random seed",
+ "bind": [
+ {
+ "node": "7",
+ "field": "seed"
+ }
+ ]
+ }
+ ],
+ "outputs": [
+ {
+ "node": "9",
+ "type": "image",
+ "label": "New scene"
+ }
+ ],
+ "models": [
+ {
+ "repo": "black-forest-labs/flux-3-image-klein-comfy",
+ "file": "diffusion_models/flux3-image-klein-int8-convrot.safetensors",
+ "dir": "diffusion_models",
+ "gb": 5.83,
+ "phase": "denoise",
+ "gated": true,
+ "license": "FLUX Kommunity License"
+ },
+ {
+ "repo": "black-forest-labs/flux-3-image-klein-comfy",
+ "file": "text_encoders/qwen3vl_4b_int8_convrot.safetensors",
+ "dir": "text_encoders",
+ "gb": 4.86,
+ "phase": "encode",
+ "gated": true,
+ "license": "FLUX Kommunity License"
+ },
+ {
+ "repo": "black-forest-labs/flux-3-image-klein-comfy",
+ "file": "vae/flux2-vae.safetensors",
+ "dir": "vae",
+ "gb": 0.34,
+ "phase": "decode",
+ "gated": true,
+ "license": "FLUX Kommunity License"
+ }
+ ],
+ "notes": "Use footage and photos of yourself, fictional characters, or people who agreed to it.",
+ "credits": [
+ "FLUX 3 Image Klein by Black Forest Labs (FLUX Kommunity License)"
+ ],
+ "test": {
+ "reference": "test/portrait.png",
+ "scene": "on a beach at sunset"
+ }
+}
diff --git a/apps/character/workflow.api.json b/apps/character/workflow.api.json
new file mode 100644
index 0000000..25990c0
--- /dev/null
+++ b/apps/character/workflow.api.json
@@ -0,0 +1,151 @@
+{
+ "1": {
+ "class_type": "UNETLoader",
+ "inputs": {
+ "unet_name": "flux3-image-klein-int8-convrot.safetensors",
+ "weight_dtype": "default"
+ },
+ "_meta": {
+ "title": "Load Diffusion Model"
+ }
+ },
+ "2": {
+ "class_type": "CLIPLoader",
+ "inputs": {
+ "clip_name": "qwen3vl_4b_int8_convrot.safetensors",
+ "type": "flux3",
+ "device": "default"
+ },
+ "_meta": {
+ "title": "Load CLIP"
+ }
+ },
+ "3": {
+ "class_type": "VAELoader",
+ "inputs": {
+ "vae_name": "flux2-vae.safetensors"
+ },
+ "_meta": {
+ "title": "Load VAE"
+ }
+ },
+ "4": {
+ "class_type": "CLIPTextEncode",
+ "inputs": {
+ "clip": [
+ "2",
+ 0
+ ],
+ "text": "Change the jacket to deep red leather, keep everything else the same."
+ },
+ "_meta": {
+ "title": "Positive Prompt"
+ }
+ },
+ "7": {
+ "class_type": "KSampler",
+ "inputs": {
+ "model": [
+ "1",
+ 0
+ ],
+ "positive": [
+ "17",
+ 0
+ ],
+ "negative": [
+ "17",
+ 1
+ ],
+ "latent_image": [
+ "17",
+ 2
+ ],
+ "seed": 563228241303057,
+ "steps": 16,
+ "cfg": 1,
+ "sampler_name": "euler",
+ "scheduler": "simple",
+ "denoise": 1
+ },
+ "_meta": {
+ "title": "KSampler"
+ }
+ },
+ "8": {
+ "class_type": "VAEDecode",
+ "inputs": {
+ "samples": [
+ "7",
+ 0
+ ],
+ "vae": [
+ "3",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "VAE Decode"
+ }
+ },
+ "9": {
+ "class_type": "SaveImage",
+ "inputs": {
+ "images": [
+ "8",
+ 0
+ ],
+ "filename_prefix": "freefield/character"
+ },
+ "_meta": {
+ "title": "Save Image"
+ }
+ },
+ "11": {
+ "class_type": "LoadImage",
+ "inputs": {
+ "image": "woman_gold_earring_teal_top_portrait.png"
+ },
+ "_meta": {
+ "title": "Load Image"
+ }
+ },
+ "17": {
+ "class_type": "ReferenceMultiLatent",
+ "inputs": {
+ "positive": [
+ "4",
+ 0
+ ],
+ "negative": [
+ "32",
+ 0
+ ],
+ "vae": [
+ "3",
+ 0
+ ],
+ "images.image0": [
+ "11",
+ 0
+ ],
+ "resolution": "resize",
+ "resolution.megapixels": 1
+ },
+ "_meta": {
+ "title": "Set Reference Multi Latent"
+ }
+ },
+ "32": {
+ "class_type": "ConditioningZeroOut",
+ "inputs": {
+ "conditioning": [
+ "4",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Conditioning Zero Out"
+ }
+ }
+}
diff --git a/apps/cinema-studio/app.json b/apps/cinema-studio/app.json
new file mode 100644
index 0000000..2d4c5d4
--- /dev/null
+++ b/apps/cinema-studio/app.json
@@ -0,0 +1,221 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "cinema-studio",
+ "name": "Cinema Studio",
+ "section": "image",
+ "pack": "image",
+ "status": "ready",
+ "higgsfield_feature": "Cinematic Cameras",
+ "summary": "Pick a camera body, lens, focal length and aperture; they become part of the prompt.",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "image_z_image_turbo_int8.json",
+ "comfyui": "0.42.0",
+ "notes": "Camera and lens vocabulary from open-higgsfield-ai (MIT), src/lib/promptUtils.js."
+ },
+ "inputs": [
+ {
+ "id": "prompt",
+ "type": "textarea",
+ "label": "Scene",
+ "required": true,
+ "default": "A detective lighting a cigarette under a streetlamp",
+ "bind": [
+ {
+ "node": "57:27",
+ "field": "text",
+ "template": "{prompt}, shot on a {camera}, using a {lens} at {focal}, {aperture}, cinematic lighting, natural color science, high dynamic range, professional photography, ultra-detailed"
+ }
+ ]
+ },
+ {
+ "id": "camera",
+ "type": "select",
+ "label": "Camera",
+ "default": "full-frame digital cinema camera",
+ "options": [
+ {
+ "value": "modular 8K digital cinema camera",
+ "label": "Modular 8K Digital"
+ },
+ {
+ "value": "full-frame digital cinema camera",
+ "label": "Full-Frame Cine Digital"
+ },
+ {
+ "value": "grand format 70mm film camera",
+ "label": "Grand Format 70mm Film"
+ },
+ {
+ "value": "Super 35 studio digital camera",
+ "label": "Studio Digital S35"
+ },
+ {
+ "value": "classic 16mm film camera",
+ "label": "Classic 16mm Film"
+ },
+ {
+ "value": "premium large-format digital cinema camera",
+ "label": "Premium Large Format Digital"
+ }
+ ]
+ },
+ {
+ "id": "lens",
+ "type": "select",
+ "label": "Lens",
+ "default": "classic anamorphic lens",
+ "options": [
+ {
+ "value": "creative tilt lens effect",
+ "label": "Creative Tilt Lens"
+ },
+ {
+ "value": "compact anamorphic lens",
+ "label": "Compact Anamorphic"
+ },
+ {
+ "value": "extreme macro lens",
+ "label": "Extreme Macro"
+ },
+ {
+ "value": "1970s cinema prime lens",
+ "label": "70s Cinema Prime"
+ },
+ {
+ "value": "classic anamorphic lens",
+ "label": "Classic Anamorphic"
+ },
+ {
+ "value": "premium modern prime lens",
+ "label": "Premium Modern Prime"
+ },
+ {
+ "value": "warm-toned cinema prime lens",
+ "label": "Warm Cinema Prime"
+ },
+ {
+ "value": "swirl bokeh portrait lens",
+ "label": "Swirl Bokeh Portrait"
+ },
+ {
+ "value": "vintage prime lens",
+ "label": "Vintage Prime"
+ },
+ {
+ "value": "halation diffusion filter",
+ "label": "Halation Diffusion"
+ },
+ {
+ "value": "ultra-sharp clinical prime lens",
+ "label": "Clinical Sharp Prime"
+ }
+ ]
+ },
+ {
+ "id": "focal",
+ "type": "select",
+ "label": "Focal length",
+ "default": "35mm (natural cinematic perspective)",
+ "options": [
+ {
+ "value": "8mm (ultra-wide perspective)",
+ "label": "8 mm"
+ },
+ {
+ "value": "14mm (wide-angle perspective)",
+ "label": "14 mm"
+ },
+ {
+ "value": "24mm (wide-angle dynamic perspective)",
+ "label": "24 mm"
+ },
+ {
+ "value": "35mm (natural cinematic perspective)",
+ "label": "35 mm"
+ },
+ {
+ "value": "50mm (standard portrait perspective)",
+ "label": "50 mm"
+ },
+ {
+ "value": "85mm (classic portrait perspective)",
+ "label": "85 mm"
+ }
+ ]
+ },
+ {
+ "id": "aperture",
+ "type": "select",
+ "label": "Aperture",
+ "default": "aperture f/1.4, shallow depth of field, creamy bokeh",
+ "options": [
+ {
+ "value": "aperture f/1.4, shallow depth of field, creamy bokeh",
+ "label": "f/1.4"
+ },
+ {
+ "value": "aperture f/4, balanced depth of field",
+ "label": "f/4"
+ },
+ {
+ "value": "aperture f/11, deep focus clarity, sharp foreground to background",
+ "label": "f/11"
+ }
+ ]
+ },
+ {
+ "id": "seed",
+ "type": "seed",
+ "label": "Seed",
+ "default": -1,
+ "help": "-1 picks a random seed",
+ "bind": [
+ {
+ "node": "57:3",
+ "field": "seed"
+ }
+ ]
+ }
+ ],
+ "outputs": [
+ {
+ "node": "9",
+ "type": "image",
+ "label": "Still"
+ }
+ ],
+ "models": [
+ {
+ "repo": "Comfy-Org/z_image_turbo",
+ "file": "split_files/diffusion_models/z_image_turbo_int8_convrot.safetensors",
+ "dir": "diffusion_models",
+ "gb": 6.2,
+ "phase": "denoise",
+ "license": "Apache-2.0"
+ },
+ {
+ "repo": "Comfy-Org/z_image_turbo",
+ "file": "split_files/text_encoders/qwen_3_4b_fp8_mixed.safetensors",
+ "dir": "text_encoders",
+ "gb": 5.63,
+ "phase": "encode",
+ "license": "Apache-2.0"
+ },
+ {
+ "repo": "Comfy-Org/z_image_turbo",
+ "file": "split_files/vae/ae.safetensors",
+ "dir": "vae",
+ "gb": 0.34,
+ "phase": "decode",
+ "license": "Apache-2.0"
+ }
+ ],
+ "credits": [
+ "Z-Image Turbo by Tongyi-MAI (Apache-2.0)",
+ "Camera presets from open-higgsfield-ai (MIT)"
+ ],
+ "test": {
+ "prompt": "a lighthouse in a storm"
+ }
+}
diff --git a/apps/cinema-studio/workflow.api.json b/apps/cinema-studio/workflow.api.json
new file mode 100644
index 0000000..70385d9
--- /dev/null
+++ b/apps/cinema-studio/workflow.api.json
@@ -0,0 +1,140 @@
+{
+ "9": {
+ "class_type": "SaveImage",
+ "inputs": {
+ "images": [
+ "57:8",
+ 0
+ ],
+ "filename_prefix": "freefield/cinema-studio"
+ },
+ "_meta": {
+ "title": "Save Image"
+ }
+ },
+ "57:3": {
+ "class_type": "KSampler",
+ "inputs": {
+ "model": [
+ "57:11",
+ 0
+ ],
+ "positive": [
+ "57:27",
+ 0
+ ],
+ "negative": [
+ "57:33",
+ 0
+ ],
+ "latent_image": [
+ "57:13",
+ 0
+ ],
+ "seed": 121725701057393,
+ "steps": 8,
+ "cfg": 1,
+ "sampler_name": "res_multistep",
+ "scheduler": "simple",
+ "denoise": 1
+ },
+ "_meta": {
+ "title": "KSampler"
+ }
+ },
+ "57:8": {
+ "class_type": "VAEDecode",
+ "inputs": {
+ "samples": [
+ "57:3",
+ 0
+ ],
+ "vae": [
+ "57:29",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "VAE Decode"
+ }
+ },
+ "57:11": {
+ "class_type": "ModelSamplingAuraFlow",
+ "inputs": {
+ "model": [
+ "57:28",
+ 0
+ ],
+ "shift": 3
+ },
+ "_meta": {
+ "title": "ModelSamplingAuraFlow"
+ }
+ },
+ "57:13": {
+ "class_type": "EmptySD3LatentImage",
+ "inputs": {
+ "width": 1024,
+ "height": 1024,
+ "batch_size": 1
+ },
+ "_meta": {
+ "title": "EmptySD3LatentImage"
+ }
+ },
+ "57:27": {
+ "class_type": "CLIPTextEncode",
+ "inputs": {
+ "clip": [
+ "57:30",
+ 0
+ ],
+ "text": "Dramatic black and white high fashion studio portrait, close-up bust shot, pale platinum blonde woman with sleek low ponytail, head tilted upward, eyes softly closed, wearing a fitted black turtleneck top. A large translucent pale white butterfly hovers gently right at her lips, delicate detailed wing veins visible. Hard rim light creates glowing bright white halo around her hair and face, deep inky pure black minimalist background, stark high contrast chiaroscuro lighting, film grain texture, moody ethereal atmosphere, monochrome, editorial fashion photography, shot on 35mm film, soft subtle skin texture, sharp focus on butterfly and facial profile, vertical composition, minimalist dark aesthetic, artistic surreal fashion"
+ },
+ "_meta": {
+ "title": "CLIP Text Encode (Prompt)"
+ }
+ },
+ "57:28": {
+ "class_type": "UNETLoader",
+ "inputs": {
+ "unet_name": "z_image_turbo_int8_convrot.safetensors",
+ "weight_dtype": "default"
+ },
+ "_meta": {
+ "title": "Load Diffusion Model"
+ }
+ },
+ "57:29": {
+ "class_type": "VAELoader",
+ "inputs": {
+ "vae_name": "ae.safetensors"
+ },
+ "_meta": {
+ "title": "Load VAE"
+ }
+ },
+ "57:30": {
+ "class_type": "CLIPLoader",
+ "inputs": {
+ "clip_name": "qwen_3_4b_fp8_mixed.safetensors",
+ "type": "lumina2",
+ "device": "default"
+ },
+ "_meta": {
+ "title": "Load CLIP"
+ }
+ },
+ "57:33": {
+ "class_type": "ConditioningZeroOut",
+ "inputs": {
+ "conditioning": [
+ "57:27",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Conditioning Zero Out"
+ }
+ }
+}
diff --git a/apps/edit/app.json b/apps/edit/app.json
new file mode 100644
index 0000000..46c9915
--- /dev/null
+++ b/apps/edit/app.json
@@ -0,0 +1,117 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "edit",
+ "name": "Edit Image",
+ "section": "image",
+ "pack": "image-flux3",
+ "status": "ready",
+ "higgsfield_feature": "Inpaint / Edit",
+ "summary": "Describe a change and FLUX 3 Image Klein applies it to your photo.",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "image_flux3_klein_distilled_image_edit.json",
+ "comfyui": "0.42.0",
+ "notes": "Bounding-box layout tool and 9B prompt upsampler removed; the instruction goes straight to the text encoder."
+ },
+ "inputs": [
+ {
+ "id": "image",
+ "type": "image",
+ "label": "Photo",
+ "required": true,
+ "limits": {
+ "max_mb": 20
+ },
+ "bind": [
+ {
+ "node": "11",
+ "field": "image"
+ }
+ ]
+ },
+ {
+ "id": "instruction",
+ "type": "textarea",
+ "label": "What should change?",
+ "required": true,
+ "default": "Relight the scene with warm golden-hour sunlight from the left",
+ "bind": [
+ {
+ "node": "4",
+ "field": "text"
+ }
+ ]
+ },
+ {
+ "id": "steps",
+ "type": "slider",
+ "label": "Steps",
+ "min": 8,
+ "max": 32,
+ "step": 1,
+ "default": 16,
+ "bind": [
+ {
+ "node": "7",
+ "field": "steps"
+ }
+ ]
+ },
+ {
+ "id": "seed",
+ "type": "seed",
+ "label": "Seed",
+ "default": -1,
+ "help": "-1 picks a random seed",
+ "bind": [
+ {
+ "node": "7",
+ "field": "seed"
+ }
+ ]
+ }
+ ],
+ "outputs": [
+ {
+ "node": "9",
+ "type": "image",
+ "label": "Edited"
+ }
+ ],
+ "models": [
+ {
+ "repo": "black-forest-labs/flux-3-image-klein-comfy",
+ "file": "diffusion_models/flux3-image-klein-int8-convrot.safetensors",
+ "dir": "diffusion_models",
+ "gb": 5.83,
+ "phase": "denoise",
+ "gated": true,
+ "license": "FLUX Kommunity License"
+ },
+ {
+ "repo": "black-forest-labs/flux-3-image-klein-comfy",
+ "file": "text_encoders/qwen3vl_4b_int8_convrot.safetensors",
+ "dir": "text_encoders",
+ "gb": 4.86,
+ "phase": "encode",
+ "gated": true,
+ "license": "FLUX Kommunity License"
+ },
+ {
+ "repo": "black-forest-labs/flux-3-image-klein-comfy",
+ "file": "vae/flux2-vae.safetensors",
+ "dir": "vae",
+ "gb": 0.34,
+ "phase": "decode",
+ "gated": true,
+ "license": "FLUX Kommunity License"
+ }
+ ],
+ "credits": [
+ "FLUX 3 Image Klein by Black Forest Labs (FLUX Kommunity License)"
+ ],
+ "test": {
+ "image": "test/portrait.png",
+ "instruction": "make the background a beach"
+ }
+}
diff --git a/apps/edit/workflow.api.json b/apps/edit/workflow.api.json
new file mode 100644
index 0000000..89bf07c
--- /dev/null
+++ b/apps/edit/workflow.api.json
@@ -0,0 +1,151 @@
+{
+ "1": {
+ "class_type": "UNETLoader",
+ "inputs": {
+ "unet_name": "flux3-image-klein-int8-convrot.safetensors",
+ "weight_dtype": "default"
+ },
+ "_meta": {
+ "title": "Load Diffusion Model"
+ }
+ },
+ "2": {
+ "class_type": "CLIPLoader",
+ "inputs": {
+ "clip_name": "qwen3vl_4b_int8_convrot.safetensors",
+ "type": "flux3",
+ "device": "default"
+ },
+ "_meta": {
+ "title": "Load CLIP"
+ }
+ },
+ "3": {
+ "class_type": "VAELoader",
+ "inputs": {
+ "vae_name": "flux2-vae.safetensors"
+ },
+ "_meta": {
+ "title": "Load VAE"
+ }
+ },
+ "4": {
+ "class_type": "CLIPTextEncode",
+ "inputs": {
+ "clip": [
+ "2",
+ 0
+ ],
+ "text": "Change the jacket to deep red leather, keep everything else the same."
+ },
+ "_meta": {
+ "title": "Positive Prompt"
+ }
+ },
+ "7": {
+ "class_type": "KSampler",
+ "inputs": {
+ "model": [
+ "1",
+ 0
+ ],
+ "positive": [
+ "17",
+ 0
+ ],
+ "negative": [
+ "17",
+ 1
+ ],
+ "latent_image": [
+ "17",
+ 2
+ ],
+ "seed": 563228241303057,
+ "steps": 16,
+ "cfg": 1,
+ "sampler_name": "euler",
+ "scheduler": "simple",
+ "denoise": 1
+ },
+ "_meta": {
+ "title": "KSampler"
+ }
+ },
+ "8": {
+ "class_type": "VAEDecode",
+ "inputs": {
+ "samples": [
+ "7",
+ 0
+ ],
+ "vae": [
+ "3",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "VAE Decode"
+ }
+ },
+ "9": {
+ "class_type": "SaveImage",
+ "inputs": {
+ "images": [
+ "8",
+ 0
+ ],
+ "filename_prefix": "freefield/edit"
+ },
+ "_meta": {
+ "title": "Save Image"
+ }
+ },
+ "11": {
+ "class_type": "LoadImage",
+ "inputs": {
+ "image": "woman_gold_earring_teal_top_portrait.png"
+ },
+ "_meta": {
+ "title": "Load Image"
+ }
+ },
+ "17": {
+ "class_type": "ReferenceMultiLatent",
+ "inputs": {
+ "positive": [
+ "4",
+ 0
+ ],
+ "negative": [
+ "32",
+ 0
+ ],
+ "vae": [
+ "3",
+ 0
+ ],
+ "images.image0": [
+ "11",
+ 0
+ ],
+ "resolution": "resize",
+ "resolution.megapixels": 1
+ },
+ "_meta": {
+ "title": "Set Reference Multi Latent"
+ }
+ },
+ "32": {
+ "class_type": "ConditioningZeroOut",
+ "inputs": {
+ "conditioning": [
+ "4",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Conditioning Zero Out"
+ }
+ }
+}
diff --git a/apps/motion-transfer/app.json b/apps/motion-transfer/app.json
new file mode 100644
index 0000000..2221539
--- /dev/null
+++ b/apps/motion-transfer/app.json
@@ -0,0 +1,130 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "motion-transfer",
+ "name": "Motion Transfer",
+ "section": "video",
+ "pack": "video-wan",
+ "status": "draft",
+ "higgsfield_feature": "Character swap / Genjutsu-style motion",
+ "summary": "Animates a character image with the motion of a driving clip, with Wan Animate 2.",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "video_wan_animate2_distilled.json",
+ "comfyui": "0.42.0",
+ "notes": "Draft: only with footage and characters you own; Comfy is also preparing its own Openjutsu."
+ },
+ "inputs": [
+ {
+ "id": "character",
+ "type": "image",
+ "label": "Character",
+ "required": true,
+ "limits": {
+ "max_mb": 20
+ },
+ "bind": [
+ {
+ "node": "189",
+ "field": "image"
+ }
+ ]
+ },
+ {
+ "id": "motion",
+ "type": "video",
+ "label": "Driving clip",
+ "required": true,
+ "limits": {
+ "max_mb": 200,
+ "seconds": [
+ 2,
+ 10
+ ]
+ },
+ "bind": [
+ {
+ "node": "240",
+ "field": "file"
+ }
+ ]
+ },
+ {
+ "id": "character_prompt",
+ "type": "textarea",
+ "label": "Character description",
+ "default": "Character appearance description: a stylized clay robot with round eyes",
+ "bind": [
+ {
+ "node": "605",
+ "field": "value"
+ }
+ ]
+ },
+ {
+ "id": "action_prompt",
+ "type": "textarea",
+ "label": "Action",
+ "default": "dancing energetically in the street",
+ "bind": [
+ {
+ "node": "604",
+ "field": "value"
+ }
+ ]
+ }
+ ],
+ "outputs": [
+ {
+ "node": "246",
+ "type": "video",
+ "label": "Result"
+ },
+ {
+ "node": "292",
+ "type": "video",
+ "label": "Second pass"
+ }
+ ],
+ "models": [
+ {
+ "repo": "Comfy-Org/Wan-Animate-2",
+ "file": "diffusion_models/wan_animate_2_distill_int8_convrot.safetensors",
+ "dir": "diffusion_models",
+ "gb": 16.65,
+ "phase": "denoise",
+ "license": "Apache-2.0"
+ },
+ {
+ "repo": "Comfy-Org/Wan-Animate-2",
+ "file": "text_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensors",
+ "dir": "text_encoders",
+ "gb": 6.74,
+ "phase": "encode",
+ "license": "Apache-2.0"
+ },
+ {
+ "repo": "Comfy-Org/Wan-Animate-2",
+ "file": "clip_vision/clip_vision_h.safetensors",
+ "dir": "clip_vision",
+ "gb": 1.26,
+ "phase": "encode",
+ "license": "Apache-2.0"
+ },
+ {
+ "repo": "Comfy-Org/Wan-Animate-2",
+ "file": "vae/Wan2_1_VAE_bf16.safetensors",
+ "dir": "vae",
+ "gb": 0.25,
+ "phase": "decode",
+ "license": "Apache-2.0"
+ }
+ ],
+ "notes": "Use footage and photos of yourself, fictional characters, or people who agreed to it.",
+ "credits": [
+ "Wan Animate 2 by Alibaba Wan (Apache-2.0)"
+ ],
+ "test": {
+ "character": "test/portrait.png",
+ "motion": "test/clip.mp4"
+ }
+}
diff --git a/apps/motion-transfer/workflow.api.json b/apps/motion-transfer/workflow.api.json
new file mode 100644
index 0000000..3a86177
--- /dev/null
+++ b/apps/motion-transfer/workflow.api.json
@@ -0,0 +1,792 @@
+{
+ "189": {
+ "class_type": "LoadImage",
+ "inputs": {
+ "image": "ref_doll_realistic.png"
+ },
+ "_meta": {
+ "title": "Load Image (Reference Image)"
+ }
+ },
+ "240": {
+ "class_type": "LoadVideo",
+ "inputs": {
+ "file": "drive_doll_street_dance.mp4"
+ },
+ "_meta": {
+ "title": "Load Video (Pose Video)"
+ }
+ },
+ "245": {
+ "class_type": "CreateVideo",
+ "inputs": {
+ "images": [
+ "289",
+ 0
+ ],
+ "audio": [
+ "288",
+ 1
+ ],
+ "fps": [
+ "288",
+ 2
+ ],
+ "bit_depth": 8
+ },
+ "_meta": {
+ "title": "Create Video"
+ }
+ },
+ "246": {
+ "class_type": "SaveVideo",
+ "inputs": {
+ "video": [
+ "245",
+ 0
+ ],
+ "filename_prefix": "freefield/motion-transfer",
+ "format": "auto",
+ "format.codec": "auto"
+ },
+ "_meta": {
+ "title": "Save Video"
+ }
+ },
+ "261:3": {
+ "class_type": "CLIPTextEncode",
+ "inputs": {
+ "clip": [
+ "261:9",
+ 0
+ ],
+ "text": [
+ "605",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "CLIP Text Encode (Positive Prompt)"
+ }
+ },
+ "261:4": {
+ "class_type": "CLIPTextEncode",
+ "inputs": {
+ "clip": [
+ "261:9",
+ 0
+ ],
+ "text": "色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走"
+ },
+ "_meta": {
+ "title": "CLIP Text Encode (Negative Prompt)"
+ }
+ },
+ "261:6": {
+ "class_type": "VAEDecode",
+ "inputs": {
+ "samples": [
+ "261:223",
+ 0
+ ],
+ "vae": [
+ "261:7",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "VAE Decode"
+ }
+ },
+ "261:7": {
+ "class_type": "VAELoader",
+ "inputs": {
+ "vae_name": "Wan2_1_VAE_bf16.safetensors"
+ },
+ "_meta": {
+ "title": "Load VAE"
+ }
+ },
+ "261:9": {
+ "class_type": "CLIPLoader",
+ "inputs": {
+ "clip_name": "umt5_xxl_fp8_e4m3fn_scaled.safetensors",
+ "type": "wan",
+ "device": "default"
+ },
+ "_meta": {
+ "title": "Load CLIP"
+ }
+ },
+ "261:18": {
+ "class_type": "BasicScheduler",
+ "inputs": {
+ "model": [
+ "261:224",
+ 0
+ ],
+ "scheduler": "simple",
+ "steps": 10,
+ "denoise": 1
+ },
+ "_meta": {
+ "title": "BasicScheduler"
+ }
+ },
+ "261:19": {
+ "class_type": "SamplerCustom",
+ "inputs": {
+ "model": [
+ "261:95",
+ 0
+ ],
+ "positive": [
+ "261:247",
+ 0
+ ],
+ "negative": [
+ "261:247",
+ 1
+ ],
+ "sampler": [
+ "261:27",
+ 0
+ ],
+ "sigmas": [
+ "261:18",
+ 0
+ ],
+ "latent_image": [
+ "261:247",
+ 2
+ ],
+ "add_noise": true,
+ "noise_seed": 2,
+ "cfg": 1
+ },
+ "_meta": {
+ "title": "SamplerCustom"
+ }
+ },
+ "261:27": {
+ "class_type": "KSamplerSelect",
+ "inputs": {
+ "sampler_name": "lcm"
+ },
+ "_meta": {
+ "title": "KSamplerSelect"
+ }
+ },
+ "261:75": {
+ "class_type": "CLIPVisionLoader",
+ "inputs": {
+ "clip_name": "clip_vision_h.safetensors"
+ },
+ "_meta": {
+ "title": "Load CLIP Vision"
+ }
+ },
+ "261:76": {
+ "class_type": "CLIPVisionEncode",
+ "inputs": {
+ "clip_vision": [
+ "261:75",
+ 0
+ ],
+ "image": [
+ "261:244",
+ 0
+ ],
+ "crop": "none"
+ },
+ "_meta": {
+ "title": "CLIP Vision Encode"
+ }
+ },
+ "261:95": {
+ "class_type": "ModelSamplingSD3",
+ "inputs": {
+ "model": [
+ "261:224",
+ 0
+ ],
+ "shift": 5
+ },
+ "_meta": {
+ "title": "ModelSamplingSD3"
+ }
+ },
+ "261:220": {
+ "class_type": "CLIPVisionEncode",
+ "inputs": {
+ "clip_vision": [
+ "261:75",
+ 0
+ ],
+ "image": [
+ "261:236",
+ 0
+ ],
+ "crop": "none"
+ },
+ "_meta": {
+ "title": "CLIP Vision Encode"
+ }
+ },
+ "261:222": {
+ "class_type": "CLIPTextEncode",
+ "inputs": {
+ "clip": [
+ "261:9",
+ 0
+ ],
+ "text": [
+ "604",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "CLIP Text Encode (Prompt)"
+ }
+ },
+ "261:223": {
+ "class_type": "TrimVideoLatent",
+ "inputs": {
+ "samples": [
+ "261:19",
+ 0
+ ],
+ "trim_amount": [
+ "261:247",
+ 3
+ ]
+ },
+ "_meta": {
+ "title": "Trim Video Latent"
+ }
+ },
+ "261:224": {
+ "class_type": "WanAnimate2Cache",
+ "inputs": {
+ "model": [
+ "261:258",
+ 0
+ ],
+ "device": "gpu",
+ "dtype": "int8"
+ },
+ "_meta": {
+ "title": "WanAnimate2Cache"
+ }
+ },
+ "261:236": {
+ "class_type": "ImageFromBatch",
+ "inputs": {
+ "image": [
+ "261:243",
+ 0
+ ],
+ "batch_index": 0,
+ "length": 1
+ },
+ "_meta": {
+ "title": "Get Image from Batch"
+ }
+ },
+ "261:239": {
+ "class_type": "UNETLoader",
+ "inputs": {
+ "unet_name": "wan_animate_2_distill_int8_convrot.safetensors",
+ "weight_dtype": "default"
+ },
+ "_meta": {
+ "title": "Load Diffusion Model"
+ }
+ },
+ "261:241": {
+ "class_type": "GetVideoComponents",
+ "inputs": {
+ "video": [
+ "240",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Get Video Components"
+ }
+ },
+ "261:243": {
+ "class_type": "ResizeImageMaskNode",
+ "inputs": {
+ "input": [
+ "261:241",
+ 0
+ ],
+ "resize_type": "scale dimensions",
+ "resize_type.width": 482,
+ "resize_type.height": 854,
+ "resize_type.crop": "center",
+ "scale_method": "area"
+ },
+ "_meta": {
+ "title": "Resize Image/Mask"
+ }
+ },
+ "261:244": {
+ "class_type": "ResizeImageMaskNode",
+ "inputs": {
+ "input": [
+ "189",
+ 0
+ ],
+ "resize_type.width": [
+ "261:256",
+ 0
+ ],
+ "resize_type.height": [
+ "261:256",
+ 1
+ ],
+ "resize_type": "scale dimensions",
+ "resize_type.crop": "center",
+ "scale_method": "area"
+ },
+ "_meta": {
+ "title": "Resize Image/Mask"
+ }
+ },
+ "261:247": {
+ "class_type": "WanAnimate2ToVideo",
+ "inputs": {
+ "positive": [
+ "261:3",
+ 0
+ ],
+ "negative": [
+ "261:4",
+ 0
+ ],
+ "vae": [
+ "261:7",
+ 0
+ ],
+ "reference_image": [
+ "261:244",
+ 0
+ ],
+ "pose_video": [
+ "261:243",
+ 0
+ ],
+ "clip_vision_output": [
+ "261:76",
+ 0
+ ],
+ "positive_pose": [
+ "261:222",
+ 0
+ ],
+ "clip_vision_output_pose": [
+ "261:220",
+ 0
+ ],
+ "width": [
+ "261:256",
+ 0
+ ],
+ "height": [
+ "261:256",
+ 1
+ ],
+ "length": 81,
+ "batch_size": 1,
+ "video_frame_offset": 0,
+ "pose_strength": 1,
+ "pose_start_percent": 0,
+ "pose_end_percent": 1,
+ "reference_image_strength": 1
+ },
+ "_meta": {
+ "title": "WanAnimate2ToVideo"
+ }
+ },
+ "261:256": {
+ "class_type": "GetImageSize",
+ "inputs": {
+ "image": [
+ "261:243",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Get Image Size"
+ }
+ },
+ "261:257": {
+ "class_type": "ContextWindowsManual",
+ "inputs": {
+ "model": [
+ "261:239",
+ 0
+ ],
+ "context_length": 21,
+ "context_overlap": 8,
+ "context_schedule": "standard_static",
+ "context_stride": 1,
+ "closed_loop": false,
+ "fuse_method": "pyramid",
+ "dim": 2,
+ "freenoise": true,
+ "cond_retain_index_list": "0",
+ "split_conds_to_windows": false,
+ "latent_retain_index_list": "",
+ "causal_window_fix": true
+ },
+ "_meta": {
+ "title": "Context Windows (Manual)"
+ }
+ },
+ "261:258": {
+ "class_type": "ComfySwitchNode",
+ "inputs": {
+ "on_false": [
+ "261:239",
+ 0
+ ],
+ "on_true": [
+ "261:257",
+ 0
+ ],
+ "switch": false
+ },
+ "_meta": {
+ "title": "If/Else Switch"
+ }
+ },
+ "261:297": {
+ "class_type": "PrimitiveBoolean",
+ "inputs": {
+ "value": false
+ },
+ "_meta": {
+ "title": "Boolean"
+ }
+ },
+ "261:298": {
+ "class_type": "ImageFromBatch",
+ "inputs": {
+ "image": [
+ "261:6",
+ 0
+ ],
+ "batch_index": 1,
+ "length": 4096
+ },
+ "_meta": {
+ "title": "Get Image from Batch"
+ }
+ },
+ "261:299": {
+ "class_type": "ComfySwitchNode",
+ "inputs": {
+ "on_false": [
+ "261:6",
+ 0
+ ],
+ "on_true": [
+ "261:298",
+ 0
+ ],
+ "switch": [
+ "261:297",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "If/Else Switch"
+ }
+ },
+ "288": {
+ "class_type": "GetVideoComponents",
+ "inputs": {
+ "video": [
+ "240",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Get Video Components"
+ }
+ },
+ "289": {
+ "class_type": "BatchImagesNode",
+ "inputs": {
+ "images.image0": [
+ "261:299",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Batch Images"
+ }
+ },
+ "291:77": {
+ "class_type": "GetVideoComponents",
+ "inputs": {
+ "video": [
+ "246",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Get Video Components"
+ }
+ },
+ "291:78": {
+ "class_type": "GetVideoComponents",
+ "inputs": {
+ "video": [
+ "240",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Get Video Components"
+ }
+ },
+ "291:79": {
+ "class_type": "ImageStitch",
+ "inputs": {
+ "image1": [
+ "291:417",
+ 0
+ ],
+ "image2": [
+ "291:573",
+ 0
+ ],
+ "direction": "right",
+ "match_image_size": true,
+ "spacing_width": 0,
+ "spacing_color": "white"
+ },
+ "_meta": {
+ "title": "Stitch Images"
+ }
+ },
+ "291:80": {
+ "class_type": "CreateVideo",
+ "inputs": {
+ "images": [
+ "291:97",
+ 0
+ ],
+ "audio": [
+ "291:77",
+ 1
+ ],
+ "fps": [
+ "291:77",
+ 2
+ ],
+ "bit_depth": 8
+ },
+ "_meta": {
+ "title": "Create Video"
+ }
+ },
+ "291:90": {
+ "class_type": "GetImageSize",
+ "inputs": {
+ "image": [
+ "291:79",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Get Image Size"
+ }
+ },
+ "291:96": {
+ "class_type": "ComfyMathExpression",
+ "inputs": {
+ "values.a": [
+ "291:90",
+ 1
+ ],
+ "expression": "a & ~1"
+ },
+ "_meta": {
+ "title": "Math Expression"
+ }
+ },
+ "291:97": {
+ "class_type": "ResizeImageMaskNode",
+ "inputs": {
+ "input": [
+ "291:79",
+ 0
+ ],
+ "resize_type.width": [
+ "291:290",
+ 1
+ ],
+ "resize_type.height": [
+ "291:96",
+ 1
+ ],
+ "resize_type": "scale dimensions",
+ "resize_type.crop": "center",
+ "scale_method": "area"
+ },
+ "_meta": {
+ "title": "Resize Image/Mask"
+ }
+ },
+ "291:290": {
+ "class_type": "ComfyMathExpression",
+ "inputs": {
+ "values.a": [
+ "291:90",
+ 0
+ ],
+ "expression": "a & ~1"
+ },
+ "_meta": {
+ "title": "Math Expression"
+ }
+ },
+ "291:416": {
+ "class_type": "GetImageSize",
+ "inputs": {
+ "image": [
+ "291:77",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Get Image Size"
+ }
+ },
+ "291:417": {
+ "class_type": "ImageFromBatch",
+ "inputs": {
+ "image": [
+ "291:77",
+ 0
+ ],
+ "length": [
+ "291:572",
+ 1
+ ],
+ "batch_index": 0
+ },
+ "_meta": {
+ "title": "Get Image from Batch"
+ }
+ },
+ "291:571": {
+ "class_type": "GetImageSize",
+ "inputs": {
+ "image": [
+ "291:78",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Get Image Size"
+ }
+ },
+ "291:572": {
+ "class_type": "ComfyMathExpression",
+ "inputs": {
+ "values.a": [
+ "291:416",
+ 2
+ ],
+ "values.b": [
+ "291:571",
+ 2
+ ],
+ "expression": "min(a,b)"
+ },
+ "_meta": {
+ "title": "Math Expression"
+ }
+ },
+ "291:573": {
+ "class_type": "ImageFromBatch",
+ "inputs": {
+ "image": [
+ "291:78",
+ 0
+ ],
+ "length": [
+ "291:572",
+ 1
+ ],
+ "batch_index": 0
+ },
+ "_meta": {
+ "title": "Get Image from Batch"
+ }
+ },
+ "292": {
+ "class_type": "SaveVideo",
+ "inputs": {
+ "video": [
+ "291:80",
+ 0
+ ],
+ "filename_prefix": "freefield/motion-transfer",
+ "format": "auto",
+ "format.codec": "auto"
+ },
+ "_meta": {
+ "title": "Save Video"
+ }
+ },
+ "536": {
+ "class_type": "ComfyMathExpression",
+ "inputs": {
+ "values.a": [
+ "537",
+ 2
+ ],
+ "expression": "a / 81"
+ },
+ "_meta": {
+ "title": "Math Expression"
+ }
+ },
+ "537": {
+ "class_type": "GetImageSize",
+ "inputs": {
+ "image": [
+ "288",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Get Image Size"
+ }
+ },
+ "604": {
+ "class_type": "PrimitiveStringMultiline",
+ "inputs": {
+ "value": "A man doing energetic street dance with popping body waves and fast spinning moves, rain falling around him."
+ },
+ "_meta": {
+ "title": "Text (Multiline - Post Prompt)"
+ }
+ },
+ "605": {
+ "class_type": "PrimitiveStringMultiline",
+ "inputs": {
+ "value": "Character appearance description: A realistic premium collectible action figure of a male street dancer, lifelike matte vinyl and resin material with realistic skin-like paint finish, detailed fabric folds on a black hoodie, dark cargo pants, white sneakers, subtle articulated joints, premium designer toy craftsmanship, standing in a relaxed confident pose facing the camera, full body from head to toe.\nBackground description: rainy neon-lit city street corner at night, wet asphalt reflecting purple-blue and red neon signs, light mist, cinematic night photography."
+ },
+ "_meta": {
+ "title": "Text (Multiline - Character Prompt)"
+ }
+ }
+}
diff --git a/apps/music/app.json b/apps/music/app.json
new file mode 100644
index 0000000..7bab179
--- /dev/null
+++ b/apps/music/app.json
@@ -0,0 +1,110 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "music",
+ "name": "Music",
+ "section": "audio",
+ "pack": "audio",
+ "status": "ready",
+ "higgsfield_feature": "Audio",
+ "summary": "A full song from a style description and optional lyrics, with MiniMax Music 3.",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "audio_minimax_music_3.json",
+ "comfyui": "0.42.0"
+ },
+ "inputs": [
+ {
+ "id": "style",
+ "type": "textarea",
+ "label": "Style",
+ "required": true,
+ "default": "upbeat cumbia with accordion and modern synths, 100 bpm",
+ "bind": [
+ {
+ "node": "37:13",
+ "field": "caption"
+ }
+ ]
+ },
+ {
+ "id": "lyrics",
+ "type": "textarea",
+ "label": "Lyrics (optional)",
+ "default": "",
+ "bind": [
+ {
+ "node": "37:13",
+ "field": "lyrics"
+ }
+ ]
+ },
+ {
+ "id": "seconds",
+ "type": "slider",
+ "label": "Max seconds",
+ "min": 10,
+ "max": 240,
+ "step": 5,
+ "default": 60,
+ "bind": [
+ {
+ "node": "37:13",
+ "field": "max_duration"
+ }
+ ]
+ },
+ {
+ "id": "seed",
+ "type": "seed",
+ "label": "Seed",
+ "default": -1,
+ "help": "-1 picks a random seed",
+ "bind": [
+ {
+ "node": "37:38",
+ "field": "seed"
+ }
+ ]
+ }
+ ],
+ "outputs": [
+ {
+ "node": "35",
+ "type": "audio",
+ "label": "Song"
+ }
+ ],
+ "models": [
+ {
+ "repo": "Comfy-Org/MiniMax-Music-3",
+ "file": "diffusion_models/minimax_music3_dit_fp16.safetensors",
+ "dir": "diffusion_models",
+ "gb": 4.91,
+ "phase": "denoise",
+ "license": "Apache-2.0"
+ },
+ {
+ "repo": "Comfy-Org/MiniMax-Music-3",
+ "file": "text_encoders/minimax_music3_text_encoder_pruned_int8_convrot.safetensors",
+ "dir": "text_encoders",
+ "gb": 9.2,
+ "phase": "encode",
+ "license": "Apache-2.0"
+ },
+ {
+ "repo": "Comfy-Org/MiniMax-Music-3",
+ "file": "vae/minimax_music3_dav.safetensors",
+ "dir": "vae",
+ "gb": 0.22,
+ "phase": "decode",
+ "license": "Apache-2.0"
+ }
+ ],
+ "credits": [
+ "MiniMax Music 3 (Apache-2.0)"
+ ],
+ "test": {
+ "style": "lofi piano",
+ "seconds": 10
+ }
+}
diff --git a/apps/music/workflow.api.json b/apps/music/workflow.api.json
new file mode 100644
index 0000000..eb760e8
--- /dev/null
+++ b/apps/music/workflow.api.json
@@ -0,0 +1,186 @@
+{
+ "35": {
+ "class_type": "SaveAudioAdvanced",
+ "inputs": {
+ "audio": [
+ "37:43",
+ 0
+ ],
+ "filename_prefix": "freefield/music",
+ "format": "mp3",
+ "format.quality": "V0"
+ },
+ "_meta": {
+ "title": "Save Audio (Advanced)"
+ }
+ },
+ "37:3": {
+ "class_type": "CLIPLoader",
+ "inputs": {
+ "clip_name": "minimax_music3_text_encoder_pruned_int8_convrot.safetensors",
+ "type": "minimax",
+ "device": "default"
+ },
+ "_meta": {
+ "title": "Load CLIP"
+ }
+ },
+ "37:6": {
+ "class_type": "UNETLoader",
+ "inputs": {
+ "unet_name": "minimax_music3_dit_fp16.safetensors",
+ "weight_dtype": "default"
+ },
+ "_meta": {
+ "title": "Load Diffusion Model"
+ }
+ },
+ "37:7": {
+ "class_type": "VAELoader",
+ "inputs": {
+ "vae_name": "minimax_music3_dav.safetensors"
+ },
+ "_meta": {
+ "title": "Load VAE"
+ }
+ },
+ "37:9": {
+ "class_type": "KSampler",
+ "inputs": {
+ "model": [
+ "37:6",
+ 0
+ ],
+ "positive": [
+ "37:13",
+ 0
+ ],
+ "negative": [
+ "37:10",
+ 0
+ ],
+ "latent_image": [
+ "37:15",
+ 0
+ ],
+ "seed": [
+ "37:38",
+ 0
+ ],
+ "steps": 30,
+ "cfg": 1.7,
+ "sampler_name": "euler",
+ "scheduler": "simple",
+ "denoise": 1
+ },
+ "_meta": {
+ "title": "KSampler"
+ }
+ },
+ "37:10": {
+ "class_type": "ConditioningZeroOut",
+ "inputs": {
+ "conditioning": [
+ "37:13",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Conditioning Zero Out"
+ }
+ },
+ "37:12": {
+ "class_type": "VAEDecodeAudio",
+ "inputs": {
+ "samples": [
+ "37:9",
+ 0
+ ],
+ "vae": [
+ "37:7",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "VAE Decode Audio"
+ }
+ },
+ "37:13": {
+ "class_type": "MiniMaxMusic3TextEncode",
+ "inputs": {
+ "clip": [
+ "37:3",
+ 0
+ ],
+ "seed": [
+ "37:38",
+ 0
+ ],
+ "caption": "",
+ "lyrics": "",
+ "max_duration": 60,
+ "cfg_scale": 1.7,
+ "top_k": 50
+ },
+ "_meta": {
+ "title": "MiniMax Music3 Text Encode"
+ }
+ },
+ "37:15": {
+ "class_type": "EmptyMiniMaxMusic3LatentAudio",
+ "inputs": {
+ "seconds": [
+ "37:13",
+ 1
+ ],
+ "batch_size": 1
+ },
+ "_meta": {
+ "title": "Empty MiniMax Music3 Latent Audio"
+ }
+ },
+ "37:38": {
+ "class_type": "SeedNode",
+ "inputs": {
+ "seed": 0
+ },
+ "_meta": {
+ "title": "Seed"
+ }
+ },
+ "37:42": {
+ "class_type": "VAEDecodeAudioTiled",
+ "inputs": {
+ "samples": [
+ "37:9",
+ 0
+ ],
+ "vae": [
+ "37:7",
+ 0
+ ],
+ "tile_size": 1536,
+ "overlap": 64
+ },
+ "_meta": {
+ "title": "VAE Decode Audio (Tiled)"
+ }
+ },
+ "37:43": {
+ "class_type": "ComfySwitchNode",
+ "inputs": {
+ "on_false": [
+ "37:12",
+ 0
+ ],
+ "on_true": [
+ "37:42",
+ 0
+ ],
+ "switch": false
+ },
+ "_meta": {
+ "title": "If/Else Switch"
+ }
+ }
+}
diff --git a/apps/product-shot/app.json b/apps/product-shot/app.json
new file mode 100644
index 0000000..b96fd6e
--- /dev/null
+++ b/apps/product-shot/app.json
@@ -0,0 +1,154 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "product-shot",
+ "name": "Product Shot",
+ "section": "image",
+ "pack": "image-flux3",
+ "status": "ready",
+ "higgsfield_feature": "Product placement",
+ "summary": "Turns a plain photo of a product into a styled product shot: pedestal, splash, beach and more.",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "image_flux3_klein_distilled_image_edit.json",
+ "comfyui": "0.42.0",
+ "notes": "Same pipeline as edit; the scene is wrapped in a product-preserving template. Wording still to tune in the lab."
+ },
+ "inputs": [
+ {
+ "id": "product",
+ "type": "image",
+ "label": "Product photo",
+ "required": true,
+ "limits": {
+ "max_mb": 20
+ },
+ "help": "Any clear photo of the product; the background does not matter",
+ "bind": [
+ {
+ "node": "11",
+ "field": "image"
+ }
+ ]
+ },
+ {
+ "id": "scene",
+ "type": "select",
+ "label": "Scene",
+ "default": "on a white marble pedestal, soft studio light, clean light grey background, a gentle shadow",
+ "options": [
+ {
+ "value": "on a white marble pedestal, soft studio light, clean light grey background, a gentle shadow",
+ "label": "Marble pedestal"
+ },
+ {
+ "value": "on wet black stone with water droplets, dramatic rim light, dark background",
+ "label": "Wet stone, dramatic"
+ },
+ {
+ "value": "on a sunlit wooden table by a window, morning light, plants softly blurred behind",
+ "label": "Morning table"
+ },
+ {
+ "value": "floating in mid-air with water splashing around it, high-speed photo, blue gradient background",
+ "label": "Splash"
+ },
+ {
+ "value": "on a towel in the sand, bright summer sun, the ocean softly blurred behind",
+ "label": "Beach"
+ },
+ {
+ "value": "in a minimalist pastel set with geometric shapes, soft even light",
+ "label": "Pastel set"
+ },
+ {
+ "value": "held in a hand on a city street at golden hour, shallow depth of field",
+ "label": "In hand, street"
+ }
+ ],
+ "bind": [
+ {
+ "node": "4",
+ "field": "text",
+ "template": "Product photography: the product from <ref_image_0> {scene}. Keep the product identical: shape, label, text and colors. {details}"
+ }
+ ]
+ },
+ {
+ "id": "details",
+ "type": "textarea",
+ "label": "Anything else (optional)",
+ "default": "",
+ "help": "e.g. add fresh lemons around it, top-down view"
+ },
+ {
+ "id": "steps",
+ "type": "slider",
+ "label": "Steps",
+ "min": 8,
+ "max": 32,
+ "step": 1,
+ "default": 16,
+ "bind": [
+ {
+ "node": "7",
+ "field": "steps"
+ }
+ ]
+ },
+ {
+ "id": "seed",
+ "type": "seed",
+ "label": "Seed",
+ "default": -1,
+ "help": "-1 picks a random seed",
+ "bind": [
+ {
+ "node": "7",
+ "field": "seed"
+ }
+ ]
+ }
+ ],
+ "outputs": [
+ {
+ "node": "9",
+ "type": "image",
+ "label": "Product shot"
+ }
+ ],
+ "models": [
+ {
+ "repo": "black-forest-labs/flux-3-image-klein-comfy",
+ "file": "diffusion_models/flux3-image-klein-int8-convrot.safetensors",
+ "dir": "diffusion_models",
+ "gb": 5.83,
+ "phase": "denoise",
+ "gated": true,
+ "license": "FLUX Kommunity License"
+ },
+ {
+ "repo": "black-forest-labs/flux-3-image-klein-comfy",
+ "file": "text_encoders/qwen3vl_4b_int8_convrot.safetensors",
+ "dir": "text_encoders",
+ "gb": 4.86,
+ "phase": "encode",
+ "gated": true,
+ "license": "FLUX Kommunity License"
+ },
+ {
+ "repo": "black-forest-labs/flux-3-image-klein-comfy",
+ "file": "vae/flux2-vae.safetensors",
+ "dir": "vae",
+ "gb": 0.34,
+ "phase": "decode",
+ "gated": true,
+ "license": "FLUX Kommunity License"
+ }
+ ],
+ "credits": [
+ "FLUX 3 Image Klein by Black Forest Labs (FLUX Kommunity License)"
+ ],
+ "test": {
+ "product": "test/portrait.png"
+ }
+}
diff --git a/apps/product-shot/workflow.api.json b/apps/product-shot/workflow.api.json
new file mode 100644
index 0000000..28d7038
--- /dev/null
+++ b/apps/product-shot/workflow.api.json
@@ -0,0 +1,151 @@
+{
+ "1": {
+ "class_type": "UNETLoader",
+ "inputs": {
+ "unet_name": "flux3-image-klein-int8-convrot.safetensors",
+ "weight_dtype": "default"
+ },
+ "_meta": {
+ "title": "Load Diffusion Model"
+ }
+ },
+ "2": {
+ "class_type": "CLIPLoader",
+ "inputs": {
+ "clip_name": "qwen3vl_4b_int8_convrot.safetensors",
+ "type": "flux3",
+ "device": "default"
+ },
+ "_meta": {
+ "title": "Load CLIP"
+ }
+ },
+ "3": {
+ "class_type": "VAELoader",
+ "inputs": {
+ "vae_name": "flux2-vae.safetensors"
+ },
+ "_meta": {
+ "title": "Load VAE"
+ }
+ },
+ "4": {
+ "class_type": "CLIPTextEncode",
+ "inputs": {
+ "clip": [
+ "2",
+ 0
+ ],
+ "text": "Change the jacket to deep red leather, keep everything else the same."
+ },
+ "_meta": {
+ "title": "Positive Prompt"
+ }
+ },
+ "7": {
+ "class_type": "KSampler",
+ "inputs": {
+ "model": [
+ "1",
+ 0
+ ],
+ "positive": [
+ "17",
+ 0
+ ],
+ "negative": [
+ "17",
+ 1
+ ],
+ "latent_image": [
+ "17",
+ 2
+ ],
+ "seed": 563228241303057,
+ "steps": 16,
+ "cfg": 1,
+ "sampler_name": "euler",
+ "scheduler": "simple",
+ "denoise": 1
+ },
+ "_meta": {
+ "title": "KSampler"
+ }
+ },
+ "8": {
+ "class_type": "VAEDecode",
+ "inputs": {
+ "samples": [
+ "7",
+ 0
+ ],
+ "vae": [
+ "3",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "VAE Decode"
+ }
+ },
+ "9": {
+ "class_type": "SaveImage",
+ "inputs": {
+ "images": [
+ "8",
+ 0
+ ],
+ "filename_prefix": "freefield/product-shot"
+ },
+ "_meta": {
+ "title": "Save Image"
+ }
+ },
+ "11": {
+ "class_type": "LoadImage",
+ "inputs": {
+ "image": "woman_gold_earring_teal_top_portrait.png"
+ },
+ "_meta": {
+ "title": "Load Image"
+ }
+ },
+ "17": {
+ "class_type": "ReferenceMultiLatent",
+ "inputs": {
+ "positive": [
+ "4",
+ 0
+ ],
+ "negative": [
+ "32",
+ 0
+ ],
+ "vae": [
+ "3",
+ 0
+ ],
+ "images.image0": [
+ "11",
+ 0
+ ],
+ "resolution": "resize",
+ "resolution.megapixels": 1
+ },
+ "_meta": {
+ "title": "Set Reference Multi Latent"
+ }
+ },
+ "32": {
+ "class_type": "ConditioningZeroOut",
+ "inputs": {
+ "conditioning": [
+ "4",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Conditioning Zero Out"
+ }
+ }
+}
diff --git a/apps/recast/app.json b/apps/recast/app.json
new file mode 100644
index 0000000..6bd5418
--- /dev/null
+++ b/apps/recast/app.json
@@ -0,0 +1,270 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "recast",
+ "name": "Recast",
+ "section": "video",
+ "pack": "video-scail",
+ "status": "ready",
+ "higgsfield_feature": "Character swap",
+ "summary": "Puts your character into a video in place of the person there, keeping their motion (SCAIL-2 with SAM 3.1 tracking).",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "video_wan21_scail2_character_replacement_int8.json",
+ "comfyui": "0.42.0",
+ "notes": "First segment only (81 frames): the template's extend subgraph needs 157+ frames and is removed."
+ },
+ "inputs": [
+ {
+ "id": "clip",
+ "type": "video",
+ "label": "Video",
+ "required": true,
+ "limits": {
+ "max_mb": 200
+ },
+ "help": "Uses the first 81 frames, so give it at least that many (about 3 s at 30 fps)",
+ "bind": [
+ {
+ "node": "155",
+ "field": "file"
+ }
+ ]
+ },
+ {
+ "id": "character",
+ "type": "image",
+ "label": "Your character",
+ "required": true,
+ "limits": {
+ "max_mb": 20
+ },
+ "help": "One person, full body if the video shows the full body",
+ "bind": [
+ {
+ "node": "30",
+ "field": "image"
+ }
+ ]
+ },
+ {
+ "id": "prompt",
+ "type": "textarea",
+ "label": "Describe the result",
+ "required": true,
+ "default": "A person in a red jacket walks through a sunny park, natural light, realistic",
+ "bind": [
+ {
+ "node": "213:3",
+ "field": "text"
+ }
+ ]
+ },
+ {
+ "id": "target",
+ "type": "text",
+ "label": "Who to replace in the video",
+ "default": "person",
+ "help": "What SAM 3.1 should track, e.g. \"woman\", \"man in a hat\"",
+ "bind": [
+ {
+ "node": "213:191",
+ "field": "text"
+ }
+ ]
+ },
+ {
+ "id": "mode",
+ "type": "select",
+ "label": "Mode",
+ "default": true,
+ "options": [
+ {
+ "value": true,
+ "label": "Replace: your character takes their place in the video"
+ },
+ {
+ "value": false,
+ "label": "Animate: your character's own image moves like the video"
+ }
+ ],
+ "bind": [
+ {
+ "node": "213:203",
+ "field": "value"
+ }
+ ]
+ },
+ {
+ "id": "fast",
+ "type": "toggle",
+ "label": "Fast (6 steps with the Lightx2v LoRA)",
+ "default": true,
+ "help": "Off: 40 steps, slower and a little finer",
+ "bind": [
+ {
+ "node": "213:172",
+ "field": "value"
+ }
+ ]
+ },
+ {
+ "id": "width",
+ "type": "select",
+ "label": "Width",
+ "default": 896,
+ "options": [
+ {
+ "value": 512,
+ "label": "512 px"
+ },
+ {
+ "value": 640,
+ "label": "640 px"
+ },
+ {
+ "value": 832,
+ "label": "832 px"
+ },
+ {
+ "value": 896,
+ "label": "896 px"
+ },
+ {
+ "value": 1024,
+ "label": "1024 px"
+ }
+ ],
+ "bind": [
+ {
+ "node": "213:178",
+ "field": "value"
+ }
+ ]
+ },
+ {
+ "id": "height",
+ "type": "select",
+ "label": "Height",
+ "default": 512,
+ "options": [
+ {
+ "value": 512,
+ "label": "512 px"
+ },
+ {
+ "value": 640,
+ "label": "640 px"
+ },
+ {
+ "value": 832,
+ "label": "832 px"
+ },
+ {
+ "value": 896,
+ "label": "896 px"
+ },
+ {
+ "value": 1024,
+ "label": "1024 px"
+ }
+ ],
+ "bind": [
+ {
+ "node": "213:179",
+ "field": "value"
+ }
+ ]
+ },
+ {
+ "id": "seed",
+ "type": "seed",
+ "label": "Seed",
+ "default": -1,
+ "help": "-1 picks a random seed",
+ "bind": [
+ {
+ "node": "213:19",
+ "field": "noise_seed"
+ }
+ ]
+ }
+ ],
+ "outputs": [
+ {
+ "node": "202",
+ "type": "video",
+ "label": "Video"
+ }
+ ],
+ "models": [
+ {
+ "repo": "Comfy-Org/SCAIL-2",
+ "file": "diffusion_models/wan2.1_14B_SCAIL_2_int8_convrot.safetensors",
+ "dir": "diffusion_models",
+ "gb": 16.65,
+ "phase": "denoise",
+ "license": "MIT"
+ },
+ {
+ "repo": "Comfy-Org/SCAIL-2",
+ "file": "loras/wan2.1_SCAIL_2_DPO_lora_bf16.safetensors",
+ "dir": "loras",
+ "gb": 1.23,
+ "phase": "denoise",
+ "license": "MIT"
+ },
+ {
+ "repo": "Kijai/WanVideo_comfy",
+ "file": "Lightx2v/lightx2v_I2V_14B_480p_cfg_step_distill_rank64_bf16.safetensors",
+ "dir": "loras",
+ "gb": 0.74,
+ "phase": "denoise",
+ "license": "Apache-2.0"
+ },
+ {
+ "repo": "Comfy-Org/Wan_2.1_ComfyUI_repackaged",
+ "file": "split_files/text_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensors",
+ "dir": "text_encoders",
+ "gb": 6.74,
+ "phase": "encode",
+ "license": "Apache-2.0"
+ },
+ {
+ "repo": "Comfy-Org/Wan_2.1_ComfyUI_repackaged",
+ "file": "split_files/clip_vision/clip_vision_h.safetensors",
+ "dir": "clip_vision",
+ "gb": 1.26,
+ "phase": "encode",
+ "license": "Apache-2.0"
+ },
+ {
+ "repo": "Kijai/WanVideo_comfy",
+ "file": "Wan2_1_VAE_bf16.safetensors",
+ "dir": "vae",
+ "gb": 0.25,
+ "phase": "decode",
+ "license": "Apache-2.0"
+ },
+ {
+ "repo": "Comfy-Org/sam3.1",
+ "file": "checkpoints/sam3.1_multiplex_fp16.safetensors",
+ "dir": "checkpoints",
+ "gb": 1.75,
+ "phase": "aux",
+ "license": "SAM License"
+ }
+ ],
+ "notes": "Use footage and photos of yourself, fictional characters, or people who agreed to it.",
+ "credits": [
+ "SCAIL-2 by Zhipu AI / zai-org (MIT)",
+ "SAM 3.1 by Meta (SAM License)",
+ "Lightx2v distill LoRA",
+ "Workflow: ComfyUI official template"
+ ],
+ "test": {
+ "clip": "test/clip.mp4",
+ "character": "test/portrait.png",
+ "width": 512,
+ "height": 512
+ }
+}
diff --git a/apps/recast/workflow.api.json b/apps/recast/workflow.api.json
new file mode 100644
index 0000000..0e562a8
--- /dev/null
+++ b/apps/recast/workflow.api.json
@@ -0,0 +1,681 @@
+{
+ "30": {
+ "class_type": "LoadImage",
+ "inputs": {
+ "image": "asian_model_in_white_clothes.png"
+ },
+ "_meta": {
+ "title": "Load Image"
+ }
+ },
+ "155": {
+ "class_type": "LoadVideo",
+ "inputs": {
+ "file": "girl_eats_apple.mp4"
+ },
+ "_meta": {
+ "title": "Load Video"
+ }
+ },
+ "201": {
+ "class_type": "CreateVideo",
+ "inputs": {
+ "images": [
+ "213:6",
+ 0
+ ],
+ "audio": [
+ "215",
+ 1
+ ],
+ "fps": [
+ "215",
+ 2
+ ],
+ "bit_depth": 8
+ },
+ "_meta": {
+ "title": "Create Video"
+ }
+ },
+ "202": {
+ "class_type": "SaveVideo",
+ "inputs": {
+ "video": [
+ "201",
+ 0
+ ],
+ "filename_prefix": "freefield/recast",
+ "format": "auto",
+ "format.codec": "auto"
+ },
+ "_meta": {
+ "title": "Save Video (First Segement)"
+ }
+ },
+ "213:3": {
+ "class_type": "CLIPTextEncode",
+ "inputs": {
+ "clip": [
+ "213:9",
+ 0
+ ],
+ "text": "A young East Asian woman with dark hair neatly pulled back, wearing a white sleeveless ribbed mock-neck top, is standing in a lush apple orchard. She holds a large glossy red apple with both hands, using a white paper handkerchief to wipe and clean the apple before smelling and eating it with her eyes closed and a blissful expression. Ripe red and yellow apples hang from leafy branches in the foreground, with rows of green apple trees softly blurred in the background under natural daylight."
+ },
+ "_meta": {
+ "title": "CLIP Text Encode (Prompt)"
+ }
+ },
+ "213:4": {
+ "class_type": "CLIPTextEncode",
+ "inputs": {
+ "clip": [
+ "213:9",
+ 0
+ ],
+ "text": ""
+ },
+ "_meta": {
+ "title": "CLIP Text Encode (Prompt)"
+ }
+ },
+ "213:6": {
+ "class_type": "VAEDecode",
+ "inputs": {
+ "samples": [
+ "213:19",
+ 1
+ ],
+ "vae": [
+ "213:7",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "VAE Decode"
+ }
+ },
+ "213:7": {
+ "class_type": "VAELoader",
+ "inputs": {
+ "vae_name": "Wan2_1_VAE_bf16.safetensors"
+ },
+ "_meta": {
+ "title": "Load VAE"
+ }
+ },
+ "213:9": {
+ "class_type": "CLIPLoader",
+ "inputs": {
+ "clip_name": "umt5_xxl_fp8_e4m3fn_scaled.safetensors",
+ "type": "wan",
+ "device": "default"
+ },
+ "_meta": {
+ "title": "Load CLIP"
+ }
+ },
+ "213:11": {
+ "class_type": "LoraLoaderModelOnly",
+ "inputs": {
+ "model": [
+ "213:318",
+ 0
+ ],
+ "lora_name": "lightx2v_I2V_14B_480p_cfg_step_distill_rank64_bf16.safetensors",
+ "strength_model": 0.8
+ },
+ "_meta": {
+ "title": "Load LoRA"
+ }
+ },
+ "213:18": {
+ "class_type": "BasicScheduler",
+ "inputs": {
+ "model": [
+ "213:11",
+ 0
+ ],
+ "steps": [
+ "213:170",
+ 0
+ ],
+ "scheduler": "simple",
+ "denoise": 1
+ },
+ "_meta": {
+ "title": "BasicScheduler"
+ }
+ },
+ "213:19": {
+ "class_type": "SamplerCustom",
+ "inputs": {
+ "model": [
+ "213:95",
+ 0
+ ],
+ "positive": [
+ "213:114",
+ 0
+ ],
+ "negative": [
+ "213:114",
+ 1
+ ],
+ "sampler": [
+ "213:27",
+ 0
+ ],
+ "sigmas": [
+ "213:18",
+ 0
+ ],
+ "latent_image": [
+ "213:114",
+ 2
+ ],
+ "cfg": [
+ "213:171",
+ 0
+ ],
+ "add_noise": true,
+ "noise_seed": 1
+ },
+ "_meta": {
+ "title": "SamplerCustom"
+ }
+ },
+ "213:27": {
+ "class_type": "KSamplerSelect",
+ "inputs": {
+ "sampler_name": "euler"
+ },
+ "_meta": {
+ "title": "KSamplerSelect"
+ }
+ },
+ "213:75": {
+ "class_type": "CLIPVisionLoader",
+ "inputs": {
+ "clip_name": "clip_vision_h.safetensors"
+ },
+ "_meta": {
+ "title": "Load CLIP Vision"
+ }
+ },
+ "213:76": {
+ "class_type": "CLIPVisionEncode",
+ "inputs": {
+ "clip_vision": [
+ "213:75",
+ 0
+ ],
+ "image": [
+ "30",
+ 0
+ ],
+ "crop": "none"
+ },
+ "_meta": {
+ "title": "CLIP Vision Encode"
+ }
+ },
+ "213:95": {
+ "class_type": "ModelSamplingSD3",
+ "inputs": {
+ "model": [
+ "213:169",
+ 0
+ ],
+ "shift": 5
+ },
+ "_meta": {
+ "title": "ModelSamplingSD3"
+ }
+ },
+ "213:114": {
+ "class_type": "WanSCAILToVideo",
+ "inputs": {
+ "positive": [
+ "213:3",
+ 0
+ ],
+ "negative": [
+ "213:4",
+ 0
+ ],
+ "vae": [
+ "213:7",
+ 0
+ ],
+ "pose_video": [
+ "213:156",
+ 0
+ ],
+ "pose_video_mask": [
+ "213:197",
+ 0
+ ],
+ "reference_image": [
+ "30",
+ 0
+ ],
+ "reference_image_mask": [
+ "213:197",
+ 1
+ ],
+ "clip_vision_output": [
+ "213:76",
+ 0
+ ],
+ "width": [
+ "213:163",
+ 0
+ ],
+ "height": [
+ "213:163",
+ 1
+ ],
+ "length": [
+ "213:163",
+ 2
+ ],
+ "replacement_mode": [
+ "213:203",
+ 0
+ ],
+ "batch_size": 1,
+ "pose_strength": 1,
+ "pose_start": 0,
+ "pose_end": 1,
+ "video_frame_offset": 0,
+ "previous_frame_count": 5
+ },
+ "_meta": {
+ "title": "WanSCAILToVideo"
+ }
+ },
+ "213:154": {
+ "class_type": "UNETLoader",
+ "inputs": {
+ "unet_name": "wan2.1_14B_SCAIL_2_int8_convrot.safetensors",
+ "weight_dtype": "default"
+ },
+ "_meta": {
+ "title": "Load Diffusion Model"
+ }
+ },
+ "213:156": {
+ "class_type": "ResizeImageMaskNode",
+ "inputs": {
+ "input": [
+ "213:177",
+ 0
+ ],
+ "resize_type.width": [
+ "213:180",
+ 1
+ ],
+ "resize_type.height": [
+ "213:182",
+ 1
+ ],
+ "resize_type": "scale dimensions",
+ "resize_type.crop": "center",
+ "scale_method": "area"
+ },
+ "_meta": {
+ "title": "Resize Image/Mask"
+ }
+ },
+ "213:157": {
+ "class_type": "GetVideoComponents",
+ "inputs": {
+ "video": [
+ "155",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Get Video Components"
+ }
+ },
+ "213:163": {
+ "class_type": "GetImageSize",
+ "inputs": {
+ "image": [
+ "213:156",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Get Image Size"
+ }
+ },
+ "213:165": {
+ "class_type": "PrimitiveInt",
+ "inputs": {
+ "value": 40
+ },
+ "_meta": {
+ "title": "Int (Steps)"
+ }
+ },
+ "213:166": {
+ "class_type": "PrimitiveFloat",
+ "inputs": {
+ "value": 5
+ },
+ "_meta": {
+ "title": "Float (CFG)"
+ }
+ },
+ "213:167": {
+ "class_type": "PrimitiveFloat",
+ "inputs": {
+ "value": 1
+ },
+ "_meta": {
+ "title": "Float (CFG)"
+ }
+ },
+ "213:168": {
+ "class_type": "PrimitiveInt",
+ "inputs": {
+ "value": 6
+ },
+ "_meta": {
+ "title": "Int (Steps)"
+ }
+ },
+ "213:169": {
+ "class_type": "ComfySwitchNode",
+ "inputs": {
+ "on_false": [
+ "213:318",
+ 0
+ ],
+ "on_true": [
+ "213:11",
+ 0
+ ],
+ "switch": [
+ "213:172",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Switch (Model)"
+ }
+ },
+ "213:170": {
+ "class_type": "ComfySwitchNode",
+ "inputs": {
+ "on_false": [
+ "213:165",
+ 0
+ ],
+ "on_true": [
+ "213:168",
+ 0
+ ],
+ "switch": [
+ "213:172",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Switch (Steps)"
+ }
+ },
+ "213:171": {
+ "class_type": "ComfySwitchNode",
+ "inputs": {
+ "on_false": [
+ "213:166",
+ 0
+ ],
+ "on_true": [
+ "213:167",
+ 0
+ ],
+ "switch": [
+ "213:172",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Switch (Steps)"
+ }
+ },
+ "213:172": {
+ "class_type": "PrimitiveBoolean",
+ "inputs": {
+ "value": true
+ },
+ "_meta": {
+ "title": "Boolean (Enable Distill LoRA?)"
+ }
+ },
+ "213:177": {
+ "class_type": "ImageFromBatch",
+ "inputs": {
+ "image": [
+ "213:157",
+ 0
+ ],
+ "batch_index": [
+ "213:184",
+ 1
+ ],
+ "length": 81
+ },
+ "_meta": {
+ "title": "Get Image from Batch"
+ }
+ },
+ "213:178": {
+ "class_type": "PrimitiveInt",
+ "inputs": {
+ "value": 896
+ },
+ "_meta": {
+ "title": "Int (Width)"
+ }
+ },
+ "213:179": {
+ "class_type": "PrimitiveInt",
+ "inputs": {
+ "value": 512
+ },
+ "_meta": {
+ "title": "Int (Height)"
+ }
+ },
+ "213:180": {
+ "class_type": "ComfyMathExpression",
+ "inputs": {
+ "values.a": [
+ "213:178",
+ 0
+ ],
+ "expression": "(a // 32) * 32"
+ },
+ "_meta": {
+ "title": "Math Expression"
+ }
+ },
+ "213:182": {
+ "class_type": "ComfyMathExpression",
+ "inputs": {
+ "values.a": [
+ "213:179",
+ 0
+ ],
+ "expression": "(a // 32) * 32"
+ },
+ "_meta": {
+ "title": "Math Expression"
+ }
+ },
+ "213:183": {
+ "class_type": "PrimitiveInt",
+ "inputs": {
+ "value": 1
+ },
+ "_meta": {
+ "title": "Int (segment index)"
+ }
+ },
+ "213:184": {
+ "class_type": "ComfyMathExpression",
+ "inputs": {
+ "values.a": [
+ "213:183",
+ 0
+ ],
+ "expression": "(b - c) * (a - 1)"
+ },
+ "_meta": {
+ "title": "Math Expression"
+ }
+ },
+ "213:191": {
+ "class_type": "CLIPTextEncode",
+ "inputs": {
+ "clip": [
+ "213:193",
+ 1
+ ],
+ "text": "girl, handkerchief"
+ },
+ "_meta": {
+ "title": "CLIP Text Encode (Prompt)"
+ }
+ },
+ "213:193": {
+ "class_type": "CheckpointLoaderSimple",
+ "inputs": {
+ "ckpt_name": "sam3.1_multiplex_fp16.safetensors"
+ },
+ "_meta": {
+ "title": "Load Checkpoint"
+ }
+ },
+ "213:196": {
+ "class_type": "SAM3_VideoTrack",
+ "inputs": {
+ "images": [
+ "213:156",
+ 0
+ ],
+ "model": [
+ "213:193",
+ 0
+ ],
+ "conditioning": [
+ "213:191",
+ 0
+ ],
+ "detection_threshold": 0.5,
+ "max_objects": 4,
+ "detect_interval": 1
+ },
+ "_meta": {
+ "title": "Run SAM3 Video Track"
+ }
+ },
+ "213:197": {
+ "class_type": "SCAIL2ColoredMask",
+ "inputs": {
+ "driving_track_data": [
+ "213:196",
+ 0
+ ],
+ "ref_track_data": [
+ "213:198",
+ 0
+ ],
+ "replacement_mode": [
+ "213:203",
+ 0
+ ],
+ "object_indices": "",
+ "sort_by": "left_to_right"
+ },
+ "_meta": {
+ "title": "Create SCAIL-2 Colored Mask"
+ }
+ },
+ "213:198": {
+ "class_type": "SAM3_VideoTrack",
+ "inputs": {
+ "images": [
+ "30",
+ 0
+ ],
+ "model": [
+ "213:193",
+ 0
+ ],
+ "conditioning": [
+ "213:212",
+ 0
+ ],
+ "detection_threshold": 0.5,
+ "max_objects": 4,
+ "detect_interval": 1
+ },
+ "_meta": {
+ "title": "Run SAM3 Video Track"
+ }
+ },
+ "213:203": {
+ "class_type": "PrimitiveBoolean",
+ "inputs": {
+ "value": true
+ },
+ "_meta": {
+ "title": "Boolean (Replace Mode)"
+ }
+ },
+ "213:212": {
+ "class_type": "CLIPTextEncode",
+ "inputs": {
+ "clip": [
+ "213:193",
+ 1
+ ],
+ "text": "human"
+ },
+ "_meta": {
+ "title": "CLIP Text Encode (Prompt)"
+ }
+ },
+ "213:318": {
+ "class_type": "LoraLoaderModelOnly",
+ "inputs": {
+ "model": [
+ "213:154",
+ 0
+ ],
+ "lora_name": "wan2.1_SCAIL_2_DPO_lora_bf16.safetensors",
+ "strength_model": 1
+ },
+ "_meta": {
+ "title": "Load LoRA"
+ }
+ },
+ "215": {
+ "class_type": "GetVideoComponents",
+ "inputs": {
+ "video": [
+ "155",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Get Video Components"
+ }
+ }
+}
diff --git a/apps/relight/app.json b/apps/relight/app.json
new file mode 100644
index 0000000..608efed
--- /dev/null
+++ b/apps/relight/app.json
@@ -0,0 +1,154 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "relight",
+ "name": "Relight",
+ "section": "image",
+ "pack": "image-qwen-edit",
+ "status": "ready",
+ "higgsfield_feature": "Relight",
+ "summary": "Relights a photo: golden hour, neon, studio softbox or any light you describe, keeping the scene intact.",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "image_qwen_image_edit_2509_relight.json",
+ "comfyui": "0.42.0",
+ "notes": "Unchanged official template (Qwen Image Edit 2509 fp8 + Relight LoRA + 4-step Lightning LoRA). The Relight trigger is prepended by the workflow."
+ },
+ "inputs": [
+ {
+ "id": "image",
+ "type": "image",
+ "label": "Photo",
+ "required": true,
+ "limits": {
+ "max_mb": 20
+ },
+ "bind": [
+ {
+ "node": "11",
+ "field": "image"
+ }
+ ]
+ },
+ {
+ "id": "light",
+ "type": "select",
+ "label": "Light",
+ "default": "golden hour sunlight through a low window, warm color temperature, long soft shadows",
+ "options": [
+ {
+ "value": "golden hour sunlight through a low window, warm color temperature, long soft shadows",
+ "label": "Golden hour"
+ },
+ {
+ "value": "twilight blue-hour light with warm practical lamps, soft light and blurred shadows",
+ "label": "Blue hour"
+ },
+ {
+ "value": "neon night lighting, magenta and cyan rim light, dark moody background",
+ "label": "Neon night"
+ },
+ {
+ "value": "soft studio light from a large softbox on the left, gentle fill, clean shadows",
+ "label": "Studio softbox"
+ },
+ {
+ "value": "dramatic chiaroscuro, a single hard key light from the side, deep shadows",
+ "label": "Dramatic key light"
+ },
+ {
+ "value": "overcast daylight, soft and even, no hard shadows",
+ "label": "Overcast"
+ },
+ {
+ "value": "warm candlelight, flickering amber glow, deep shadows",
+ "label": "Candlelight"
+ }
+ ],
+ "bind": [
+ {
+ "node": "15",
+ "field": "value",
+ "template": " relight the image using {light}. {details}"
+ }
+ ]
+ },
+ {
+ "id": "details",
+ "type": "textarea",
+ "label": "Anything else about the light (optional)",
+ "default": "",
+ "help": "e.g. light coming from the right, a red glow from a sign"
+ },
+ {
+ "id": "seed",
+ "type": "seed",
+ "label": "Seed",
+ "default": -1,
+ "help": "-1 picks a random seed",
+ "bind": [
+ {
+ "node": "10:3",
+ "field": "seed"
+ }
+ ]
+ }
+ ],
+ "outputs": [
+ {
+ "node": "12",
+ "type": "image",
+ "label": "Relit photo"
+ }
+ ],
+ "models": [
+ {
+ "repo": "Comfy-Org/Qwen-Image-Edit_ComfyUI",
+ "file": "split_files/diffusion_models/qwen_image_edit_2509_fp8_e4m3fn.safetensors",
+ "dir": "diffusion_models",
+ "gb": 20.43,
+ "phase": "denoise",
+ "license": "Apache-2.0"
+ },
+ {
+ "repo": "Comfy-Org/Qwen-Image_ComfyUI",
+ "file": "split_files/text_encoders/qwen_2.5_vl_7b_fp8_scaled.safetensors",
+ "dir": "text_encoders",
+ "gb": 9.38,
+ "phase": "encode",
+ "license": "Apache-2.0"
+ },
+ {
+ "repo": "Comfy-Org/Qwen-Image_ComfyUI",
+ "file": "split_files/vae/qwen_image_vae.safetensors",
+ "dir": "vae",
+ "gb": 0.25,
+ "phase": "decode",
+ "license": "Apache-2.0"
+ },
+ {
+ "repo": "lightx2v/Qwen-Image-Lightning",
+ "file": "Qwen-Image-Edit-2509/Qwen-Image-Edit-2509-Lightning-4steps-V1.0-bf16.safetensors",
+ "dir": "loras",
+ "gb": 0.85,
+ "phase": "denoise",
+ "license": "Apache-2.0"
+ },
+ {
+ "repo": "Comfy-Org/Qwen-Image-Edit_ComfyUI",
+ "file": "split_files/loras/Qwen-Image-Edit-2509-Relight.safetensors",
+ "dir": "loras",
+ "gb": 0.24,
+ "phase": "denoise",
+ "license": "Apache-2.0"
+ }
+ ],
+ "credits": [
+ "Qwen-Image-Edit-2509 by Alibaba Qwen (Apache-2.0)",
+ "Relight LoRA by dx8152 (Apache-2.0)",
+ "Lightning LoRA by lightx2v",
+ "Workflow: ComfyUI official template"
+ ],
+ "test": {
+ "image": "test/portrait.png"
+ }
+}
diff --git a/apps/relight/workflow.api.json b/apps/relight/workflow.api.json
new file mode 100644
index 0000000..7342ba0
--- /dev/null
+++ b/apps/relight/workflow.api.json
@@ -0,0 +1,251 @@
+{
+ "10:3": {
+ "class_type": "KSampler",
+ "inputs": {
+ "model": [
+ "10:75",
+ 0
+ ],
+ "positive": [
+ "10:111",
+ 0
+ ],
+ "negative": [
+ "10:110",
+ 0
+ ],
+ "latent_image": [
+ "10:88",
+ 0
+ ],
+ "seed": 1118877715456453,
+ "steps": 4,
+ "cfg": 1,
+ "sampler_name": "euler",
+ "scheduler": "simple",
+ "denoise": 1
+ },
+ "_meta": {
+ "title": "KSampler"
+ }
+ },
+ "10:8": {
+ "class_type": "VAEDecode",
+ "inputs": {
+ "samples": [
+ "10:3",
+ 0
+ ],
+ "vae": [
+ "10:39",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "VAE Decode"
+ }
+ },
+ "10:37": {
+ "class_type": "UNETLoader",
+ "inputs": {
+ "unet_name": "qwen_image_edit_2509_fp8_e4m3fn.safetensors",
+ "weight_dtype": "default"
+ },
+ "_meta": {
+ "title": "Load Diffusion Model"
+ }
+ },
+ "10:38": {
+ "class_type": "CLIPLoader",
+ "inputs": {
+ "clip_name": "qwen_2.5_vl_7b_fp8_scaled.safetensors",
+ "type": "qwen_image",
+ "device": "default"
+ },
+ "_meta": {
+ "title": "Load CLIP"
+ }
+ },
+ "10:39": {
+ "class_type": "VAELoader",
+ "inputs": {
+ "vae_name": "qwen_image_vae.safetensors"
+ },
+ "_meta": {
+ "title": "Load VAE"
+ }
+ },
+ "10:66": {
+ "class_type": "ModelSamplingAuraFlow",
+ "inputs": {
+ "model": [
+ "10:118",
+ 0
+ ],
+ "shift": 3
+ },
+ "_meta": {
+ "title": "ModelSamplingAuraFlow"
+ }
+ },
+ "10:75": {
+ "class_type": "CFGNorm",
+ "inputs": {
+ "model": [
+ "10:66",
+ 0
+ ],
+ "strength": 1,
+ "pre_cfg": false
+ },
+ "_meta": {
+ "title": "CFGNorm"
+ }
+ },
+ "10:88": {
+ "class_type": "VAEEncode",
+ "inputs": {
+ "pixels": [
+ "10:117",
+ 0
+ ],
+ "vae": [
+ "10:39",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "VAE Encode"
+ }
+ },
+ "10:89": {
+ "class_type": "LoraLoaderModelOnly",
+ "inputs": {
+ "model": [
+ "10:37",
+ 0
+ ],
+ "lora_name": "Qwen-Image-Edit-2509-Lightning-4steps-V1.0-bf16.safetensors",
+ "strength_model": 1
+ },
+ "_meta": {
+ "title": "Load LoRA"
+ }
+ },
+ "10:110": {
+ "class_type": "TextEncodeQwenImageEditPlus",
+ "inputs": {
+ "clip": [
+ "10:38",
+ 0
+ ],
+ "vae": [
+ "10:39",
+ 0
+ ],
+ "image1": [
+ "10:117",
+ 0
+ ],
+ "prompt": ""
+ },
+ "_meta": {
+ "title": "Text Encode Qwen Image Edit Plus"
+ }
+ },
+ "10:111": {
+ "class_type": "TextEncodeQwenImageEditPlus",
+ "inputs": {
+ "clip": [
+ "10:38",
+ 0
+ ],
+ "vae": [
+ "10:39",
+ 0
+ ],
+ "image1": [
+ "10:117",
+ 0
+ ],
+ "prompt": [
+ "14",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Text Encode Qwen Image Edit Plus"
+ }
+ },
+ "10:117": {
+ "class_type": "FluxKontextImageScale",
+ "inputs": {
+ "image": [
+ "11",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "FluxKontextImageScale"
+ }
+ },
+ "10:118": {
+ "class_type": "LoraLoaderModelOnly",
+ "inputs": {
+ "model": [
+ "10:89",
+ 0
+ ],
+ "lora_name": "Qwen-Image-Edit-2509-Relight.safetensors",
+ "strength_model": 1
+ },
+ "_meta": {
+ "title": "Load LoRA"
+ }
+ },
+ "11": {
+ "class_type": "LoadImage",
+ "inputs": {
+ "image": "warm_living_room.png"
+ },
+ "_meta": {
+ "title": "Load Image"
+ }
+ },
+ "12": {
+ "class_type": "SaveImage",
+ "inputs": {
+ "images": [
+ "10:8",
+ 0
+ ],
+ "filename_prefix": "freefield/relight"
+ },
+ "_meta": {
+ "title": "Save Image"
+ }
+ },
+ "14": {
+ "class_type": "StringConcatenate",
+ "inputs": {
+ "string_b": [
+ "15",
+ 0
+ ],
+ "string_a": "重新照明,",
+ "delimiter": ""
+ },
+ "_meta": {
+ "title": "LoRA trigger word"
+ }
+ },
+ "15": {
+ "class_type": "PrimitiveStringMultiline",
+ "inputs": {
+ "value": " relight the image using twilight light (with a warm color temperature, soft light, and blurred shadows)"
+ },
+ "_meta": {
+ "title": "Prompt"
+ }
+ }
+}
diff --git a/apps/remove-bg/app.json b/apps/remove-bg/app.json
new file mode 100644
index 0000000..19c868d
--- /dev/null
+++ b/apps/remove-bg/app.json
@@ -0,0 +1,55 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "remove-bg",
+ "name": "Remove Background",
+ "section": "image",
+ "pack": "upscale",
+ "status": "ready",
+ "summary": "Cuts out the subject with BiRefNet and returns a PNG with transparency.",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "utility_birefnet_remove_background.json",
+ "comfyui": "0.42.0",
+ "notes": "Preview nodes replaced by SaveImage."
+ },
+ "inputs": [
+ {
+ "id": "image",
+ "type": "image",
+ "label": "Image",
+ "required": true,
+ "limits": {
+ "max_mb": 20
+ },
+ "bind": [
+ {
+ "node": "17",
+ "field": "image"
+ }
+ ]
+ }
+ ],
+ "outputs": [
+ {
+ "node": "18",
+ "type": "image",
+ "label": "Cutout"
+ }
+ ],
+ "models": [
+ {
+ "repo": "Comfy-Org/BiRefNet",
+ "file": "background_removal/birefnet.safetensors",
+ "dir": "background_removal",
+ "gb": 0.44,
+ "phase": "all",
+ "license": "MIT"
+ }
+ ],
+ "credits": [
+ "BiRefNet (MIT)"
+ ],
+ "test": {
+ "image": "test/portrait.png"
+ }
+}
diff --git a/apps/remove-bg/workflow.api.json b/apps/remove-bg/workflow.api.json
new file mode 100644
index 0000000..018c6a3
--- /dev/null
+++ b/apps/remove-bg/workflow.api.json
@@ -0,0 +1,77 @@
+{
+ "17": {
+ "class_type": "LoadImage",
+ "inputs": {
+ "image": "the_lily_veil.png"
+ },
+ "_meta": {
+ "title": "Load Image"
+ }
+ },
+ "18": {
+ "class_type": "SaveImage",
+ "inputs": {
+ "images": [
+ "19:16",
+ 0
+ ],
+ "filename_prefix": "freefield/remove-bg"
+ },
+ "_meta": {
+ "title": "Save Image"
+ }
+ },
+ "19:13": {
+ "class_type": "RemoveBackground",
+ "inputs": {
+ "image": [
+ "17",
+ 0
+ ],
+ "bg_removal_model": [
+ "19:14",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Remove Background"
+ }
+ },
+ "19:14": {
+ "class_type": "LoadBackgroundRemovalModel",
+ "inputs": {
+ "bg_removal_name": "birefnet.safetensors"
+ },
+ "_meta": {
+ "title": "Load Background Removal Model"
+ }
+ },
+ "19:15": {
+ "class_type": "InvertMask",
+ "inputs": {
+ "mask": [
+ "19:13",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Invert Mask"
+ }
+ },
+ "19:16": {
+ "class_type": "JoinImageWithAlpha",
+ "inputs": {
+ "image": [
+ "17",
+ 0
+ ],
+ "alpha": [
+ "19:15",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Join Image with Alpha"
+ }
+ }
+}
diff --git a/apps/reshoot/app.json b/apps/reshoot/app.json
new file mode 100644
index 0000000..de2b14e
--- /dev/null
+++ b/apps/reshoot/app.json
@@ -0,0 +1,206 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "reshoot",
+ "name": "Re-shoot",
+ "section": "video",
+ "pack": "video-h3",
+ "status": "draft",
+ "higgsfield_feature": "Camera angles",
+ "summary": "Moves the camera to a new angle on an existing clip (MiniMax H3 + MoGe + CrossView).",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "Comfy-Org/comfy-reshoot workflows/generate.api.json (dc53fc7)",
+ "comfyui": "0.42.0",
+ "notes": "Comfy's own reference app, shown on a 96 GB GPU. Needs an 80 GB Modal GPU; draft until it runs there."
+ },
+ "inputs": [
+ {
+ "id": "clip",
+ "type": "video",
+ "label": "Your clip",
+ "required": true,
+ "limits": {
+ "max_mb": 100,
+ "seconds": [
+ 5,
+ 15
+ ]
+ },
+ "bind": [
+ {
+ "node": "1",
+ "field": "file"
+ }
+ ]
+ },
+ {
+ "id": "azimuth",
+ "type": "slider",
+ "label": "Orbit (degrees)",
+ "min": -90,
+ "max": 90,
+ "step": 5,
+ "default": -30,
+ "bind": [
+ {
+ "node": "5",
+ "field": "azimuth"
+ }
+ ]
+ },
+ {
+ "id": "elevation",
+ "type": "slider",
+ "label": "Height (degrees)",
+ "min": -30,
+ "max": 60,
+ "step": 5,
+ "default": 20,
+ "bind": [
+ {
+ "node": "5",
+ "field": "elevation"
+ }
+ ]
+ },
+ {
+ "id": "distance",
+ "type": "slider",
+ "label": "Distance",
+ "min": 0.5,
+ "max": 2.0,
+ "step": 0.05,
+ "default": 1.0,
+ "bind": [
+ {
+ "node": "5",
+ "field": "distance"
+ }
+ ]
+ },
+ {
+ "id": "duration",
+ "type": "slider",
+ "label": "Seconds to keep",
+ "min": 2,
+ "max": 10,
+ "step": 1,
+ "default": 5,
+ "bind": [
+ {
+ "node": "2",
+ "field": "duration"
+ }
+ ]
+ },
+ {
+ "id": "prompt",
+ "type": "textarea",
+ "label": "Extra description (optional)",
+ "default": "",
+ "bind": [
+ {
+ "node": "20",
+ "field": "prompt",
+ "template": "crossview. {prompt}"
+ }
+ ]
+ },
+ {
+ "id": "seed",
+ "type": "seed",
+ "label": "Seed",
+ "default": -1,
+ "help": "-1 picks a random seed",
+ "bind": [
+ {
+ "node": "30",
+ "field": "noise_seed"
+ }
+ ]
+ }
+ ],
+ "outputs": [
+ {
+ "node": "38",
+ "type": "video",
+ "label": "New angle"
+ },
+ {
+ "node": "41",
+ "type": "video",
+ "label": "Warp guide"
+ }
+ ],
+ "models": [
+ {
+ "repo": "Comfy-Org/MiniMax-H3",
+ "file": "diffusion_models/minimax_h3_ref2va_pruned_int8_convrot.safetensors",
+ "dir": "diffusion_models",
+ "gb": 20.97,
+ "phase": "denoise",
+ "license": "MiniMax H3 Community License"
+ },
+ {
+ "repo": "Comfy-Org/MiniMax-H3",
+ "file": "text_encoders/qwen3vl_32b_minimax_h3_int8_convrot.safetensors",
+ "dir": "text_encoders",
+ "gb": 27.14,
+ "phase": "encode",
+ "license": "MiniMax H3 Community License"
+ },
+ {
+ "repo": "Comfy-Org/MiniMax-H3",
+ "file": "vae/minimax_h3_video_vae_int8_convrot.safetensors",
+ "dir": "vae",
+ "gb": 2.81,
+ "phase": "decode",
+ "license": "MiniMax H3 Community License"
+ },
+ {
+ "repo": "Comfy-Org/MiniMax-H3",
+ "file": "vae/minimax_h3_audio_vae_fp32.safetensors",
+ "dir": "vae",
+ "gb": 0.61,
+ "phase": "decode",
+ "license": "MiniMax H3 Community License"
+ },
+ {
+ "repo": "Comfy-Org/MoGe",
+ "file": "geometry_estimation/moge_2_vitl_normal_fp16.safetensors",
+ "dir": "geometry_estimation",
+ "gb": 0.66,
+ "phase": "aux",
+ "license": "MIT"
+ },
+ {
+ "repo": "Cseti/MiniMax-H3_Ref2VA-LoRA-CrossView-Warp_v1",
+ "file": "MiniMax-H3_Ref2VA-LoRA-CrossView-Warp_v1_3500.safetensors",
+ "dir": "loras",
+ "gb": 0.6,
+ "phase": "denoise"
+ },
+ {
+ "repo": "lightx2v/Minimax-h3-Turbo",
+ "file": "minimax_h3_ref2v_turbo_8step_v1.0_768p_comfyui_bf16.safetensors",
+ "dir": "loras",
+ "gb": 1.96,
+ "phase": "denoise"
+ }
+ ],
+ "custom_nodes": [
+ {
+ "repo": "https://github.com/comfyrob/ComfyUI-CrossViewWarp",
+ "commit": "fbb1e93c7193329ff3ce7c17f95166b539687876"
+ }
+ ],
+ "credits": [
+ "Comfy-Org/comfy-reshoot (MIT)",
+ "CrossView-Warp node (Apache-2.0) and LoRA by Cseti",
+ "MiniMax H3 (MiniMax H3 Community License)"
+ ],
+ "test": {
+ "clip": "test/clip.mp4",
+ "duration": 5
+ }
+}
diff --git a/apps/reshoot/workflow.api.json b/apps/reshoot/workflow.api.json
new file mode 100644
index 0000000..75d369d
--- /dev/null
+++ b/apps/reshoot/workflow.api.json
@@ -0,0 +1,423 @@
+{
+ "1": {
+ "class_type": "LoadVideo",
+ "_meta": {
+ "title": "Source video"
+ },
+ "inputs": {
+ "file": "input.mp4"
+ }
+ },
+ "2": {
+ "class_type": "CrossViewPrepareClip",
+ "_meta": {
+ "title": "Prepare clip (24 fps, whole clip, aspect, size)"
+ },
+ "inputs": {
+ "video": [
+ "1",
+ 0
+ ],
+ "duration": 5.0,
+ "aspect_ratio": "source",
+ "megapixels": 0.5,
+ "multiple": 32
+ }
+ },
+ "3": {
+ "class_type": "LoadMoGeModel",
+ "_meta": {
+ "title": "MoGe model"
+ },
+ "inputs": {
+ "model_name": "moge_2_vitl_normal_fp16.safetensors"
+ }
+ },
+ "4": {
+ "class_type": "MoGeInference",
+ "_meta": {
+ "title": "Depth estimation (MoGe)"
+ },
+ "inputs": {
+ "moge_model": [
+ "3",
+ 0
+ ],
+ "image": [
+ "2",
+ 0
+ ],
+ "resolution_level": 2,
+ "fov_x_degrees": 0,
+ "batch_size": 4,
+ "force_projection": true,
+ "apply_mask": true,
+ "refine_steps": 3
+ }
+ },
+ "5": {
+ "class_type": "CrossViewWarp",
+ "_meta": {
+ "title": "CrossView Warp (camera from the page)"
+ },
+ "inputs": {
+ "frames": [
+ "2",
+ 0
+ ],
+ "moge_geometry": [
+ "4",
+ 0
+ ],
+ "azimuth": -30.0,
+ "elevation": 20.0,
+ "distance": 1.0,
+ "hfov": 50.0,
+ "vertical_shift": 0.0,
+ "depth_ratio": 6.0,
+ "smooth_depth": false,
+ "invert_depth": false,
+ "roll_lock": false,
+ "pivot_override": false,
+ "pivot_x": 0.0,
+ "pivot_y": 0.0,
+ "pivot_z": 1.05,
+ "use_keyframes": false,
+ "frame_count": 0,
+ "keyframes": "",
+ "interp_motion": "linear",
+ "interpolation": "linear",
+ "keep_source_aim": true,
+ "preview_size": 384,
+ "frame_index": 1
+ }
+ },
+ "10": {
+ "class_type": "UNETLoader",
+ "_meta": {
+ "title": "H3 ref2va"
+ },
+ "inputs": {
+ "unet_name": "minimax_h3_ref2va_pruned_int8_convrot.safetensors",
+ "weight_dtype": "default"
+ }
+ },
+ "11": {
+ "class_type": "LoraLoaderModelOnly",
+ "_meta": {
+ "title": "Turbo LoRA (8 step)"
+ },
+ "inputs": {
+ "model": [
+ "10",
+ 0
+ ],
+ "lora_name": "minimax_h3_ref2v_turbo_8step_v1.0_768p_comfyui_bf16.safetensors",
+ "strength_model": 1.0
+ }
+ },
+ "12": {
+ "class_type": "MiniMaxH3SigmaShift",
+ "inputs": {
+ "model": [
+ "11",
+ 0
+ ],
+ "shift_video": 12.0,
+ "shift_audio": 3.0
+ }
+ },
+ "13": {
+ "class_type": "ModelAttentionBackend",
+ "inputs": {
+ "model": [
+ "12",
+ 0
+ ],
+ "attention": "comfy kitchen attention"
+ }
+ },
+ "14": {
+ "class_type": "LoraLoaderModelOnly",
+ "_meta": {
+ "title": "CrossView-Warp LoRA"
+ },
+ "inputs": {
+ "model": [
+ "13",
+ 0
+ ],
+ "lora_name": "MiniMax-H3_Ref2VA-LoRA-CrossView-Warp_v1_3500.safetensors",
+ "strength_model": 0.8
+ }
+ },
+ "15": {
+ "class_type": "CLIPLoader",
+ "_meta": {
+ "title": "Qwen3-VL text encoder"
+ },
+ "inputs": {
+ "clip_name": "qwen3vl_32b_minimax_h3_int8_convrot.safetensors",
+ "type": "minimax",
+ "device": "default"
+ }
+ },
+ "16": {
+ "class_type": "VAELoader",
+ "_meta": {
+ "title": "Video VAE"
+ },
+ "inputs": {
+ "vae_name": "minimax_h3_video_vae_int8_convrot.safetensors"
+ }
+ },
+ "17": {
+ "class_type": "VAELoader",
+ "_meta": {
+ "title": "Audio VAE"
+ },
+ "inputs": {
+ "vae_name": "minimax_h3_audio_vae_fp32.safetensors"
+ }
+ },
+ "20": {
+ "class_type": "MiniMaxH3ReferenceToVideo",
+ "_meta": {
+ "title": "Source as <Video 1> reference + trigger caption"
+ },
+ "inputs": {
+ "clip": [
+ "15",
+ 0
+ ],
+ "vae": [
+ "16",
+ 0
+ ],
+ "audio_vae": [
+ "17",
+ 0
+ ],
+ "ref_videos.ref_video_0": [
+ "2",
+ 0
+ ],
+ "prompt": "crossview.",
+ "width": [
+ "2",
+ 1
+ ],
+ "height": [
+ "2",
+ 2
+ ],
+ "length": [
+ "2",
+ 3
+ ],
+ "ref_image_size": "match"
+ }
+ },
+ "21": {
+ "class_type": "MiniMaxH3AddGuide",
+ "_meta": {
+ "title": "Warp as aligned guide at frame 0"
+ },
+ "inputs": {
+ "positive": [
+ "20",
+ 0
+ ],
+ "latent": [
+ "20",
+ 1
+ ],
+ "vae": [
+ "16",
+ 0
+ ],
+ "image": [
+ "5",
+ 0
+ ],
+ "frame_idx": 0
+ }
+ },
+ "30": {
+ "class_type": "RandomNoise",
+ "_meta": {
+ "title": "Seed"
+ },
+ "inputs": {
+ "noise_seed": 42
+ }
+ },
+ "31": {
+ "class_type": "KSamplerSelect",
+ "inputs": {
+ "sampler_name": "res_multistep"
+ }
+ },
+ "32": {
+ "class_type": "BasicScheduler",
+ "inputs": {
+ "model": [
+ "14",
+ 0
+ ],
+ "scheduler": "simple",
+ "steps": 8,
+ "denoise": 1.0
+ }
+ },
+ "33": {
+ "class_type": "BasicGuider",
+ "inputs": {
+ "model": [
+ "14",
+ 0
+ ],
+ "conditioning": [
+ "21",
+ 0
+ ]
+ }
+ },
+ "34": {
+ "class_type": "SamplerCustomAdvanced",
+ "inputs": {
+ "noise": [
+ "30",
+ 0
+ ],
+ "guider": [
+ "33",
+ 0
+ ],
+ "sampler": [
+ "31",
+ 0
+ ],
+ "sigmas": [
+ "32",
+ 0
+ ],
+ "latent_image": [
+ "20",
+ 1
+ ]
+ }
+ },
+ "35": {
+ "class_type": "VAEDecode",
+ "inputs": {
+ "samples": [
+ "34",
+ 0
+ ],
+ "vae": [
+ "16",
+ 0
+ ]
+ }
+ },
+ "36": {
+ "class_type": "VAEDecodeAudio",
+ "inputs": {
+ "samples": [
+ "34",
+ 0
+ ],
+ "vae": [
+ "17",
+ 0
+ ]
+ }
+ },
+ "37": {
+ "class_type": "CreateVideo",
+ "inputs": {
+ "images": [
+ "35",
+ 0
+ ],
+ "audio": [
+ "36",
+ 0
+ ],
+ "fps": 24.0
+ }
+ },
+ "38": {
+ "class_type": "SaveVideo",
+ "_meta": {
+ "title": "Result"
+ },
+ "inputs": {
+ "video": [
+ "37",
+ 0
+ ],
+ "filename_prefix": "freefield/reshoot",
+ "format": "mp4",
+ "format.codec": "h264"
+ }
+ },
+ "40": {
+ "class_type": "CreateVideo",
+ "inputs": {
+ "images": [
+ "5",
+ 0
+ ],
+ "fps": 24.0
+ }
+ },
+ "41": {
+ "class_type": "SaveVideo",
+ "_meta": {
+ "title": "Warp guide"
+ },
+ "inputs": {
+ "video": [
+ "40",
+ 0
+ ],
+ "filename_prefix": "freefield/reshoot",
+ "format": "mp4",
+ "format.codec": "h264"
+ }
+ },
+ "42": {
+ "class_type": "CreateVideo",
+ "_meta": {
+ "title": "Result with the original audio"
+ },
+ "inputs": {
+ "images": [
+ "35",
+ 0
+ ],
+ "audio": [
+ "2",
+ 4
+ ],
+ "fps": 24.0
+ }
+ },
+ "43": {
+ "class_type": "SaveVideo",
+ "_meta": {
+ "title": "Result, original audio"
+ },
+ "inputs": {
+ "video": [
+ "42",
+ 0
+ ],
+ "filename_prefix": "freefield/reshoot",
+ "format": "mp4",
+ "format.codec": "h264"
+ }
+ }
+}
diff --git a/apps/sfx/app.json b/apps/sfx/app.json
new file mode 100644
index 0000000..5789ac9
--- /dev/null
+++ b/apps/sfx/app.json
@@ -0,0 +1,142 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "sfx",
+ "name": "Sound Effects",
+ "section": "audio",
+ "pack": "audio",
+ "status": "ready",
+ "higgsfield_feature": "Audio",
+ "summary": "Music beds, instruments, ambiences and one-shots with Stable Audio 3.",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "audio_stable_audio_3_medium.json",
+ "comfyui": "0.42.0"
+ },
+ "inputs": [
+ {
+ "id": "description",
+ "type": "textarea",
+ "label": "Describe the sound",
+ "required": true,
+ "default": "heavy rain on a tin roof with distant thunder",
+ "bind": [
+ {
+ "node": "52:31",
+ "field": "value"
+ }
+ ]
+ },
+ {
+ "id": "category",
+ "type": "select",
+ "label": "Category",
+ "default": "SFX",
+ "options": [
+ {
+ "value": "Music",
+ "label": "Music"
+ },
+ {
+ "value": "Instrument",
+ "label": "Instrument"
+ },
+ {
+ "value": "SFX",
+ "label": "SFX"
+ },
+ {
+ "value": "One-shot",
+ "label": "One-shot"
+ }
+ ],
+ "bind": [
+ {
+ "node": "52:43",
+ "field": "choice"
+ }
+ ]
+ },
+ {
+ "id": "seconds",
+ "type": "slider",
+ "label": "Seconds",
+ "min": 1,
+ "max": 180,
+ "step": 1,
+ "default": 20,
+ "bind": [
+ {
+ "node": "52:36",
+ "field": "value"
+ }
+ ]
+ },
+ {
+ "id": "reprompt",
+ "type": "toggle",
+ "label": "Expand description",
+ "default": true,
+ "help": "A small Qwen 3.5 model rewrites the description first",
+ "bind": [
+ {
+ "node": "52:35",
+ "field": "value"
+ }
+ ]
+ },
+ {
+ "id": "seed",
+ "type": "seed",
+ "label": "Seed",
+ "default": -1,
+ "help": "-1 picks a random seed",
+ "bind": [
+ {
+ "node": "52:3",
+ "field": "seed"
+ }
+ ]
+ }
+ ],
+ "outputs": [
+ {
+ "node": "57",
+ "type": "audio",
+ "label": "Sound"
+ }
+ ],
+ "models": [
+ {
+ "repo": "Comfy-Org/stable-audio-3",
+ "file": "checkpoints/stable_audio_3_medium.safetensors",
+ "dir": "checkpoints",
+ "gb": 9.22,
+ "phase": "all",
+ "license": "Stable Audio Community License"
+ },
+ {
+ "repo": "Comfy-Org/stable-audio-3",
+ "file": "text_encoders/t5gemma_b_b_ul2.safetensors",
+ "dir": "text_encoders",
+ "gb": 1.19,
+ "phase": "encode",
+ "license": "Stable Audio Community License"
+ },
+ {
+ "repo": "Comfy-Org/Qwen3.5",
+ "file": "text_encoders/qwen3.5_2b_bf16.safetensors",
+ "dir": "text_encoders",
+ "gb": 4.55,
+ "phase": "encode",
+ "license": "Apache-2.0",
+ "optional": true
+ }
+ ],
+ "credits": [
+ "Stable Audio 3 by Stability AI (Stable Audio Community License)"
+ ],
+ "test": {
+ "description": "a door slam",
+ "seconds": 3
+ }
+}
diff --git a/apps/sfx/workflow.api.json b/apps/sfx/workflow.api.json
new file mode 100644
index 0000000..f3d84cf
--- /dev/null
+++ b/apps/sfx/workflow.api.json
@@ -0,0 +1,305 @@
+{
+ "52:3": {
+ "class_type": "KSampler",
+ "inputs": {
+ "model": [
+ "52:25",
+ 0
+ ],
+ "positive": [
+ "52:6",
+ 0
+ ],
+ "negative": [
+ "52:7",
+ 0
+ ],
+ "latent_image": [
+ "52:11",
+ 0
+ ],
+ "seed": 1038503484137406,
+ "steps": 8,
+ "cfg": 1,
+ "sampler_name": "lcm",
+ "scheduler": "simple",
+ "denoise": 1
+ },
+ "_meta": {
+ "title": "KSampler"
+ }
+ },
+ "52:6": {
+ "class_type": "CLIPTextEncode",
+ "inputs": {
+ "clip": [
+ "52:26",
+ 0
+ ],
+ "text": [
+ "52:34",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "CLIP Text Encode (Prompt)"
+ }
+ },
+ "52:7": {
+ "class_type": "CLIPTextEncode",
+ "inputs": {
+ "clip": [
+ "52:26",
+ 0
+ ],
+ "text": ""
+ },
+ "_meta": {
+ "title": "CLIP Text Encode (Prompt)"
+ }
+ },
+ "52:11": {
+ "class_type": "EmptyLatentAudio",
+ "inputs": {
+ "seconds": [
+ "52:36",
+ 0
+ ],
+ "batch_size": 1
+ },
+ "_meta": {
+ "title": "Empty Latent Audio"
+ }
+ },
+ "52:12": {
+ "class_type": "VAEDecodeAudio",
+ "inputs": {
+ "samples": [
+ "52:3",
+ 0
+ ],
+ "vae": [
+ "52:25",
+ 2
+ ]
+ },
+ "_meta": {
+ "title": "VAE Decode Audio"
+ }
+ },
+ "52:25": {
+ "class_type": "CheckpointLoaderSimple",
+ "inputs": {
+ "ckpt_name": "stable_audio_3_medium.safetensors"
+ },
+ "_meta": {
+ "title": "Load Checkpoint"
+ }
+ },
+ "52:26": {
+ "class_type": "CLIPLoader",
+ "inputs": {
+ "clip_name": "t5gemma_b_b_ul2.safetensors",
+ "type": "stable_audio",
+ "device": "default"
+ },
+ "_meta": {
+ "title": "Load CLIP"
+ }
+ },
+ "52:28": {
+ "class_type": "TextGenerate",
+ "inputs": {
+ "clip": [
+ "52:29",
+ 0
+ ],
+ "prompt": [
+ "52:40",
+ 0
+ ],
+ "max_length": 256,
+ "sampling_mode": "on",
+ "sampling_mode.temperature": 0.7,
+ "sampling_mode.top_k": 64,
+ "sampling_mode.top_p": 0.95,
+ "sampling_mode.min_p": 0.05,
+ "sampling_mode.repetition_penalty": 1.05,
+ "sampling_mode.seed": 0,
+ "sampling_mode.presence_penalty": 0,
+ "thinking": false,
+ "use_default_template": true
+ },
+ "_meta": {
+ "title": "Generate Text"
+ }
+ },
+ "52:29": {
+ "class_type": "CLIPLoader",
+ "inputs": {
+ "clip_name": "qwen3.5_2b_bf16.safetensors",
+ "type": "stable_diffusion",
+ "device": "default"
+ },
+ "_meta": {
+ "title": "Load CLIP"
+ }
+ },
+ "52:31": {
+ "class_type": "PrimitiveStringMultiline",
+ "inputs": {
+ "value": "Tropical house track with marimba, steel drums, soft synths, smooth bass, layered percussion, and light piano riffs for sunny chill dance vibes"
+ },
+ "_meta": {
+ "title": "User: short description (USER_INPUT in template)"
+ }
+ },
+ "52:34": {
+ "class_type": "ComfySwitchNode",
+ "inputs": {
+ "on_false": [
+ "52:31",
+ 0
+ ],
+ "on_true": [
+ "52:28",
+ 0
+ ],
+ "switch": [
+ "52:35",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "If/Else Switch"
+ }
+ },
+ "52:35": {
+ "class_type": "PrimitiveBoolean",
+ "inputs": {
+ "value": true
+ },
+ "_meta": {
+ "title": "Boolean (Enable_Reprompt)"
+ }
+ },
+ "52:36": {
+ "class_type": "PrimitiveFloat",
+ "inputs": {
+ "value": 150
+ },
+ "_meta": {
+ "title": "Float (Duration)"
+ }
+ },
+ "52:38": {
+ "class_type": "StringReplace",
+ "inputs": {
+ "replace": [
+ "52:49",
+ 0
+ ],
+ "string": "SYSTEM_PROMPTS\n\nInput: USER_INPUT\nTarget audio length: AUDIO_LENGTH seconds.\nOutput:",
+ "find": "SYSTEM_PROMPTS"
+ },
+ "_meta": {
+ "title": "Text Replace (PROMPT TEMPLATE)"
+ }
+ },
+ "52:39": {
+ "class_type": "StringReplace",
+ "inputs": {
+ "string": [
+ "52:38",
+ 0
+ ],
+ "replace": [
+ "52:31",
+ 0
+ ],
+ "find": "USER_INPUT"
+ },
+ "_meta": {
+ "title": "Text Replace (USER INPUT)"
+ }
+ },
+ "52:40": {
+ "class_type": "StringReplace",
+ "inputs": {
+ "string": [
+ "52:39",
+ 0
+ ],
+ "replace": [
+ "52:42",
+ 0
+ ],
+ "find": "AUDIO_LENGTH"
+ },
+ "_meta": {
+ "title": "Text Replace (AUDIO LENGTH)"
+ }
+ },
+ "52:41": {
+ "class_type": "ComfyMathExpression",
+ "inputs": {
+ "values.a": [
+ "52:36",
+ 0
+ ],
+ "expression": "a"
+ },
+ "_meta": {
+ "title": "Math Expression"
+ }
+ },
+ "52:42": {
+ "class_type": "PreviewAny",
+ "inputs": {
+ "source": [
+ "52:41",
+ 1
+ ]
+ },
+ "_meta": {
+ "title": "Preview as Text"
+ }
+ },
+ "52:43": {
+ "class_type": "CustomCombo",
+ "inputs": {
+ "choice": "Music"
+ },
+ "_meta": {
+ "title": "Custom Combo (Category index)"
+ }
+ },
+ "52:49": {
+ "class_type": "JsonExtractString",
+ "inputs": {
+ "key": [
+ "52:43",
+ 0
+ ],
+ "json_string": "{\n \"Music\": \"You are an expert musician and musicologist and prompt engineer. Transform the user's input into a detailed, vivid music prompt for a full instrumental track.\\n\\n1. Start with the genre or style and optional adjectives (e.g., upbeat, dreamy, aggressive).\\n2. List the main instruments that define the track.\\n3. Add supporting elements or layers such as pads, harmonics, effects, or field recordings.\\n4. Include rhythm or percussion elements like drums, hi-hats, congas, brushes, or polyrhythms.\\n5. Integrate mood and energy naturally in the sentence (e.g., \\\"creating suspenseful tension\\\" or \\\"bright and uplifting\\\").\\n6. Specify the BPM.\\n7. Specify the track length as an integer in seconds. Use ranges: energetic/dance 120-180s, pop/rock 180-210s, cinematic/ambient 240-300s.\\n8. Combine all elements into one natural, fluid sentence. Avoid semicolons.\\n\\nTemplate:\\nGenre/Style with main instruments, supporting instruments/layers, and rhythm/percussion creating mood/energy. BPM: X. Length: Y seconds\\n\\nExamples:\\n- Jazz ballad with smooth saxophone lead, piano chords, upright bass, brushed drums, and soft strings that swing gently for a warm and cozy evening. BPM: 85. Length: 180 seconds\\n- EDM festival track with pulsing synth leads, plucked arpeggios, layered pads, side-chained bass, punchy kick and snare, and hi-hat rolls creating bright, energetic, and uplifting dance energy. BPM: 128. Length: 150 seconds\\n- Lo-fi hip-hop chill track with mellow electric piano, soft vinyl crackle, subtle synth pads, low-pass filtered drums, percussion loops, and soft plucked bass for a relaxed, dreamy vibe. BPM: 75. Length: 150 seconds\\n- Heavy metal anthem with distorted electric guitars, bass guitar, double bass drums, and cymbal crashes with fast palm-muted riffs creating intense, aggressive energy. BPM: 160. Length: 180 seconds\\n- Melancholic piano piece with soft piano lead, string pads, subtle atmospheric synths, and minimal brush percussion evoking a reflective rainy-day feeling. BPM: 60. Length: 240 seconds\\n- Suspenseful electronic thriller with pulsing bass synth, arpeggiated lead synth, cinematic pads, glitchy percussion, and high string stabs creating dark and tense energy. BPM: 100. Length: 200 seconds\\n- Dreamy ambient soundscape with layered pads, soft bell textures, gentle drones, and wind and water field recordings for ethereal and spacious meditation. BPM: 40. Length: 300 seconds\\n- Fingerpicking acoustic guitar solo with harmonics, subtle reverb, occasional shaker and soft stomp percussion, and soft pad layers for warm intimate storytelling. BPM: 70. Length: 120 seconds\\n- Synthwave 80s retro track with arpeggiated synth leads, analog pads, electric bass, punchy electronic drums, gated reverb snares, and atmospheric FX for nostalgic and vibrant energy. BPM: 110. Length: 180 seconds\\n- Tribal percussion ensemble with congas, djembes, bongos, shakers, and frame drums layered with deep synthetic sub-bass in complex polyrhythms. BPM: 100. Length: 140 seconds\\n- 1920s swing jazz with brass section, upright bass, piano, brushed drums, banjo, clarinet, and soft strings that swing lively for energetic dance vibes. BPM: 110. Length: 180 seconds\\n- Futuristic electronic sci-fi track with pulsing bass synth, evolving lead synths, layered pads, glitch percussion, robotic FX, and sub-bass for tense cinematic energy. BPM: 125. Length: 200 seconds\\n- Ambient underwater soundscape with flowing water textures, soft piano motifs, synth drones, distant bells, and underwater reverb for spacious meditative immersion. BPM: 45. Length: 300 seconds\\n- Horror cinematic track with dissonant strings, eerie piano stabs, cinematic percussion including taiko and low toms, and synth FX producing suspenseful creepy tension. BPM: 90. Length: 240 seconds\\n- Reggae track with offbeat guitar, warm basslines, snare, kick, congas, and horn stabs giving laid-back groovy energy. BPM: 85. Length: 150 seconds\\n- Blues track with soulful electric guitar solos, walking bass, piano, and shuffle drums creating expressive and emotive storytelling. BPM: 90. Length: 180 seconds\\n- Latin salsa with congas, timbales, horns, piano montunos, bass, and layered percussion for vibrant danceable energy. BPM: 120. Length: 210 seconds\\n- Afrobeat track with electric guitar stabs, horns, layered percussion, congas, shakers, bass groove, and synth pads for vibrant rhythmic energy. BPM: 105. Length: 200 seconds\\n- Indie rock track with electric guitar riffs, bass, live drum kit, layered synths, and subtle strings for energetic yet emotional feel. BPM: 110. Length: 180 seconds\\n- Funk groove with slap bass, electric guitar chords, brass stabs, drums, congas, and rhythmic keyboards creating high-energy danceable rhythm. BPM: 105. Length: 180 seconds\\n- Drum and bass track with fast breakbeat drums, deep sub-bass, sharp synth leads, pads, and atmospheric FX for high-energy club motion. BPM: 175. Length: 150 seconds\\n- Dark ambient track with drones, distant bells, low rumbles, soft wind textures, and synth pads producing eerie immersive tension. BPM: 50. Length: 300 seconds\\n- Tropical house track with marimba, steel drums, soft synths, smooth bass, layered percussion, and light piano riffs for sunny chill dance vibes. BPM: 110. Length: 180 seconds\\n- Progressive rock track with electric guitar leads, organ, bass, drum kit, synth layers, and occasional strings for epic layered energy. BPM: 100. Length: 220 seconds\\n- Music box melody with delicate metallic tones and soft resonance, lullaby style, with gentle ambient reverb. BPM: 60. Length: 20 seconds\\n- Soft piano arpeggio with warm felted tone and slow attack, lullaby style, with intimate room ambience. BPM: 60. Length: 30 seconds\\n- Harp gentle plucked pattern with airy resonance, lullaby style, with dreamy reverb tail. BPM: 65. Length: 25 seconds\\n- Acoustic guitar fingerstyle pattern with warm nylon strings and soft dynamics, lullaby style, with subtle room resonance. BPM: 60. Length: 30 seconds\\n- Ambient synth pad with smooth evolving texture and soft harmonics, lullaby style, with wide stereo ambience. BPM: 50. Length: 40 seconds\\n- Early rock piano with walking left-hand bass line, shuffle rhythms, and blues scale improvisations in energetic 1950s boogie-woogie style. BPM: 160. Length: 180 seconds\\n- Trip Hop track with jazzy sampled vibraphone, mid-tempo breakbeat drums, harp, Latin ethnic percussion, and sweeping cinematic strings creating airy, relaxing, soulful lounge vibes. BPM: 90. Length: 180 seconds\\n- Country outlaw cinematic instrumental with blues pedal steel guitar, rustic mandolin, fiddle call-and-response, tape-driven rattly drum kit, autoharp, and soaring accordion solo for raw, emotional southern blues expression. BPM: 85. Length: 200 seconds\\n- Neo Classical track with sweeping string section, elegant horns, and delicate piano creating soothing, hypnotic, modern, soft, and classic mood. BPM: 70. Length: 180 seconds\\n- Art Rock desert track with desolate piano chords, western-themed rhythm guitars, unique lead guitars, rattly vintage drum kit, and supporting bass creating lonely, expansive, beautiful, and strange atmospheres. BPM: 95. Length: 180 seconds\\n- Cinematic Sci-Fi score with dramatic horn section, building marcato strings, gliding bassoon, thunderous cymbals, subdued timpani, and subtle synth drones producing awe-inspiring, uplifting, epic intergalactic energy. BPM: 100. Length: 220 seconds\\n- West Coast Hip Hop instrumental with cascading harp melodies, smooth Rhodes piano chops, vintage boom bap drums, and walking double bass producing raw, street, and soulful block-party vibes. BPM: 92. Length: 180 seconds\\n- Synthwave futuristic track with pulsating synth bass, exciting chords, soaring leads, and reverberating drum machine patterns creating gritty, pounding, and cool energy. BPM: 110. Length: 180 seconds\\n- Breakbeat track with complex percussion, intricate breakbeats, gritty synths, lush pads, and 808 bassline producing fresh, modern, futuristic, and rave-ready energy. BPM: 140. Length: 160 seconds\\n- Lounge Jazz 1960s smooth track with laid-back drums, piano chords, double bass, soft electric piano, subtle flute, and unique percussion creating beautiful, atmospheric, eclectic, retro, and chill vibes. BPM: 85. Length: 180 seconds\\n- Latin Jazz 1950s blissful track with laid-back Latin drums, euphoric piano chords, double bass, orchestral accompaniment, acoustic guitar, and vibraphone producing nostalgic, beautiful, atmospheric, cinematic, and chill mood. BPM: 95. Length: 180 seconds\\n- Acid Jazz 1970s summertime track with smooth electric piano, trippy synth leads, laid-back vintage drum kit, fuzzy electric bass, and uplifting violin producing retro, psychedelic, jazzy, relaxing energy. BPM: 100. Length: 180 seconds\\n- Progressive Soul 1970s track with feel-good piano, psychedelic organ, groovy vintage drum kit with percussion, fuzzy electric bass, and synth strings producing retro, raw, soulful, joyous atmosphere. BPM: 90. Length: 180 seconds\\n- Discotheque 1970s French-inspired track with sultry piano, psychedelic guitars, groovy drum kit, fuzzy electric bass, and melancholic organ producing retro, raw, laid-back, and relaxing mood. BPM: 105. Length: 180 seconds\\n- Soul Jazz 1970s track with expressive saxophone, smooth piano, groovy drum kit, rhythmic upright bass, sweeping strings, and minimal vibraphone producing retro, raw, laid-back, and epic energy. BPM: 95. Length: 180 seconds\\n- Vintage R&B 1970s live studio track with subtle brass, smooth piano, sweeping strings, and minimal drums producing retro, beautiful, uplifting, nostalgic mood. BPM: 85. Length: 180 seconds\\n- 50s Pop track with Latin influence, string section, bold brass, vibraphone, acoustic guitar, flute, ethnic percussion, and brushed drums creating sexy, epic, vintage, retro, melancholic, jazzy, dramatic energy. BPM: 100. Length: 180 seconds\\n- A piece of calm, quiet, mellow, serene music perfect for a peaceful film score, featuring soft modulating piano, ambient sfx and foley, beautiful vibraphone, and subtle synthesizer drones. The mood is cinematic, thoughtful, serene and nostalgic. BPM: 55. Length: 300 seconds\",\n \"Instrument\": \"You are a music metadata expert. Given an instrument, generate a descriptive prompt for a generative audio model.\\n\\n1. Identify the instrument.\\n2. Add playing style or technique.\\n3. Include details about material, timbre, or texture.\\n4. Add musical style or mood. Specify the genre, context, or emotional character.\\n5. Add spatial or production qualities.\\n6. Specify BPM: Always include a BPM appropriate to the style and context.\\n7. Specify length: Provide an integer in seconds (6–20 s for loops, 20–180 s for stems).\\n\\nExamples:\\n- Synth arpeggio loop with bright detuned oscillators. BPM: 120. Length: 8 seconds\\n- Chord stab loop with sharp percussive attack. BPM: 90. Length: 6 seconds\\n- Guitar muted strum loop with tight rhythmic feel. BPM: 100. Length: 8 seconds\\n- Pluck sequence loop with bright resonant tone. BPM: 128. Length: 10 seconds\\n- Marimba and vibraphone percussive loop with resonant wooden and metallic tones. BPM: 110. Length: 12 seconds\\n- Drum loop with deep muffled kick on beat one, snappy rimshot snare on beats two and four with rolling ghost note fills, and tight closed hi-hats with subtle open accents. BPM: 85. Length: 10 seconds\\n- Drum groove loop with brushed snare swinging on the ride, soft feathered kick on downbeats, and light closed hi-hat taps on the upbeats. BPM: 130. Length: 12 seconds\\n- Kick and hi-hat loop with four-on-the-floor punchy kick, tight closed hi-hats on every eighth note, and a sharp dry snare on beats two and four. BPM: 130. Length: 15 seconds\\n- Vinyl crackle drum loop with warm low-pass filtered kick, dusty snare with tape saturation, and shuffled closed hi-hats with subtle vinyl crackle ambiance. BPM: 80. Length: 10 seconds\\n- Ambient pad loop with evolving texture. BPM: 80. Length: 12 seconds\\n- Melodic synth bass groove loop with pumping sidechain feel. BPM: 122. Length: 10 seconds\\n- Melodic Bass slap and pop rhythm loop. BPM: 100. Length: 8 seconds\\n- Acoustic bass walking line loop with natural wooden resonance. BPM: 120. Length: 12 seconds\\n- String pizzicato motif loop, suspenseful, with tight string texture. BPM: 90. Length: 8 seconds\\n- Brass staccato riff loop with sharp bright attack. BPM: 130. Length: 10 seconds\\n- Flute airy melodic loop with wooden headjoint resonance. BPM: 100. Length: 6 seconds\\n- Pan flute ambient loop with breathy timbre. BPM: 75. Length: 8 seconds\\n- Clarinet riff loop with warm smooth reed tone. BPM: 120. Length: 10 seconds\\n- Oboe motif loop, orchestral, with rich double reed resonance. BPM: 80. Length: 8 seconds\\n- Recorder Renaissance motif loop with soft wooden timbre. BPM: 100. Length: 6 seconds\\n- Electric sitar riff loop with buzzing resonant tone. BPM: 90. Length: 10 seconds\\n- Koto plucked motif loop with resonant wooden strings. BPM: 90. Length: 8 seconds\\n- Shamisen folk melody loop with percussive twang. BPM: 100. Length: 8 seconds\\n- Banjo fingerpicking loop with metallic string resonance. BPM: 110. Length: 10 seconds\\n- Mandolin tremolo loop with crisp wooden body tone. BPM: 120. Length: 10 seconds\\n- Acoustic guitar chord vamp loop with natural room resonance. BPM: 110. Length: 12 seconds\\n- Nylon string guitar arpeggio loop with warm, soft timbre. BPM: 90. Length: 15 seconds\\n- Electric guitar riff loop with driven distorted tone. BPM: 130. Length: 10 seconds\\n- Slide guitar melody loop with warm resonant glide. BPM: 100. Length: 12 seconds\\n- Steel guitar slide loop with bright pedal steel tone. BPM: 95. Length: 12 seconds\\n- Harpsichord arpeggio loop with crisp plucked attack. BPM: 120. Length: 10 seconds\\n- Rhodes chord vamp loop with warm electric piano tone. BPM: 100. Length: 12 seconds\\n- Clavinet funky rhythm loop. BPM: 105. Length: 10 seconds\\n- Organ chord vamp loop with full drawbar warmth. BPM: 90. Length: 12 seconds\\n- Drum loop with booming 808 kick on beat one, crisp snare on beat three, and rapid triplet hi-hat rolls with open hat accents for aggressive high-energy feel. BPM: 140. Length: 8 seconds\\n- Breakbeat drum loop with chopped Amen-style snare flurries, driving kick on the one, fast sixteenth-note closed hi-hats, and syncopated open hat accents. BPM: 170. Length: 10 seconds\\n- Glitch percussion loop with stuttered kick transients, randomised snare hits processed with bit-crushing, and erratic hi-hat patterns with pitch-shifted metallic ticks. BPM: 120. Length: 12 seconds\\n- Metallic hits loop with distorted kick impacts, processed metal-plate snare slams, and grinding hi-hat noise bursts for aggressive mechanical texture. BPM: 120. Length: 10 seconds\\n- Timpani hits loop, cinematic, with deep resonant kick-like timpani strikes on beat one, rolling snare-style timpani fills, and no hi-hats for a grand orchestral feel. BPM: 70. Length: 8 seconds\\n- Snare roll loop, dramatic, with accelerating snare drum rolls building from soft to crashing, deep supporting kick pulses, and no hi-hats for maximum impact. BPM: 100. Length: 8 seconds\\n- Accordion motif loop with bright reedy bellows tone. BPM: 100. Length: 10 seconds\\n- Harmonica blues riff loop with expressive reed timbre. BPM: 90. Length: 10 seconds\\n- Trombone riff loop with warm sliding brass tone. BPM: 120. Length: 10 seconds\\n- French horn melodic loop, cinematic. BPM: 80. Length: 12 seconds\\n- Soprano sax ballad loop. BPM: 70. Length: 12 seconds\\n- Alto sax bebop riff loop. BPM: 200. Length: 10 seconds\\n- Electric violin melodic loop with reverb. BPM: 90. Length: 10 seconds\\n- String pad loop with cinematic texture. BPM: 70. Length: 15 seconds\\n- Granular synth evolving texture loop. BPM: 90. Length: 15 seconds\\n- Piano motif loop with soft felt hammer tone. BPM: 80. Length: 10 seconds\\n- Pad and synth loop with lush detuned shimmer. BPM: 85. Length: 12 seconds\\n- Synth lead loop with sidechain pumping compression. BPM: 128. Length: 10 seconds\\n- Analog synth bassline loop with deep warm low-end. BPM: 122. Length: 12 seconds\\n- FM synth lead motif loop with bright metallic shimmer. BPM: 110. Length: 10 seconds\\n- Bass groove loop with tight rhythmic two-bar pattern. BPM: 100. Length: 16 seconds\\n- Acoustic guitar fingerstyle motif loop with warm wood resonance. BPM: 90. Length: 45 seconds\\n- Sombre acoustic guitar motif loop with cavernous reverb, delicate fingerpicking, and expressive melancholic tone. BPM: 70. Length: 45 seconds\\n- Electric guitar rock riff motif loop. BPM: 130. Length: 40 seconds\\n- Vintage electric guitar motif loop, live-recorded in a vintage studio, with expressive and dynamic solo performance. BPM: 90. Length: 40 seconds\\n- Piano chord progression motif loop with rich harmonic movement. BPM: 120. Length: 60 seconds\\n- String ensemble cinematic motif loop with rich wooden resonance. BPM: 80. Length: 120 seconds\\n- Brass ensemble cinematic motif loop with bright metallic timbre. BPM: 90. Length: 90 seconds\\n- Ethnic percussion ensemble motif loop with deep resonant djembe kick tones, slapped snare-like rim hits on congas, and layered shakers and bells providing hi-hat-like rhythmic texture with polyrhythmic patterns. BPM: 100. Length: 90 seconds\\n- Synth ambient motif loop with evolving textures. BPM: 80. Length: 180 seconds\\n- Motif loop with warm dusty vinyl crackle and tape saturation. BPM: 80. Length: 60 seconds\\n- Synth lead and bass motif loop with bright punchy energy. BPM: 128. Length: 90 seconds\\n- Funk band motif loop: bass, drums, guitar. BPM: 100. Length: 90 seconds\\n- Ethnic flute motif for cinematic use. BPM: 80. Length: 30 seconds\\n- Steel drum melodic motif loop with bright metallic resonance. BPM: 110. Length: 20 seconds\\n- Marimba percussive motif loop with resonant wooden tone. BPM: 100. Length: 20 seconds\\n- Vibraphone melodic motif loop with metallic shimmer. BPM: 90. Length: 25 seconds\\n- Piano cinematic motif loop with resonant wooden tone. BPM: 80. Length: 30 seconds\\n- Violin expressive cinematic motif loop with rich wooden resonance. BPM: 75. Length: 25 seconds\\n- Cello expressive motif loop with deep wooden resonance. BPM: 70. Length: 30 seconds\\n- Trumpet expressive motif loop with brassy overtones. BPM: 100. Length: 25 seconds\\n- Sax expressive motif loop with warm reed timbre. BPM: 95. Length: 25 seconds\\n- Ethnic drum ensemble motif loop with booming natural-skin bass drum kicks, sharp hand-slap snare accents on djembes and talking drums, and layered wooden and metal percussion providing rhythmic hi-hat-like patterns. BPM: 95. Length: 30 seconds\\n- Ambient drone motif loop. BPM: 60. Length: 180 seconds\\n- Orchestral tension motif loop. BPM: 90. Length: 150 seconds\\n- Electronic track motif loop with drums, bass, synth. BPM: 128. Length: 180 seconds\",\n \"SFX\": \"You are a professional sound design expert. Convert the user's input into a precise, vivid sound effects description suitable for generative audio models.\\n\\nDescribe clearly:\\n- Sound source\\n- Physical character (texture, timbre, material: metal, wood, glass, concrete, etc.)\\n- Spatial qualities (indoor/outdoor, cave/open field/underwater, dry/reverberant, close-up/distant, echoing/muffled)\\n- Temporal evolution (attack, decay, movement, transitions over time)\\n- Include motion or spatial movement if applicable (passing, approaching, stereo movement)\\n\\nAudio length rules:\\n- Very short sounds (impacts, clicks, gunshots): 1–3 seconds\\n- Medium actions (footsteps, object movement, transitions): 3–6 seconds\\n- Ambience / environments: 6–15 seconds\\n- Always append: Length: X seconds (integer only, no decimals).\\n\\nOutput constraints:\\n- Length: 1–2 dense sentences maximum\\n- Output ONLY the final rewritten prompt\\n- No explanations, no formatting, no quotes\\n- Use concise but dense technical language\\n- Focus strictly on sound effects or ambience\\n- Always append: Length: X seconds (integer only, no decimals).\\n\\nQuality guidelines:\\n- Be specific and avoid vague terms\\n- Prioritize clarity and realism\\n- Combine elements into one coherent scene\\n- Avoid redundancy\\n\\nExamples:\\n- Heavy rain hitting a metal roof during a thunderstorm, distant thunder rumbles, stereo, realistic ambience. Length: 45 seconds\\n- Quiet forest at dawn with birds chirping, soft wind through leaves, distant stream flowing. Length: 60 seconds\\n- Busy city street at night, cars passing, muffled conversations, occasional horn, urban ambience. Length: 50 seconds\\n- Ocean waves crashing against rocky cliffs, strong wind, dramatic and cinematic. Length: 70 seconds\\n- Wooden door creaking open slowly in an old house, echoing interior, eerie tone. Length: 3 seconds\\n- Glass bottle shattering on concrete, sharp impact, scattered fragments. Length: 2 seconds\\n- Footsteps on gravel, steady walking pace, close perspective. Length: 8 seconds\\n- Typing rapidly on a mechanical keyboard, crisp tactile clicks. Length: 5 seconds\\n- Punch impact with deep bass hit, cinematic trailer style. Length: 2 seconds\\n- Car speeding past at high velocity, doppler effect, realistic whoosh. Length: 3 seconds\\n- Object falling from height and hitting ground with a heavy thud. Length: 2 seconds\\n- Sword swing whooshing through air, fast motion, clean metallic tone. Length: 2 seconds\\n- Futuristic laser blast, clean energy pulse, high-tech sound design. Length: 1 seconds\\n- Spaceship engine humming, low frequency rumble, interior perspective. Length: 90 seconds\\n- Magical spell casting, shimmering particles, rising tonal energy. Length: 8 seconds\\n- Teleportation effect, glitchy digital distortion with a soft whoosh. Length: 5 seconds\\n- Dark eerie drone with distant whispers, creepy, slow build tension. Length: 120 seconds\\n- Sudden horror jump scare sting, sharp violin hit, cinematic. Length: 1 second\\n- Metal scraping slowly in a dark tunnel, echoing and ominous. Length: 20 seconds\\n- Explosion with debris scattering, deep bass, cinematic realism. Length: 4 seconds\\n- Building collapsing, rumbling concrete, dust and debris falling. Length: 25 seconds\\n- Fire crackling intensely, wood burning, close-up detail. Length: 80 seconds\\n- Gunshot in a large empty warehouse, loud echo decay. Length: 2 seconds\\n- Retro arcade coin insert sound, 8-bit style. Length: 1 second\\n- Level up chime, bright, rewarding, fantasy RPG style. Length: 2 seconds\\n- Error buzzer, short, digital, UI feedback. Length: 1 second\\n- Menu navigation clicks, soft futuristic interface sounds. Length: 3 seconds\\n- Layered soundscape: rain, thunder, footsteps, and distant sirens all blending naturally. Length: 90 seconds\\n- Rapid sequence of three impacts: metal hit, glass break, wood crack, spaced evenly. Length: 4 seconds\\n- Sound moving from left to right stereo field: passing motorcycle. Length: 5 seconds\\n- Close vs far perspective transition: footsteps approaching then fading away. Length: 6 seconds\\n- Tape stop sub drop, a massive sub-bass note that mimics a vinyl record or tape machine being turned off, the pitch and speed drop simultaneously, causing the high-end harmonics to smear and thicken as the sound grinds to a halt at a sub-sonic frequency. Length: 11 seconds\\n- Gravel and leaves footsteps, the sound of a hard boot stepping onto dry leaves or gravel, crisp and natural with detailed texture. Length: 11 seconds\\n- Ghostship moan, a massive, deep wooden groan with a low-frequency moan, like heavy timber under immense structural tension, swaying slowly, processed with long, dark wooden room reverb for a sense of scale. Length: 11 seconds\\n- Bicycle chain, a continuous metallic whirring sound of a chain moving over sprockets, with individual teeth catching the links, processed with resonant band-pass filter to emphasize metallic singing. Length: 11 seconds\\n- Warp drive, a sound that starts with a massive suck-back of ambient noise, followed by a supersonic crack and high-pitched zing that disappears into the distance, giving the sense of stretching space-time. Length: 11 seconds\\n- Ice cubes, high-pitched musical clinking of hard ice hitting a thin glass, bright resonant ring with subtle liquid sloshing around the edges. Length: 11 seconds\\n- Paper shuffle, the sound of a thick stack of heavy bond paper being squared up on a desk, dry papery thud with a quick fanning sound as air moves between the pages. Length: 11 seconds\\n- Drawer slam, a blunt, powerful thud made by slamming a wooden desk drawer shut, pronounced low-mid body, slightly distorted for aggressive character. Length: 3 seconds\",\n \"One-shot\": \"You are a music metadata expert. Given an instrument or sound, generate a descriptive prompt for a short, isolated one-shot audio sample for music production.\\n\\n1. Identify the instrument or sound source.\\n2. Describe the playing technique or hit type (e.g., pluck, slam, tap, stab).\\n3. Include details about material, timbre, or texture.\\n4. Add spatial or production qualities (dry/wet, room, close-mic).\\n5. Specify length: short integer in seconds (1–11 s).\\n\\nExamples:\\n- Piano key hit with bright percussive attack and resonant wooden body. Length: 2 seconds\\n- Kick drum punchy low-end hit with warm skin resonance. Length: 2 seconds\\n- Snare drum rimshot accent with crisp snare wires. Length: 2 seconds\\n- Acoustic guitar fingerstyle note with warm spruce tone. Length: 3 seconds\\n- Bass pluck with jazzy tone and resonant wooden body. Length: 3 seconds\\n- Electric guitar power chord with distortion. Length: 3 seconds\\n- Metallic glitch percussion hit with sharp metallic texture. Length: 2 seconds\\n- Tabla resonant tone hit with natural skin timbre. Length: 2 seconds\\n- Djembe slap accent with dry wooden resonance. Length: 2 seconds\\n- Synth stab with reverb tail. Length: 3 seconds\\n- Violin expressive note with vibrato and rich wooden resonance. Length: 3 seconds\\n- Cello legato note, cinematic, with warm resonant body. Length: 3 seconds\\n- Trumpet bright accent with slightly brassy overtones. Length: 2 seconds\\n- Melodic saxophone jazz riff with smooth reed timbre and a slight vibrato bend. Length: 3 seconds\\n- Harp pluck with airy tone and resonant strings. Length: 2 seconds\\n- Glockenspiel bell-like note with bright metallic clarity. Length: 2 seconds\\n- Metallic clang sound design hit. Length: 2 seconds\\n- Granular texture hit. Length: 3 seconds\\n- Reversed piano hit. Length: 2 seconds\\n- Synth riser effect. Length: 6 seconds\\n- Percussion impact hit. Length: 2 seconds\\n- Cinematic hit. Length: 2 seconds\\n- Dry clap, a crisp, natural single hand clap recorded in a dead room with an extremely sharp transient and no room reflections. Length: 1 second\\n- Studio hat, a classic, natural recording of 14-inch hi-hats played tightly closed, zero ring, very fast decay. Length: 1 second\\n- Disco open hat, bright 14-inch open hi-hat with long, shimmering decay, perfect for disco or dance grooves. Length: 1 second\\n- Pillow kick, acoustic kick drum muffled with a heavy blanket, producing a short, dry \\\"thump\\\" with almost zero resonance. Length: 1 second\\n- Short 808, punchy 808 kick with sharp, distorted transient and fast-decaying sub-tail. Length: 1 second\\n- Egg shaker, classic plastic egg shaker recorded with a small-diaphragm condenser mic, producing a light, consistent \\\"tick\\\" with very short sustain. Length: 1 second\\n- African drums, dynamic African drums and percussion ensemble with natural acoustic textures. Length: 3 seconds\\n- Latin drums, dynamic Latin drums and percussion ensemble featuring authentic rhythmic patterns. Length: 3 seconds\\n- String quartet, euphoric string quartet with dynamic and emotional playing, full of expressive harmonies and movement. Length: 3 seconds\\n- Piano, nostalgic, atmospheric piano piece with dynamic and emotional performance, intimate and resonant. Length: 3 seconds\\n- Analogue drift pad, warm polyphonic pad with three detuned oscillators (saw + triangle), subtle pitch drift, and lush bucket-brigade chorus for wide, nostalgic stereo image. Length: 11 seconds\\n- Phase distortion bass, Casio CZ-style phase-distorted sine wave warped into a jagged sawtooth for retro synth bass tone. Length: 11 seconds\\n- Vibrato saxophone, bright lyrical alto sax with fast fluttery vibrato, reedy vintage tone, captured with ribbon mic for warm nostalgic sound. Length: 11 seconds\\n- Lofi upright bass, upright bass recorded with ribbon mic in a wooden room, natural air with slightly boxy resonance, tape-saturated for dusty 1950s jazz feel. Length: 2 seconds\"\n}"
+ },
+ "_meta": {
+ "title": "Extract Text from JSON"
+ }
+ },
+ "57": {
+ "class_type": "SaveAudioAdvanced",
+ "inputs": {
+ "audio": [
+ "52:12",
+ 0
+ ],
+ "filename_prefix": "freefield/sfx",
+ "format": "mp3",
+ "format.quality": "V0"
+ },
+ "_meta": {
+ "title": "Save Audio (Advanced)"
+ }
+ }
+}
diff --git a/apps/smoke-invert/app.json b/apps/smoke-invert/app.json
new file mode 100644
index 0000000..c430aeb
--- /dev/null
+++ b/apps/smoke-invert/app.json
@@ -0,0 +1,41 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "smoke-invert",
+ "name": "Smoke test (file input)",
+ "section": "utility",
+ "pack": "core",
+ "status": "ready",
+ "summary": "Inverts an uploaded image. Needs no models; proves uploads and downloads work.",
+ "workflow": "workflow.api.json",
+ "source": {
+ "notes": "Hand-written: LoadImage → ImageInvert → SaveImage."
+ },
+ "inputs": [
+ {
+ "id": "image",
+ "type": "image",
+ "label": "Image",
+ "required": true,
+ "limits": {
+ "max_mb": 20
+ },
+ "bind": [
+ {
+ "node": "1",
+ "field": "image"
+ }
+ ]
+ }
+ ],
+ "outputs": [
+ {
+ "node": "3",
+ "type": "image",
+ "label": "Inverted"
+ }
+ ],
+ "models": [],
+ "test": {
+ "image": "test/portrait.png"
+ }
+}
diff --git a/apps/smoke-invert/workflow.api.json b/apps/smoke-invert/workflow.api.json
new file mode 100644
index 0000000..2ff0437
--- /dev/null
+++ b/apps/smoke-invert/workflow.api.json
@@ -0,0 +1,36 @@
+{
+ "1": {
+ "class_type": "LoadImage",
+ "inputs": {
+ "image": "example.png"
+ },
+ "_meta": {
+ "title": "Load Image"
+ }
+ },
+ "2": {
+ "class_type": "ImageInvert",
+ "inputs": {
+ "image": [
+ "1",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Invert"
+ }
+ },
+ "3": {
+ "class_type": "SaveImage",
+ "inputs": {
+ "images": [
+ "2",
+ 0
+ ],
+ "filename_prefix": "freefield/smoke-invert"
+ },
+ "_meta": {
+ "title": "Save Image"
+ }
+ }
+}
diff --git a/apps/smoke/app.json b/apps/smoke/app.json
new file mode 100644
index 0000000..7a0635a
--- /dev/null
+++ b/apps/smoke/app.json
@@ -0,0 +1,71 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "smoke",
+ "name": "Smoke test",
+ "section": "utility",
+ "pack": "core",
+ "status": "ready",
+ "summary": "Draws a solid color. Needs no models; proves the whole chain works end to end.",
+ "workflow": "workflow.api.json",
+ "source": {
+ "notes": "Hand-written: EmptyImage → SaveImage."
+ },
+ "inputs": [
+ {
+ "id": "width",
+ "type": "slider",
+ "label": "Width",
+ "min": 64,
+ "max": 1024,
+ "step": 64,
+ "default": 256,
+ "bind": [
+ {
+ "node": "1",
+ "field": "width"
+ }
+ ]
+ },
+ {
+ "id": "height",
+ "type": "slider",
+ "label": "Height",
+ "min": 64,
+ "max": 1024,
+ "step": 64,
+ "default": 256,
+ "bind": [
+ {
+ "node": "1",
+ "field": "height"
+ }
+ ]
+ },
+ {
+ "id": "color",
+ "type": "number",
+ "label": "Color (0xRRGGBB as integer)",
+ "min": 0,
+ "max": 16777215,
+ "default": 2781079,
+ "bind": [
+ {
+ "node": "1",
+ "field": "color"
+ }
+ ]
+ }
+ ],
+ "outputs": [
+ {
+ "node": "2",
+ "type": "image",
+ "label": "Image"
+ }
+ ],
+ "models": [],
+ "test": {
+ "width": 128,
+ "height": 128
+ }
+}
diff --git a/apps/smoke/workflow.api.json b/apps/smoke/workflow.api.json
new file mode 100644
index 0000000..bedbf27
--- /dev/null
+++ b/apps/smoke/workflow.api.json
@@ -0,0 +1,27 @@
+{
+ "1": {
+ "class_type": "EmptyImage",
+ "inputs": {
+ "width": 256,
+ "height": 256,
+ "batch_size": 1,
+ "color": 2781079
+ },
+ "_meta": {
+ "title": "Solid color"
+ }
+ },
+ "2": {
+ "class_type": "SaveImage",
+ "inputs": {
+ "images": [
+ "1",
+ 0
+ ],
+ "filename_prefix": "freefield/smoke"
+ },
+ "_meta": {
+ "title": "Save Image"
+ }
+ }
+}
diff --git a/apps/smooth/app.json b/apps/smooth/app.json
new file mode 100644
index 0000000..dcce3ca
--- /dev/null
+++ b/apps/smooth/app.json
@@ -0,0 +1,107 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "smooth",
+ "name": "Smooth & Slow-mo",
+ "section": "utility",
+ "pack": "upscale",
+ "status": "ready",
+ "summary": "Adds in-between frames with FILM: smoother motion at the same length, or real slow motion.",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "utility_video_frame_interpolation.json",
+ "comfyui": "0.42.0"
+ },
+ "inputs": [
+ {
+ "id": "clip",
+ "type": "video",
+ "label": "Clip",
+ "required": true,
+ "limits": {
+ "max_mb": 200
+ },
+ "bind": [
+ {
+ "node": "4",
+ "field": "file"
+ }
+ ]
+ },
+ {
+ "id": "factor",
+ "type": "select",
+ "label": "Frames between frames",
+ "default": 2,
+ "options": [
+ {
+ "value": 2,
+ "label": "2x"
+ },
+ {
+ "value": 3,
+ "label": "3x"
+ },
+ {
+ "value": 4,
+ "label": "4x"
+ },
+ {
+ "value": 8,
+ "label": "8x"
+ }
+ ],
+ "bind": [
+ {
+ "node": "16:9",
+ "field": "value"
+ }
+ ]
+ },
+ {
+ "id": "mode",
+ "type": "select",
+ "label": "Result",
+ "default": true,
+ "options": [
+ {
+ "value": true,
+ "label": "Smoother: same length, higher frame rate"
+ },
+ {
+ "value": false,
+ "label": "Slow motion: same frame rate, longer clip"
+ }
+ ],
+ "bind": [
+ {
+ "node": "16:13",
+ "field": "value"
+ }
+ ]
+ }
+ ],
+ "outputs": [
+ {
+ "node": "7",
+ "type": "video",
+ "label": "Video"
+ }
+ ],
+ "models": [
+ {
+ "repo": "Comfy-Org/frame_interpolation",
+ "file": "frame_interpolation/film_net_fp16.safetensors",
+ "dir": "frame_interpolation",
+ "gb": 0.07,
+ "phase": "all",
+ "license": "Apache-2.0 (FILM, Google Research)"
+ }
+ ],
+ "credits": [
+ "FILM by Google Research (Apache-2.0)",
+ "Workflow: ComfyUI official template"
+ ],
+ "test": {
+ "clip": "test/clip.mp4"
+ }
+}
diff --git a/apps/smooth/workflow.api.json b/apps/smooth/workflow.api.json
new file mode 100644
index 0000000..b119e24
--- /dev/null
+++ b/apps/smooth/workflow.api.json
@@ -0,0 +1,142 @@
+{
+ "4": {
+ "class_type": "LoadVideo",
+ "inputs": {
+ "file": "white_armored_warrior.mp4"
+ },
+ "_meta": {
+ "title": "Load Video"
+ }
+ },
+ "7": {
+ "class_type": "SaveVideo",
+ "inputs": {
+ "video": [
+ "16:5",
+ 0
+ ],
+ "filename_prefix": "freefield/smooth",
+ "format": "auto",
+ "format.codec": "auto"
+ },
+ "_meta": {
+ "title": "Save Video"
+ }
+ },
+ "16:1": {
+ "class_type": "FrameInterpolationModelLoader",
+ "inputs": {
+ "model_name": "film_net_fp16.safetensors"
+ },
+ "_meta": {
+ "title": "Load Frame Interpolation Model"
+ }
+ },
+ "16:2": {
+ "class_type": "FrameInterpolate",
+ "inputs": {
+ "interp_model": [
+ "16:1",
+ 0
+ ],
+ "images": [
+ "16:3",
+ 0
+ ],
+ "multiplier": [
+ "16:9",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Run Frame Interpolation Model"
+ }
+ },
+ "16:3": {
+ "class_type": "GetVideoComponents",
+ "inputs": {
+ "video": [
+ "4",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Get Video Components"
+ }
+ },
+ "16:5": {
+ "class_type": "CreateVideo",
+ "inputs": {
+ "images": [
+ "16:2",
+ 0
+ ],
+ "audio": [
+ "16:3",
+ 1
+ ],
+ "fps": [
+ "16:10",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Create Video"
+ }
+ },
+ "16:9": {
+ "class_type": "PrimitiveInt",
+ "inputs": {
+ "value": 2
+ },
+ "_meta": {
+ "title": "Int (Multiplier)"
+ }
+ },
+ "16:10": {
+ "class_type": "ComfySwitchNode",
+ "inputs": {
+ "on_false": [
+ "16:3",
+ 2
+ ],
+ "on_true": [
+ "16:11",
+ 0
+ ],
+ "switch": [
+ "16:13",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "If/Else Switch"
+ }
+ },
+ "16:11": {
+ "class_type": "ComfyMathExpression",
+ "inputs": {
+ "values.a": [
+ "16:3",
+ 2
+ ],
+ "values.b": [
+ "16:9",
+ 0
+ ],
+ "expression": "min(abs(b), 16) * a"
+ },
+ "_meta": {
+ "title": "Math Expression"
+ }
+ },
+ "16:13": {
+ "class_type": "PrimitiveBoolean",
+ "inputs": {
+ "value": true
+ },
+ "_meta": {
+ "title": "Boolean (Apply multiplier to FPS?)"
+ }
+ }
+}
diff --git a/apps/speak/app.json b/apps/speak/app.json
new file mode 100644
index 0000000..0f3174f
--- /dev/null
+++ b/apps/speak/app.json
@@ -0,0 +1,237 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "speak",
+ "name": "Speak",
+ "section": "video",
+ "pack": "video-ltx25",
+ "status": "ready",
+ "higgsfield_feature": "Speak",
+ "summary": "A photo says your line out loud: LTX-2.5 makes the voice, the lip sync and the motion in one pass, no TTS model needed.",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "video_ltx2_5_i2v.json",
+ "comfyui": "0.42.0",
+ "notes": "Unchanged official image-to-video template; the prompt quotes the line, which LTX-2.5 voices with synchronized audio. Voice quality still to check in the lab."
+ },
+ "inputs": [
+ {
+ "id": "image",
+ "type": "image",
+ "label": "Portrait",
+ "required": true,
+ "limits": {
+ "max_mb": 20
+ },
+ "bind": [
+ {
+ "node": "395",
+ "field": "image"
+ }
+ ]
+ },
+ {
+ "id": "line",
+ "type": "textarea",
+ "label": "What they say",
+ "required": true,
+ "default": "Hi! I am talking to you from a single photo. My voice and my lips come from an open model.",
+ "help": "One or two sentences fit in five seconds"
+ },
+ {
+ "id": "voice",
+ "type": "select",
+ "label": "Voice",
+ "default": "a warm, friendly female voice",
+ "options": [
+ {
+ "value": "a warm, friendly female voice",
+ "label": "Warm, female"
+ },
+ {
+ "value": "a calm, deep male voice",
+ "label": "Calm, male"
+ },
+ {
+ "value": "an excited, energetic voice",
+ "label": "Excited"
+ },
+ {
+ "value": "a soft, close whisper",
+ "label": "Whisper"
+ },
+ {
+ "value": "the clear, confident voice of a news anchor",
+ "label": "News anchor"
+ },
+ {
+ "value": "a relaxed voice with a slight smile",
+ "label": "Relaxed"
+ }
+ ]
+ },
+ {
+ "id": "scene",
+ "type": "textarea",
+ "label": "Shot (optional)",
+ "default": "Medium close-up, natural head movement and blinking, soft window light",
+ "bind": [
+ {
+ "node": "398:376",
+ "field": "value",
+ "template": "{scene}. The person looks into the camera and speaks in {voice}, with natural lip movement, saying: \"{line}\""
+ }
+ ]
+ },
+ {
+ "id": "duration",
+ "type": "slider",
+ "label": "Seconds",
+ "min": 3,
+ "max": 10,
+ "step": 1,
+ "default": 5,
+ "bind": [
+ {
+ "node": "398:362",
+ "field": "value"
+ }
+ ]
+ },
+ {
+ "id": "enhance",
+ "type": "toggle",
+ "label": "Enhance prompt",
+ "default": false,
+ "help": "Off by default: the enhancer may rephrase your line",
+ "bind": [
+ {
+ "node": "398:383",
+ "field": "value"
+ }
+ ]
+ },
+ {
+ "id": "aspect",
+ "type": "select",
+ "label": "Aspect ratio",
+ "default": "9:16 (Portrait Widescreen)",
+ "options": [
+ {
+ "value": "16:9 (Widescreen)",
+ "label": "16:9"
+ },
+ {
+ "value": "9:16 (Portrait Widescreen)",
+ "label": "9:16"
+ },
+ {
+ "value": "1:1 (Square)",
+ "label": "1:1"
+ },
+ {
+ "value": "4:3 (Standard)",
+ "label": "4:3"
+ },
+ {
+ "value": "3:4 (Portrait Standard)",
+ "label": "3:4"
+ },
+ {
+ "value": "21:9 (Ultrawide)",
+ "label": "21:9"
+ }
+ ],
+ "bind": [
+ {
+ "node": "403",
+ "field": "aspect_ratio"
+ }
+ ]
+ },
+ {
+ "id": "seed",
+ "type": "seed",
+ "label": "Seed",
+ "default": -1,
+ "help": "-1 picks a random seed",
+ "bind": [
+ {
+ "node": "398:339",
+ "field": "noise_seed"
+ }
+ ]
+ }
+ ],
+ "outputs": [
+ {
+ "node": "75",
+ "type": "video",
+ "label": "Video"
+ }
+ ],
+ "models": [
+ {
+ "repo": "Lightricks/LTX-2.5",
+ "file": "diffusion_models/ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors",
+ "dir": "diffusion_models",
+ "gb": 21.5,
+ "phase": "denoise",
+ "gated": true,
+ "license": "LTX-2.x Community License"
+ },
+ {
+ "repo": "Lightricks/LTX-2.5",
+ "file": "text_encoders/gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors",
+ "dir": "text_encoders",
+ "gb": 15.37,
+ "phase": "encode",
+ "gated": true,
+ "license": "LTX-2.x Community License"
+ },
+ {
+ "repo": "Lightricks/LTX-2.5",
+ "file": "vae/ltx-2.5-video-vae-bf16.safetensors",
+ "dir": "vae",
+ "gb": 1.47,
+ "phase": "decode",
+ "gated": true,
+ "license": "LTX-2.x Community License"
+ },
+ {
+ "repo": "Lightricks/LTX-2.5",
+ "file": "vae/ltx-2.5-audio-vae-bf16.safetensors",
+ "dir": "vae",
+ "gb": 0.36,
+ "phase": "decode",
+ "gated": true,
+ "license": "LTX-2.x Community License"
+ },
+ {
+ "repo": "Lightricks/LTX-2.5",
+ "file": "latent_upscale_models/ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors",
+ "dir": "latent_upscale_models",
+ "gb": 1.0,
+ "phase": "aux",
+ "gated": true,
+ "license": "LTX-2.x Community License"
+ },
+ {
+ "repo": "Comfy-Org/gemma-4",
+ "file": "text_encoders/gemma4_e2b_it_int8_convrot.safetensors",
+ "dir": "text_encoders",
+ "gb": 5.2,
+ "phase": "encode",
+ "license": "Apache-2.0",
+ "optional": true
+ }
+ ],
+ "notes": "Use footage and photos of yourself, fictional characters, or people who agreed to it.",
+ "credits": [
+ "LTX-2.5 by Lightricks",
+ "Workflow adapted from ComfyUI's official LTX-2.5 template"
+ ],
+ "test": {
+ "image": "test/portrait.png",
+ "duration": 3
+ }
+}
diff --git a/apps/speak/workflow.api.json b/apps/speak/workflow.api.json
new file mode 100644
index 0000000..553e4ae
--- /dev/null
+++ b/apps/speak/workflow.api.json
@@ -0,0 +1,728 @@
+{
+ "75": {
+ "class_type": "SaveVideo",
+ "inputs": {
+ "video": [
+ "398:370",
+ 0
+ ],
+ "filename_prefix": "freefield/speak",
+ "format": "auto",
+ "format.codec": "auto"
+ },
+ "_meta": {
+ "title": "Save Video"
+ }
+ },
+ "395": {
+ "class_type": "LoadImage",
+ "inputs": {
+ "image": "neon_cyborg_portrait.png"
+ },
+ "_meta": {
+ "title": "Load First Frame"
+ }
+ },
+ "398:338": {
+ "class_type": "RandomNoise",
+ "inputs": {
+ "noise_seed": 42
+ },
+ "_meta": {
+ "title": "RandomNoise"
+ }
+ },
+ "398:339": {
+ "class_type": "RandomNoise",
+ "inputs": {
+ "noise_seed": 900359092894726
+ },
+ "_meta": {
+ "title": "RandomNoise"
+ }
+ },
+ "398:340": {
+ "class_type": "LTXVConcatAVLatent",
+ "inputs": {
+ "video_latent": [
+ "398:349",
+ 0
+ ],
+ "audio_latent": [
+ "398:367",
+ 1
+ ]
+ },
+ "_meta": {
+ "title": "Concat AV Latent"
+ }
+ },
+ "398:341": {
+ "class_type": "KSamplerSelect",
+ "inputs": {
+ "sampler_name": "euler_ancestral"
+ },
+ "_meta": {
+ "title": "KSamplerSelect"
+ }
+ },
+ "398:344": {
+ "class_type": "SamplerCustomAdvanced",
+ "inputs": {
+ "noise": [
+ "398:339",
+ 0
+ ],
+ "guider": [
+ "398:388",
+ 0
+ ],
+ "sampler": [
+ "398:352",
+ 0
+ ],
+ "sigmas": [
+ "398:397",
+ 0
+ ],
+ "latent_image": [
+ "398:377",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "SamplerCustomAdvanced"
+ }
+ },
+ "398:348": {
+ "class_type": "LTXVLatentUpsampler",
+ "inputs": {
+ "samples": [
+ "398:367",
+ 0
+ ],
+ "upscale_model": [
+ "398:371",
+ 0
+ ],
+ "vae": [
+ "398:385",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "LTXVLatentUpsampler"
+ }
+ },
+ "398:349": {
+ "class_type": "LTXVImgToVideoInplace",
+ "inputs": {
+ "vae": [
+ "398:385",
+ 0
+ ],
+ "image": [
+ "398:350",
+ 0
+ ],
+ "latent": [
+ "398:348",
+ 0
+ ],
+ "bypass": [
+ "398:363",
+ 0
+ ],
+ "strength": 1
+ },
+ "_meta": {
+ "title": "LTXVImgToVideoInplace"
+ }
+ },
+ "398:350": {
+ "class_type": "LTXVPreprocess",
+ "inputs": {
+ "image": [
+ "398:351",
+ 0
+ ],
+ "img_compression": 18
+ },
+ "_meta": {
+ "title": "LTXV Preprocess"
+ }
+ },
+ "398:351": {
+ "class_type": "ResizeImageMaskNode",
+ "inputs": {
+ "input": [
+ "395",
+ 0
+ ],
+ "resize_type": "scale longer dimension",
+ "resize_type.longer_size": 1536,
+ "scale_method": "lanczos"
+ },
+ "_meta": {
+ "title": "Resize Image/Mask"
+ }
+ },
+ "398:352": {
+ "class_type": "KSamplerSelect",
+ "inputs": {
+ "sampler_name": "euler_ancestral"
+ },
+ "_meta": {
+ "title": "KSamplerSelect"
+ }
+ },
+ "398:353": {
+ "class_type": "ComfyMathExpression",
+ "inputs": {
+ "values.a": [
+ "398:372",
+ 0
+ ],
+ "expression": "a/2"
+ },
+ "_meta": {
+ "title": "Math Expression"
+ }
+ },
+ "398:355": {
+ "class_type": "ComfyMathExpression",
+ "inputs": {
+ "values.a": [
+ "398:360",
+ 0
+ ],
+ "expression": "a/2"
+ },
+ "_meta": {
+ "title": "Math Expression"
+ }
+ },
+ "398:356": {
+ "class_type": "EmptyLTXVLatentVideo",
+ "inputs": {
+ "width": [
+ "398:353",
+ 1
+ ],
+ "height": [
+ "398:355",
+ 1
+ ],
+ "length": [
+ "398:378",
+ 1
+ ],
+ "batch_size": 1
+ },
+ "_meta": {
+ "title": "Empty LTXV Latent Video"
+ }
+ },
+ "398:357": {
+ "class_type": "LTXVImgToVideoInplace",
+ "inputs": {
+ "vae": [
+ "398:385",
+ 0
+ ],
+ "image": [
+ "398:350",
+ 0
+ ],
+ "latent": [
+ "398:356",
+ 0
+ ],
+ "bypass": [
+ "398:363",
+ 0
+ ],
+ "strength": 0.7
+ },
+ "_meta": {
+ "title": "LTXVImgToVideoInplace"
+ }
+ },
+ "398:358": {
+ "class_type": "LTXVAudioVAEDecode",
+ "inputs": {
+ "samples": [
+ "398:369",
+ 1
+ ],
+ "audio_vae": [
+ "398:386",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "LTXV Audio VAE Decode"
+ }
+ },
+ "398:359": {
+ "class_type": "ComfyMathExpression",
+ "inputs": {
+ "values.a": [
+ "398:361",
+ 0
+ ],
+ "expression": "a"
+ },
+ "_meta": {
+ "title": "Math Expression (fps)"
+ }
+ },
+ "398:360": {
+ "class_type": "PrimitiveInt",
+ "inputs": {
+ "value": [
+ "403",
+ 1
+ ]
+ },
+ "_meta": {
+ "title": "Height"
+ }
+ },
+ "398:361": {
+ "class_type": "PrimitiveInt",
+ "inputs": {
+ "value": 24
+ },
+ "_meta": {
+ "title": "Frame Rate"
+ }
+ },
+ "398:362": {
+ "class_type": "PrimitiveInt",
+ "inputs": {
+ "value": 5
+ },
+ "_meta": {
+ "title": "Duration"
+ }
+ },
+ "398:363": {
+ "class_type": "PrimitiveBoolean",
+ "inputs": {
+ "value": false
+ },
+ "_meta": {
+ "title": "Switch to Text to Video?"
+ }
+ },
+ "398:364": {
+ "class_type": "CLIPTextEncode",
+ "inputs": {
+ "clip": [
+ "398:387",
+ 0
+ ],
+ "text": [
+ "398:382",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "CLIP Text Encode (Prompt)"
+ }
+ },
+ "398:365": {
+ "class_type": "LTXVConditioning",
+ "inputs": {
+ "positive": [
+ "398:364",
+ 0
+ ],
+ "negative": [
+ "398:373",
+ 0
+ ],
+ "frame_rate": [
+ "398:359",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "LTXVConditioning"
+ }
+ },
+ "398:366": {
+ "class_type": "LTXVEmptyLatentAudio",
+ "inputs": {
+ "audio_vae": [
+ "398:386",
+ 0
+ ],
+ "frames_number": [
+ "398:378",
+ 1
+ ],
+ "frame_rate": [
+ "398:359",
+ 1
+ ],
+ "batch_size": 1
+ },
+ "_meta": {
+ "title": "Empty LTXV Latent Audio"
+ }
+ },
+ "398:367": {
+ "class_type": "LTXVSeparateAVLatent",
+ "inputs": {
+ "av_latent": [
+ "398:344",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Separate AV Latent"
+ }
+ },
+ "398:368": {
+ "class_type": "SamplerCustomAdvanced",
+ "inputs": {
+ "noise": [
+ "398:338",
+ 0
+ ],
+ "guider": [
+ "398:391",
+ 0
+ ],
+ "sampler": [
+ "398:341",
+ 0
+ ],
+ "sigmas": [
+ "398:396",
+ 0
+ ],
+ "latent_image": [
+ "398:340",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "SamplerCustomAdvanced"
+ }
+ },
+ "398:369": {
+ "class_type": "LTXVSeparateAVLatent",
+ "inputs": {
+ "av_latent": [
+ "398:368",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Separate AV Latent"
+ }
+ },
+ "398:370": {
+ "class_type": "CreateVideo",
+ "inputs": {
+ "images": [
+ "398:374",
+ 0
+ ],
+ "audio": [
+ "398:358",
+ 0
+ ],
+ "fps": [
+ "398:359",
+ 0
+ ],
+ "bit_depth": 8
+ },
+ "_meta": {
+ "title": "Create Video"
+ }
+ },
+ "398:371": {
+ "class_type": "LatentUpscaleModelLoader",
+ "inputs": {
+ "model_name": "ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors"
+ },
+ "_meta": {
+ "title": "Load Latent Upscale Model"
+ }
+ },
+ "398:372": {
+ "class_type": "PrimitiveInt",
+ "inputs": {
+ "value": [
+ "403",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Width"
+ }
+ },
+ "398:373": {
+ "class_type": "CLIPTextEncode",
+ "inputs": {
+ "clip": [
+ "398:387",
+ 0
+ ],
+ "text": "pc game, console game, video game, cartoon, childish, ugly"
+ },
+ "_meta": {
+ "title": "CLIP Text Encode (Prompt)"
+ }
+ },
+ "398:374": {
+ "class_type": "VAEDecodeTiled",
+ "inputs": {
+ "samples": [
+ "398:369",
+ 0
+ ],
+ "vae": [
+ "398:385",
+ 0
+ ],
+ "tile_size": 512,
+ "overlap": 64,
+ "temporal_size": 64,
+ "temporal_overlap": 16
+ },
+ "_meta": {
+ "title": "VAE Decode (Tiled)"
+ }
+ },
+ "398:376": {
+ "class_type": "PrimitiveStringMultiline",
+ "inputs": {
+ "value": "Egyptian royal in blue-and-gold headdress and high collar, white dress with golden embroidery and armbands, desert, robot soldiers in formation left and right. She walks steadily forward, head held level and gaze fixed ahead—no dipping or lowering of the head. The camera performs a single, smooth push-in only: starting in a wider shot of her, the robots, and the desert, it moves steadily forward until she is in a medium or medium-close frame, then holds. She stops, posture and head still upright, and says: “The old gods are silent. I am not.” Robot soldiers shift or march in place; sand and fabric move with the wind. No pull-back; the only camera move is the continuous push-in."
+ },
+ "_meta": {
+ "title": "Prompt"
+ }
+ },
+ "398:377": {
+ "class_type": "LTXVConcatAVLatent",
+ "inputs": {
+ "video_latent": [
+ "398:357",
+ 0
+ ],
+ "audio_latent": [
+ "398:366",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Concat AV Latent"
+ }
+ },
+ "398:378": {
+ "class_type": "ComfyMathExpression",
+ "inputs": {
+ "values.a": [
+ "398:362",
+ 0
+ ],
+ "values.b": [
+ "398:361",
+ 0
+ ],
+ "expression": "a * b + 1"
+ },
+ "_meta": {
+ "title": "Math Expression (length)"
+ }
+ },
+ "398:380": {
+ "class_type": "TextGenerateLTX2Prompt",
+ "inputs": {
+ "clip": [
+ "398:393",
+ 0
+ ],
+ "image": [
+ "398:350",
+ 0
+ ],
+ "prompt": [
+ "398:376",
+ 0
+ ],
+ "max_length": 600,
+ "sampling_mode": "on",
+ "sampling_mode.temperature": 0.7,
+ "sampling_mode.top_k": 64,
+ "sampling_mode.top_p": 0.95,
+ "sampling_mode.min_p": 0.05,
+ "sampling_mode.repetition_penalty": 1.15,
+ "sampling_mode.seed": 0,
+ "sampling_mode.presence_penalty": 0,
+ "thinking": false,
+ "use_default_template": true
+ },
+ "_meta": {
+ "title": "Generate LTX2 Prompt"
+ }
+ },
+ "398:382": {
+ "class_type": "ComfySwitchNode",
+ "inputs": {
+ "on_false": [
+ "398:376",
+ 0
+ ],
+ "on_true": [
+ "398:380",
+ 0
+ ],
+ "switch": [
+ "398:383",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "If/Else Switch"
+ }
+ },
+ "398:383": {
+ "class_type": "PrimitiveBoolean",
+ "inputs": {
+ "value": true
+ },
+ "_meta": {
+ "title": "Boolean (Enable Prompt Enhance)"
+ }
+ },
+ "398:384": {
+ "class_type": "UNETLoader",
+ "inputs": {
+ "unet_name": "ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors",
+ "weight_dtype": "default"
+ },
+ "_meta": {
+ "title": "Load Diffusion Model"
+ }
+ },
+ "398:385": {
+ "class_type": "VAELoader",
+ "inputs": {
+ "vae_name": "ltx-2.5-video-vae-bf16.safetensors"
+ },
+ "_meta": {
+ "title": "Load VAE"
+ }
+ },
+ "398:386": {
+ "class_type": "VAELoader",
+ "inputs": {
+ "vae_name": "ltx-2.5-audio-vae-bf16.safetensors"
+ },
+ "_meta": {
+ "title": "Load VAE"
+ }
+ },
+ "398:387": {
+ "class_type": "CLIPLoader",
+ "inputs": {
+ "clip_name": "gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors",
+ "type": "ltxv",
+ "device": "default"
+ },
+ "_meta": {
+ "title": "Load CLIP"
+ }
+ },
+ "398:388": {
+ "class_type": "LTXVDualCFGGuider",
+ "inputs": {
+ "model": [
+ "398:384",
+ 0
+ ],
+ "positive": [
+ "398:365",
+ 0
+ ],
+ "negative": [
+ "398:365",
+ 1
+ ],
+ "video_cfg": 1,
+ "audio_cfg": 1
+ },
+ "_meta": {
+ "title": "LTXV Dual CFG Guider"
+ }
+ },
+ "398:391": {
+ "class_type": "LTXVDualCFGGuider",
+ "inputs": {
+ "model": [
+ "398:384",
+ 0
+ ],
+ "positive": [
+ "398:365",
+ 0
+ ],
+ "negative": [
+ "398:365",
+ 1
+ ],
+ "video_cfg": 1,
+ "audio_cfg": 1
+ },
+ "_meta": {
+ "title": "LTXV Dual CFG Guider"
+ }
+ },
+ "398:393": {
+ "class_type": "CLIPLoader",
+ "inputs": {
+ "clip_name": "gemma4_e2b_it_int8_convrot.safetensors",
+ "type": "ltxv",
+ "device": "default"
+ },
+ "_meta": {
+ "title": "Load CLIP"
+ }
+ },
+ "398:396": {
+ "class_type": "ManualSigmas",
+ "inputs": {
+ "sigmas": "0.85, 0.7250, 0.4219, 0.0"
+ },
+ "_meta": {
+ "title": "ManualSigmas"
+ }
+ },
+ "398:397": {
+ "class_type": "ManualSigmas",
+ "inputs": {
+ "sigmas": "1.0, 0.99375, 0.9875, 0.98125, 0.975, 0.909375, 0.725, 0.421875, 0.0"
+ },
+ "_meta": {
+ "title": "ManualSigmas"
+ }
+ },
+ "403": {
+ "class_type": "ResolutionSelector",
+ "inputs": {
+ "aspect_ratio": "16:9 (Widescreen)",
+ "megapixels": 0.9,
+ "multiple": 32
+ },
+ "_meta": {
+ "title": "Resolution Selector"
+ }
+ }
+}
diff --git a/apps/style-reference/app.json b/apps/style-reference/app.json
new file mode 100644
index 0000000..2c9b052
--- /dev/null
+++ b/apps/style-reference/app.json
@@ -0,0 +1,182 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "style-reference",
+ "name": "Style Reference",
+ "section": "image",
+ "pack": "image-krea2",
+ "status": "ready",
+ "higgsfield_feature": "Style transfer",
+ "summary": "Paints anything you describe in the style of a reference image (Krea 2 Turbo with a style-reference LoRA).",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "image_krea2_turbo_int8_image_style_reference.json",
+ "comfyui": "0.42.0"
+ },
+ "inputs": [
+ {
+ "id": "style",
+ "type": "image",
+ "label": "Style reference",
+ "required": true,
+ "limits": {
+ "max_mb": 20
+ },
+ "help": "Only its look is used: palette, medium, texture",
+ "bind": [
+ {
+ "node": "69",
+ "field": "image"
+ }
+ ]
+ },
+ {
+ "id": "prompt",
+ "type": "textarea",
+ "label": "What to paint",
+ "required": true,
+ "default": "a lighthouse on a cliff during a storm, waves crashing",
+ "bind": [
+ {
+ "node": "30:19",
+ "field": "value"
+ }
+ ]
+ },
+ {
+ "id": "enhance",
+ "type": "toggle",
+ "label": "Enhance prompt",
+ "default": false,
+ "help": "Rewrites your prompt with the Qwen3-VL text encoder first",
+ "bind": [
+ {
+ "node": "30:24",
+ "field": "value"
+ }
+ ]
+ },
+ {
+ "id": "aspect",
+ "type": "select",
+ "label": "Aspect ratio",
+ "default": "1:1 (Square)",
+ "options": [
+ {
+ "value": "1:1 (Square)",
+ "label": "1:1 (Square)"
+ },
+ {
+ "value": "2:3 (Portrait Photo)",
+ "label": "2:3 (Portrait Photo)"
+ },
+ {
+ "value": "3:2 (Photo)",
+ "label": "3:2 (Photo)"
+ },
+ {
+ "value": "3:4 (Portrait Standard)",
+ "label": "3:4 (Portrait Standard)"
+ },
+ {
+ "value": "4:3 (Standard)",
+ "label": "4:3 (Standard)"
+ },
+ {
+ "value": "9:16 (Portrait Widescreen)",
+ "label": "9:16 (Portrait Widescreen)"
+ },
+ {
+ "value": "16:9 (Widescreen)",
+ "label": "16:9 (Widescreen)"
+ },
+ {
+ "value": "21:9 (Ultrawide)",
+ "label": "21:9 (Ultrawide)"
+ }
+ ],
+ "bind": [
+ {
+ "node": "71",
+ "field": "aspect_ratio"
+ }
+ ]
+ },
+ {
+ "id": "megapixels",
+ "type": "slider",
+ "label": "Megapixels",
+ "min": 0.5,
+ "max": 2.0,
+ "step": 0.25,
+ "default": 1.0,
+ "bind": [
+ {
+ "node": "71",
+ "field": "megapixels"
+ }
+ ]
+ },
+ {
+ "id": "seed",
+ "type": "seed",
+ "label": "Seed",
+ "default": -1,
+ "help": "-1 picks a random seed",
+ "bind": [
+ {
+ "node": "30:63",
+ "field": "noise_seed"
+ }
+ ]
+ }
+ ],
+ "outputs": [
+ {
+ "node": "29",
+ "type": "image",
+ "label": "Image"
+ }
+ ],
+ "models": [
+ {
+ "repo": "Comfy-Org/Krea-2",
+ "file": "diffusion_models/krea2_turbo_int8_convrot.safetensors",
+ "dir": "diffusion_models",
+ "gb": 13.49,
+ "phase": "denoise",
+ "license": "Krea 2 Community License"
+ },
+ {
+ "repo": "Comfy-Org/Krea-2",
+ "file": "text_encoders/qwen3vl_4b_fp8_scaled.safetensors",
+ "dir": "text_encoders",
+ "gb": 5.24,
+ "phase": "encode",
+ "license": "Krea 2 Community License"
+ },
+ {
+ "repo": "Comfy-Org/Krea-2",
+ "file": "vae/qwen_image_vae.safetensors",
+ "dir": "vae",
+ "gb": 0.25,
+ "phase": "decode",
+ "license": "Krea 2 Community License"
+ },
+ {
+ "repo": "Comfy-Org/Krea-2",
+ "file": "loras/krea2_style_reference.safetensors",
+ "dir": "loras",
+ "gb": 0.46,
+ "phase": "denoise",
+ "license": "Krea 2 Community License"
+ }
+ ],
+ "credits": [
+ "Krea 2 Turbo by Krea (Krea 2 Community License)",
+ "Style reference LoRA by ostris",
+ "Workflow: ComfyUI official template"
+ ],
+ "test": {
+ "style": "test/portrait.png"
+ }
+}
diff --git a/apps/style-reference/workflow.api.json b/apps/style-reference/workflow.api.json
new file mode 100644
index 0000000..cd81759
--- /dev/null
+++ b/apps/style-reference/workflow.api.json
@@ -0,0 +1,385 @@
+{
+ "29": {
+ "class_type": "SaveImage",
+ "inputs": {
+ "images": [
+ "30:62",
+ 0
+ ],
+ "filename_prefix": "freefield/style-reference"
+ },
+ "_meta": {
+ "title": "Save Image"
+ }
+ },
+ "30:5": {
+ "class_type": "EmptyLatentImage",
+ "inputs": {
+ "width": [
+ "71",
+ 0
+ ],
+ "height": [
+ "71",
+ 1
+ ],
+ "batch_size": 1
+ },
+ "_meta": {
+ "title": "Empty Latent Image"
+ }
+ },
+ "30:10": {
+ "class_type": "UNETLoader",
+ "inputs": {
+ "unet_name": "krea2_turbo_int8_convrot.safetensors",
+ "weight_dtype": "default"
+ },
+ "_meta": {
+ "title": "Load Diffusion Model"
+ }
+ },
+ "30:11": {
+ "class_type": "CLIPLoader",
+ "inputs": {
+ "clip_name": "qwen3vl_4b_fp8_scaled.safetensors",
+ "type": "krea2",
+ "device": "default"
+ },
+ "_meta": {
+ "title": "Load CLIP"
+ }
+ },
+ "30:12": {
+ "class_type": "VAELoader",
+ "inputs": {
+ "vae_name": "qwen_image_vae.safetensors"
+ },
+ "_meta": {
+ "title": "Load VAE"
+ }
+ },
+ "30:13": {
+ "class_type": "ConditioningZeroOut",
+ "inputs": {
+ "conditioning": [
+ "30:53",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Conditioning Zero Out"
+ }
+ },
+ "30:15": {
+ "class_type": "LoraLoaderModelOnly",
+ "inputs": {
+ "model": [
+ "30:10",
+ 0
+ ],
+ "lora_name": "krea2_style_reference.safetensors",
+ "strength_model": 1
+ },
+ "_meta": {
+ "title": "Load LoRA"
+ }
+ },
+ "30:16": {
+ "class_type": "TextGenerate",
+ "inputs": {
+ "clip": [
+ "30:11",
+ 0
+ ],
+ "prompt": [
+ "30:17",
+ 0
+ ],
+ "max_length": 512,
+ "sampling_mode": "on",
+ "sampling_mode.temperature": 0.7,
+ "sampling_mode.top_k": 64,
+ "sampling_mode.top_p": 0.95,
+ "sampling_mode.min_p": 0.05,
+ "sampling_mode.repetition_penalty": 1.05,
+ "sampling_mode.seed": 0,
+ "sampling_mode.presence_penalty": 0,
+ "thinking": false,
+ "use_default_template": true
+ },
+ "_meta": {
+ "title": "Generate Text"
+ }
+ },
+ "30:17": {
+ "class_type": "StringConcatenate",
+ "inputs": {
+ "string_a": [
+ "30:18",
+ 0
+ ],
+ "string_b": [
+ "30:19",
+ 0
+ ],
+ "delimiter": ""
+ },
+ "_meta": {
+ "title": "Concatenate Text"
+ }
+ },
+ "30:18": {
+ "class_type": "PrimitiveStringMultiline",
+ "inputs": {
+ "value": "You are an expert prompt engineer for text-to-image models. Your task is to expand the user's prompt into a highly effective image-generation prompt.\n\nThink step by step about the request before writing the answer:\n- What is the subject and mood?\n- What visual styles, mediums, and lighting options would fit? Consider two or three alternatives and pick the one that best serves the request.\n- What composition, framing, and grounded details will help the text-to-image model?\n\nThen output a single expanded prompt paragraph.\n\nFollow these rules strictly:\n1. **Faithfulness First:** Preserve all original subjects, actions, colors, and spatial relationships. Do not add new objects, props, characters, or animals unless the user clearly implies them.\n2. **Practical T2I Structure:** Write a prompt that a text-to-image model can parse cleanly. Group subjects with their own attributes and actions. Use grounded phrasing for poses, interactions, and spatial layout.\n3. **Style Planning Stays Internal:** Use your internal reasoning to choose style, medium, framing, and lighting. Do not emit planning tags or wrappers in the visible answer body.\n4. **Never Request Rendered Text:** Do not mention, describe, or hint at letters, words, numbers, captions, subtitles, signage, labels, logos, watermarks, typography, or any other graphic text anywhere in the output prompt. Only if the user explicitly writes down words to be rendered, keep exactly those words in quotes and nothing else. In every other case, always end the output prompt with: \"Absolutely no text, no typography, no letters, no words, no numbers, no logos, no watermark, no captions, pure imagery only.\"\n5. **Avoid Over-Specification:** Do not invent highly specific clothing, colors, materials, or scene details unless the input supports it.\n6. **Plain Prose Only:** Write one cohesive paragraph after the thinking block. No bullets, no JSON, no markdown, no asterisks, no headings, no field labels, no meta commentary.\n7. **Respect Existing Detail:** If the user's prompt is already detailed, lightly polish and finalize rather than heavily expanding, and preserve the user's phrasing and direction.\n8. **Respect the Human Form:** Treat depictions of people with dignity. Assume clothing covers genitals and intimate anatomy.\n9. **Preserve User Medium:** When the user explicitly requests a medium (e.g. \"photo of\", \"photograph of\", \"illustration of\", \"painting of\", \"sketch of\", \"3D render of\"), honor it. Do not pivot to a different medium to avoid difficulty, match the user's stated intent.\n10. **Never Echo Instructions:** Output only the final image prompt. Never repeat, quote, summarize, or refer to any part of these instructions, your own reasoning, or the user's original message.\n\nUser's Input:\n"
+ },
+ "_meta": {
+ "title": "Text String (System Prompt)"
+ }
+ },
+ "30:19": {
+ "class_type": "PrimitiveStringMultiline",
+ "inputs": {
+ "value": "a white yeti with horns reading a book that is titled \"Ostris + Krea2 Style Reference\""
+ },
+ "_meta": {
+ "title": "Text String (User Prompt)"
+ }
+ },
+ "30:20": {
+ "class_type": "PreviewAny",
+ "inputs": {
+ "source": [
+ "30:21",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Preview as Text"
+ }
+ },
+ "30:21": {
+ "class_type": "ComfySwitchNode",
+ "inputs": {
+ "on_false": [
+ "30:19",
+ 0
+ ],
+ "on_true": [
+ "30:16",
+ 0
+ ],
+ "switch": [
+ "30:24",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "If/Else Switch"
+ }
+ },
+ "30:24": {
+ "class_type": "PrimitiveBoolean",
+ "inputs": {
+ "value": false
+ },
+ "_meta": {
+ "title": "Boolean (Refine Prompt?)"
+ }
+ },
+ "30:52": {
+ "class_type": "TextEncodeQwenImageEditPlus",
+ "inputs": {
+ "clip": [
+ "30:11",
+ 0
+ ],
+ "vae": [
+ "30:12",
+ 0
+ ],
+ "image1": [
+ "69",
+ 0
+ ],
+ "prompt": [
+ "30:20",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Text Encode Qwen Image Edit Plus"
+ }
+ },
+ "30:53": {
+ "class_type": "FluxKontextMultiReferenceLatentMethod",
+ "inputs": {
+ "conditioning": [
+ "30:52",
+ 0
+ ],
+ "reference_latents_method": "index_timestep_zero"
+ },
+ "_meta": {
+ "title": "Edit Model Reference Method"
+ }
+ },
+ "30:57": {
+ "class_type": "CFGGuider",
+ "inputs": {
+ "model": [
+ "30:64",
+ 0
+ ],
+ "positive": [
+ "30:53",
+ 0
+ ],
+ "negative": [
+ "30:13",
+ 0
+ ],
+ "cfg": 1
+ },
+ "_meta": {
+ "title": "CFG Guider"
+ }
+ },
+ "30:58": {
+ "class_type": "SamplerCustomAdvanced",
+ "inputs": {
+ "noise": [
+ "30:63",
+ 0
+ ],
+ "guider": [
+ "30:57",
+ 0
+ ],
+ "sampler": [
+ "30:59",
+ 0
+ ],
+ "sigmas": [
+ "30:60",
+ 0
+ ],
+ "latent_image": [
+ "30:61",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "SamplerCustomAdvanced"
+ }
+ },
+ "30:59": {
+ "class_type": "KSamplerSelect",
+ "inputs": {
+ "sampler_name": "euler"
+ },
+ "_meta": {
+ "title": "KSamplerSelect"
+ }
+ },
+ "30:60": {
+ "class_type": "BasicScheduler",
+ "inputs": {
+ "model": [
+ "30:64",
+ 0
+ ],
+ "scheduler": "simple",
+ "steps": 8,
+ "denoise": 1
+ },
+ "_meta": {
+ "title": "BasicScheduler"
+ }
+ },
+ "30:61": {
+ "class_type": "EmptyLatentImage",
+ "inputs": {
+ "width": [
+ "71",
+ 0
+ ],
+ "height": [
+ "71",
+ 1
+ ],
+ "batch_size": 1
+ },
+ "_meta": {
+ "title": "Empty Latent Image"
+ }
+ },
+ "30:62": {
+ "class_type": "VAEDecode",
+ "inputs": {
+ "samples": [
+ "30:58",
+ 0
+ ],
+ "vae": [
+ "30:12",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "VAE Decode"
+ }
+ },
+ "30:63": {
+ "class_type": "RandomNoise",
+ "inputs": {
+ "noise_seed": 355028178891957
+ },
+ "_meta": {
+ "title": "RandomNoise"
+ }
+ },
+ "30:64": {
+ "class_type": "ModelSamplingFlux",
+ "inputs": {
+ "model": [
+ "30:15",
+ 0
+ ],
+ "width": [
+ "71",
+ 0
+ ],
+ "height": [
+ "71",
+ 1
+ ],
+ "max_shift": 1.15,
+ "base_shift": 0.5
+ },
+ "_meta": {
+ "title": "ModelSamplingFlux"
+ }
+ },
+ "69": {
+ "class_type": "LoadImage",
+ "inputs": {
+ "image": "krea2_reference_image.png"
+ },
+ "_meta": {
+ "title": "Load Image"
+ }
+ },
+ "71": {
+ "class_type": "ResolutionSelector",
+ "inputs": {
+ "aspect_ratio": "1:1 (Square)",
+ "megapixels": 1,
+ "multiple": 8
+ },
+ "_meta": {
+ "title": "Resolution Selector"
+ }
+ }
+}
diff --git a/apps/styles/app.json b/apps/styles/app.json
new file mode 100644
index 0000000..643e093
--- /dev/null
+++ b/apps/styles/app.json
@@ -0,0 +1,366 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "styles",
+ "name": "Styles",
+ "section": "image",
+ "pack": "image-krea2",
+ "status": "ready",
+ "higgsfield_feature": "Image styles",
+ "summary": "Text to image in one of Krea's nine official looks: watercolor, ink wash, retro anime, tarot and more.",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "image_krea2_turbo_t2i_int8.json",
+ "comfyui": "0.42.0",
+ "notes": "The template's LoRA switch is turned on; each style option writes its trigger phrase and swaps the LoRA file."
+ },
+ "inputs": [
+ {
+ "id": "prompt",
+ "type": "textarea",
+ "label": "What to draw",
+ "required": true,
+ "default": "a fox reading under a tree at dusk",
+ "bind": [
+ {
+ "node": "30:19",
+ "field": "value"
+ }
+ ]
+ },
+ {
+ "id": "style",
+ "type": "select",
+ "label": "Style",
+ "default": "Art Deco watercolor style",
+ "options": [
+ {
+ "value": "Art Deco watercolor style",
+ "label": "Soft watercolor",
+ "sets": [
+ {
+ "node": "30:15",
+ "field": "lora_name",
+ "value": "krea2_softwatercolor.safetensors"
+ }
+ ]
+ },
+ {
+ "value": "monochrome ink wash style",
+ "label": "Ink wash",
+ "sets": [
+ {
+ "node": "30:15",
+ "field": "lora_name",
+ "value": "krea2_darkbrush.safetensors"
+ }
+ ]
+ },
+ {
+ "value": "Monochrome stippling style",
+ "label": "Stippling",
+ "sets": [
+ {
+ "node": "30:15",
+ "field": "lora_name",
+ "value": "krea2_dotmatrix.safetensors"
+ }
+ ]
+ },
+ {
+ "value": "naive expressive sketch style",
+ "label": "Kid's drawing",
+ "sets": [
+ {
+ "node": "30:15",
+ "field": "lora_name",
+ "value": "krea2_kidsdrawing.safetensors"
+ }
+ ]
+ },
+ {
+ "value": "Textured abstract style",
+ "label": "Neon drip",
+ "sets": [
+ {
+ "node": "30:15",
+ "field": "lora_name",
+ "value": "krea2_neondrip.safetensors"
+ }
+ ]
+ },
+ {
+ "value": "rainy window style",
+ "label": "Rainy window",
+ "sets": [
+ {
+ "node": "30:15",
+ "field": "lora_name",
+ "value": "krea2_rainywindow.safetensors"
+ }
+ ]
+ },
+ {
+ "value": "Purple retro anime style",
+ "label": "Retro anime",
+ "sets": [
+ {
+ "node": "30:15",
+ "field": "lora_name",
+ "value": "krea2_retroanime.safetensors"
+ }
+ ]
+ },
+ {
+ "value": "ethereal motion blur style",
+ "label": "Sunset blur",
+ "sets": [
+ {
+ "node": "30:15",
+ "field": "lora_name",
+ "value": "krea2_sunsetblur.safetensors"
+ }
+ ]
+ },
+ {
+ "value": "vintage tarot style",
+ "label": "Vintage tarot",
+ "sets": [
+ {
+ "node": "30:15",
+ "field": "lora_name",
+ "value": "krea2_vintagetarot.safetensors"
+ }
+ ]
+ }
+ ],
+ "bind": [
+ {
+ "node": "30:27",
+ "field": "string_b"
+ }
+ ]
+ },
+ {
+ "id": "strength",
+ "type": "slider",
+ "label": "Style strength",
+ "min": 0.3,
+ "max": 1.2,
+ "step": 0.05,
+ "default": 0.8,
+ "bind": [
+ {
+ "node": "30:15",
+ "field": "strength_model"
+ }
+ ]
+ },
+ {
+ "id": "enhance",
+ "type": "toggle",
+ "label": "Enhance prompt",
+ "default": true,
+ "help": "Rewrites your prompt with the Qwen3-VL text encoder first",
+ "bind": [
+ {
+ "node": "30:24",
+ "field": "value"
+ }
+ ]
+ },
+ {
+ "id": "aspect",
+ "type": "select",
+ "label": "Aspect ratio",
+ "default": "1:1 (Square)",
+ "options": [
+ {
+ "value": "1:1 (Square)",
+ "label": "1:1 (Square)"
+ },
+ {
+ "value": "2:3 (Portrait Photo)",
+ "label": "2:3 (Portrait Photo)"
+ },
+ {
+ "value": "3:2 (Photo)",
+ "label": "3:2 (Photo)"
+ },
+ {
+ "value": "3:4 (Portrait Standard)",
+ "label": "3:4 (Portrait Standard)"
+ },
+ {
+ "value": "4:3 (Standard)",
+ "label": "4:3 (Standard)"
+ },
+ {
+ "value": "9:16 (Portrait Widescreen)",
+ "label": "9:16 (Portrait Widescreen)"
+ },
+ {
+ "value": "16:9 (Widescreen)",
+ "label": "16:9 (Widescreen)"
+ },
+ {
+ "value": "21:9 (Ultrawide)",
+ "label": "21:9 (Ultrawide)"
+ }
+ ],
+ "bind": [
+ {
+ "node": "49",
+ "field": "aspect_ratio"
+ }
+ ]
+ },
+ {
+ "id": "megapixels",
+ "type": "slider",
+ "label": "Megapixels",
+ "min": 0.5,
+ "max": 2.0,
+ "step": 0.25,
+ "default": 1.0,
+ "bind": [
+ {
+ "node": "49",
+ "field": "megapixels"
+ }
+ ]
+ },
+ {
+ "id": "seed",
+ "type": "seed",
+ "label": "Seed",
+ "default": -1,
+ "help": "-1 picks a random seed",
+ "bind": [
+ {
+ "node": "30:3",
+ "field": "seed"
+ }
+ ]
+ }
+ ],
+ "outputs": [
+ {
+ "node": "29",
+ "type": "image",
+ "label": "Image"
+ }
+ ],
+ "models": [
+ {
+ "repo": "Comfy-Org/Krea-2",
+ "file": "diffusion_models/krea2_turbo_int8_convrot.safetensors",
+ "dir": "diffusion_models",
+ "gb": 13.49,
+ "phase": "denoise",
+ "license": "Krea 2 Community License"
+ },
+ {
+ "repo": "Comfy-Org/Krea-2",
+ "file": "text_encoders/qwen3vl_4b_fp8_scaled.safetensors",
+ "dir": "text_encoders",
+ "gb": 5.24,
+ "phase": "encode",
+ "license": "Krea 2 Community License"
+ },
+ {
+ "repo": "Comfy-Org/Krea-2",
+ "file": "vae/qwen_image_vae.safetensors",
+ "dir": "vae",
+ "gb": 0.25,
+ "phase": "decode",
+ "license": "Krea 2 Community License"
+ },
+ {
+ "repo": "Comfy-Org/Krea-2",
+ "file": "loras/krea2_softwatercolor.safetensors",
+ "dir": "loras",
+ "gb": 0.47,
+ "phase": "denoise",
+ "license": "Krea 2 Community License"
+ },
+ {
+ "repo": "Comfy-Org/Krea-2",
+ "file": "loras/krea2_darkbrush.safetensors",
+ "dir": "loras",
+ "gb": 0.47,
+ "phase": "denoise",
+ "license": "Krea 2 Community License",
+ "optional": true
+ },
+ {
+ "repo": "Comfy-Org/Krea-2",
+ "file": "loras/krea2_dotmatrix.safetensors",
+ "dir": "loras",
+ "gb": 0.47,
+ "phase": "denoise",
+ "license": "Krea 2 Community License",
+ "optional": true
+ },
+ {
+ "repo": "Comfy-Org/Krea-2",
+ "file": "loras/krea2_kidsdrawing.safetensors",
+ "dir": "loras",
+ "gb": 0.47,
+ "phase": "denoise",
+ "license": "Krea 2 Community License",
+ "optional": true
+ },
+ {
+ "repo": "Comfy-Org/Krea-2",
+ "file": "loras/krea2_neondrip.safetensors",
+ "dir": "loras",
+ "gb": 0.47,
+ "phase": "denoise",
+ "license": "Krea 2 Community License",
+ "optional": true
+ },
+ {
+ "repo": "Comfy-Org/Krea-2",
+ "file": "loras/krea2_rainywindow.safetensors",
+ "dir": "loras",
+ "gb": 0.47,
+ "phase": "denoise",
+ "license": "Krea 2 Community License",
+ "optional": true
+ },
+ {
+ "repo": "Comfy-Org/Krea-2",
+ "file": "loras/krea2_retroanime.safetensors",
+ "dir": "loras",
+ "gb": 0.47,
+ "phase": "denoise",
+ "license": "Krea 2 Community License",
+ "optional": true
+ },
+ {
+ "repo": "Comfy-Org/Krea-2",
+ "file": "loras/krea2_sunsetblur.safetensors",
+ "dir": "loras",
+ "gb": 0.47,
+ "phase": "denoise",
+ "license": "Krea 2 Community License",
+ "optional": true
+ },
+ {
+ "repo": "Comfy-Org/Krea-2",
+ "file": "loras/krea2_vintagetarot.safetensors",
+ "dir": "loras",
+ "gb": 0.47,
+ "phase": "denoise",
+ "license": "Krea 2 Community License",
+ "optional": true
+ }
+ ],
+ "credits": [
+ "Krea 2 Turbo and the style LoRAs by Krea (Krea 2 Community License)",
+ "Workflow: ComfyUI official template"
+ ],
+ "test": {
+ "style": "vintage tarot style"
+ }
+}
diff --git a/apps/styles/workflow.api.json b/apps/styles/workflow.api.json
new file mode 100644
index 0000000..e24e3f0
--- /dev/null
+++ b/apps/styles/workflow.api.json
@@ -0,0 +1,327 @@
+{
+ "29": {
+ "class_type": "SaveImage",
+ "inputs": {
+ "images": [
+ "30:8",
+ 0
+ ],
+ "filename_prefix": "freefield/styles"
+ },
+ "_meta": {
+ "title": "Save Image"
+ }
+ },
+ "30:3": {
+ "class_type": "KSampler",
+ "inputs": {
+ "model": [
+ "30:22",
+ 0
+ ],
+ "positive": [
+ "30:6",
+ 0
+ ],
+ "negative": [
+ "30:13",
+ 0
+ ],
+ "latent_image": [
+ "30:5",
+ 0
+ ],
+ "seed": 45862206397178,
+ "steps": 8,
+ "cfg": 1,
+ "sampler_name": "euler",
+ "scheduler": "simple",
+ "denoise": 1
+ },
+ "_meta": {
+ "title": "KSampler"
+ }
+ },
+ "30:5": {
+ "class_type": "EmptyLatentImage",
+ "inputs": {
+ "width": [
+ "49",
+ 0
+ ],
+ "height": [
+ "49",
+ 1
+ ],
+ "batch_size": 1
+ },
+ "_meta": {
+ "title": "Empty Latent Image"
+ }
+ },
+ "30:6": {
+ "class_type": "CLIPTextEncode",
+ "inputs": {
+ "clip": [
+ "30:11",
+ 0
+ ],
+ "text": [
+ "30:28",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "CLIP Text Encode (Prompt)"
+ }
+ },
+ "30:8": {
+ "class_type": "VAEDecode",
+ "inputs": {
+ "samples": [
+ "30:3",
+ 0
+ ],
+ "vae": [
+ "30:12",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "VAE Decode"
+ }
+ },
+ "30:10": {
+ "class_type": "UNETLoader",
+ "inputs": {
+ "unet_name": "krea2_turbo_int8_convrot.safetensors",
+ "weight_dtype": "default"
+ },
+ "_meta": {
+ "title": "Load Diffusion Model"
+ }
+ },
+ "30:11": {
+ "class_type": "CLIPLoader",
+ "inputs": {
+ "clip_name": "qwen3vl_4b_fp8_scaled.safetensors",
+ "type": "krea2",
+ "device": "default"
+ },
+ "_meta": {
+ "title": "Load CLIP"
+ }
+ },
+ "30:12": {
+ "class_type": "VAELoader",
+ "inputs": {
+ "vae_name": "qwen_image_vae.safetensors"
+ },
+ "_meta": {
+ "title": "Load VAE"
+ }
+ },
+ "30:13": {
+ "class_type": "ConditioningZeroOut",
+ "inputs": {
+ "conditioning": [
+ "30:6",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Conditioning Zero Out"
+ }
+ },
+ "30:15": {
+ "class_type": "LoraLoaderModelOnly",
+ "inputs": {
+ "model": [
+ "30:10",
+ 0
+ ],
+ "lora_name": "krea2_softwatercolor.safetensors",
+ "strength_model": 0.8
+ },
+ "_meta": {
+ "title": "Load LoRA"
+ }
+ },
+ "30:16": {
+ "class_type": "TextGenerate",
+ "inputs": {
+ "clip": [
+ "30:11",
+ 0
+ ],
+ "prompt": [
+ "30:17",
+ 0
+ ],
+ "max_length": 512,
+ "sampling_mode": "on",
+ "sampling_mode.temperature": 0.7,
+ "sampling_mode.top_k": 64,
+ "sampling_mode.top_p": 0.95,
+ "sampling_mode.min_p": 0.05,
+ "sampling_mode.repetition_penalty": 1.05,
+ "sampling_mode.seed": 0,
+ "sampling_mode.presence_penalty": 0,
+ "thinking": false,
+ "use_default_template": true
+ },
+ "_meta": {
+ "title": "Generate Text"
+ }
+ },
+ "30:17": {
+ "class_type": "StringConcatenate",
+ "inputs": {
+ "string_a": [
+ "30:18",
+ 0
+ ],
+ "string_b": [
+ "30:19",
+ 0
+ ],
+ "delimiter": ""
+ },
+ "_meta": {
+ "title": "Concatenate Text"
+ }
+ },
+ "30:18": {
+ "class_type": "PrimitiveStringMultiline",
+ "inputs": {
+ "value": "You are an expert prompt engineer for text-to-image models. Your task is to expand the user's prompt into a highly effective image-generation prompt.\n\nThink step by step about the request before writing the answer:\n- What is the subject and mood?\n- What visual styles, mediums, and lighting options would fit? Consider two or three alternatives and pick the one that best serves the request.\n- What composition, framing, and grounded details will help the text-to-image model?\n\nThen output a single expanded prompt paragraph.\n\nFollow these rules strictly:\n1. **Faithfulness First:** Preserve all original subjects, actions, colors, and spatial relationships. Do not add new objects, props, characters, or animals unless the user clearly implies them.\n2. **Practical T2I Structure:** Write a prompt that a text-to-image model can parse cleanly. Group subjects with their own attributes and actions. Use grounded phrasing for poses, interactions, and spatial layout.\n3. **Style Planning Stays Internal:** Use your internal reasoning to choose style, medium, framing, and lighting. Do not emit planning tags or wrappers in the visible answer body.\n4. **Never Request Rendered Text:** Do not mention, describe, or hint at letters, words, numbers, captions, subtitles, signage, labels, logos, watermarks, typography, or any other graphic text anywhere in the output prompt. Only if the user explicitly writes down words to be rendered, keep exactly those words in quotes and nothing else. In every other case, always end the output prompt with: \"Absolutely no text, no typography, no letters, no words, no numbers, no logos, no watermark, no captions, pure imagery only.\"\n5. **Avoid Over-Specification:** Do not invent highly specific clothing, colors, materials, or scene details unless the input supports it.\n6. **Plain Prose Only:** Write one cohesive paragraph after the thinking block. No bullets, no JSON, no markdown, no asterisks, no headings, no field labels, no meta commentary.\n7. **Respect Existing Detail:** If the user's prompt is already detailed, lightly polish and finalize rather than heavily expanding, and preserve the user's phrasing and direction.\n8. **Respect the Human Form:** Treat depictions of people with dignity. Assume clothing covers genitals and intimate anatomy.\n9. **Preserve User Medium:** When the user explicitly requests a medium (e.g. \"photo of\", \"photograph of\", \"illustration of\", \"painting of\", \"sketch of\", \"3D render of\"), honor it. Do not pivot to a different medium to avoid difficulty, match the user's stated intent.\n10. **Never Echo Instructions:** Output only the final image prompt. Never repeat, quote, summarize, or refer to any part of these instructions, your own reasoning, or the user's original message.\n\nUser's Input:\n"
+ },
+ "_meta": {
+ "title": "Text String (System Prompt)"
+ }
+ },
+ "30:19": {
+ "class_type": "PrimitiveStringMultiline",
+ "inputs": {
+ "value": "Ultra low angle action shot, male soccer player jumping mid-air high kick, clear vivid blue sky background, forced perspective blurry foreground cleat (white & electric yellow), sharp focused upper body, maroon jersey + white shorts, fully outstretched leg striking a standard soccer ball, harsh direct sunlight, heavy dark shadows, stadium poles & treetops at frame bottom, high contrast sports photography, visible coarse film grain, dynamic movement"
+ },
+ "_meta": {
+ "title": "Text String (User Prompt)"
+ }
+ },
+ "30:20": {
+ "class_type": "PreviewAny",
+ "inputs": {
+ "source": [
+ "30:21",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Preview as Text"
+ }
+ },
+ "30:21": {
+ "class_type": "ComfySwitchNode",
+ "inputs": {
+ "on_false": [
+ "30:19",
+ 0
+ ],
+ "on_true": [
+ "30:16",
+ 0
+ ],
+ "switch": [
+ "30:24",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "If/Else Switch"
+ }
+ },
+ "30:22": {
+ "class_type": "ComfySwitchNode",
+ "inputs": {
+ "on_false": [
+ "30:10",
+ 0
+ ],
+ "on_true": [
+ "30:15",
+ 0
+ ],
+ "switch": [
+ "30:23",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Switch (Model)"
+ }
+ },
+ "30:23": {
+ "class_type": "PrimitiveBoolean",
+ "inputs": {
+ "value": true
+ },
+ "_meta": {
+ "title": "Boolean (Enable LoRA?)"
+ }
+ },
+ "30:24": {
+ "class_type": "PrimitiveBoolean",
+ "inputs": {
+ "value": true
+ },
+ "_meta": {
+ "title": "Boolean (Refine Prompt?)"
+ }
+ },
+ "30:27": {
+ "class_type": "StringConcatenate",
+ "inputs": {
+ "string_a": [
+ "30:20",
+ 0
+ ],
+ "string_b": "muted minimalist sketch style",
+ "delimiter": ", "
+ },
+ "_meta": {
+ "title": "Concatenate Text (LoRA Trigger Word)"
+ }
+ },
+ "30:28": {
+ "class_type": "ComfySwitchNode",
+ "inputs": {
+ "on_false": [
+ "30:20",
+ 0
+ ],
+ "on_true": [
+ "30:27",
+ 0
+ ],
+ "switch": [
+ "30:23",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "If/Else Switch"
+ }
+ },
+ "49": {
+ "class_type": "ResolutionSelector",
+ "inputs": {
+ "aspect_ratio": "1:1 (Square)",
+ "megapixels": 1,
+ "multiple": 8
+ },
+ "_meta": {
+ "title": "Resolution Selector"
+ }
+ }
+}
diff --git a/apps/talking/app.json b/apps/talking/app.json
new file mode 100644
index 0000000..b8b8a18
--- /dev/null
+++ b/apps/talking/app.json
@@ -0,0 +1,214 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "talking",
+ "name": "Talking Avatar",
+ "section": "video",
+ "pack": "video-ltx25",
+ "status": "draft",
+ "higgsfield_feature": "Lipsync / Speak",
+ "summary": "A portrait speaks or sings along to your audio, with LTX-2.5 audio-to-video in two stages.",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "ComfyUI-LTXVideo example_workflows/2.5/LTX-2.5_A2V_Two_Stage_Distilled.json (44c8a36)",
+ "comfyui": "0.42.0",
+ "notes": "Gemma API text encoder removed (local encoding only), int8 weights, portrait conditioning always on. Not run yet."
+ },
+ "inputs": [
+ {
+ "id": "portrait",
+ "type": "image",
+ "label": "Portrait",
+ "required": true,
+ "limits": {
+ "max_mb": 20
+ },
+ "bind": [
+ {
+ "node": "2004",
+ "field": "image"
+ }
+ ]
+ },
+ {
+ "id": "audio",
+ "type": "audio",
+ "label": "Voice or song",
+ "required": true,
+ "limits": {
+ "max_mb": 50,
+ "seconds": [
+ 2,
+ 20
+ ]
+ },
+ "bind": [
+ {
+ "node": "5600",
+ "field": "audio"
+ }
+ ]
+ },
+ {
+ "id": "prompt",
+ "type": "textarea",
+ "label": "Describe the performance",
+ "required": true,
+ "default": "She speaks warmly to the camera with natural head movement and expressive eyes, soft studio light",
+ "bind": [
+ {
+ "node": "5508",
+ "field": "value"
+ }
+ ]
+ },
+ {
+ "id": "negative",
+ "type": "textarea",
+ "label": "Must not appear",
+ "default": "blurry, distorted face, warped mouth",
+ "bind": [
+ {
+ "node": "5509",
+ "field": "value"
+ }
+ ]
+ },
+ {
+ "id": "start",
+ "type": "number",
+ "label": "Audio start (seconds)",
+ "min": 0,
+ "max": 600,
+ "default": 0,
+ "bind": [
+ {
+ "node": "5601",
+ "field": "value"
+ }
+ ]
+ },
+ {
+ "id": "duration",
+ "type": "slider",
+ "label": "Seconds",
+ "min": 2,
+ "max": 10,
+ "step": 1,
+ "default": 5,
+ "bind": [
+ {
+ "node": "5512",
+ "field": "value"
+ }
+ ]
+ },
+ {
+ "id": "enhance",
+ "type": "toggle",
+ "label": "Enhance prompt",
+ "default": false,
+ "help": "Rewrites your prompt with a small Gemma 4 model that also looks at the portrait",
+ "bind": [
+ {
+ "node": "5014:5556",
+ "field": "switch"
+ }
+ ]
+ },
+ {
+ "id": "seed",
+ "type": "seed",
+ "label": "Seed",
+ "default": -1,
+ "help": "-1 picks a random seed",
+ "bind": [
+ {
+ "node": "5516:4832",
+ "field": "noise_seed"
+ }
+ ]
+ }
+ ],
+ "outputs": [
+ {
+ "node": "4852",
+ "type": "video",
+ "label": "Video"
+ }
+ ],
+ "models": [
+ {
+ "repo": "Lightricks/LTX-2.5",
+ "file": "diffusion_models/ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors",
+ "dir": "diffusion_models",
+ "gb": 21.5,
+ "phase": "denoise",
+ "gated": true,
+ "license": "LTX-2.x Community License"
+ },
+ {
+ "repo": "Lightricks/LTX-2.5",
+ "file": "text_encoders/gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors",
+ "dir": "text_encoders",
+ "gb": 15.37,
+ "phase": "encode",
+ "gated": true,
+ "license": "LTX-2.x Community License"
+ },
+ {
+ "repo": "Lightricks/LTX-2.5",
+ "file": "vae/ltx-2.5-video-vae-bf16.safetensors",
+ "dir": "vae",
+ "gb": 1.47,
+ "phase": "decode",
+ "gated": true,
+ "license": "LTX-2.x Community License"
+ },
+ {
+ "repo": "Lightricks/LTX-2.5",
+ "file": "vae/ltx-2.5-audio-vae-bf16.safetensors",
+ "dir": "vae",
+ "gb": 0.36,
+ "phase": "decode",
+ "gated": true,
+ "license": "LTX-2.x Community License"
+ },
+ {
+ "repo": "Lightricks/LTX-2.5",
+ "file": "latent_upscale_models/ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors",
+ "dir": "latent_upscale_models",
+ "gb": 1.0,
+ "phase": "aux",
+ "gated": true,
+ "license": "LTX-2.x Community License"
+ },
+ {
+ "repo": "Comfy-Org/gemma-4",
+ "file": "text_encoders/gemma4_e2b_it_int8_convrot.safetensors",
+ "dir": "text_encoders",
+ "gb": 5.2,
+ "phase": "encode",
+ "license": "Apache-2.0",
+ "optional": true
+ },
+ {
+ "repo": "elix3r/LTX-2.3-22b-AV-LoRA-talking-head",
+ "file": "LTX-2.3-22b-AV-LoRA-talking-head-v1.safetensors",
+ "dir": "loras",
+ "gb": 0.43,
+ "phase": "denoise",
+ "license": "OpenRAIL",
+ "optional": true
+ }
+ ],
+ "notes": "Use footage and photos of yourself, fictional characters, or people who agreed to it.",
+ "credits": [
+ "LTX-2.5 by Lightricks",
+ "Workflow adapted from Lightricks' ComfyUI-LTXVideo examples"
+ ],
+ "test": {
+ "portrait": "test/portrait.png",
+ "audio": "test/voice.wav",
+ "duration": 2
+ }
+}
diff --git a/apps/talking/workflow.api.json b/apps/talking/workflow.api.json
new file mode 100644
index 0000000..9279f2f
--- /dev/null
+++ b/apps/talking/workflow.api.json
@@ -0,0 +1,812 @@
+{
+ "2004": {
+ "class_type": "LoadImage",
+ "inputs": {
+ "image": "example.png"
+ },
+ "_meta": {
+ "title": "Load Image"
+ }
+ },
+ "4852": {
+ "class_type": "SaveVideo",
+ "inputs": {
+ "video": [
+ "5518:4849",
+ 0
+ ],
+ "filename_prefix": "freefield/talking",
+ "format": "auto",
+ "format.codec": "auto"
+ },
+ "_meta": {
+ "title": "Save Video"
+ }
+ },
+ "5014:1241": {
+ "class_type": "LTXVConditioning",
+ "inputs": {
+ "positive": [
+ "5014:2483",
+ 0
+ ],
+ "negative": [
+ "5014:2612",
+ 0
+ ],
+ "frame_rate": [
+ "5014:5017",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "LTXVConditioning"
+ }
+ },
+ "5014:2483": {
+ "class_type": "CLIPTextEncode",
+ "inputs": {
+ "clip": [
+ "5575:5574",
+ 0
+ ],
+ "text": [
+ "5014:5556",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "CLIP Text Encode (Positive Prompt)"
+ }
+ },
+ "5014:2612": {
+ "class_type": "CLIPTextEncode",
+ "inputs": {
+ "clip": [
+ "5575:5574",
+ 0
+ ],
+ "text": [
+ "5509",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "CLIP Text Encode (Negative Prompt)"
+ }
+ },
+ "5014:4988": {
+ "class_type": "PrimitiveInt",
+ "inputs": {
+ "value": [
+ "5014:5561",
+ 1
+ ]
+ },
+ "_meta": {
+ "title": "number of frames"
+ }
+ },
+ "5014:4990": {
+ "class_type": "ResizeImageMaskNode",
+ "inputs": {
+ "input": [
+ "2004",
+ 0
+ ],
+ "resize_type": "scale longer dimension",
+ "resize_type.longer_size": 1536,
+ "scale_method": "lanczos"
+ },
+ "_meta": {
+ "title": "Resize Image/Mask"
+ }
+ },
+ "5014:5017": {
+ "class_type": "PrimitiveFloat",
+ "inputs": {
+ "value": [
+ "5511",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "fps"
+ }
+ },
+ "5014:5019": {
+ "class_type": "ComfyNotNode",
+ "inputs": {
+ "value": [
+ "5014:5506",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Not (use image > bypass_i2v)"
+ }
+ },
+ "5014:5506": {
+ "class_type": "PrimitiveBoolean",
+ "inputs": {
+ "value": true
+ },
+ "_meta": {
+ "title": "Boolean"
+ }
+ },
+ "5014:5507": {
+ "class_type": "PrimitiveFloat",
+ "inputs": {
+ "value": [
+ "5512",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Duration in seconds - Float"
+ }
+ },
+ "5014:5546": {
+ "class_type": "TextGenerateLTX2Prompt",
+ "inputs": {
+ "clip": [
+ "5575:5572",
+ 0
+ ],
+ "image": [
+ "5014:4990",
+ 0
+ ],
+ "prompt": [
+ "5508",
+ 0
+ ],
+ "max_length": 600,
+ "sampling_mode": "on",
+ "sampling_mode.temperature": 0.01,
+ "sampling_mode.top_k": 0,
+ "sampling_mode.top_p": 1,
+ "sampling_mode.min_p": 0,
+ "sampling_mode.repetition_penalty": 1.15,
+ "sampling_mode.seed": 0,
+ "sampling_mode.presence_penalty": 0,
+ "thinking": false,
+ "use_default_template": true
+ },
+ "_meta": {
+ "title": "Positive prompt + image enhancer - TextGenerateLTX2Prompt"
+ }
+ },
+ "5014:5549": {
+ "class_type": "TextGenerateLTX2Prompt",
+ "inputs": {
+ "clip": [
+ "5575:5572",
+ 0
+ ],
+ "prompt": [
+ "5508",
+ 0
+ ],
+ "max_length": 600,
+ "sampling_mode": "on",
+ "sampling_mode.temperature": 0.01,
+ "sampling_mode.top_k": 0,
+ "sampling_mode.top_p": 1,
+ "sampling_mode.min_p": 0,
+ "sampling_mode.repetition_penalty": 1.15,
+ "sampling_mode.seed": 0,
+ "sampling_mode.presence_penalty": 0,
+ "thinking": false,
+ "use_default_template": true
+ },
+ "_meta": {
+ "title": "Positive prompt (t2v) enhancer - TextGenerateLTX2Prompt"
+ }
+ },
+ "5014:5555": {
+ "class_type": "ComfySwitchNode",
+ "inputs": {
+ "on_false": [
+ "5014:5549",
+ 0
+ ],
+ "on_true": [
+ "5014:5546",
+ 0
+ ],
+ "switch": [
+ "5014:5506",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "If/Else Switch"
+ }
+ },
+ "5014:5556": {
+ "class_type": "ComfySwitchNode",
+ "inputs": {
+ "on_false": [
+ "5508",
+ 0
+ ],
+ "on_true": [
+ "5014:5555",
+ 0
+ ],
+ "switch": false
+ },
+ "_meta": {
+ "title": "If/Else Switch"
+ }
+ },
+ "5014:5561": {
+ "class_type": "ComfyMathExpression",
+ "inputs": {
+ "values.a": [
+ "5014:5017",
+ 0
+ ],
+ "values.b": [
+ "5014:5507",
+ 0
+ ],
+ "expression": "1 + floor(a*b/8)*8"
+ },
+ "_meta": {
+ "title": "calculate frames count - Math Expression"
+ }
+ },
+ "5508": {
+ "class_type": "PrimitiveStringMultiline",
+ "inputs": {
+ "value": ""
+ },
+ "_meta": {
+ "title": "Prompt (positive)"
+ }
+ },
+ "5509": {
+ "class_type": "PrimitiveStringMultiline",
+ "inputs": {
+ "value": ""
+ },
+ "_meta": {
+ "title": "Prompt (negative)"
+ }
+ },
+ "5511": {
+ "class_type": "PrimitiveFloat",
+ "inputs": {
+ "value": 24
+ },
+ "_meta": {
+ "title": "fps (frames per second)"
+ }
+ },
+ "5512": {
+ "class_type": "PrimitiveFloat",
+ "inputs": {
+ "value": 5
+ },
+ "_meta": {
+ "title": "duration in seconds (video + audio trim)"
+ }
+ },
+ "5514:3059": {
+ "class_type": "EmptyLTXVLatentVideo",
+ "inputs": {
+ "length": [
+ "5014:4988",
+ 0
+ ],
+ "width": 960,
+ "height": 544,
+ "batch_size": 1
+ },
+ "_meta": {
+ "title": "Empty LTXV Latent Video"
+ }
+ },
+ "5514:3159": {
+ "class_type": "LTXVImgToVideoInplace",
+ "inputs": {
+ "vae": [
+ "5575:5571",
+ 0
+ ],
+ "image": [
+ "5514:3336",
+ 0
+ ],
+ "latent": [
+ "5514:3059",
+ 0
+ ],
+ "bypass": [
+ "5014:5019",
+ 0
+ ],
+ "strength": 0.7
+ },
+ "_meta": {
+ "title": "LTXVImgToVideoInplace"
+ }
+ },
+ "5514:3336": {
+ "class_type": "LTXVPreprocess",
+ "inputs": {
+ "image": [
+ "5014:4990",
+ 0
+ ],
+ "img_compression": 18
+ },
+ "_meta": {
+ "title": "LTXV Preprocess"
+ }
+ },
+ "5514:4528": {
+ "class_type": "LTXVConcatAVLatent",
+ "inputs": {
+ "video_latent": [
+ "5514:3159",
+ 0
+ ],
+ "audio_latent": [
+ "5514:6004",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Concat AV Latent"
+ }
+ },
+ "5514:6001": {
+ "class_type": "TrimAudioDuration",
+ "inputs": {
+ "audio": [
+ "5600",
+ 0
+ ],
+ "start_index": [
+ "5601",
+ 0
+ ],
+ "duration": [
+ "5512",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Trim Audio Duration"
+ }
+ },
+ "5514:6002": {
+ "class_type": "LTXVAudioVAEEncode",
+ "inputs": {
+ "audio": [
+ "5514:6001",
+ 0
+ ],
+ "audio_vae": [
+ "5575:5570",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "LTXV Audio VAE Encode"
+ }
+ },
+ "5514:6003": {
+ "class_type": "SolidMask",
+ "inputs": {
+ "value": 0,
+ "width": 1024,
+ "height": 1024
+ },
+ "_meta": {
+ "title": "Create Solid Mask"
+ }
+ },
+ "5514:6004": {
+ "class_type": "SetLatentNoiseMask",
+ "inputs": {
+ "samples": [
+ "5514:6002",
+ 0
+ ],
+ "mask": [
+ "5514:6003",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Freeze audio (no noise)"
+ }
+ },
+ "5516:4828": {
+ "class_type": "CFGGuider",
+ "inputs": {
+ "model": [
+ "5575:5569",
+ 0
+ ],
+ "positive": [
+ "5014:1241",
+ 0
+ ],
+ "negative": [
+ "5014:1241",
+ 1
+ ],
+ "cfg": 1
+ },
+ "_meta": {
+ "title": "CFG Guider"
+ }
+ },
+ "5516:4829": {
+ "class_type": "SamplerCustomAdvanced",
+ "inputs": {
+ "noise": [
+ "5516:4832",
+ 0
+ ],
+ "guider": [
+ "5516:4828",
+ 0
+ ],
+ "sampler": [
+ "5516:4831",
+ 0
+ ],
+ "sigmas": [
+ "5516:4984",
+ 0
+ ],
+ "latent_image": [
+ "5514:4528",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "SamplerCustomAdvanced"
+ }
+ },
+ "5516:4831": {
+ "class_type": "KSamplerSelect",
+ "inputs": {
+ "sampler_name": "euler_ancestral"
+ },
+ "_meta": {
+ "title": "KSamplerSelect"
+ }
+ },
+ "5516:4832": {
+ "class_type": "RandomNoise",
+ "inputs": {
+ "noise_seed": 43
+ },
+ "_meta": {
+ "title": "RandomNoise"
+ }
+ },
+ "5516:4845": {
+ "class_type": "LTXVSeparateAVLatent",
+ "inputs": {
+ "av_latent": [
+ "5516:4829",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Separate AV Latent"
+ }
+ },
+ "5516:4984": {
+ "class_type": "ManualSigmas",
+ "inputs": {
+ "sigmas": "1.0, 0.99375, 0.9875, 0.98125, 0.975, 0.909375, 0.725, 0.421875, 0.0"
+ },
+ "_meta": {
+ "title": "ManualSigmas"
+ }
+ },
+ "5517:4964": {
+ "class_type": "CFGGuider",
+ "inputs": {
+ "model": [
+ "5575:5569",
+ 0
+ ],
+ "positive": [
+ "5014:1241",
+ 0
+ ],
+ "negative": [
+ "5014:1241",
+ 1
+ ],
+ "cfg": 1
+ },
+ "_meta": {
+ "title": "CFG Guider"
+ }
+ },
+ "5517:4967": {
+ "class_type": "RandomNoise",
+ "inputs": {
+ "noise_seed": 42
+ },
+ "_meta": {
+ "title": "RandomNoise"
+ }
+ },
+ "5517:4969": {
+ "class_type": "LTXVConcatAVLatent",
+ "inputs": {
+ "video_latent": [
+ "5517:4970",
+ 0
+ ],
+ "audio_latent": [
+ "5517:6006",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Concat AV Latent"
+ }
+ },
+ "5517:4970": {
+ "class_type": "LTXVImgToVideoInplace",
+ "inputs": {
+ "vae": [
+ "5575:5571",
+ 0
+ ],
+ "image": [
+ "5014:4990",
+ 0
+ ],
+ "latent": [
+ "5517:4975",
+ 0
+ ],
+ "bypass": [
+ "5014:5019",
+ 0
+ ],
+ "strength": 1
+ },
+ "_meta": {
+ "title": "LTXVImgToVideoInplace"
+ }
+ },
+ "5517:4971": {
+ "class_type": "SamplerCustomAdvanced",
+ "inputs": {
+ "noise": [
+ "5517:4967",
+ 0
+ ],
+ "guider": [
+ "5517:4964",
+ 0
+ ],
+ "sampler": [
+ "5517:4976",
+ 0
+ ],
+ "sigmas": [
+ "5517:4985",
+ 0
+ ],
+ "latent_image": [
+ "5517:4969",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "SamplerCustomAdvanced"
+ }
+ },
+ "5517:4973": {
+ "class_type": "LTXVSeparateAVLatent",
+ "inputs": {
+ "av_latent": [
+ "5517:4971",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Separate AV Latent"
+ }
+ },
+ "5517:4975": {
+ "class_type": "LTXVLatentUpsampler",
+ "inputs": {
+ "samples": [
+ "5516:4845",
+ 0
+ ],
+ "upscale_model": [
+ "5575:5577",
+ 0
+ ],
+ "vae": [
+ "5575:5571",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "LTXVLatentUpsampler"
+ }
+ },
+ "5517:4976": {
+ "class_type": "KSamplerSelect",
+ "inputs": {
+ "sampler_name": "euler_ancestral"
+ },
+ "_meta": {
+ "title": "KSamplerSelect"
+ }
+ },
+ "5517:4985": {
+ "class_type": "ManualSigmas",
+ "inputs": {
+ "sigmas": "0.909375, 0.725, 0.421875, 0.0"
+ },
+ "_meta": {
+ "title": "ManualSigmas"
+ }
+ },
+ "5517:6005": {
+ "class_type": "SolidMask",
+ "inputs": {
+ "value": 0,
+ "width": 1024,
+ "height": 1024
+ },
+ "_meta": {
+ "title": "Create Solid Mask"
+ }
+ },
+ "5517:6006": {
+ "class_type": "SetLatentNoiseMask",
+ "inputs": {
+ "samples": [
+ "5514:6004",
+ 0
+ ],
+ "mask": [
+ "5517:6005",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Freeze audio (no noise)"
+ }
+ },
+ "5518:4849": {
+ "class_type": "CreateVideo",
+ "inputs": {
+ "images": [
+ "5518:5538",
+ 0
+ ],
+ "audio": [
+ "5514:6001",
+ 0
+ ],
+ "fps": [
+ "5014:5017",
+ 0
+ ],
+ "bit_depth": 8
+ },
+ "_meta": {
+ "title": "Create Video"
+ }
+ },
+ "5518:5538": {
+ "class_type": "VAEDecodeTiled",
+ "inputs": {
+ "samples": [
+ "5517:4973",
+ 0
+ ],
+ "vae": [
+ "5575:5571",
+ 0
+ ],
+ "tile_size": 512,
+ "overlap": 64,
+ "temporal_size": 64,
+ "temporal_overlap": 8
+ },
+ "_meta": {
+ "title": "VAE Decode (Tiled)"
+ }
+ },
+ "5575:5569": {
+ "class_type": "UNETLoader",
+ "inputs": {
+ "unet_name": "ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors",
+ "weight_dtype": "default"
+ },
+ "_meta": {
+ "title": "Load Diffusion Model"
+ }
+ },
+ "5575:5570": {
+ "class_type": "VAELoader",
+ "inputs": {
+ "vae_name": "ltx-2.5-audio-vae-bf16.safetensors"
+ },
+ "_meta": {
+ "title": "Load VAE - Audio"
+ }
+ },
+ "5575:5571": {
+ "class_type": "VAELoader",
+ "inputs": {
+ "vae_name": "ltx-2.5-video-vae-bf16.safetensors"
+ },
+ "_meta": {
+ "title": "Load VAE - Video"
+ }
+ },
+ "5575:5572": {
+ "class_type": "CLIPLoader",
+ "inputs": {
+ "clip_name": "gemma4_e2b_it_int8_convrot.safetensors",
+ "type": "ltxv",
+ "device": "default"
+ },
+ "_meta": {
+ "title": "Load CLIP - Text Enhancer"
+ }
+ },
+ "5575:5574": {
+ "class_type": "CLIPLoader",
+ "inputs": {
+ "clip_name": "gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors",
+ "type": "ltxv",
+ "device": "default"
+ },
+ "_meta": {
+ "title": "Load CLIP - Text Encoder"
+ }
+ },
+ "5575:5577": {
+ "class_type": "LatentUpscaleModelLoader",
+ "inputs": {
+ "model_name": "ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors"
+ },
+ "_meta": {
+ "title": "Load Latent Upscale Model"
+ }
+ },
+ "5600": {
+ "class_type": "LoadAudio",
+ "inputs": {
+ "audio": ""
+ },
+ "_meta": {
+ "title": "Audio input"
+ }
+ },
+ "5601": {
+ "class_type": "PrimitiveFloat",
+ "inputs": {
+ "value": 0
+ },
+ "_meta": {
+ "title": "audio start (seconds)"
+ }
+ }
+}
diff --git a/apps/transitions/app.json b/apps/transitions/app.json
new file mode 100644
index 0000000..9d49cca
--- /dev/null
+++ b/apps/transitions/app.json
@@ -0,0 +1,175 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "transitions",
+ "name": "Transitions",
+ "section": "video",
+ "pack": "video-ltx25",
+ "status": "draft",
+ "higgsfield_feature": "Effects / Transitions",
+ "summary": "Morphs a first frame into a last frame with a transition LoRA on LTX-2.5.",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "video_ltx2_5_flf2v.json",
+ "comfyui": "0.42.0",
+ "notes": "LoRA inserted after the diffusion model. Trained on LTX-2.3; Lightricks says most 2.3 LoRAs run on 2.5. Not run yet."
+ },
+ "inputs": [
+ {
+ "id": "first",
+ "type": "image",
+ "label": "First frame",
+ "required": true,
+ "limits": {
+ "max_mb": 20
+ },
+ "bind": [
+ {
+ "node": "31",
+ "field": "image"
+ }
+ ]
+ },
+ {
+ "id": "last",
+ "type": "image",
+ "label": "Last frame",
+ "required": true,
+ "limits": {
+ "max_mb": 20
+ },
+ "bind": [
+ {
+ "node": "39",
+ "field": "image"
+ }
+ ]
+ },
+ {
+ "id": "prompt",
+ "type": "textarea",
+ "label": "Prompt",
+ "default": "a smooth magical transition, particles swirl and reform",
+ "bind": [
+ {
+ "node": "251:252",
+ "field": "value"
+ }
+ ]
+ },
+ {
+ "id": "strength",
+ "type": "slider",
+ "label": "Effect strength",
+ "min": 0,
+ "max": 1.5,
+ "step": 0.05,
+ "default": 1.0,
+ "bind": [
+ {
+ "node": "ff_lora",
+ "field": "strength_model"
+ }
+ ]
+ },
+ {
+ "id": "duration",
+ "type": "slider",
+ "label": "Seconds",
+ "min": 2,
+ "max": 8,
+ "step": 1,
+ "default": 5,
+ "bind": [
+ {
+ "node": "251:198",
+ "field": "value"
+ }
+ ]
+ },
+ {
+ "id": "seed",
+ "type": "seed",
+ "label": "Seed",
+ "default": -1,
+ "help": "-1 picks a random seed",
+ "bind": [
+ {
+ "node": "251:196",
+ "field": "noise_seed"
+ }
+ ]
+ }
+ ],
+ "outputs": [
+ {
+ "node": "68",
+ "type": "video",
+ "label": "Video"
+ }
+ ],
+ "models": [
+ {
+ "repo": "Lightricks/LTX-2.5",
+ "file": "diffusion_models/ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors",
+ "dir": "diffusion_models",
+ "gb": 21.5,
+ "phase": "denoise",
+ "gated": true,
+ "license": "LTX-2.x Community License"
+ },
+ {
+ "repo": "Lightricks/LTX-2.5",
+ "file": "text_encoders/gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors",
+ "dir": "text_encoders",
+ "gb": 15.37,
+ "phase": "encode",
+ "gated": true,
+ "license": "LTX-2.x Community License"
+ },
+ {
+ "repo": "Lightricks/LTX-2.5",
+ "file": "vae/ltx-2.5-video-vae-bf16.safetensors",
+ "dir": "vae",
+ "gb": 1.47,
+ "phase": "decode",
+ "gated": true,
+ "license": "LTX-2.x Community License"
+ },
+ {
+ "repo": "Lightricks/LTX-2.5",
+ "file": "vae/ltx-2.5-audio-vae-bf16.safetensors",
+ "dir": "vae",
+ "gb": 0.36,
+ "phase": "decode",
+ "gated": true,
+ "license": "LTX-2.x Community License"
+ },
+ {
+ "repo": "Comfy-Org/gemma-4",
+ "file": "text_encoders/gemma4_e2b_it_int8_convrot.safetensors",
+ "dir": "text_encoders",
+ "gb": 5.2,
+ "phase": "encode",
+ "license": "Apache-2.0",
+ "optional": true
+ },
+ {
+ "repo": "joyfox/LTX-2.3-Transition-LORA",
+ "file": "ltx2.3-transition.safetensors",
+ "dir": "loras",
+ "gb": 0.39,
+ "phase": "denoise",
+ "license": "Apache-2.0"
+ }
+ ],
+ "credits": [
+ "LTX-2.5 by Lightricks",
+ "Workflow adapted from ComfyUI's official LTX-2.5 template",
+ "Transition LoRA by joyfox (Apache-2.0)"
+ ],
+ "test": {
+ "first": "test/portrait.png",
+ "last": "test/portrait.png",
+ "duration": 2
+ }
+}
diff --git a/apps/transitions/workflow.api.json b/apps/transitions/workflow.api.json
new file mode 100644
index 0000000..d0d082a
--- /dev/null
+++ b/apps/transitions/workflow.api.json
@@ -0,0 +1,652 @@
+{
+ "31": {
+ "class_type": "LoadImage",
+ "inputs": {
+ "image": "robot_hand.png"
+ },
+ "_meta": {
+ "title": "Load First Frame"
+ }
+ },
+ "39": {
+ "class_type": "LoadImage",
+ "inputs": {
+ "image": "robot_hand_energy.png"
+ },
+ "_meta": {
+ "title": "Load Last Frame"
+ }
+ },
+ "68": {
+ "class_type": "SaveVideo",
+ "inputs": {
+ "video": [
+ "251:218",
+ 0
+ ],
+ "filename_prefix": "freefield/transitions",
+ "format": "auto",
+ "format.codec": "auto"
+ },
+ "_meta": {
+ "title": "Save Video"
+ }
+ },
+ "251:195": {
+ "class_type": "LTXVPreprocess",
+ "inputs": {
+ "image": [
+ "251:214",
+ 0
+ ],
+ "img_compression": 18
+ },
+ "_meta": {
+ "title": "LTXV Preprocess"
+ }
+ },
+ "251:196": {
+ "class_type": "RandomNoise",
+ "inputs": {
+ "noise_seed": 358144640282042
+ },
+ "_meta": {
+ "title": "RandomNoise"
+ }
+ },
+ "251:197": {
+ "class_type": "LTXVEmptyLatentAudio",
+ "inputs": {
+ "audio_vae": [
+ "251:227",
+ 0
+ ],
+ "frames_number": [
+ "251:226",
+ 1
+ ],
+ "frame_rate": [
+ "251:205",
+ 0
+ ],
+ "batch_size": 1
+ },
+ "_meta": {
+ "title": "Empty LTXV Latent Audio"
+ }
+ },
+ "251:198": {
+ "class_type": "PrimitiveInt",
+ "inputs": {
+ "value": 5
+ },
+ "_meta": {
+ "title": "Duration"
+ }
+ },
+ "251:199": {
+ "class_type": "LTXVPreprocess",
+ "inputs": {
+ "image": [
+ "251:213",
+ 0
+ ],
+ "img_compression": 18
+ },
+ "_meta": {
+ "title": "LTXV Preprocess"
+ }
+ },
+ "251:200": {
+ "class_type": "LTXVCropGuides",
+ "inputs": {
+ "positive": [
+ "251:204",
+ 0
+ ],
+ "negative": [
+ "251:204",
+ 1
+ ],
+ "latent": [
+ "251:221",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "LTXVCropGuides"
+ }
+ },
+ "251:201": {
+ "class_type": "EmptyLTXVLatentVideo",
+ "inputs": {
+ "width": [
+ "251:203",
+ 0
+ ],
+ "height": [
+ "251:203",
+ 1
+ ],
+ "length": [
+ "251:226",
+ 1
+ ],
+ "batch_size": 1
+ },
+ "_meta": {
+ "title": "Empty LTXV Latent Video"
+ }
+ },
+ "251:202": {
+ "class_type": "LTXVConditioning",
+ "inputs": {
+ "positive": [
+ "251:222",
+ 0
+ ],
+ "negative": [
+ "251:217",
+ 0
+ ],
+ "frame_rate": [
+ "251:212",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "LTXVConditioning"
+ }
+ },
+ "251:203": {
+ "class_type": "GetImageSize",
+ "inputs": {
+ "image": [
+ "251:213",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Get Image Size"
+ }
+ },
+ "251:204": {
+ "class_type": "LTXVAddGuide",
+ "inputs": {
+ "positive": [
+ "251:206",
+ 0
+ ],
+ "negative": [
+ "251:206",
+ 1
+ ],
+ "vae": [
+ "251:229",
+ 0
+ ],
+ "latent": [
+ "251:206",
+ 2
+ ],
+ "image": [
+ "251:195",
+ 0
+ ],
+ "frame_idx": -1,
+ "strength": 0.7
+ },
+ "_meta": {
+ "title": "LTXVAddGuide"
+ }
+ },
+ "251:205": {
+ "class_type": "PrimitiveInt",
+ "inputs": {
+ "value": 24
+ },
+ "_meta": {
+ "title": "Frame Rate(int)"
+ }
+ },
+ "251:206": {
+ "class_type": "LTXVAddGuide",
+ "inputs": {
+ "positive": [
+ "251:202",
+ 0
+ ],
+ "negative": [
+ "251:202",
+ 1
+ ],
+ "vae": [
+ "251:229",
+ 0
+ ],
+ "latent": [
+ "251:201",
+ 0
+ ],
+ "image": [
+ "251:199",
+ 0
+ ],
+ "frame_idx": 0,
+ "strength": 0.7
+ },
+ "_meta": {
+ "title": "LTXVAddGuide"
+ }
+ },
+ "251:208": {
+ "class_type": "SamplerEulerAncestral",
+ "inputs": {
+ "eta": 0,
+ "s_noise": 1
+ },
+ "_meta": {
+ "title": "SamplerEulerAncestral"
+ }
+ },
+ "251:210": {
+ "class_type": "LTXVConcatAVLatent",
+ "inputs": {
+ "video_latent": [
+ "251:204",
+ 2
+ ],
+ "audio_latent": [
+ "251:197",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Concat AV Latent"
+ }
+ },
+ "251:211": {
+ "class_type": "SamplerCustomAdvanced",
+ "inputs": {
+ "noise": [
+ "251:196",
+ 0
+ ],
+ "guider": [
+ "251:235",
+ 0
+ ],
+ "sampler": [
+ "251:208",
+ 0
+ ],
+ "sigmas": [
+ "251:239",
+ 0
+ ],
+ "latent_image": [
+ "251:210",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "SamplerCustomAdvanced"
+ }
+ },
+ "251:212": {
+ "class_type": "ComfyMathExpression",
+ "inputs": {
+ "values.a": [
+ "251:205",
+ 0
+ ],
+ "expression": "a"
+ },
+ "_meta": {
+ "title": "Math Expression"
+ }
+ },
+ "251:213": {
+ "class_type": "ResizeImageMaskNode",
+ "inputs": {
+ "input": [
+ "31",
+ 0
+ ],
+ "resize_type.width": [
+ "251:215",
+ 0
+ ],
+ "resize_type.height": [
+ "251:216",
+ 0
+ ],
+ "resize_type": "scale dimensions",
+ "resize_type.crop": "center",
+ "scale_method": "nearest-exact"
+ },
+ "_meta": {
+ "title": "Resize Image/Mask"
+ }
+ },
+ "251:214": {
+ "class_type": "ResizeImageMaskNode",
+ "inputs": {
+ "input": [
+ "39",
+ 0
+ ],
+ "resize_type.width": [
+ "251:215",
+ 0
+ ],
+ "resize_type.height": [
+ "251:216",
+ 0
+ ],
+ "resize_type": "scale dimensions",
+ "resize_type.crop": "center",
+ "scale_method": "nearest-exact"
+ },
+ "_meta": {
+ "title": "Resize Image/Mask"
+ }
+ },
+ "251:215": {
+ "class_type": "PrimitiveInt",
+ "inputs": {
+ "value": 1280
+ },
+ "_meta": {
+ "title": "Width"
+ }
+ },
+ "251:216": {
+ "class_type": "PrimitiveInt",
+ "inputs": {
+ "value": 720
+ },
+ "_meta": {
+ "title": "height"
+ }
+ },
+ "251:217": {
+ "class_type": "CLIPTextEncode",
+ "inputs": {
+ "clip": [
+ "251:228",
+ 0
+ ],
+ "text": "blurry, out of focus, overexposed, underexposed, low contrast, washed out colors, excessive noise, grainy texture, poor lighting, flickering, motion blur, distorted proportions, unnatural skin tones, deformed facial features, asymmetrical face, missing facial features, extra limbs, disfigured hands, wrong hand count, artifacts around text, unreadable text on shirt or hat, incorrect lettering on cap (“PNTR”), incorrect t-shirt slogan (“JUST DO IT”), missing microphone, misplaced microphone, inconsistent perspective, camera shake, incorrect depth of field, background too sharp, background clutter, distracting reflections, harsh shadows, inconsistent lighting direction, color banding, cartoonish rendering, 3D CGI look, unrealistic materials, uncanny valley effect, incorrect ethnicity, wrong gender, exaggerated expressions, smiling, laughing, exaggerated sadness, wrong gaze direction, eyes looking at camera, mismatched lip sync, silent or muted audio, distorted voice, robotic voice, echo, background noise, off-sync audio, missing sniff sounds, incorrect dialogue, added dialogue, repetitive speech, jittery movement, awkward pauses, incorrect timing, unnatural transitions, inconsistent framing, tilted camera, missing door or shelves, missing shallow depth of field, flat lighting, inconsistent tone, cinematic oversaturation, stylized filters, or AI artifacts."
+ },
+ "_meta": {
+ "title": "CLIP Text Encode (Prompt)"
+ }
+ },
+ "251:218": {
+ "class_type": "CreateVideo",
+ "inputs": {
+ "images": [
+ "251:219",
+ 0
+ ],
+ "audio": [
+ "251:220",
+ 0
+ ],
+ "fps": [
+ "251:212",
+ 0
+ ],
+ "bit_depth": 8
+ },
+ "_meta": {
+ "title": "Create Video"
+ }
+ },
+ "251:219": {
+ "class_type": "VAEDecodeTiled",
+ "inputs": {
+ "samples": [
+ "251:200",
+ 2
+ ],
+ "vae": [
+ "251:229",
+ 0
+ ],
+ "tile_size": 512,
+ "overlap": 64,
+ "temporal_size": 64,
+ "temporal_overlap": 16
+ },
+ "_meta": {
+ "title": "VAE Decode (Tiled)"
+ }
+ },
+ "251:220": {
+ "class_type": "LTXVAudioVAEDecode",
+ "inputs": {
+ "samples": [
+ "251:221",
+ 1
+ ],
+ "audio_vae": [
+ "251:227",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "LTXV Audio VAE Decode"
+ }
+ },
+ "251:221": {
+ "class_type": "LTXVSeparateAVLatent",
+ "inputs": {
+ "av_latent": [
+ "251:211",
+ 1
+ ]
+ },
+ "_meta": {
+ "title": "Separate AV Latent"
+ }
+ },
+ "251:222": {
+ "class_type": "CLIPTextEncode",
+ "inputs": {
+ "clip": [
+ "251:228",
+ 0
+ ],
+ "text": [
+ "251:248",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "CLIP Text Encode (Prompt)"
+ }
+ },
+ "251:226": {
+ "class_type": "ComfyMathExpression",
+ "inputs": {
+ "values.a": [
+ "251:198",
+ 0
+ ],
+ "values.b": [
+ "251:205",
+ 0
+ ],
+ "expression": "a * b + 1"
+ },
+ "_meta": {
+ "title": "Math Expression"
+ }
+ },
+ "251:227": {
+ "class_type": "VAELoader",
+ "inputs": {
+ "vae_name": "ltx-2.5-audio-vae-bf16.safetensors"
+ },
+ "_meta": {
+ "title": "Load VAE"
+ }
+ },
+ "251:228": {
+ "class_type": "CLIPLoader",
+ "inputs": {
+ "clip_name": "gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors",
+ "type": "ltxv",
+ "device": "default"
+ },
+ "_meta": {
+ "title": "Load CLIP"
+ }
+ },
+ "251:229": {
+ "class_type": "VAELoader",
+ "inputs": {
+ "vae_name": "ltx-2.5-video-vae-bf16.safetensors"
+ },
+ "_meta": {
+ "title": "Load VAE"
+ }
+ },
+ "251:230": {
+ "class_type": "UNETLoader",
+ "inputs": {
+ "unet_name": "ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors",
+ "weight_dtype": "default"
+ },
+ "_meta": {
+ "title": "Load Diffusion Model"
+ }
+ },
+ "251:235": {
+ "class_type": "LTXVDualCFGGuider",
+ "inputs": {
+ "model": [
+ "ff_lora",
+ 0
+ ],
+ "positive": [
+ "251:204",
+ 0
+ ],
+ "negative": [
+ "251:204",
+ 1
+ ],
+ "video_cfg": 1,
+ "audio_cfg": 1
+ },
+ "_meta": {
+ "title": "LTXV Dual CFG Guider"
+ }
+ },
+ "251:239": {
+ "class_type": "ManualSigmas",
+ "inputs": {
+ "sigmas": "1.0, 0.99375, 0.9875, 0.98125, 0.975, 0.909375, 0.725, 0.421875, 0.0"
+ },
+ "_meta": {
+ "title": "ManualSigmas"
+ }
+ },
+ "251:246": {
+ "class_type": "CLIPLoader",
+ "inputs": {
+ "clip_name": "gemma4_e2b_it_int8_convrot.safetensors",
+ "type": "ltxv",
+ "device": "default"
+ },
+ "_meta": {
+ "title": "Load CLIP"
+ }
+ },
+ "251:247": {
+ "class_type": "TextGenerateLTX2Prompt",
+ "inputs": {
+ "clip": [
+ "251:246",
+ 0
+ ],
+ "image": [
+ "251:199",
+ 0
+ ],
+ "prompt": [
+ "251:252",
+ 0
+ ],
+ "max_length": 600,
+ "sampling_mode": "on",
+ "sampling_mode.temperature": 0.7,
+ "sampling_mode.top_k": 64,
+ "sampling_mode.top_p": 0.95,
+ "sampling_mode.min_p": 0.05,
+ "sampling_mode.repetition_penalty": 1.15,
+ "sampling_mode.seed": 0,
+ "sampling_mode.presence_penalty": 0,
+ "thinking": false,
+ "use_default_template": true
+ },
+ "_meta": {
+ "title": "Generate LTX2 Prompt"
+ }
+ },
+ "251:248": {
+ "class_type": "ComfySwitchNode",
+ "inputs": {
+ "on_false": [
+ "251:252",
+ 0
+ ],
+ "on_true": [
+ "251:247",
+ 0
+ ],
+ "switch": [
+ "251:250",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "If/Else Switch"
+ }
+ },
+ "251:250": {
+ "class_type": "PrimitiveBoolean",
+ "inputs": {
+ "value": true
+ },
+ "_meta": {
+ "title": "Boolean (Enable Prompt Enhance)"
+ }
+ },
+ "251:252": {
+ "class_type": "PrimitiveStringMultiline",
+ "inputs": {
+ "value": ""
+ },
+ "_meta": {
+ "title": "Prompt"
+ }
+ },
+ "ff_lora": {
+ "class_type": "LoraLoaderModelOnly",
+ "inputs": {
+ "model": [
+ "251:230",
+ 0
+ ],
+ "lora_name": "ltx2.3-transition.safetensors",
+ "strength_model": 1.0
+ },
+ "_meta": {
+ "title": "Freefield LoRA"
+ }
+ }
+}
diff --git a/apps/upscale-video/app.json b/apps/upscale-video/app.json
new file mode 100644
index 0000000..dad345a
--- /dev/null
+++ b/apps/upscale-video/app.json
@@ -0,0 +1,80 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "upscale-video",
+ "name": "Upscale Video",
+ "section": "video",
+ "pack": "upscale",
+ "status": "ready",
+ "higgsfield_feature": "Video Upscale",
+ "summary": "SeedVR2 restores and doubles the resolution of a clip.",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "utility_seedvr2_3b_int8_upscale_video.json",
+ "comfyui": "0.42.0"
+ },
+ "inputs": [
+ {
+ "id": "clip",
+ "type": "video",
+ "label": "Clip",
+ "required": true,
+ "limits": {
+ "max_mb": 200,
+ "seconds": [
+ 1,
+ 20
+ ]
+ },
+ "bind": [
+ {
+ "node": "73",
+ "field": "file"
+ }
+ ]
+ },
+ {
+ "id": "seed",
+ "type": "seed",
+ "label": "Seed",
+ "default": -1,
+ "help": "-1 picks a random seed",
+ "bind": [
+ {
+ "node": "66:54",
+ "field": "seed"
+ }
+ ]
+ }
+ ],
+ "outputs": [
+ {
+ "node": "76",
+ "type": "video",
+ "label": "Upscaled"
+ }
+ ],
+ "models": [
+ {
+ "repo": "Comfy-Org/SeedVR2",
+ "file": "diffusion_models/seedvr2_3b_int8_convrot.safetensors",
+ "dir": "diffusion_models",
+ "gb": 3.46,
+ "phase": "denoise",
+ "license": "Apache-2.0"
+ },
+ {
+ "repo": "Comfy-Org/SeedVR2",
+ "file": "vae/seedvr2_ema_vae_fp16.safetensors",
+ "dir": "vae",
+ "gb": 0.5,
+ "phase": "decode",
+ "license": "Apache-2.0"
+ }
+ ],
+ "credits": [
+ "SeedVR2 by ByteDance Seed (Apache-2.0)"
+ ],
+ "test": {
+ "clip": "test/clip.mp4"
+ }
+}
diff --git a/apps/upscale-video/workflow.api.json b/apps/upscale-video/workflow.api.json
new file mode 100644
index 0000000..ffd240c
--- /dev/null
+++ b/apps/upscale-video/workflow.api.json
@@ -0,0 +1,322 @@
+{
+ "66:48": {
+ "class_type": "VAEEncodeTiled",
+ "inputs": {
+ "pixels": [
+ "66:58",
+ 0
+ ],
+ "vae": [
+ "66:51",
+ 0
+ ],
+ "tile_size": 512,
+ "overlap": 128,
+ "temporal_size": 64,
+ "temporal_overlap": 8
+ },
+ "_meta": {
+ "title": "VAE Encode (Tiled)"
+ }
+ },
+ "66:51": {
+ "class_type": "VAELoader",
+ "inputs": {
+ "vae_name": "seedvr2_ema_vae_fp16.safetensors"
+ },
+ "_meta": {
+ "title": "Load VAE"
+ }
+ },
+ "66:52": {
+ "class_type": "UNETLoader",
+ "inputs": {
+ "unet_name": "seedvr2_3b_int8_convrot.safetensors",
+ "weight_dtype": "default"
+ },
+ "_meta": {
+ "title": "Load Diffusion Model"
+ }
+ },
+ "66:54": {
+ "class_type": "KSampler",
+ "inputs": {
+ "model": [
+ "66:52",
+ 0
+ ],
+ "positive": [
+ "66:61",
+ 0
+ ],
+ "negative": [
+ "66:61",
+ 1
+ ],
+ "latent_image": [
+ "66:102",
+ 0
+ ],
+ "seed": 959948902156062,
+ "steps": 1,
+ "cfg": 1,
+ "sampler_name": "euler",
+ "scheduler": "simple",
+ "denoise": 1
+ },
+ "_meta": {
+ "title": "KSampler"
+ }
+ },
+ "66:55": {
+ "class_type": "VAEDecodeTiled",
+ "inputs": {
+ "samples": [
+ "66:103",
+ 0
+ ],
+ "vae": [
+ "66:51",
+ 0
+ ],
+ "tile_size": 512,
+ "overlap": 128,
+ "temporal_size": 64,
+ "temporal_overlap": 8
+ },
+ "_meta": {
+ "title": "VAE Decode (Tiled)"
+ }
+ },
+ "66:57": {
+ "class_type": "ResizeImageMaskNode",
+ "inputs": {
+ "input": [
+ "66:74",
+ 0
+ ],
+ "resize_type": "scale by multiplier",
+ "resize_type.multiplier": 2,
+ "scale_method": "lanczos"
+ },
+ "_meta": {
+ "title": "Resize Image/Mask"
+ }
+ },
+ "66:58": {
+ "class_type": "SeedVR2Preprocess",
+ "inputs": {
+ "resized_images": [
+ "66:57",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Pre-Process SeedVR2 Input"
+ }
+ },
+ "66:59": {
+ "class_type": "SeedVR2PostProcessing",
+ "inputs": {
+ "images": [
+ "66:55",
+ 0
+ ],
+ "original_resized_images": [
+ "66:57",
+ 0
+ ],
+ "color_correction_method": "none"
+ },
+ "_meta": {
+ "title": "Post-Process SeedVR2 Output"
+ }
+ },
+ "66:61": {
+ "class_type": "SeedVR2Conditioning",
+ "inputs": {
+ "model": [
+ "66:52",
+ 0
+ ],
+ "vae_conditioning": [
+ "66:102",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Apply SeedVR2 Conditioning"
+ }
+ },
+ "66:74": {
+ "class_type": "GetVideoComponents",
+ "inputs": {
+ "video": [
+ "66:81",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Get Video Components"
+ }
+ },
+ "66:75": {
+ "class_type": "CreateVideo",
+ "inputs": {
+ "images": [
+ "66:59",
+ 0
+ ],
+ "audio": [
+ "66:74",
+ 1
+ ],
+ "fps": [
+ "66:74",
+ 2
+ ],
+ "bit_depth": [
+ "66:74",
+ 3
+ ]
+ },
+ "_meta": {
+ "title": "Create Video"
+ }
+ },
+ "66:79": {
+ "class_type": "Video Slice",
+ "inputs": {
+ "video": [
+ "73",
+ 0
+ ],
+ "start_time": 0,
+ "duration": 0,
+ "strict_duration": false
+ },
+ "_meta": {
+ "title": "Trim Video"
+ }
+ },
+ "66:81": {
+ "class_type": "ComfySwitchNode",
+ "inputs": {
+ "on_false": [
+ "73",
+ 0
+ ],
+ "on_true": [
+ "66:79",
+ 0
+ ],
+ "switch": false
+ },
+ "_meta": {
+ "title": "If/Else Switch"
+ }
+ },
+ "66:99": {
+ "class_type": "SeedVR2TemporalChunk",
+ "inputs": {
+ "latent": [
+ "66:48",
+ 0
+ ],
+ "temporal_overlap": 0,
+ "chunking_mode": "auto"
+ },
+ "_meta": {
+ "title": "Split SeedVR2 Latent"
+ }
+ },
+ "66:100": {
+ "class_type": "SeedVR2TemporalMerge",
+ "inputs": {
+ "latents": [
+ "66:54",
+ 0
+ ],
+ "temporal_overlap": [
+ "66:99",
+ 1
+ ]
+ },
+ "_meta": {
+ "title": "Merge SeedVR2 Latents"
+ }
+ },
+ "66:102": {
+ "class_type": "ComfySwitchNode",
+ "inputs": {
+ "on_false": [
+ "66:48",
+ 0
+ ],
+ "on_true": [
+ "66:99",
+ 0
+ ],
+ "switch": [
+ "66:105",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "If/Else Switch"
+ }
+ },
+ "66:103": {
+ "class_type": "ComfySwitchNode",
+ "inputs": {
+ "on_false": [
+ "66:54",
+ 0
+ ],
+ "on_true": [
+ "66:100",
+ 0
+ ],
+ "switch": [
+ "66:105",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "If/Else Switch"
+ }
+ },
+ "66:105": {
+ "class_type": "PrimitiveBoolean",
+ "inputs": {
+ "value": false
+ },
+ "_meta": {
+ "title": "Boolean (Split Latent)"
+ }
+ },
+ "73": {
+ "class_type": "LoadVideo",
+ "inputs": {
+ "file": "grainy_perfume_shot_crf32.mp4"
+ },
+ "_meta": {
+ "title": "Load Video"
+ }
+ },
+ "76": {
+ "class_type": "SaveVideo",
+ "inputs": {
+ "video": [
+ "66:75",
+ 0
+ ],
+ "filename_prefix": "freefield/upscale-video",
+ "format": "auto",
+ "format.codec": "auto"
+ },
+ "_meta": {
+ "title": "Save Video"
+ }
+ }
+}
diff --git a/apps/upscale/app.json b/apps/upscale/app.json
new file mode 100644
index 0000000..c0482bd
--- /dev/null
+++ b/apps/upscale/app.json
@@ -0,0 +1,99 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "upscale",
+ "name": "Upscale Image",
+ "section": "image",
+ "pack": "upscale",
+ "status": "ready",
+ "higgsfield_feature": "Image Upscale",
+ "summary": "SeedVR2 restores detail while enlarging 2× or 4×.",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "utility_seedvr2_3b_int8_upscale_image.json",
+ "comfyui": "0.42.0"
+ },
+ "inputs": [
+ {
+ "id": "image",
+ "type": "image",
+ "label": "Image",
+ "required": true,
+ "limits": {
+ "max_mb": 20
+ },
+ "bind": [
+ {
+ "node": "1",
+ "field": "image"
+ }
+ ]
+ },
+ {
+ "id": "scale",
+ "type": "select",
+ "label": "Scale",
+ "default": 2,
+ "options": [
+ {
+ "value": 2,
+ "label": "2×"
+ },
+ {
+ "value": 4,
+ "label": "4×"
+ }
+ ],
+ "bind": [
+ {
+ "node": "66:57",
+ "field": "resize_type.multiplier"
+ }
+ ]
+ },
+ {
+ "id": "seed",
+ "type": "seed",
+ "label": "Seed",
+ "default": -1,
+ "help": "-1 picks a random seed",
+ "bind": [
+ {
+ "node": "66:54",
+ "field": "seed"
+ }
+ ]
+ }
+ ],
+ "outputs": [
+ {
+ "node": "9",
+ "type": "image",
+ "label": "Upscaled"
+ }
+ ],
+ "models": [
+ {
+ "repo": "Comfy-Org/SeedVR2",
+ "file": "diffusion_models/seedvr2_3b_int8_convrot.safetensors",
+ "dir": "diffusion_models",
+ "gb": 3.46,
+ "phase": "denoise",
+ "license": "Apache-2.0"
+ },
+ {
+ "repo": "Comfy-Org/SeedVR2",
+ "file": "vae/seedvr2_ema_vae_fp16.safetensors",
+ "dir": "vae",
+ "gb": 0.5,
+ "phase": "decode",
+ "license": "Apache-2.0"
+ }
+ ],
+ "credits": [
+ "SeedVR2 by ByteDance Seed (Apache-2.0)"
+ ],
+ "test": {
+ "image": "test/portrait.png",
+ "scale": 2
+ }
+}
diff --git a/apps/upscale/workflow.api.json b/apps/upscale/workflow.api.json
new file mode 100644
index 0000000..2e1c92e
--- /dev/null
+++ b/apps/upscale/workflow.api.json
@@ -0,0 +1,189 @@
+{
+ "1": {
+ "class_type": "LoadImage",
+ "inputs": {
+ "image": "watch_macro_shot.png"
+ },
+ "_meta": {
+ "title": "Load Image"
+ }
+ },
+ "9": {
+ "class_type": "SaveImage",
+ "inputs": {
+ "images": [
+ "66:59",
+ 0
+ ],
+ "filename_prefix": "freefield/upscale"
+ },
+ "_meta": {
+ "title": "Save Image"
+ }
+ },
+ "66:48": {
+ "class_type": "VAEEncodeTiled",
+ "inputs": {
+ "pixels": [
+ "66:58",
+ 0
+ ],
+ "vae": [
+ "66:51",
+ 0
+ ],
+ "tile_size": 512,
+ "overlap": 128,
+ "temporal_size": 4096,
+ "temporal_overlap": 8
+ },
+ "_meta": {
+ "title": "VAE Encode (Tiled)"
+ }
+ },
+ "66:50": {
+ "class_type": "JoinImageWithAlpha",
+ "inputs": {
+ "image": [
+ "1",
+ 0
+ ],
+ "alpha": [
+ "1",
+ 1
+ ]
+ },
+ "_meta": {
+ "title": "Join Image with Alpha"
+ }
+ },
+ "66:51": {
+ "class_type": "VAELoader",
+ "inputs": {
+ "vae_name": "seedvr2_ema_vae_fp16.safetensors"
+ },
+ "_meta": {
+ "title": "Load VAE"
+ }
+ },
+ "66:52": {
+ "class_type": "UNETLoader",
+ "inputs": {
+ "unet_name": "seedvr2_3b_int8_convrot.safetensors",
+ "weight_dtype": "default"
+ },
+ "_meta": {
+ "title": "Load Diffusion Model"
+ }
+ },
+ "66:54": {
+ "class_type": "KSampler",
+ "inputs": {
+ "model": [
+ "66:52",
+ 0
+ ],
+ "positive": [
+ "66:61",
+ 0
+ ],
+ "negative": [
+ "66:61",
+ 1
+ ],
+ "latent_image": [
+ "66:48",
+ 0
+ ],
+ "seed": 959948902156062,
+ "steps": 1,
+ "cfg": 1,
+ "sampler_name": "euler",
+ "scheduler": "simple",
+ "denoise": 1
+ },
+ "_meta": {
+ "title": "KSampler"
+ }
+ },
+ "66:55": {
+ "class_type": "VAEDecodeTiled",
+ "inputs": {
+ "samples": [
+ "66:54",
+ 0
+ ],
+ "vae": [
+ "66:51",
+ 0
+ ],
+ "tile_size": 512,
+ "overlap": 128,
+ "temporal_size": 4096,
+ "temporal_overlap": 8
+ },
+ "_meta": {
+ "title": "VAE Decode (Tiled)"
+ }
+ },
+ "66:57": {
+ "class_type": "ResizeImageMaskNode",
+ "inputs": {
+ "input": [
+ "66:50",
+ 0
+ ],
+ "resize_type": "scale by multiplier",
+ "resize_type.multiplier": 4,
+ "scale_method": "lanczos"
+ },
+ "_meta": {
+ "title": "Resize Image/Mask"
+ }
+ },
+ "66:58": {
+ "class_type": "SeedVR2Preprocess",
+ "inputs": {
+ "resized_images": [
+ "66:57",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Pre-Process SeedVR2 Input"
+ }
+ },
+ "66:59": {
+ "class_type": "SeedVR2PostProcessing",
+ "inputs": {
+ "images": [
+ "66:55",
+ 0
+ ],
+ "original_resized_images": [
+ "66:57",
+ 0
+ ],
+ "color_correction_method": "none"
+ },
+ "_meta": {
+ "title": "Post-Process SeedVR2 Output"
+ }
+ },
+ "66:61": {
+ "class_type": "SeedVR2Conditioning",
+ "inputs": {
+ "model": [
+ "66:52",
+ 0
+ ],
+ "vae_conditioning": [
+ "66:48",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Apply SeedVR2 Conditioning"
+ }
+ }
+}
diff --git a/apps/vfx-clean-plate/app.json b/apps/vfx-clean-plate/app.json
new file mode 100644
index 0000000..ad3e46e
--- /dev/null
+++ b/apps/vfx-clean-plate/app.json
@@ -0,0 +1,197 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "vfx-clean-plate",
+ "name": "Clean Plate",
+ "section": "video",
+ "pack": "video-ltx25",
+ "status": "draft",
+ "higgsfield_feature": "VFX: remove people",
+ "summary": "Removes people and moving subjects from a shot and rebuilds the background.",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "ComfyUI-LTXVideo example_workflows/2.5/LTX-2.5_V2V_ICLoRA_Single_Stage_Distilled.json (44c8a36)",
+ "comfyui": "0.42.0",
+ "notes": "Gemma API text encoder removed (local encoding only), int8 weights, first frame taken from the clip. Describe the empty scene, not the removal."
+ },
+ "inputs": [
+ {
+ "id": "clip",
+ "type": "video",
+ "label": "Your clip",
+ "required": true,
+ "limits": {
+ "max_mb": 200,
+ "seconds": [
+ 2,
+ 8
+ ]
+ },
+ "bind": [
+ {
+ "node": "5001",
+ "field": "file"
+ }
+ ]
+ },
+ {
+ "id": "prompt",
+ "type": "textarea",
+ "label": "Describe the result",
+ "required": true,
+ "default": "An empty city street with parked cars and shop fronts, no people anywhere in the frame, natural daylight.",
+ "bind": [
+ {
+ "node": "5508",
+ "field": "value"
+ }
+ ]
+ },
+ {
+ "id": "negative",
+ "type": "textarea",
+ "label": "Must not appear",
+ "default": "people, pedestrians, person, crowd",
+ "bind": [
+ {
+ "node": "5509",
+ "field": "value"
+ }
+ ]
+ },
+ {
+ "id": "strength",
+ "type": "slider",
+ "label": "Strength",
+ "min": 0.5,
+ "max": 1.3,
+ "step": 0.05,
+ "default": 1.0,
+ "bind": [
+ {
+ "node": "5004:5606",
+ "field": "strength_model"
+ }
+ ]
+ },
+ {
+ "id": "size",
+ "type": "select",
+ "label": "Resolution (short side)",
+ "default": 544,
+ "options": [
+ {
+ "value": 448,
+ "label": "448 px"
+ },
+ {
+ "value": 544,
+ "label": "544 px"
+ },
+ {
+ "value": 576,
+ "label": "576 px"
+ },
+ {
+ "value": 720,
+ "label": "720 px"
+ }
+ ],
+ "bind": [
+ {
+ "node": "5548:5026",
+ "field": "resize_type.shorter_size"
+ }
+ ]
+ },
+ {
+ "id": "seed",
+ "type": "seed",
+ "label": "Seed",
+ "default": -1,
+ "help": "-1 picks a random seed",
+ "bind": [
+ {
+ "node": "5516:4832",
+ "field": "noise_seed"
+ }
+ ]
+ }
+ ],
+ "outputs": [
+ {
+ "node": "4852",
+ "type": "video",
+ "label": "Result"
+ }
+ ],
+ "models": [
+ {
+ "repo": "Lightricks/LTX-2.5",
+ "file": "diffusion_models/ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors",
+ "dir": "diffusion_models",
+ "gb": 21.5,
+ "phase": "denoise",
+ "gated": true,
+ "license": "LTX-2.x Community License"
+ },
+ {
+ "repo": "Lightricks/LTX-2.5",
+ "file": "text_encoders/gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors",
+ "dir": "text_encoders",
+ "gb": 15.37,
+ "phase": "encode",
+ "gated": true,
+ "license": "LTX-2.x Community License"
+ },
+ {
+ "repo": "Lightricks/LTX-2.5",
+ "file": "vae/ltx-2.5-video-vae-bf16.safetensors",
+ "dir": "vae",
+ "gb": 1.47,
+ "phase": "decode",
+ "gated": true,
+ "license": "LTX-2.x Community License"
+ },
+ {
+ "repo": "Lightricks/LTX-2.5",
+ "file": "vae/ltx-2.5-audio-vae-bf16.safetensors",
+ "dir": "vae",
+ "gb": 0.36,
+ "phase": "decode",
+ "gated": true,
+ "license": "LTX-2.x Community License"
+ },
+ {
+ "repo": "Comfy-Org/gemma-4",
+ "file": "text_encoders/gemma4_e2b_it_int8_convrot.safetensors",
+ "dir": "text_encoders",
+ "gb": 5.2,
+ "phase": "encode",
+ "license": "Apache-2.0",
+ "optional": true
+ },
+ {
+ "repo": "Lightricks/LTX-2.5-22b-IC-LoRA-Clean-Plate",
+ "file": "ltx-2.5-22b-ic-lora-clean-plate-1.0.safetensors",
+ "dir": "loras",
+ "gb": 0.33,
+ "phase": "denoise",
+ "gated": true,
+ "license": "LTX-2.x Community License"
+ }
+ ],
+ "custom_nodes": [
+ {
+ "repo": "https://github.com/Lightricks/ComfyUI-LTXVideo",
+ "commit": "44c8a36b7c31ee00b4271daed11dc2a4aa481140"
+ }
+ ],
+ "credits": [
+ "LTX-2.5 and IC-LoRA by Lightricks",
+ "Workflow adapted from Lightricks' ComfyUI-LTXVideo examples"
+ ],
+ "test": {
+ "clip": "test/clip.mp4",
+ "size": 448
+ }
+}
diff --git a/apps/vfx-clean-plate/workflow.api.json b/apps/vfx-clean-plate/workflow.api.json
new file mode 100644
index 0000000..3c5895d
--- /dev/null
+++ b/apps/vfx-clean-plate/workflow.api.json
@@ -0,0 +1,720 @@
+{
+ "4852": {
+ "class_type": "SaveVideo",
+ "inputs": {
+ "video": [
+ "5518:4849",
+ 0
+ ],
+ "filename_prefix": "freefield/vfx-clean-plate",
+ "format": "auto",
+ "format.codec": "auto",
+ "codec": "auto"
+ },
+ "_meta": {
+ "title": "Save Video"
+ }
+ },
+ "5001": {
+ "class_type": "LoadVideo",
+ "inputs": {
+ "file": ""
+ },
+ "_meta": {
+ "title": "Load Video"
+ }
+ },
+ "5004:5600": {
+ "class_type": "VAELoader",
+ "inputs": {
+ "vae_name": "ltx-2.5-audio-vae-bf16.safetensors"
+ },
+ "_meta": {
+ "title": "Load VAE - Audio"
+ }
+ },
+ "5004:5601": {
+ "class_type": "VAELoader",
+ "inputs": {
+ "vae_name": "ltx-2.5-video-vae-bf16.safetensors"
+ },
+ "_meta": {
+ "title": "Load VAE - Video"
+ }
+ },
+ "5004:5602": {
+ "class_type": "UNETLoader",
+ "inputs": {
+ "unet_name": "ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors",
+ "weight_dtype": "default"
+ },
+ "_meta": {
+ "title": "Load Diffusion Model"
+ }
+ },
+ "5004:5604": {
+ "class_type": "CLIPLoader",
+ "inputs": {
+ "clip_name": "gemma4_e2b_it_int8_convrot.safetensors",
+ "type": "ltxv",
+ "device": "default"
+ },
+ "_meta": {
+ "title": "Load CLIP - Text Enhancer"
+ }
+ },
+ "5004:5605": {
+ "class_type": "CLIPLoader",
+ "inputs": {
+ "clip_name": "gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors",
+ "type": "ltxv",
+ "device": "default"
+ },
+ "_meta": {
+ "title": "Load CLIP - Text Encoder"
+ }
+ },
+ "5004:5606": {
+ "class_type": "LTXICLoRALoaderModelOnly",
+ "inputs": {
+ "model": [
+ "5004:5602",
+ 0
+ ],
+ "lora_name": "ltx-2.5-22b-ic-lora-clean-plate-1.0.safetensors",
+ "strength_model": 1
+ },
+ "_meta": {
+ "title": "🅛🅣🅧 IC-LoRA Loader Model Only"
+ }
+ },
+ "5014:1241": {
+ "class_type": "LTXVConditioning",
+ "inputs": {
+ "positive": [
+ "5014:2483",
+ 0
+ ],
+ "negative": [
+ "5014:2612",
+ 0
+ ],
+ "frame_rate": [
+ "5548:9006",
+ 2
+ ]
+ },
+ "_meta": {
+ "title": "LTXVConditioning"
+ }
+ },
+ "5014:2483": {
+ "class_type": "CLIPTextEncode",
+ "inputs": {
+ "clip": [
+ "5004:5605",
+ 0
+ ],
+ "text": [
+ "5014:5556",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "CLIP Text Encode (Positive Prompt)"
+ }
+ },
+ "5014:2612": {
+ "class_type": "CLIPTextEncode",
+ "inputs": {
+ "clip": [
+ "5004:5605",
+ 0
+ ],
+ "text": [
+ "5509",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "CLIP Text Encode (Negative Prompt)"
+ }
+ },
+ "5014:4990": {
+ "class_type": "ResizeImageMaskNode",
+ "inputs": {
+ "input": [
+ "ff_first_frame",
+ 0
+ ],
+ "resize_type": "scale longer dimension",
+ "resize_type.longer_size": 1536,
+ "scale_method": "lanczos"
+ },
+ "_meta": {
+ "title": "Resize Image/Mask"
+ }
+ },
+ "5014:5019": {
+ "class_type": "ComfyNotNode",
+ "inputs": {
+ "value": [
+ "5014:5506",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Not (use image > bypass_i2v)"
+ }
+ },
+ "5014:5506": {
+ "class_type": "PrimitiveBoolean",
+ "inputs": {
+ "value": false
+ },
+ "_meta": {
+ "title": "Boolean"
+ }
+ },
+ "5014:5546": {
+ "class_type": "TextGenerateLTX2Prompt",
+ "inputs": {
+ "clip": [
+ "5004:5604",
+ 0
+ ],
+ "image": [
+ "5014:4990",
+ 0
+ ],
+ "prompt": [
+ "5508",
+ 0
+ ],
+ "max_length": 600,
+ "sampling_mode": "on",
+ "sampling_mode.temperature": 0.01,
+ "sampling_mode.top_k": 0,
+ "sampling_mode.top_p": 1,
+ "sampling_mode.min_p": 0,
+ "sampling_mode.repetition_penalty": 1.15,
+ "sampling_mode.seed": 0,
+ "sampling_mode.presence_penalty": 0,
+ "thinking": false,
+ "use_default_template": true,
+ "mtp": "auto"
+ },
+ "_meta": {
+ "title": "Positive prompt + image enhancer - TextGenerateLTX2Prompt"
+ }
+ },
+ "5014:5555": {
+ "class_type": "ComfySwitchNode",
+ "inputs": {
+ "on_false": [
+ "5014:9004",
+ 0
+ ],
+ "on_true": [
+ "5014:5546",
+ 0
+ ],
+ "switch": [
+ "5014:5506",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "If/Else Switch"
+ }
+ },
+ "5014:5556": {
+ "class_type": "ComfySwitchNode",
+ "inputs": {
+ "on_false": [
+ "5508",
+ 0
+ ],
+ "on_true": [
+ "5014:5555",
+ 0
+ ],
+ "switch": false
+ },
+ "_meta": {
+ "title": "If/Else Switch"
+ }
+ },
+ "5014:9004": {
+ "class_type": "TextGenerateLTX2Prompt",
+ "inputs": {
+ "clip": [
+ "5004:5604",
+ 0
+ ],
+ "prompt": [
+ "5508",
+ 0
+ ],
+ "max_length": 600,
+ "sampling_mode": "on",
+ "sampling_mode.temperature": 0.01,
+ "sampling_mode.top_k": 0,
+ "sampling_mode.top_p": 1,
+ "sampling_mode.min_p": 0,
+ "sampling_mode.repetition_penalty": 1.15,
+ "sampling_mode.seed": 0,
+ "sampling_mode.presence_penalty": 0,
+ "thinking": false,
+ "use_default_template": true,
+ "mtp": "auto"
+ },
+ "_meta": {
+ "title": "Positive prompt (t2v) enhancer - TextGenerateLTX2Prompt"
+ }
+ },
+ "5508": {
+ "class_type": "PrimitiveStringMultiline",
+ "inputs": {
+ "value": ""
+ },
+ "_meta": {
+ "title": "Prompt (positive)"
+ }
+ },
+ "5509": {
+ "class_type": "PrimitiveStringMultiline",
+ "inputs": {
+ "value": ""
+ },
+ "_meta": {
+ "title": "Prompt (negative)"
+ }
+ },
+ "5516:4828": {
+ "class_type": "CFGGuider",
+ "inputs": {
+ "model": [
+ "5004:5606",
+ 0
+ ],
+ "positive": [
+ "9002:5012",
+ 0
+ ],
+ "negative": [
+ "9002:5012",
+ 1
+ ],
+ "cfg": 1
+ },
+ "_meta": {
+ "title": "CFG Guider"
+ }
+ },
+ "5516:4829": {
+ "class_type": "SamplerCustomAdvanced",
+ "inputs": {
+ "noise": [
+ "5516:4832",
+ 0
+ ],
+ "guider": [
+ "5516:4828",
+ 0
+ ],
+ "sampler": [
+ "5516:4831",
+ 0
+ ],
+ "sigmas": [
+ "5516:4984",
+ 0
+ ],
+ "latent_image": [
+ "9002:4528",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "SamplerCustomAdvanced"
+ }
+ },
+ "5516:4831": {
+ "class_type": "KSamplerSelect",
+ "inputs": {
+ "sampler_name": "euler_ancestral"
+ },
+ "_meta": {
+ "title": "KSamplerSelect"
+ }
+ },
+ "5516:4832": {
+ "class_type": "RandomNoise",
+ "inputs": {
+ "noise_seed": 42
+ },
+ "_meta": {
+ "title": "RandomNoise"
+ }
+ },
+ "5516:4845": {
+ "class_type": "LTXVSeparateAVLatent",
+ "inputs": {
+ "av_latent": [
+ "5516:4829",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Separate AV Latent"
+ }
+ },
+ "5516:4984": {
+ "class_type": "ManualSigmas",
+ "inputs": {
+ "sigmas": "1.0, 0.99375, 0.9875, 0.98125, 0.975, 0.909375, 0.725, 0.421875, 0.0"
+ },
+ "_meta": {
+ "title": "ManualSigmas"
+ }
+ },
+ "5516:5000": {
+ "class_type": "LTXVCropGuides",
+ "inputs": {
+ "positive": [
+ "9002:5012",
+ 0
+ ],
+ "negative": [
+ "9002:5012",
+ 1
+ ],
+ "latent": [
+ "5516:4845",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "LTXVCropGuides"
+ }
+ },
+ "5518:4848": {
+ "class_type": "LTXVAudioVAEDecode",
+ "inputs": {
+ "samples": [
+ "5516:4845",
+ 1
+ ],
+ "audio_vae": [
+ "5004:5600",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "LTXV Audio VAE Decode"
+ }
+ },
+ "5518:4849": {
+ "class_type": "CreateVideo",
+ "inputs": {
+ "images": [
+ "5518:5538",
+ 0
+ ],
+ "audio": [
+ "5518:4848",
+ 0
+ ],
+ "fps": [
+ "5548:9006",
+ 2
+ ],
+ "bit_depth": 8,
+ "color_space": "sRGB",
+ "codec": "none"
+ },
+ "_meta": {
+ "title": "Create Video"
+ }
+ },
+ "5518:5538": {
+ "class_type": "VAEDecodeTiled",
+ "inputs": {
+ "samples": [
+ "5516:5000",
+ 2
+ ],
+ "vae": [
+ "5004:5601",
+ 0
+ ],
+ "tile_size": 512,
+ "overlap": 64,
+ "temporal_size": 64,
+ "temporal_overlap": 8
+ },
+ "_meta": {
+ "title": "VAE Decode (Tiled)"
+ }
+ },
+ "5548:5026": {
+ "class_type": "ResizeImageMaskNode",
+ "inputs": {
+ "input": [
+ "5548:9006",
+ 0
+ ],
+ "resize_type": "scale shorter dimension",
+ "resize_type.shorter_size": 544,
+ "scale_method": "lanczos"
+ },
+ "_meta": {
+ "title": "Resize Image/Mask"
+ }
+ },
+ "5548:5029": {
+ "class_type": "GetImageSize",
+ "inputs": {
+ "image": [
+ "5548:5026",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Get Image Size"
+ }
+ },
+ "5548:9006": {
+ "class_type": "GetVideoComponents",
+ "inputs": {
+ "video": [
+ "5001",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Get Video Components"
+ }
+ },
+ "5548:9010": {
+ "class_type": "ComfyMathExpression",
+ "inputs": {
+ "values.a": [
+ "5548:5029",
+ 2
+ ],
+ "values.b": [
+ "5548:9006",
+ 2
+ ],
+ "expression": "a / b"
+ },
+ "_meta": {
+ "title": "audio duration = frames / fps"
+ }
+ },
+ "5548:9011": {
+ "class_type": "EmptyAudio",
+ "inputs": {
+ "duration": [
+ "5548:9010",
+ 0
+ ],
+ "sample_rate": 44100,
+ "channels": 2
+ },
+ "_meta": {
+ "title": "silence fallback"
+ }
+ },
+ "5548:9012": {
+ "class_type": "AudioMerge",
+ "inputs": {
+ "audio1": [
+ "5548:9006",
+ 1
+ ],
+ "audio2": [
+ "5548:9011",
+ 0
+ ],
+ "merge_method": "add"
+ },
+ "_meta": {
+ "title": "use source audio, else silence"
+ }
+ },
+ "9002:3059": {
+ "class_type": "EmptyLTXVLatentVideo",
+ "inputs": {
+ "width": [
+ "5548:5029",
+ 0
+ ],
+ "height": [
+ "5548:5029",
+ 1
+ ],
+ "length": [
+ "5548:5029",
+ 2
+ ],
+ "batch_size": 1
+ },
+ "_meta": {
+ "title": "Empty LTXV Latent Video"
+ }
+ },
+ "9002:3159": {
+ "class_type": "LTXVImgToVideoInplace",
+ "inputs": {
+ "vae": [
+ "5004:5601",
+ 0
+ ],
+ "image": [
+ "5014:4990",
+ 0
+ ],
+ "latent": [
+ "9002:3059",
+ 0
+ ],
+ "bypass": [
+ "5014:5019",
+ 0
+ ],
+ "strength": 0.7
+ },
+ "_meta": {
+ "title": "LTXVImgToVideoInplace"
+ }
+ },
+ "9002:4528": {
+ "class_type": "LTXVConcatAVLatent",
+ "inputs": {
+ "video_latent": [
+ "9002:5012",
+ 2
+ ],
+ "audio_latent": [
+ "9002:9008",
+ 2
+ ]
+ },
+ "_meta": {
+ "title": "Concat AV Latent"
+ }
+ },
+ "9002:5012": {
+ "class_type": "LTXAddVideoICLoRAGuide",
+ "inputs": {
+ "positive": [
+ "9002:9005",
+ 0
+ ],
+ "negative": [
+ "9002:9005",
+ 1
+ ],
+ "vae": [
+ "5004:5601",
+ 0
+ ],
+ "latent": [
+ "9002:3159",
+ 0
+ ],
+ "image": [
+ "5548:5026",
+ 0
+ ],
+ "latent_downscale_factor": [
+ "5004:5606",
+ 1
+ ],
+ "frame_idx": 0,
+ "strength": 1,
+ "crop": "disabled",
+ "use_tiled_encode": false,
+ "tile_size": 256,
+ "tile_overlap": 64,
+ "use_streaming": false,
+ "tile_frames": 97
+ },
+ "_meta": {
+ "title": "🅛🅣🅧 Add Video IC-LoRA Guide"
+ }
+ },
+ "9002:9005": {
+ "class_type": "LTXVConditioning",
+ "inputs": {
+ "positive": [
+ "5014:1241",
+ 0
+ ],
+ "negative": [
+ "5014:1241",
+ 1
+ ],
+ "frame_rate": [
+ "5548:9006",
+ 2
+ ]
+ },
+ "_meta": {
+ "title": "LTXVConditioning"
+ }
+ },
+ "9002:9007": {
+ "class_type": "VAEEncodeAudio",
+ "inputs": {
+ "audio": [
+ "5548:9012",
+ 0
+ ],
+ "vae": [
+ "5004:5600",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "VAE Encode Audio"
+ }
+ },
+ "9002:9008": {
+ "class_type": "LTXVSetAudioRefTokens",
+ "inputs": {
+ "positive": [
+ "9002:9005",
+ 0
+ ],
+ "negative": [
+ "9002:9005",
+ 1
+ ],
+ "audio_latent": [
+ "9002:9007",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "freeze the source audio"
+ }
+ },
+ "ff_first_frame": {
+ "class_type": "ImageFromBatch",
+ "inputs": {
+ "image": [
+ "5548:9006",
+ 0
+ ],
+ "batch_index": 0,
+ "length": 1
+ },
+ "_meta": {
+ "title": "First frame of the reference"
+ }
+ }
+}
diff --git a/apps/vfx-day-to-night/app.json b/apps/vfx-day-to-night/app.json
new file mode 100644
index 0000000..aaa79a2
--- /dev/null
+++ b/apps/vfx-day-to-night/app.json
@@ -0,0 +1,197 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "vfx-day-to-night",
+ "name": "Day to Night",
+ "section": "video",
+ "pack": "video-ltx25",
+ "status": "draft",
+ "higgsfield_feature": "VFX: relight",
+ "summary": "Turns a daytime shot into a believable night version of the same shot.",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "ComfyUI-LTXVideo example_workflows/2.5/LTX-2.5_V2V_ICLoRA_Single_Stage_Distilled.json (44c8a36)",
+ "comfyui": "0.42.0",
+ "notes": "Gemma API text encoder removed (local encoding only), int8 weights, first frame taken from the clip. Trained at 768×448, 97 frames, 24 fps."
+ },
+ "inputs": [
+ {
+ "id": "clip",
+ "type": "video",
+ "label": "Your clip",
+ "required": true,
+ "limits": {
+ "max_mb": 200,
+ "seconds": [
+ 2,
+ 8
+ ]
+ },
+ "bind": [
+ {
+ "node": "5001",
+ "field": "file"
+ }
+ ]
+ },
+ {
+ "id": "prompt",
+ "type": "textarea",
+ "label": "Describe the result",
+ "required": true,
+ "default": "A realistic nighttime scene, photorealistic moonlight, deep natural shadows. Only the lighting changes from day to night; identical composition, framing, camera movement and motion.",
+ "bind": [
+ {
+ "node": "5508",
+ "field": "value"
+ }
+ ]
+ },
+ {
+ "id": "negative",
+ "type": "textarea",
+ "label": "Must not appear",
+ "default": "daytime, bright sunlight, blue sky, overexposed, worst quality, inconsistent motion, blurry, jittery, distorted",
+ "bind": [
+ {
+ "node": "5509",
+ "field": "value"
+ }
+ ]
+ },
+ {
+ "id": "strength",
+ "type": "slider",
+ "label": "Strength",
+ "min": 0.5,
+ "max": 1.3,
+ "step": 0.05,
+ "default": 1.0,
+ "bind": [
+ {
+ "node": "5004:5606",
+ "field": "strength_model"
+ }
+ ]
+ },
+ {
+ "id": "size",
+ "type": "select",
+ "label": "Resolution (short side)",
+ "default": 544,
+ "options": [
+ {
+ "value": 448,
+ "label": "448 px"
+ },
+ {
+ "value": 544,
+ "label": "544 px"
+ },
+ {
+ "value": 576,
+ "label": "576 px"
+ },
+ {
+ "value": 720,
+ "label": "720 px"
+ }
+ ],
+ "bind": [
+ {
+ "node": "5548:5026",
+ "field": "resize_type.shorter_size"
+ }
+ ]
+ },
+ {
+ "id": "seed",
+ "type": "seed",
+ "label": "Seed",
+ "default": -1,
+ "help": "-1 picks a random seed",
+ "bind": [
+ {
+ "node": "5516:4832",
+ "field": "noise_seed"
+ }
+ ]
+ }
+ ],
+ "outputs": [
+ {
+ "node": "4852",
+ "type": "video",
+ "label": "Result"
+ }
+ ],
+ "models": [
+ {
+ "repo": "Lightricks/LTX-2.5",
+ "file": "diffusion_models/ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors",
+ "dir": "diffusion_models",
+ "gb": 21.5,
+ "phase": "denoise",
+ "gated": true,
+ "license": "LTX-2.x Community License"
+ },
+ {
+ "repo": "Lightricks/LTX-2.5",
+ "file": "text_encoders/gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors",
+ "dir": "text_encoders",
+ "gb": 15.37,
+ "phase": "encode",
+ "gated": true,
+ "license": "LTX-2.x Community License"
+ },
+ {
+ "repo": "Lightricks/LTX-2.5",
+ "file": "vae/ltx-2.5-video-vae-bf16.safetensors",
+ "dir": "vae",
+ "gb": 1.47,
+ "phase": "decode",
+ "gated": true,
+ "license": "LTX-2.x Community License"
+ },
+ {
+ "repo": "Lightricks/LTX-2.5",
+ "file": "vae/ltx-2.5-audio-vae-bf16.safetensors",
+ "dir": "vae",
+ "gb": 0.36,
+ "phase": "decode",
+ "gated": true,
+ "license": "LTX-2.x Community License"
+ },
+ {
+ "repo": "Comfy-Org/gemma-4",
+ "file": "text_encoders/gemma4_e2b_it_int8_convrot.safetensors",
+ "dir": "text_encoders",
+ "gb": 5.2,
+ "phase": "encode",
+ "license": "Apache-2.0",
+ "optional": true
+ },
+ {
+ "repo": "Lightricks/LTX-2.5-22b-IC-LoRA-Day-To-Night",
+ "file": "ltx-2.5-22b-ic-lora-day-to-night-0.9.safetensors",
+ "dir": "loras",
+ "gb": 0.33,
+ "phase": "denoise",
+ "gated": true,
+ "license": "LTX-2.x Community License"
+ }
+ ],
+ "custom_nodes": [
+ {
+ "repo": "https://github.com/Lightricks/ComfyUI-LTXVideo",
+ "commit": "44c8a36b7c31ee00b4271daed11dc2a4aa481140"
+ }
+ ],
+ "credits": [
+ "LTX-2.5 and IC-LoRA by Lightricks",
+ "Workflow adapted from Lightricks' ComfyUI-LTXVideo examples"
+ ],
+ "test": {
+ "clip": "test/clip.mp4",
+ "size": 448
+ }
+}
diff --git a/apps/vfx-day-to-night/workflow.api.json b/apps/vfx-day-to-night/workflow.api.json
new file mode 100644
index 0000000..0ba932a
--- /dev/null
+++ b/apps/vfx-day-to-night/workflow.api.json
@@ -0,0 +1,720 @@
+{
+ "4852": {
+ "class_type": "SaveVideo",
+ "inputs": {
+ "video": [
+ "5518:4849",
+ 0
+ ],
+ "filename_prefix": "freefield/vfx-day-to-night",
+ "format": "auto",
+ "format.codec": "auto",
+ "codec": "auto"
+ },
+ "_meta": {
+ "title": "Save Video"
+ }
+ },
+ "5001": {
+ "class_type": "LoadVideo",
+ "inputs": {
+ "file": ""
+ },
+ "_meta": {
+ "title": "Load Video"
+ }
+ },
+ "5004:5600": {
+ "class_type": "VAELoader",
+ "inputs": {
+ "vae_name": "ltx-2.5-audio-vae-bf16.safetensors"
+ },
+ "_meta": {
+ "title": "Load VAE - Audio"
+ }
+ },
+ "5004:5601": {
+ "class_type": "VAELoader",
+ "inputs": {
+ "vae_name": "ltx-2.5-video-vae-bf16.safetensors"
+ },
+ "_meta": {
+ "title": "Load VAE - Video"
+ }
+ },
+ "5004:5602": {
+ "class_type": "UNETLoader",
+ "inputs": {
+ "unet_name": "ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors",
+ "weight_dtype": "default"
+ },
+ "_meta": {
+ "title": "Load Diffusion Model"
+ }
+ },
+ "5004:5604": {
+ "class_type": "CLIPLoader",
+ "inputs": {
+ "clip_name": "gemma4_e2b_it_int8_convrot.safetensors",
+ "type": "ltxv",
+ "device": "default"
+ },
+ "_meta": {
+ "title": "Load CLIP - Text Enhancer"
+ }
+ },
+ "5004:5605": {
+ "class_type": "CLIPLoader",
+ "inputs": {
+ "clip_name": "gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors",
+ "type": "ltxv",
+ "device": "default"
+ },
+ "_meta": {
+ "title": "Load CLIP - Text Encoder"
+ }
+ },
+ "5004:5606": {
+ "class_type": "LTXICLoRALoaderModelOnly",
+ "inputs": {
+ "model": [
+ "5004:5602",
+ 0
+ ],
+ "lora_name": "ltx-2.5-22b-ic-lora-day-to-night-0.9.safetensors",
+ "strength_model": 1
+ },
+ "_meta": {
+ "title": "🅛🅣🅧 IC-LoRA Loader Model Only"
+ }
+ },
+ "5014:1241": {
+ "class_type": "LTXVConditioning",
+ "inputs": {
+ "positive": [
+ "5014:2483",
+ 0
+ ],
+ "negative": [
+ "5014:2612",
+ 0
+ ],
+ "frame_rate": [
+ "5548:9006",
+ 2
+ ]
+ },
+ "_meta": {
+ "title": "LTXVConditioning"
+ }
+ },
+ "5014:2483": {
+ "class_type": "CLIPTextEncode",
+ "inputs": {
+ "clip": [
+ "5004:5605",
+ 0
+ ],
+ "text": [
+ "5014:5556",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "CLIP Text Encode (Positive Prompt)"
+ }
+ },
+ "5014:2612": {
+ "class_type": "CLIPTextEncode",
+ "inputs": {
+ "clip": [
+ "5004:5605",
+ 0
+ ],
+ "text": [
+ "5509",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "CLIP Text Encode (Negative Prompt)"
+ }
+ },
+ "5014:4990": {
+ "class_type": "ResizeImageMaskNode",
+ "inputs": {
+ "input": [
+ "ff_first_frame",
+ 0
+ ],
+ "resize_type": "scale longer dimension",
+ "resize_type.longer_size": 1536,
+ "scale_method": "lanczos"
+ },
+ "_meta": {
+ "title": "Resize Image/Mask"
+ }
+ },
+ "5014:5019": {
+ "class_type": "ComfyNotNode",
+ "inputs": {
+ "value": [
+ "5014:5506",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Not (use image > bypass_i2v)"
+ }
+ },
+ "5014:5506": {
+ "class_type": "PrimitiveBoolean",
+ "inputs": {
+ "value": false
+ },
+ "_meta": {
+ "title": "Boolean"
+ }
+ },
+ "5014:5546": {
+ "class_type": "TextGenerateLTX2Prompt",
+ "inputs": {
+ "clip": [
+ "5004:5604",
+ 0
+ ],
+ "image": [
+ "5014:4990",
+ 0
+ ],
+ "prompt": [
+ "5508",
+ 0
+ ],
+ "max_length": 600,
+ "sampling_mode": "on",
+ "sampling_mode.temperature": 0.01,
+ "sampling_mode.top_k": 0,
+ "sampling_mode.top_p": 1,
+ "sampling_mode.min_p": 0,
+ "sampling_mode.repetition_penalty": 1.15,
+ "sampling_mode.seed": 0,
+ "sampling_mode.presence_penalty": 0,
+ "thinking": false,
+ "use_default_template": true,
+ "mtp": "auto"
+ },
+ "_meta": {
+ "title": "Positive prompt + image enhancer - TextGenerateLTX2Prompt"
+ }
+ },
+ "5014:5555": {
+ "class_type": "ComfySwitchNode",
+ "inputs": {
+ "on_false": [
+ "5014:9004",
+ 0
+ ],
+ "on_true": [
+ "5014:5546",
+ 0
+ ],
+ "switch": [
+ "5014:5506",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "If/Else Switch"
+ }
+ },
+ "5014:5556": {
+ "class_type": "ComfySwitchNode",
+ "inputs": {
+ "on_false": [
+ "5508",
+ 0
+ ],
+ "on_true": [
+ "5014:5555",
+ 0
+ ],
+ "switch": false
+ },
+ "_meta": {
+ "title": "If/Else Switch"
+ }
+ },
+ "5014:9004": {
+ "class_type": "TextGenerateLTX2Prompt",
+ "inputs": {
+ "clip": [
+ "5004:5604",
+ 0
+ ],
+ "prompt": [
+ "5508",
+ 0
+ ],
+ "max_length": 600,
+ "sampling_mode": "on",
+ "sampling_mode.temperature": 0.01,
+ "sampling_mode.top_k": 0,
+ "sampling_mode.top_p": 1,
+ "sampling_mode.min_p": 0,
+ "sampling_mode.repetition_penalty": 1.15,
+ "sampling_mode.seed": 0,
+ "sampling_mode.presence_penalty": 0,
+ "thinking": false,
+ "use_default_template": true,
+ "mtp": "auto"
+ },
+ "_meta": {
+ "title": "Positive prompt (t2v) enhancer - TextGenerateLTX2Prompt"
+ }
+ },
+ "5508": {
+ "class_type": "PrimitiveStringMultiline",
+ "inputs": {
+ "value": ""
+ },
+ "_meta": {
+ "title": "Prompt (positive)"
+ }
+ },
+ "5509": {
+ "class_type": "PrimitiveStringMultiline",
+ "inputs": {
+ "value": ""
+ },
+ "_meta": {
+ "title": "Prompt (negative)"
+ }
+ },
+ "5516:4828": {
+ "class_type": "CFGGuider",
+ "inputs": {
+ "model": [
+ "5004:5606",
+ 0
+ ],
+ "positive": [
+ "9002:5012",
+ 0
+ ],
+ "negative": [
+ "9002:5012",
+ 1
+ ],
+ "cfg": 1
+ },
+ "_meta": {
+ "title": "CFG Guider"
+ }
+ },
+ "5516:4829": {
+ "class_type": "SamplerCustomAdvanced",
+ "inputs": {
+ "noise": [
+ "5516:4832",
+ 0
+ ],
+ "guider": [
+ "5516:4828",
+ 0
+ ],
+ "sampler": [
+ "5516:4831",
+ 0
+ ],
+ "sigmas": [
+ "5516:4984",
+ 0
+ ],
+ "latent_image": [
+ "9002:4528",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "SamplerCustomAdvanced"
+ }
+ },
+ "5516:4831": {
+ "class_type": "KSamplerSelect",
+ "inputs": {
+ "sampler_name": "euler_ancestral"
+ },
+ "_meta": {
+ "title": "KSamplerSelect"
+ }
+ },
+ "5516:4832": {
+ "class_type": "RandomNoise",
+ "inputs": {
+ "noise_seed": 42
+ },
+ "_meta": {
+ "title": "RandomNoise"
+ }
+ },
+ "5516:4845": {
+ "class_type": "LTXVSeparateAVLatent",
+ "inputs": {
+ "av_latent": [
+ "5516:4829",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Separate AV Latent"
+ }
+ },
+ "5516:4984": {
+ "class_type": "ManualSigmas",
+ "inputs": {
+ "sigmas": "1.0, 0.99375, 0.9875, 0.98125, 0.975, 0.909375, 0.725, 0.421875, 0.0"
+ },
+ "_meta": {
+ "title": "ManualSigmas"
+ }
+ },
+ "5516:5000": {
+ "class_type": "LTXVCropGuides",
+ "inputs": {
+ "positive": [
+ "9002:5012",
+ 0
+ ],
+ "negative": [
+ "9002:5012",
+ 1
+ ],
+ "latent": [
+ "5516:4845",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "LTXVCropGuides"
+ }
+ },
+ "5518:4848": {
+ "class_type": "LTXVAudioVAEDecode",
+ "inputs": {
+ "samples": [
+ "5516:4845",
+ 1
+ ],
+ "audio_vae": [
+ "5004:5600",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "LTXV Audio VAE Decode"
+ }
+ },
+ "5518:4849": {
+ "class_type": "CreateVideo",
+ "inputs": {
+ "images": [
+ "5518:5538",
+ 0
+ ],
+ "audio": [
+ "5518:4848",
+ 0
+ ],
+ "fps": [
+ "5548:9006",
+ 2
+ ],
+ "bit_depth": 8,
+ "color_space": "sRGB",
+ "codec": "none"
+ },
+ "_meta": {
+ "title": "Create Video"
+ }
+ },
+ "5518:5538": {
+ "class_type": "VAEDecodeTiled",
+ "inputs": {
+ "samples": [
+ "5516:5000",
+ 2
+ ],
+ "vae": [
+ "5004:5601",
+ 0
+ ],
+ "tile_size": 512,
+ "overlap": 64,
+ "temporal_size": 64,
+ "temporal_overlap": 8
+ },
+ "_meta": {
+ "title": "VAE Decode (Tiled)"
+ }
+ },
+ "5548:5026": {
+ "class_type": "ResizeImageMaskNode",
+ "inputs": {
+ "input": [
+ "5548:9006",
+ 0
+ ],
+ "resize_type": "scale shorter dimension",
+ "resize_type.shorter_size": 544,
+ "scale_method": "lanczos"
+ },
+ "_meta": {
+ "title": "Resize Image/Mask"
+ }
+ },
+ "5548:5029": {
+ "class_type": "GetImageSize",
+ "inputs": {
+ "image": [
+ "5548:5026",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Get Image Size"
+ }
+ },
+ "5548:9006": {
+ "class_type": "GetVideoComponents",
+ "inputs": {
+ "video": [
+ "5001",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Get Video Components"
+ }
+ },
+ "5548:9010": {
+ "class_type": "ComfyMathExpression",
+ "inputs": {
+ "values.a": [
+ "5548:5029",
+ 2
+ ],
+ "values.b": [
+ "5548:9006",
+ 2
+ ],
+ "expression": "a / b"
+ },
+ "_meta": {
+ "title": "audio duration = frames / fps"
+ }
+ },
+ "5548:9011": {
+ "class_type": "EmptyAudio",
+ "inputs": {
+ "duration": [
+ "5548:9010",
+ 0
+ ],
+ "sample_rate": 44100,
+ "channels": 2
+ },
+ "_meta": {
+ "title": "silence fallback"
+ }
+ },
+ "5548:9012": {
+ "class_type": "AudioMerge",
+ "inputs": {
+ "audio1": [
+ "5548:9006",
+ 1
+ ],
+ "audio2": [
+ "5548:9011",
+ 0
+ ],
+ "merge_method": "add"
+ },
+ "_meta": {
+ "title": "use source audio, else silence"
+ }
+ },
+ "9002:3059": {
+ "class_type": "EmptyLTXVLatentVideo",
+ "inputs": {
+ "width": [
+ "5548:5029",
+ 0
+ ],
+ "height": [
+ "5548:5029",
+ 1
+ ],
+ "length": [
+ "5548:5029",
+ 2
+ ],
+ "batch_size": 1
+ },
+ "_meta": {
+ "title": "Empty LTXV Latent Video"
+ }
+ },
+ "9002:3159": {
+ "class_type": "LTXVImgToVideoInplace",
+ "inputs": {
+ "vae": [
+ "5004:5601",
+ 0
+ ],
+ "image": [
+ "5014:4990",
+ 0
+ ],
+ "latent": [
+ "9002:3059",
+ 0
+ ],
+ "bypass": [
+ "5014:5019",
+ 0
+ ],
+ "strength": 0.7
+ },
+ "_meta": {
+ "title": "LTXVImgToVideoInplace"
+ }
+ },
+ "9002:4528": {
+ "class_type": "LTXVConcatAVLatent",
+ "inputs": {
+ "video_latent": [
+ "9002:5012",
+ 2
+ ],
+ "audio_latent": [
+ "9002:9008",
+ 2
+ ]
+ },
+ "_meta": {
+ "title": "Concat AV Latent"
+ }
+ },
+ "9002:5012": {
+ "class_type": "LTXAddVideoICLoRAGuide",
+ "inputs": {
+ "positive": [
+ "9002:9005",
+ 0
+ ],
+ "negative": [
+ "9002:9005",
+ 1
+ ],
+ "vae": [
+ "5004:5601",
+ 0
+ ],
+ "latent": [
+ "9002:3159",
+ 0
+ ],
+ "image": [
+ "5548:5026",
+ 0
+ ],
+ "latent_downscale_factor": [
+ "5004:5606",
+ 1
+ ],
+ "frame_idx": 0,
+ "strength": 1,
+ "crop": "disabled",
+ "use_tiled_encode": false,
+ "tile_size": 256,
+ "tile_overlap": 64,
+ "use_streaming": false,
+ "tile_frames": 97
+ },
+ "_meta": {
+ "title": "🅛🅣🅧 Add Video IC-LoRA Guide"
+ }
+ },
+ "9002:9005": {
+ "class_type": "LTXVConditioning",
+ "inputs": {
+ "positive": [
+ "5014:1241",
+ 0
+ ],
+ "negative": [
+ "5014:1241",
+ 1
+ ],
+ "frame_rate": [
+ "5548:9006",
+ 2
+ ]
+ },
+ "_meta": {
+ "title": "LTXVConditioning"
+ }
+ },
+ "9002:9007": {
+ "class_type": "VAEEncodeAudio",
+ "inputs": {
+ "audio": [
+ "5548:9012",
+ 0
+ ],
+ "vae": [
+ "5004:5600",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "VAE Encode Audio"
+ }
+ },
+ "9002:9008": {
+ "class_type": "LTXVSetAudioRefTokens",
+ "inputs": {
+ "positive": [
+ "9002:9005",
+ 0
+ ],
+ "negative": [
+ "9002:9005",
+ 1
+ ],
+ "audio_latent": [
+ "9002:9007",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "freeze the source audio"
+ }
+ },
+ "ff_first_frame": {
+ "class_type": "ImageFromBatch",
+ "inputs": {
+ "image": [
+ "5548:9006",
+ 0
+ ],
+ "batch_index": 0,
+ "length": 1
+ },
+ "_meta": {
+ "title": "First frame of the reference"
+ }
+ }
+}
diff --git a/apps/vfx-water/app.json b/apps/vfx-water/app.json
new file mode 100644
index 0000000..afb5fee
--- /dev/null
+++ b/apps/vfx-water/app.json
@@ -0,0 +1,197 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "vfx-water",
+ "name": "Water Simulation",
+ "section": "video",
+ "pack": "video-ltx25",
+ "status": "draft",
+ "higgsfield_feature": "VFX: water",
+ "summary": "Adds simulated water to a shot, following the scene's geometry.",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "ComfyUI-LTXVideo example_workflows/2.5/LTX-2.5_V2V_ICLoRA_Single_Stage_Distilled.json (44c8a36)",
+ "comfyui": "0.42.0",
+ "notes": "Gemma API text encoder removed (local encoding only), int8 weights, first frame taken from the clip. Prompting guidance for this LoRA still to be read from its model card."
+ },
+ "inputs": [
+ {
+ "id": "clip",
+ "type": "video",
+ "label": "Your clip",
+ "required": true,
+ "limits": {
+ "max_mb": 200,
+ "seconds": [
+ 2,
+ 8
+ ]
+ },
+ "bind": [
+ {
+ "node": "5001",
+ "field": "file"
+ }
+ ]
+ },
+ {
+ "id": "prompt",
+ "type": "textarea",
+ "label": "Describe the result",
+ "required": true,
+ "default": "The street slowly floods with clear rippling water that reflects the buildings, realistic fluid motion.",
+ "bind": [
+ {
+ "node": "5508",
+ "field": "value"
+ }
+ ]
+ },
+ {
+ "id": "negative",
+ "type": "textarea",
+ "label": "Must not appear",
+ "default": "blurry, distorted, low quality",
+ "bind": [
+ {
+ "node": "5509",
+ "field": "value"
+ }
+ ]
+ },
+ {
+ "id": "strength",
+ "type": "slider",
+ "label": "Strength",
+ "min": 0.5,
+ "max": 1.3,
+ "step": 0.05,
+ "default": 1.0,
+ "bind": [
+ {
+ "node": "5004:5606",
+ "field": "strength_model"
+ }
+ ]
+ },
+ {
+ "id": "size",
+ "type": "select",
+ "label": "Resolution (short side)",
+ "default": 544,
+ "options": [
+ {
+ "value": 448,
+ "label": "448 px"
+ },
+ {
+ "value": 544,
+ "label": "544 px"
+ },
+ {
+ "value": 576,
+ "label": "576 px"
+ },
+ {
+ "value": 720,
+ "label": "720 px"
+ }
+ ],
+ "bind": [
+ {
+ "node": "5548:5026",
+ "field": "resize_type.shorter_size"
+ }
+ ]
+ },
+ {
+ "id": "seed",
+ "type": "seed",
+ "label": "Seed",
+ "default": -1,
+ "help": "-1 picks a random seed",
+ "bind": [
+ {
+ "node": "5516:4832",
+ "field": "noise_seed"
+ }
+ ]
+ }
+ ],
+ "outputs": [
+ {
+ "node": "4852",
+ "type": "video",
+ "label": "Result"
+ }
+ ],
+ "models": [
+ {
+ "repo": "Lightricks/LTX-2.5",
+ "file": "diffusion_models/ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors",
+ "dir": "diffusion_models",
+ "gb": 21.5,
+ "phase": "denoise",
+ "gated": true,
+ "license": "LTX-2.x Community License"
+ },
+ {
+ "repo": "Lightricks/LTX-2.5",
+ "file": "text_encoders/gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors",
+ "dir": "text_encoders",
+ "gb": 15.37,
+ "phase": "encode",
+ "gated": true,
+ "license": "LTX-2.x Community License"
+ },
+ {
+ "repo": "Lightricks/LTX-2.5",
+ "file": "vae/ltx-2.5-video-vae-bf16.safetensors",
+ "dir": "vae",
+ "gb": 1.47,
+ "phase": "decode",
+ "gated": true,
+ "license": "LTX-2.x Community License"
+ },
+ {
+ "repo": "Lightricks/LTX-2.5",
+ "file": "vae/ltx-2.5-audio-vae-bf16.safetensors",
+ "dir": "vae",
+ "gb": 0.36,
+ "phase": "decode",
+ "gated": true,
+ "license": "LTX-2.x Community License"
+ },
+ {
+ "repo": "Comfy-Org/gemma-4",
+ "file": "text_encoders/gemma4_e2b_it_int8_convrot.safetensors",
+ "dir": "text_encoders",
+ "gb": 5.2,
+ "phase": "encode",
+ "license": "Apache-2.0",
+ "optional": true
+ },
+ {
+ "repo": "Lightricks/LTX-2.5-22b-IC-LoRA-Water-Simulation",
+ "file": "ltx-2.5-22b-ic-lora-water-simulation-0.9.safetensors",
+ "dir": "loras",
+ "gb": 0.91,
+ "phase": "denoise",
+ "gated": true,
+ "license": "LTX-2.x Community License"
+ }
+ ],
+ "custom_nodes": [
+ {
+ "repo": "https://github.com/Lightricks/ComfyUI-LTXVideo",
+ "commit": "44c8a36b7c31ee00b4271daed11dc2a4aa481140"
+ }
+ ],
+ "credits": [
+ "LTX-2.5 and IC-LoRA by Lightricks",
+ "Workflow adapted from Lightricks' ComfyUI-LTXVideo examples"
+ ],
+ "test": {
+ "clip": "test/clip.mp4",
+ "size": 448
+ }
+}
diff --git a/apps/vfx-water/workflow.api.json b/apps/vfx-water/workflow.api.json
new file mode 100644
index 0000000..6bbc77c
--- /dev/null
+++ b/apps/vfx-water/workflow.api.json
@@ -0,0 +1,720 @@
+{
+ "4852": {
+ "class_type": "SaveVideo",
+ "inputs": {
+ "video": [
+ "5518:4849",
+ 0
+ ],
+ "filename_prefix": "freefield/vfx-water",
+ "format": "auto",
+ "format.codec": "auto",
+ "codec": "auto"
+ },
+ "_meta": {
+ "title": "Save Video"
+ }
+ },
+ "5001": {
+ "class_type": "LoadVideo",
+ "inputs": {
+ "file": ""
+ },
+ "_meta": {
+ "title": "Load Video"
+ }
+ },
+ "5004:5600": {
+ "class_type": "VAELoader",
+ "inputs": {
+ "vae_name": "ltx-2.5-audio-vae-bf16.safetensors"
+ },
+ "_meta": {
+ "title": "Load VAE - Audio"
+ }
+ },
+ "5004:5601": {
+ "class_type": "VAELoader",
+ "inputs": {
+ "vae_name": "ltx-2.5-video-vae-bf16.safetensors"
+ },
+ "_meta": {
+ "title": "Load VAE - Video"
+ }
+ },
+ "5004:5602": {
+ "class_type": "UNETLoader",
+ "inputs": {
+ "unet_name": "ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors",
+ "weight_dtype": "default"
+ },
+ "_meta": {
+ "title": "Load Diffusion Model"
+ }
+ },
+ "5004:5604": {
+ "class_type": "CLIPLoader",
+ "inputs": {
+ "clip_name": "gemma4_e2b_it_int8_convrot.safetensors",
+ "type": "ltxv",
+ "device": "default"
+ },
+ "_meta": {
+ "title": "Load CLIP - Text Enhancer"
+ }
+ },
+ "5004:5605": {
+ "class_type": "CLIPLoader",
+ "inputs": {
+ "clip_name": "gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors",
+ "type": "ltxv",
+ "device": "default"
+ },
+ "_meta": {
+ "title": "Load CLIP - Text Encoder"
+ }
+ },
+ "5004:5606": {
+ "class_type": "LTXICLoRALoaderModelOnly",
+ "inputs": {
+ "model": [
+ "5004:5602",
+ 0
+ ],
+ "lora_name": "ltx-2.5-22b-ic-lora-water-simulation-0.9.safetensors",
+ "strength_model": 1
+ },
+ "_meta": {
+ "title": "🅛🅣🅧 IC-LoRA Loader Model Only"
+ }
+ },
+ "5014:1241": {
+ "class_type": "LTXVConditioning",
+ "inputs": {
+ "positive": [
+ "5014:2483",
+ 0
+ ],
+ "negative": [
+ "5014:2612",
+ 0
+ ],
+ "frame_rate": [
+ "5548:9006",
+ 2
+ ]
+ },
+ "_meta": {
+ "title": "LTXVConditioning"
+ }
+ },
+ "5014:2483": {
+ "class_type": "CLIPTextEncode",
+ "inputs": {
+ "clip": [
+ "5004:5605",
+ 0
+ ],
+ "text": [
+ "5014:5556",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "CLIP Text Encode (Positive Prompt)"
+ }
+ },
+ "5014:2612": {
+ "class_type": "CLIPTextEncode",
+ "inputs": {
+ "clip": [
+ "5004:5605",
+ 0
+ ],
+ "text": [
+ "5509",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "CLIP Text Encode (Negative Prompt)"
+ }
+ },
+ "5014:4990": {
+ "class_type": "ResizeImageMaskNode",
+ "inputs": {
+ "input": [
+ "ff_first_frame",
+ 0
+ ],
+ "resize_type": "scale longer dimension",
+ "resize_type.longer_size": 1536,
+ "scale_method": "lanczos"
+ },
+ "_meta": {
+ "title": "Resize Image/Mask"
+ }
+ },
+ "5014:5019": {
+ "class_type": "ComfyNotNode",
+ "inputs": {
+ "value": [
+ "5014:5506",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Not (use image > bypass_i2v)"
+ }
+ },
+ "5014:5506": {
+ "class_type": "PrimitiveBoolean",
+ "inputs": {
+ "value": false
+ },
+ "_meta": {
+ "title": "Boolean"
+ }
+ },
+ "5014:5546": {
+ "class_type": "TextGenerateLTX2Prompt",
+ "inputs": {
+ "clip": [
+ "5004:5604",
+ 0
+ ],
+ "image": [
+ "5014:4990",
+ 0
+ ],
+ "prompt": [
+ "5508",
+ 0
+ ],
+ "max_length": 600,
+ "sampling_mode": "on",
+ "sampling_mode.temperature": 0.01,
+ "sampling_mode.top_k": 0,
+ "sampling_mode.top_p": 1,
+ "sampling_mode.min_p": 0,
+ "sampling_mode.repetition_penalty": 1.15,
+ "sampling_mode.seed": 0,
+ "sampling_mode.presence_penalty": 0,
+ "thinking": false,
+ "use_default_template": true,
+ "mtp": "auto"
+ },
+ "_meta": {
+ "title": "Positive prompt + image enhancer - TextGenerateLTX2Prompt"
+ }
+ },
+ "5014:5555": {
+ "class_type": "ComfySwitchNode",
+ "inputs": {
+ "on_false": [
+ "5014:9004",
+ 0
+ ],
+ "on_true": [
+ "5014:5546",
+ 0
+ ],
+ "switch": [
+ "5014:5506",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "If/Else Switch"
+ }
+ },
+ "5014:5556": {
+ "class_type": "ComfySwitchNode",
+ "inputs": {
+ "on_false": [
+ "5508",
+ 0
+ ],
+ "on_true": [
+ "5014:5555",
+ 0
+ ],
+ "switch": false
+ },
+ "_meta": {
+ "title": "If/Else Switch"
+ }
+ },
+ "5014:9004": {
+ "class_type": "TextGenerateLTX2Prompt",
+ "inputs": {
+ "clip": [
+ "5004:5604",
+ 0
+ ],
+ "prompt": [
+ "5508",
+ 0
+ ],
+ "max_length": 600,
+ "sampling_mode": "on",
+ "sampling_mode.temperature": 0.01,
+ "sampling_mode.top_k": 0,
+ "sampling_mode.top_p": 1,
+ "sampling_mode.min_p": 0,
+ "sampling_mode.repetition_penalty": 1.15,
+ "sampling_mode.seed": 0,
+ "sampling_mode.presence_penalty": 0,
+ "thinking": false,
+ "use_default_template": true,
+ "mtp": "auto"
+ },
+ "_meta": {
+ "title": "Positive prompt (t2v) enhancer - TextGenerateLTX2Prompt"
+ }
+ },
+ "5508": {
+ "class_type": "PrimitiveStringMultiline",
+ "inputs": {
+ "value": ""
+ },
+ "_meta": {
+ "title": "Prompt (positive)"
+ }
+ },
+ "5509": {
+ "class_type": "PrimitiveStringMultiline",
+ "inputs": {
+ "value": ""
+ },
+ "_meta": {
+ "title": "Prompt (negative)"
+ }
+ },
+ "5516:4828": {
+ "class_type": "CFGGuider",
+ "inputs": {
+ "model": [
+ "5004:5606",
+ 0
+ ],
+ "positive": [
+ "9002:5012",
+ 0
+ ],
+ "negative": [
+ "9002:5012",
+ 1
+ ],
+ "cfg": 1
+ },
+ "_meta": {
+ "title": "CFG Guider"
+ }
+ },
+ "5516:4829": {
+ "class_type": "SamplerCustomAdvanced",
+ "inputs": {
+ "noise": [
+ "5516:4832",
+ 0
+ ],
+ "guider": [
+ "5516:4828",
+ 0
+ ],
+ "sampler": [
+ "5516:4831",
+ 0
+ ],
+ "sigmas": [
+ "5516:4984",
+ 0
+ ],
+ "latent_image": [
+ "9002:4528",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "SamplerCustomAdvanced"
+ }
+ },
+ "5516:4831": {
+ "class_type": "KSamplerSelect",
+ "inputs": {
+ "sampler_name": "euler_ancestral"
+ },
+ "_meta": {
+ "title": "KSamplerSelect"
+ }
+ },
+ "5516:4832": {
+ "class_type": "RandomNoise",
+ "inputs": {
+ "noise_seed": 42
+ },
+ "_meta": {
+ "title": "RandomNoise"
+ }
+ },
+ "5516:4845": {
+ "class_type": "LTXVSeparateAVLatent",
+ "inputs": {
+ "av_latent": [
+ "5516:4829",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Separate AV Latent"
+ }
+ },
+ "5516:4984": {
+ "class_type": "ManualSigmas",
+ "inputs": {
+ "sigmas": "1.0, 0.99375, 0.9875, 0.98125, 0.975, 0.909375, 0.725, 0.421875, 0.0"
+ },
+ "_meta": {
+ "title": "ManualSigmas"
+ }
+ },
+ "5516:5000": {
+ "class_type": "LTXVCropGuides",
+ "inputs": {
+ "positive": [
+ "9002:5012",
+ 0
+ ],
+ "negative": [
+ "9002:5012",
+ 1
+ ],
+ "latent": [
+ "5516:4845",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "LTXVCropGuides"
+ }
+ },
+ "5518:4848": {
+ "class_type": "LTXVAudioVAEDecode",
+ "inputs": {
+ "samples": [
+ "5516:4845",
+ 1
+ ],
+ "audio_vae": [
+ "5004:5600",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "LTXV Audio VAE Decode"
+ }
+ },
+ "5518:4849": {
+ "class_type": "CreateVideo",
+ "inputs": {
+ "images": [
+ "5518:5538",
+ 0
+ ],
+ "audio": [
+ "5518:4848",
+ 0
+ ],
+ "fps": [
+ "5548:9006",
+ 2
+ ],
+ "bit_depth": 8,
+ "color_space": "sRGB",
+ "codec": "none"
+ },
+ "_meta": {
+ "title": "Create Video"
+ }
+ },
+ "5518:5538": {
+ "class_type": "VAEDecodeTiled",
+ "inputs": {
+ "samples": [
+ "5516:5000",
+ 2
+ ],
+ "vae": [
+ "5004:5601",
+ 0
+ ],
+ "tile_size": 512,
+ "overlap": 64,
+ "temporal_size": 64,
+ "temporal_overlap": 8
+ },
+ "_meta": {
+ "title": "VAE Decode (Tiled)"
+ }
+ },
+ "5548:5026": {
+ "class_type": "ResizeImageMaskNode",
+ "inputs": {
+ "input": [
+ "5548:9006",
+ 0
+ ],
+ "resize_type": "scale shorter dimension",
+ "resize_type.shorter_size": 544,
+ "scale_method": "lanczos"
+ },
+ "_meta": {
+ "title": "Resize Image/Mask"
+ }
+ },
+ "5548:5029": {
+ "class_type": "GetImageSize",
+ "inputs": {
+ "image": [
+ "5548:5026",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Get Image Size"
+ }
+ },
+ "5548:9006": {
+ "class_type": "GetVideoComponents",
+ "inputs": {
+ "video": [
+ "5001",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Get Video Components"
+ }
+ },
+ "5548:9010": {
+ "class_type": "ComfyMathExpression",
+ "inputs": {
+ "values.a": [
+ "5548:5029",
+ 2
+ ],
+ "values.b": [
+ "5548:9006",
+ 2
+ ],
+ "expression": "a / b"
+ },
+ "_meta": {
+ "title": "audio duration = frames / fps"
+ }
+ },
+ "5548:9011": {
+ "class_type": "EmptyAudio",
+ "inputs": {
+ "duration": [
+ "5548:9010",
+ 0
+ ],
+ "sample_rate": 44100,
+ "channels": 2
+ },
+ "_meta": {
+ "title": "silence fallback"
+ }
+ },
+ "5548:9012": {
+ "class_type": "AudioMerge",
+ "inputs": {
+ "audio1": [
+ "5548:9006",
+ 1
+ ],
+ "audio2": [
+ "5548:9011",
+ 0
+ ],
+ "merge_method": "add"
+ },
+ "_meta": {
+ "title": "use source audio, else silence"
+ }
+ },
+ "9002:3059": {
+ "class_type": "EmptyLTXVLatentVideo",
+ "inputs": {
+ "width": [
+ "5548:5029",
+ 0
+ ],
+ "height": [
+ "5548:5029",
+ 1
+ ],
+ "length": [
+ "5548:5029",
+ 2
+ ],
+ "batch_size": 1
+ },
+ "_meta": {
+ "title": "Empty LTXV Latent Video"
+ }
+ },
+ "9002:3159": {
+ "class_type": "LTXVImgToVideoInplace",
+ "inputs": {
+ "vae": [
+ "5004:5601",
+ 0
+ ],
+ "image": [
+ "5014:4990",
+ 0
+ ],
+ "latent": [
+ "9002:3059",
+ 0
+ ],
+ "bypass": [
+ "5014:5019",
+ 0
+ ],
+ "strength": 0.7
+ },
+ "_meta": {
+ "title": "LTXVImgToVideoInplace"
+ }
+ },
+ "9002:4528": {
+ "class_type": "LTXVConcatAVLatent",
+ "inputs": {
+ "video_latent": [
+ "9002:5012",
+ 2
+ ],
+ "audio_latent": [
+ "9002:9008",
+ 2
+ ]
+ },
+ "_meta": {
+ "title": "Concat AV Latent"
+ }
+ },
+ "9002:5012": {
+ "class_type": "LTXAddVideoICLoRAGuide",
+ "inputs": {
+ "positive": [
+ "9002:9005",
+ 0
+ ],
+ "negative": [
+ "9002:9005",
+ 1
+ ],
+ "vae": [
+ "5004:5601",
+ 0
+ ],
+ "latent": [
+ "9002:3159",
+ 0
+ ],
+ "image": [
+ "5548:5026",
+ 0
+ ],
+ "latent_downscale_factor": [
+ "5004:5606",
+ 1
+ ],
+ "frame_idx": 0,
+ "strength": 1,
+ "crop": "disabled",
+ "use_tiled_encode": false,
+ "tile_size": 256,
+ "tile_overlap": 64,
+ "use_streaming": false,
+ "tile_frames": 97
+ },
+ "_meta": {
+ "title": "🅛🅣🅧 Add Video IC-LoRA Guide"
+ }
+ },
+ "9002:9005": {
+ "class_type": "LTXVConditioning",
+ "inputs": {
+ "positive": [
+ "5014:1241",
+ 0
+ ],
+ "negative": [
+ "5014:1241",
+ 1
+ ],
+ "frame_rate": [
+ "5548:9006",
+ 2
+ ]
+ },
+ "_meta": {
+ "title": "LTXVConditioning"
+ }
+ },
+ "9002:9007": {
+ "class_type": "VAEEncodeAudio",
+ "inputs": {
+ "audio": [
+ "5548:9012",
+ 0
+ ],
+ "vae": [
+ "5004:5600",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "VAE Encode Audio"
+ }
+ },
+ "9002:9008": {
+ "class_type": "LTXVSetAudioRefTokens",
+ "inputs": {
+ "positive": [
+ "9002:9005",
+ 0
+ ],
+ "negative": [
+ "9002:9005",
+ 1
+ ],
+ "audio_latent": [
+ "9002:9007",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "freeze the source audio"
+ }
+ },
+ "ff_first_frame": {
+ "class_type": "ImageFromBatch",
+ "inputs": {
+ "image": [
+ "5548:9006",
+ 0
+ ],
+ "batch_index": 0,
+ "length": 1
+ },
+ "_meta": {
+ "title": "First frame of the reference"
+ }
+ }
+}
diff --git a/apps/video-t2v/app.json b/apps/video-t2v/app.json
new file mode 100644
index 0000000..6759769
--- /dev/null
+++ b/apps/video-t2v/app.json
@@ -0,0 +1,180 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "video-t2v",
+ "name": "Text to Video",
+ "section": "video",
+ "pack": "video-ltx25",
+ "status": "ready",
+ "higgsfield_feature": "Create Video",
+ "summary": "A shot with synchronized audio from a prompt, two stages with LTX-2.5.",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "video_ltx2_5_t2v.json",
+ "comfyui": "0.42.0"
+ },
+ "inputs": [
+ {
+ "id": "prompt",
+ "type": "textarea",
+ "label": "Prompt",
+ "required": true,
+ "default": "Aerial shot gliding over a foggy pine forest at sunrise, light rays through the mist, birdsong",
+ "bind": [
+ {
+ "node": "405:376",
+ "field": "value"
+ }
+ ]
+ },
+ {
+ "id": "duration",
+ "type": "slider",
+ "label": "Seconds",
+ "min": 2,
+ "max": 10,
+ "step": 1,
+ "default": 5,
+ "bind": [
+ {
+ "node": "405:362",
+ "field": "value"
+ }
+ ]
+ },
+ {
+ "id": "enhance",
+ "type": "toggle",
+ "label": "Enhance prompt",
+ "default": true,
+ "help": "Rewrites your prompt with a small Gemma 4 model first",
+ "bind": [
+ {
+ "node": "405:383",
+ "field": "value"
+ }
+ ]
+ },
+ {
+ "id": "aspect",
+ "type": "select",
+ "label": "Aspect ratio",
+ "default": "16:9 (Widescreen)",
+ "options": [
+ {
+ "value": "16:9 (Widescreen)",
+ "label": "16:9"
+ },
+ {
+ "value": "9:16 (Portrait Widescreen)",
+ "label": "9:16"
+ },
+ {
+ "value": "1:1 (Square)",
+ "label": "1:1"
+ },
+ {
+ "value": "4:3 (Standard)",
+ "label": "4:3"
+ },
+ {
+ "value": "3:4 (Portrait Standard)",
+ "label": "3:4"
+ },
+ {
+ "value": "21:9 (Ultrawide)",
+ "label": "21:9"
+ }
+ ],
+ "bind": [
+ {
+ "node": "409",
+ "field": "aspect_ratio"
+ }
+ ]
+ },
+ {
+ "id": "seed",
+ "type": "seed",
+ "label": "Seed",
+ "default": -1,
+ "help": "-1 picks a random seed",
+ "bind": [
+ {
+ "node": "405:339",
+ "field": "noise_seed"
+ }
+ ]
+ }
+ ],
+ "outputs": [
+ {
+ "node": "75",
+ "type": "video",
+ "label": "Video"
+ }
+ ],
+ "models": [
+ {
+ "repo": "Lightricks/LTX-2.5",
+ "file": "diffusion_models/ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors",
+ "dir": "diffusion_models",
+ "gb": 21.5,
+ "phase": "denoise",
+ "gated": true,
+ "license": "LTX-2.x Community License"
+ },
+ {
+ "repo": "Lightricks/LTX-2.5",
+ "file": "text_encoders/gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors",
+ "dir": "text_encoders",
+ "gb": 15.37,
+ "phase": "encode",
+ "gated": true,
+ "license": "LTX-2.x Community License"
+ },
+ {
+ "repo": "Lightricks/LTX-2.5",
+ "file": "vae/ltx-2.5-video-vae-bf16.safetensors",
+ "dir": "vae",
+ "gb": 1.47,
+ "phase": "decode",
+ "gated": true,
+ "license": "LTX-2.x Community License"
+ },
+ {
+ "repo": "Lightricks/LTX-2.5",
+ "file": "vae/ltx-2.5-audio-vae-bf16.safetensors",
+ "dir": "vae",
+ "gb": 0.36,
+ "phase": "decode",
+ "gated": true,
+ "license": "LTX-2.x Community License"
+ },
+ {
+ "repo": "Lightricks/LTX-2.5",
+ "file": "latent_upscale_models/ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors",
+ "dir": "latent_upscale_models",
+ "gb": 1.0,
+ "phase": "aux",
+ "gated": true,
+ "license": "LTX-2.x Community License"
+ },
+ {
+ "repo": "Comfy-Org/gemma-4",
+ "file": "text_encoders/gemma4_e2b_it_int8_convrot.safetensors",
+ "dir": "text_encoders",
+ "gb": 5.2,
+ "phase": "encode",
+ "license": "Apache-2.0",
+ "optional": true
+ }
+ ],
+ "credits": [
+ "LTX-2.5 by Lightricks",
+ "Workflow adapted from ComfyUI's official LTX-2.5 template"
+ ],
+ "test": {
+ "prompt": "waves crashing on black volcanic rocks",
+ "duration": 2
+ }
+}
diff --git a/apps/video-t2v/workflow.api.json b/apps/video-t2v/workflow.api.json
new file mode 100644
index 0000000..d830034
--- /dev/null
+++ b/apps/video-t2v/workflow.api.json
@@ -0,0 +1,628 @@
+{
+ "75": {
+ "class_type": "SaveVideo",
+ "inputs": {
+ "video": [
+ "405:370",
+ 0
+ ],
+ "filename_prefix": "freefield/video-t2v",
+ "format": "auto",
+ "format.codec": "auto"
+ },
+ "_meta": {
+ "title": "Save Video"
+ }
+ },
+ "405:338": {
+ "class_type": "RandomNoise",
+ "inputs": {
+ "noise_seed": 42
+ },
+ "_meta": {
+ "title": "RandomNoise"
+ }
+ },
+ "405:339": {
+ "class_type": "RandomNoise",
+ "inputs": {
+ "noise_seed": 926314962774309
+ },
+ "_meta": {
+ "title": "RandomNoise"
+ }
+ },
+ "405:340": {
+ "class_type": "LTXVConcatAVLatent",
+ "inputs": {
+ "video_latent": [
+ "405:348",
+ 0
+ ],
+ "audio_latent": [
+ "405:367",
+ 1
+ ]
+ },
+ "_meta": {
+ "title": "Concat AV Latent"
+ }
+ },
+ "405:341": {
+ "class_type": "KSamplerSelect",
+ "inputs": {
+ "sampler_name": "euler_ancestral"
+ },
+ "_meta": {
+ "title": "KSamplerSelect"
+ }
+ },
+ "405:344": {
+ "class_type": "SamplerCustomAdvanced",
+ "inputs": {
+ "noise": [
+ "405:339",
+ 0
+ ],
+ "guider": [
+ "405:388",
+ 0
+ ],
+ "sampler": [
+ "405:352",
+ 0
+ ],
+ "sigmas": [
+ "405:404",
+ 0
+ ],
+ "latent_image": [
+ "405:377",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "SamplerCustomAdvanced"
+ }
+ },
+ "405:348": {
+ "class_type": "LTXVLatentUpsampler",
+ "inputs": {
+ "samples": [
+ "405:367",
+ 0
+ ],
+ "upscale_model": [
+ "405:371",
+ 0
+ ],
+ "vae": [
+ "405:385",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "LTXVLatentUpsampler"
+ }
+ },
+ "405:352": {
+ "class_type": "KSamplerSelect",
+ "inputs": {
+ "sampler_name": "euler_ancestral"
+ },
+ "_meta": {
+ "title": "KSamplerSelect"
+ }
+ },
+ "405:353": {
+ "class_type": "ComfyMathExpression",
+ "inputs": {
+ "values.a": [
+ "405:372",
+ 0
+ ],
+ "expression": "a/2"
+ },
+ "_meta": {
+ "title": "Math Expression"
+ }
+ },
+ "405:355": {
+ "class_type": "ComfyMathExpression",
+ "inputs": {
+ "values.a": [
+ "405:360",
+ 0
+ ],
+ "expression": "a/2"
+ },
+ "_meta": {
+ "title": "Math Expression"
+ }
+ },
+ "405:356": {
+ "class_type": "EmptyLTXVLatentVideo",
+ "inputs": {
+ "width": [
+ "405:353",
+ 1
+ ],
+ "height": [
+ "405:355",
+ 1
+ ],
+ "length": [
+ "405:378",
+ 1
+ ],
+ "batch_size": 1
+ },
+ "_meta": {
+ "title": "Empty LTXV Latent Video"
+ }
+ },
+ "405:358": {
+ "class_type": "LTXVAudioVAEDecode",
+ "inputs": {
+ "samples": [
+ "405:369",
+ 1
+ ],
+ "audio_vae": [
+ "405:386",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "LTXV Audio VAE Decode"
+ }
+ },
+ "405:359": {
+ "class_type": "ComfyMathExpression",
+ "inputs": {
+ "values.a": [
+ "405:361",
+ 0
+ ],
+ "expression": "a"
+ },
+ "_meta": {
+ "title": "Math Expression (fps)"
+ }
+ },
+ "405:360": {
+ "class_type": "PrimitiveInt",
+ "inputs": {
+ "value": [
+ "409",
+ 1
+ ]
+ },
+ "_meta": {
+ "title": "Height"
+ }
+ },
+ "405:361": {
+ "class_type": "PrimitiveInt",
+ "inputs": {
+ "value": 24
+ },
+ "_meta": {
+ "title": "Frame Rate"
+ }
+ },
+ "405:362": {
+ "class_type": "PrimitiveInt",
+ "inputs": {
+ "value": 5
+ },
+ "_meta": {
+ "title": "Duration"
+ }
+ },
+ "405:364": {
+ "class_type": "CLIPTextEncode",
+ "inputs": {
+ "clip": [
+ "405:387",
+ 0
+ ],
+ "text": [
+ "405:382",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "CLIP Text Encode (Prompt)"
+ }
+ },
+ "405:365": {
+ "class_type": "LTXVConditioning",
+ "inputs": {
+ "positive": [
+ "405:364",
+ 0
+ ],
+ "negative": [
+ "405:373",
+ 0
+ ],
+ "frame_rate": [
+ "405:359",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "LTXVConditioning"
+ }
+ },
+ "405:366": {
+ "class_type": "LTXVEmptyLatentAudio",
+ "inputs": {
+ "audio_vae": [
+ "405:386",
+ 0
+ ],
+ "frames_number": [
+ "405:378",
+ 1
+ ],
+ "frame_rate": [
+ "405:359",
+ 1
+ ],
+ "batch_size": 1
+ },
+ "_meta": {
+ "title": "Empty LTXV Latent Audio"
+ }
+ },
+ "405:367": {
+ "class_type": "LTXVSeparateAVLatent",
+ "inputs": {
+ "av_latent": [
+ "405:344",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Separate AV Latent"
+ }
+ },
+ "405:368": {
+ "class_type": "SamplerCustomAdvanced",
+ "inputs": {
+ "noise": [
+ "405:338",
+ 0
+ ],
+ "guider": [
+ "405:391",
+ 0
+ ],
+ "sampler": [
+ "405:341",
+ 0
+ ],
+ "sigmas": [
+ "405:395",
+ 0
+ ],
+ "latent_image": [
+ "405:340",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "SamplerCustomAdvanced"
+ }
+ },
+ "405:369": {
+ "class_type": "LTXVSeparateAVLatent",
+ "inputs": {
+ "av_latent": [
+ "405:368",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Separate AV Latent"
+ }
+ },
+ "405:370": {
+ "class_type": "CreateVideo",
+ "inputs": {
+ "images": [
+ "405:374",
+ 0
+ ],
+ "audio": [
+ "405:358",
+ 0
+ ],
+ "fps": [
+ "405:359",
+ 0
+ ],
+ "bit_depth": 8
+ },
+ "_meta": {
+ "title": "Create Video"
+ }
+ },
+ "405:371": {
+ "class_type": "LatentUpscaleModelLoader",
+ "inputs": {
+ "model_name": "ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors"
+ },
+ "_meta": {
+ "title": "Load Latent Upscale Model"
+ }
+ },
+ "405:372": {
+ "class_type": "PrimitiveInt",
+ "inputs": {
+ "value": [
+ "409",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Width"
+ }
+ },
+ "405:373": {
+ "class_type": "CLIPTextEncode",
+ "inputs": {
+ "clip": [
+ "405:387",
+ 0
+ ],
+ "text": "pc game, console game, video game, cartoon, childish, ugly"
+ },
+ "_meta": {
+ "title": "CLIP Text Encode (Prompt)"
+ }
+ },
+ "405:374": {
+ "class_type": "VAEDecodeTiled",
+ "inputs": {
+ "samples": [
+ "405:369",
+ 0
+ ],
+ "vae": [
+ "405:385",
+ 0
+ ],
+ "tile_size": 512,
+ "overlap": 64,
+ "temporal_size": 64,
+ "temporal_overlap": 16
+ },
+ "_meta": {
+ "title": "VAE Decode (Tiled)"
+ }
+ },
+ "405:376": {
+ "class_type": "PrimitiveStringMultiline",
+ "inputs": {
+ "value": "Dynamic cinematic close-up of high-tech modular machinery self-assembling in midair, precision robotic parts, magnetic connectors, and glowing circuits clicking together, subtle smoke and light flares, extremely detailed titanium textures. The final product displays a clean, clear surface with large glowing engraved text “LTX-2.5” centered and unobstructed, dramatic lighting, photorealism, 8K, sharp focus.\n"
+ },
+ "_meta": {
+ "title": "Prompt"
+ }
+ },
+ "405:377": {
+ "class_type": "LTXVConcatAVLatent",
+ "inputs": {
+ "video_latent": [
+ "405:356",
+ 0
+ ],
+ "audio_latent": [
+ "405:366",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Concat AV Latent"
+ }
+ },
+ "405:378": {
+ "class_type": "ComfyMathExpression",
+ "inputs": {
+ "values.a": [
+ "405:362",
+ 0
+ ],
+ "values.b": [
+ "405:361",
+ 0
+ ],
+ "expression": "a * b + 1"
+ },
+ "_meta": {
+ "title": "Math Expression (length)"
+ }
+ },
+ "405:380": {
+ "class_type": "TextGenerateLTX2Prompt",
+ "inputs": {
+ "clip": [
+ "405:393",
+ 0
+ ],
+ "prompt": [
+ "405:376",
+ 0
+ ],
+ "max_length": 600,
+ "sampling_mode": "on",
+ "sampling_mode.temperature": 0.7,
+ "sampling_mode.top_k": 64,
+ "sampling_mode.top_p": 0.95,
+ "sampling_mode.min_p": 0.05,
+ "sampling_mode.repetition_penalty": 1.15,
+ "sampling_mode.seed": 0,
+ "sampling_mode.presence_penalty": 0,
+ "thinking": false,
+ "use_default_template": true
+ },
+ "_meta": {
+ "title": "Generate LTX2 Prompt"
+ }
+ },
+ "405:382": {
+ "class_type": "ComfySwitchNode",
+ "inputs": {
+ "on_false": [
+ "405:376",
+ 0
+ ],
+ "on_true": [
+ "405:380",
+ 0
+ ],
+ "switch": [
+ "405:383",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "If/Else Switch"
+ }
+ },
+ "405:383": {
+ "class_type": "PrimitiveBoolean",
+ "inputs": {
+ "value": true
+ },
+ "_meta": {
+ "title": "Boolean (Enable Prompt Enhance)"
+ }
+ },
+ "405:384": {
+ "class_type": "UNETLoader",
+ "inputs": {
+ "unet_name": "ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors",
+ "weight_dtype": "default"
+ },
+ "_meta": {
+ "title": "Load Diffusion Model"
+ }
+ },
+ "405:385": {
+ "class_type": "VAELoader",
+ "inputs": {
+ "vae_name": "ltx-2.5-video-vae-bf16.safetensors"
+ },
+ "_meta": {
+ "title": "Load VAE"
+ }
+ },
+ "405:386": {
+ "class_type": "VAELoader",
+ "inputs": {
+ "vae_name": "ltx-2.5-audio-vae-bf16.safetensors"
+ },
+ "_meta": {
+ "title": "Load VAE"
+ }
+ },
+ "405:387": {
+ "class_type": "CLIPLoader",
+ "inputs": {
+ "clip_name": "gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors",
+ "type": "ltxv",
+ "device": "default"
+ },
+ "_meta": {
+ "title": "Load CLIP"
+ }
+ },
+ "405:388": {
+ "class_type": "LTXVDualCFGGuider",
+ "inputs": {
+ "model": [
+ "405:384",
+ 0
+ ],
+ "positive": [
+ "405:365",
+ 0
+ ],
+ "negative": [
+ "405:365",
+ 1
+ ],
+ "video_cfg": 1,
+ "audio_cfg": 1
+ },
+ "_meta": {
+ "title": "LTXV Dual CFG Guider"
+ }
+ },
+ "405:391": {
+ "class_type": "LTXVDualCFGGuider",
+ "inputs": {
+ "model": [
+ "405:384",
+ 0
+ ],
+ "positive": [
+ "405:365",
+ 0
+ ],
+ "negative": [
+ "405:365",
+ 1
+ ],
+ "video_cfg": 1,
+ "audio_cfg": 1
+ },
+ "_meta": {
+ "title": "LTXV Dual CFG Guider"
+ }
+ },
+ "405:393": {
+ "class_type": "CLIPLoader",
+ "inputs": {
+ "clip_name": "gemma4_e2b_it_int8_convrot.safetensors",
+ "type": "ltxv",
+ "device": "default"
+ },
+ "_meta": {
+ "title": "Load CLIP"
+ }
+ },
+ "405:395": {
+ "class_type": "ManualSigmas",
+ "inputs": {
+ "sigmas": "0.85, 0.7250, 0.4219, 0.0"
+ },
+ "_meta": {
+ "title": "ManualSigmas"
+ }
+ },
+ "405:404": {
+ "class_type": "ManualSigmas",
+ "inputs": {
+ "sigmas": "1.0, 0.99375, 0.9875, 0.98125, 0.975, 0.909375, 0.725, 0.421875, 0.0"
+ },
+ "_meta": {
+ "title": "ManualSigmas"
+ }
+ },
+ "409": {
+ "class_type": "ResolutionSelector",
+ "inputs": {
+ "aspect_ratio": "16:9 (Widescreen)",
+ "megapixels": 0.9,
+ "multiple": 32
+ },
+ "_meta": {
+ "title": "Resolution Selector"
+ }
+ }
+}
diff --git a/apps/video/app.json b/apps/video/app.json
new file mode 100644
index 0000000..9ecd116
--- /dev/null
+++ b/apps/video/app.json
@@ -0,0 +1,196 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "video",
+ "name": "Image to Video",
+ "section": "video",
+ "pack": "video-ltx25",
+ "status": "ready",
+ "higgsfield_feature": "Create Video",
+ "summary": "Animates a still into a shot with synchronized audio, two stages with LTX-2.5.",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "video_ltx2_5_i2v.json",
+ "comfyui": "0.42.0"
+ },
+ "inputs": [
+ {
+ "id": "image",
+ "type": "image",
+ "label": "First frame",
+ "required": true,
+ "limits": {
+ "max_mb": 20
+ },
+ "bind": [
+ {
+ "node": "395",
+ "field": "image"
+ }
+ ]
+ },
+ {
+ "id": "prompt",
+ "type": "textarea",
+ "label": "Prompt",
+ "required": true,
+ "default": "The camera slowly pushes in as she turns her head toward the light, hair moving in the wind",
+ "bind": [
+ {
+ "node": "398:376",
+ "field": "value"
+ }
+ ]
+ },
+ {
+ "id": "duration",
+ "type": "slider",
+ "label": "Seconds",
+ "min": 2,
+ "max": 10,
+ "step": 1,
+ "default": 5,
+ "bind": [
+ {
+ "node": "398:362",
+ "field": "value"
+ }
+ ]
+ },
+ {
+ "id": "enhance",
+ "type": "toggle",
+ "label": "Enhance prompt",
+ "default": true,
+ "help": "Rewrites your prompt with a small Gemma 4 model first",
+ "bind": [
+ {
+ "node": "398:383",
+ "field": "value"
+ }
+ ]
+ },
+ {
+ "id": "aspect",
+ "type": "select",
+ "label": "Aspect ratio",
+ "default": "16:9 (Widescreen)",
+ "options": [
+ {
+ "value": "16:9 (Widescreen)",
+ "label": "16:9"
+ },
+ {
+ "value": "9:16 (Portrait Widescreen)",
+ "label": "9:16"
+ },
+ {
+ "value": "1:1 (Square)",
+ "label": "1:1"
+ },
+ {
+ "value": "4:3 (Standard)",
+ "label": "4:3"
+ },
+ {
+ "value": "3:4 (Portrait Standard)",
+ "label": "3:4"
+ },
+ {
+ "value": "21:9 (Ultrawide)",
+ "label": "21:9"
+ }
+ ],
+ "bind": [
+ {
+ "node": "403",
+ "field": "aspect_ratio"
+ }
+ ]
+ },
+ {
+ "id": "seed",
+ "type": "seed",
+ "label": "Seed",
+ "default": -1,
+ "help": "-1 picks a random seed",
+ "bind": [
+ {
+ "node": "398:339",
+ "field": "noise_seed"
+ }
+ ]
+ }
+ ],
+ "outputs": [
+ {
+ "node": "75",
+ "type": "video",
+ "label": "Video"
+ }
+ ],
+ "models": [
+ {
+ "repo": "Lightricks/LTX-2.5",
+ "file": "diffusion_models/ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors",
+ "dir": "diffusion_models",
+ "gb": 21.5,
+ "phase": "denoise",
+ "gated": true,
+ "license": "LTX-2.x Community License"
+ },
+ {
+ "repo": "Lightricks/LTX-2.5",
+ "file": "text_encoders/gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors",
+ "dir": "text_encoders",
+ "gb": 15.37,
+ "phase": "encode",
+ "gated": true,
+ "license": "LTX-2.x Community License"
+ },
+ {
+ "repo": "Lightricks/LTX-2.5",
+ "file": "vae/ltx-2.5-video-vae-bf16.safetensors",
+ "dir": "vae",
+ "gb": 1.47,
+ "phase": "decode",
+ "gated": true,
+ "license": "LTX-2.x Community License"
+ },
+ {
+ "repo": "Lightricks/LTX-2.5",
+ "file": "vae/ltx-2.5-audio-vae-bf16.safetensors",
+ "dir": "vae",
+ "gb": 0.36,
+ "phase": "decode",
+ "gated": true,
+ "license": "LTX-2.x Community License"
+ },
+ {
+ "repo": "Lightricks/LTX-2.5",
+ "file": "latent_upscale_models/ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors",
+ "dir": "latent_upscale_models",
+ "gb": 1.0,
+ "phase": "aux",
+ "gated": true,
+ "license": "LTX-2.x Community License"
+ },
+ {
+ "repo": "Comfy-Org/gemma-4",
+ "file": "text_encoders/gemma4_e2b_it_int8_convrot.safetensors",
+ "dir": "text_encoders",
+ "gb": 5.2,
+ "phase": "encode",
+ "license": "Apache-2.0",
+ "optional": true
+ }
+ ],
+ "credits": [
+ "LTX-2.5 by Lightricks",
+ "Workflow adapted from ComfyUI's official LTX-2.5 template"
+ ],
+ "test": {
+ "image": "test/portrait.png",
+ "prompt": "she smiles and looks at the camera",
+ "duration": 2
+ }
+}
diff --git a/apps/video/workflow.api.json b/apps/video/workflow.api.json
new file mode 100644
index 0000000..c8c2427
--- /dev/null
+++ b/apps/video/workflow.api.json
@@ -0,0 +1,728 @@
+{
+ "75": {
+ "class_type": "SaveVideo",
+ "inputs": {
+ "video": [
+ "398:370",
+ 0
+ ],
+ "filename_prefix": "freefield/video",
+ "format": "auto",
+ "format.codec": "auto"
+ },
+ "_meta": {
+ "title": "Save Video"
+ }
+ },
+ "395": {
+ "class_type": "LoadImage",
+ "inputs": {
+ "image": "neon_cyborg_portrait.png"
+ },
+ "_meta": {
+ "title": "Load First Frame"
+ }
+ },
+ "398:338": {
+ "class_type": "RandomNoise",
+ "inputs": {
+ "noise_seed": 42
+ },
+ "_meta": {
+ "title": "RandomNoise"
+ }
+ },
+ "398:339": {
+ "class_type": "RandomNoise",
+ "inputs": {
+ "noise_seed": 900359092894726
+ },
+ "_meta": {
+ "title": "RandomNoise"
+ }
+ },
+ "398:340": {
+ "class_type": "LTXVConcatAVLatent",
+ "inputs": {
+ "video_latent": [
+ "398:349",
+ 0
+ ],
+ "audio_latent": [
+ "398:367",
+ 1
+ ]
+ },
+ "_meta": {
+ "title": "Concat AV Latent"
+ }
+ },
+ "398:341": {
+ "class_type": "KSamplerSelect",
+ "inputs": {
+ "sampler_name": "euler_ancestral"
+ },
+ "_meta": {
+ "title": "KSamplerSelect"
+ }
+ },
+ "398:344": {
+ "class_type": "SamplerCustomAdvanced",
+ "inputs": {
+ "noise": [
+ "398:339",
+ 0
+ ],
+ "guider": [
+ "398:388",
+ 0
+ ],
+ "sampler": [
+ "398:352",
+ 0
+ ],
+ "sigmas": [
+ "398:397",
+ 0
+ ],
+ "latent_image": [
+ "398:377",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "SamplerCustomAdvanced"
+ }
+ },
+ "398:348": {
+ "class_type": "LTXVLatentUpsampler",
+ "inputs": {
+ "samples": [
+ "398:367",
+ 0
+ ],
+ "upscale_model": [
+ "398:371",
+ 0
+ ],
+ "vae": [
+ "398:385",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "LTXVLatentUpsampler"
+ }
+ },
+ "398:349": {
+ "class_type": "LTXVImgToVideoInplace",
+ "inputs": {
+ "vae": [
+ "398:385",
+ 0
+ ],
+ "image": [
+ "398:350",
+ 0
+ ],
+ "latent": [
+ "398:348",
+ 0
+ ],
+ "bypass": [
+ "398:363",
+ 0
+ ],
+ "strength": 1
+ },
+ "_meta": {
+ "title": "LTXVImgToVideoInplace"
+ }
+ },
+ "398:350": {
+ "class_type": "LTXVPreprocess",
+ "inputs": {
+ "image": [
+ "398:351",
+ 0
+ ],
+ "img_compression": 18
+ },
+ "_meta": {
+ "title": "LTXV Preprocess"
+ }
+ },
+ "398:351": {
+ "class_type": "ResizeImageMaskNode",
+ "inputs": {
+ "input": [
+ "395",
+ 0
+ ],
+ "resize_type": "scale longer dimension",
+ "resize_type.longer_size": 1536,
+ "scale_method": "lanczos"
+ },
+ "_meta": {
+ "title": "Resize Image/Mask"
+ }
+ },
+ "398:352": {
+ "class_type": "KSamplerSelect",
+ "inputs": {
+ "sampler_name": "euler_ancestral"
+ },
+ "_meta": {
+ "title": "KSamplerSelect"
+ }
+ },
+ "398:353": {
+ "class_type": "ComfyMathExpression",
+ "inputs": {
+ "values.a": [
+ "398:372",
+ 0
+ ],
+ "expression": "a/2"
+ },
+ "_meta": {
+ "title": "Math Expression"
+ }
+ },
+ "398:355": {
+ "class_type": "ComfyMathExpression",
+ "inputs": {
+ "values.a": [
+ "398:360",
+ 0
+ ],
+ "expression": "a/2"
+ },
+ "_meta": {
+ "title": "Math Expression"
+ }
+ },
+ "398:356": {
+ "class_type": "EmptyLTXVLatentVideo",
+ "inputs": {
+ "width": [
+ "398:353",
+ 1
+ ],
+ "height": [
+ "398:355",
+ 1
+ ],
+ "length": [
+ "398:378",
+ 1
+ ],
+ "batch_size": 1
+ },
+ "_meta": {
+ "title": "Empty LTXV Latent Video"
+ }
+ },
+ "398:357": {
+ "class_type": "LTXVImgToVideoInplace",
+ "inputs": {
+ "vae": [
+ "398:385",
+ 0
+ ],
+ "image": [
+ "398:350",
+ 0
+ ],
+ "latent": [
+ "398:356",
+ 0
+ ],
+ "bypass": [
+ "398:363",
+ 0
+ ],
+ "strength": 0.7
+ },
+ "_meta": {
+ "title": "LTXVImgToVideoInplace"
+ }
+ },
+ "398:358": {
+ "class_type": "LTXVAudioVAEDecode",
+ "inputs": {
+ "samples": [
+ "398:369",
+ 1
+ ],
+ "audio_vae": [
+ "398:386",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "LTXV Audio VAE Decode"
+ }
+ },
+ "398:359": {
+ "class_type": "ComfyMathExpression",
+ "inputs": {
+ "values.a": [
+ "398:361",
+ 0
+ ],
+ "expression": "a"
+ },
+ "_meta": {
+ "title": "Math Expression (fps)"
+ }
+ },
+ "398:360": {
+ "class_type": "PrimitiveInt",
+ "inputs": {
+ "value": [
+ "403",
+ 1
+ ]
+ },
+ "_meta": {
+ "title": "Height"
+ }
+ },
+ "398:361": {
+ "class_type": "PrimitiveInt",
+ "inputs": {
+ "value": 24
+ },
+ "_meta": {
+ "title": "Frame Rate"
+ }
+ },
+ "398:362": {
+ "class_type": "PrimitiveInt",
+ "inputs": {
+ "value": 5
+ },
+ "_meta": {
+ "title": "Duration"
+ }
+ },
+ "398:363": {
+ "class_type": "PrimitiveBoolean",
+ "inputs": {
+ "value": false
+ },
+ "_meta": {
+ "title": "Switch to Text to Video?"
+ }
+ },
+ "398:364": {
+ "class_type": "CLIPTextEncode",
+ "inputs": {
+ "clip": [
+ "398:387",
+ 0
+ ],
+ "text": [
+ "398:382",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "CLIP Text Encode (Prompt)"
+ }
+ },
+ "398:365": {
+ "class_type": "LTXVConditioning",
+ "inputs": {
+ "positive": [
+ "398:364",
+ 0
+ ],
+ "negative": [
+ "398:373",
+ 0
+ ],
+ "frame_rate": [
+ "398:359",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "LTXVConditioning"
+ }
+ },
+ "398:366": {
+ "class_type": "LTXVEmptyLatentAudio",
+ "inputs": {
+ "audio_vae": [
+ "398:386",
+ 0
+ ],
+ "frames_number": [
+ "398:378",
+ 1
+ ],
+ "frame_rate": [
+ "398:359",
+ 1
+ ],
+ "batch_size": 1
+ },
+ "_meta": {
+ "title": "Empty LTXV Latent Audio"
+ }
+ },
+ "398:367": {
+ "class_type": "LTXVSeparateAVLatent",
+ "inputs": {
+ "av_latent": [
+ "398:344",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Separate AV Latent"
+ }
+ },
+ "398:368": {
+ "class_type": "SamplerCustomAdvanced",
+ "inputs": {
+ "noise": [
+ "398:338",
+ 0
+ ],
+ "guider": [
+ "398:391",
+ 0
+ ],
+ "sampler": [
+ "398:341",
+ 0
+ ],
+ "sigmas": [
+ "398:396",
+ 0
+ ],
+ "latent_image": [
+ "398:340",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "SamplerCustomAdvanced"
+ }
+ },
+ "398:369": {
+ "class_type": "LTXVSeparateAVLatent",
+ "inputs": {
+ "av_latent": [
+ "398:368",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Separate AV Latent"
+ }
+ },
+ "398:370": {
+ "class_type": "CreateVideo",
+ "inputs": {
+ "images": [
+ "398:374",
+ 0
+ ],
+ "audio": [
+ "398:358",
+ 0
+ ],
+ "fps": [
+ "398:359",
+ 0
+ ],
+ "bit_depth": 8
+ },
+ "_meta": {
+ "title": "Create Video"
+ }
+ },
+ "398:371": {
+ "class_type": "LatentUpscaleModelLoader",
+ "inputs": {
+ "model_name": "ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors"
+ },
+ "_meta": {
+ "title": "Load Latent Upscale Model"
+ }
+ },
+ "398:372": {
+ "class_type": "PrimitiveInt",
+ "inputs": {
+ "value": [
+ "403",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Width"
+ }
+ },
+ "398:373": {
+ "class_type": "CLIPTextEncode",
+ "inputs": {
+ "clip": [
+ "398:387",
+ 0
+ ],
+ "text": "pc game, console game, video game, cartoon, childish, ugly"
+ },
+ "_meta": {
+ "title": "CLIP Text Encode (Prompt)"
+ }
+ },
+ "398:374": {
+ "class_type": "VAEDecodeTiled",
+ "inputs": {
+ "samples": [
+ "398:369",
+ 0
+ ],
+ "vae": [
+ "398:385",
+ 0
+ ],
+ "tile_size": 512,
+ "overlap": 64,
+ "temporal_size": 64,
+ "temporal_overlap": 16
+ },
+ "_meta": {
+ "title": "VAE Decode (Tiled)"
+ }
+ },
+ "398:376": {
+ "class_type": "PrimitiveStringMultiline",
+ "inputs": {
+ "value": "Egyptian royal in blue-and-gold headdress and high collar, white dress with golden embroidery and armbands, desert, robot soldiers in formation left and right. She walks steadily forward, head held level and gaze fixed ahead—no dipping or lowering of the head. The camera performs a single, smooth push-in only: starting in a wider shot of her, the robots, and the desert, it moves steadily forward until she is in a medium or medium-close frame, then holds. She stops, posture and head still upright, and says: “The old gods are silent. I am not.” Robot soldiers shift or march in place; sand and fabric move with the wind. No pull-back; the only camera move is the continuous push-in."
+ },
+ "_meta": {
+ "title": "Prompt"
+ }
+ },
+ "398:377": {
+ "class_type": "LTXVConcatAVLatent",
+ "inputs": {
+ "video_latent": [
+ "398:357",
+ 0
+ ],
+ "audio_latent": [
+ "398:366",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Concat AV Latent"
+ }
+ },
+ "398:378": {
+ "class_type": "ComfyMathExpression",
+ "inputs": {
+ "values.a": [
+ "398:362",
+ 0
+ ],
+ "values.b": [
+ "398:361",
+ 0
+ ],
+ "expression": "a * b + 1"
+ },
+ "_meta": {
+ "title": "Math Expression (length)"
+ }
+ },
+ "398:380": {
+ "class_type": "TextGenerateLTX2Prompt",
+ "inputs": {
+ "clip": [
+ "398:393",
+ 0
+ ],
+ "image": [
+ "398:350",
+ 0
+ ],
+ "prompt": [
+ "398:376",
+ 0
+ ],
+ "max_length": 600,
+ "sampling_mode": "on",
+ "sampling_mode.temperature": 0.7,
+ "sampling_mode.top_k": 64,
+ "sampling_mode.top_p": 0.95,
+ "sampling_mode.min_p": 0.05,
+ "sampling_mode.repetition_penalty": 1.15,
+ "sampling_mode.seed": 0,
+ "sampling_mode.presence_penalty": 0,
+ "thinking": false,
+ "use_default_template": true
+ },
+ "_meta": {
+ "title": "Generate LTX2 Prompt"
+ }
+ },
+ "398:382": {
+ "class_type": "ComfySwitchNode",
+ "inputs": {
+ "on_false": [
+ "398:376",
+ 0
+ ],
+ "on_true": [
+ "398:380",
+ 0
+ ],
+ "switch": [
+ "398:383",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "If/Else Switch"
+ }
+ },
+ "398:383": {
+ "class_type": "PrimitiveBoolean",
+ "inputs": {
+ "value": true
+ },
+ "_meta": {
+ "title": "Boolean (Enable Prompt Enhance)"
+ }
+ },
+ "398:384": {
+ "class_type": "UNETLoader",
+ "inputs": {
+ "unet_name": "ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors",
+ "weight_dtype": "default"
+ },
+ "_meta": {
+ "title": "Load Diffusion Model"
+ }
+ },
+ "398:385": {
+ "class_type": "VAELoader",
+ "inputs": {
+ "vae_name": "ltx-2.5-video-vae-bf16.safetensors"
+ },
+ "_meta": {
+ "title": "Load VAE"
+ }
+ },
+ "398:386": {
+ "class_type": "VAELoader",
+ "inputs": {
+ "vae_name": "ltx-2.5-audio-vae-bf16.safetensors"
+ },
+ "_meta": {
+ "title": "Load VAE"
+ }
+ },
+ "398:387": {
+ "class_type": "CLIPLoader",
+ "inputs": {
+ "clip_name": "gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors",
+ "type": "ltxv",
+ "device": "default"
+ },
+ "_meta": {
+ "title": "Load CLIP"
+ }
+ },
+ "398:388": {
+ "class_type": "LTXVDualCFGGuider",
+ "inputs": {
+ "model": [
+ "398:384",
+ 0
+ ],
+ "positive": [
+ "398:365",
+ 0
+ ],
+ "negative": [
+ "398:365",
+ 1
+ ],
+ "video_cfg": 1,
+ "audio_cfg": 1
+ },
+ "_meta": {
+ "title": "LTXV Dual CFG Guider"
+ }
+ },
+ "398:391": {
+ "class_type": "LTXVDualCFGGuider",
+ "inputs": {
+ "model": [
+ "398:384",
+ 0
+ ],
+ "positive": [
+ "398:365",
+ 0
+ ],
+ "negative": [
+ "398:365",
+ 1
+ ],
+ "video_cfg": 1,
+ "audio_cfg": 1
+ },
+ "_meta": {
+ "title": "LTXV Dual CFG Guider"
+ }
+ },
+ "398:393": {
+ "class_type": "CLIPLoader",
+ "inputs": {
+ "clip_name": "gemma4_e2b_it_int8_convrot.safetensors",
+ "type": "ltxv",
+ "device": "default"
+ },
+ "_meta": {
+ "title": "Load CLIP"
+ }
+ },
+ "398:396": {
+ "class_type": "ManualSigmas",
+ "inputs": {
+ "sigmas": "0.85, 0.7250, 0.4219, 0.0"
+ },
+ "_meta": {
+ "title": "ManualSigmas"
+ }
+ },
+ "398:397": {
+ "class_type": "ManualSigmas",
+ "inputs": {
+ "sigmas": "1.0, 0.99375, 0.9875, 0.98125, 0.975, 0.909375, 0.725, 0.421875, 0.0"
+ },
+ "_meta": {
+ "title": "ManualSigmas"
+ }
+ },
+ "403": {
+ "class_type": "ResolutionSelector",
+ "inputs": {
+ "aspect_ratio": "16:9 (Widescreen)",
+ "megapixels": 0.9,
+ "multiple": 32
+ },
+ "_meta": {
+ "title": "Resolution Selector"
+ }
+ }
+}
diff --git a/apps/z-image/app.json b/apps/z-image/app.json
new file mode 100644
index 0000000..c84672d
--- /dev/null
+++ b/apps/z-image/app.json
@@ -0,0 +1,157 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "z-image",
+ "name": "Create Image",
+ "section": "image",
+ "pack": "image",
+ "status": "ready",
+ "higgsfield_feature": "Create Image",
+ "summary": "Text to image with Z-Image Turbo, 8 steps.",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "image_z_image_turbo_int8.json",
+ "comfyui": "0.42.0"
+ },
+ "inputs": [
+ {
+ "id": "prompt",
+ "type": "textarea",
+ "label": "Prompt",
+ "required": true,
+ "default": "A rainy neon street in Mexico City at night, cinematic, 35mm",
+ "bind": [
+ {
+ "node": "57:27",
+ "field": "text"
+ }
+ ]
+ },
+ {
+ "id": "width",
+ "type": "select",
+ "label": "Width",
+ "default": 1024,
+ "options": [
+ {
+ "value": 768,
+ "label": "768"
+ },
+ {
+ "value": 1024,
+ "label": "1024"
+ },
+ {
+ "value": 1280,
+ "label": "1280"
+ },
+ {
+ "value": 1536,
+ "label": "1536"
+ }
+ ],
+ "bind": [
+ {
+ "node": "57:13",
+ "field": "width"
+ }
+ ]
+ },
+ {
+ "id": "height",
+ "type": "select",
+ "label": "Height",
+ "default": 1024,
+ "options": [
+ {
+ "value": 768,
+ "label": "768"
+ },
+ {
+ "value": 1024,
+ "label": "1024"
+ },
+ {
+ "value": 1280,
+ "label": "1280"
+ },
+ {
+ "value": 1536,
+ "label": "1536"
+ }
+ ],
+ "bind": [
+ {
+ "node": "57:13",
+ "field": "height"
+ }
+ ]
+ },
+ {
+ "id": "steps",
+ "type": "slider",
+ "label": "Steps",
+ "min": 4,
+ "max": 16,
+ "step": 1,
+ "default": 8,
+ "bind": [
+ {
+ "node": "57:3",
+ "field": "steps"
+ }
+ ]
+ },
+ {
+ "id": "seed",
+ "type": "seed",
+ "label": "Seed",
+ "default": -1,
+ "help": "-1 picks a random seed",
+ "bind": [
+ {
+ "node": "57:3",
+ "field": "seed"
+ }
+ ]
+ }
+ ],
+ "outputs": [
+ {
+ "node": "9",
+ "type": "image",
+ "label": "Image"
+ }
+ ],
+ "models": [
+ {
+ "repo": "Comfy-Org/z_image_turbo",
+ "file": "split_files/diffusion_models/z_image_turbo_int8_convrot.safetensors",
+ "dir": "diffusion_models",
+ "gb": 6.2,
+ "phase": "denoise",
+ "license": "Apache-2.0"
+ },
+ {
+ "repo": "Comfy-Org/z_image_turbo",
+ "file": "split_files/text_encoders/qwen_3_4b_fp8_mixed.safetensors",
+ "dir": "text_encoders",
+ "gb": 5.63,
+ "phase": "encode",
+ "license": "Apache-2.0"
+ },
+ {
+ "repo": "Comfy-Org/z_image_turbo",
+ "file": "split_files/vae/ae.safetensors",
+ "dir": "vae",
+ "gb": 0.34,
+ "phase": "decode",
+ "license": "Apache-2.0"
+ }
+ ],
+ "credits": [
+ "Z-Image Turbo by Tongyi-MAI (Apache-2.0)"
+ ],
+ "test": {
+ "prompt": "a red bicycle against a white wall"
+ }
+}
diff --git a/apps/z-image/workflow.api.json b/apps/z-image/workflow.api.json
new file mode 100644
index 0000000..58c8731
--- /dev/null
+++ b/apps/z-image/workflow.api.json
@@ -0,0 +1,140 @@
+{
+ "9": {
+ "class_type": "SaveImage",
+ "inputs": {
+ "images": [
+ "57:8",
+ 0
+ ],
+ "filename_prefix": "freefield/z-image"
+ },
+ "_meta": {
+ "title": "Save Image"
+ }
+ },
+ "57:3": {
+ "class_type": "KSampler",
+ "inputs": {
+ "model": [
+ "57:11",
+ 0
+ ],
+ "positive": [
+ "57:27",
+ 0
+ ],
+ "negative": [
+ "57:33",
+ 0
+ ],
+ "latent_image": [
+ "57:13",
+ 0
+ ],
+ "seed": 121725701057393,
+ "steps": 8,
+ "cfg": 1,
+ "sampler_name": "res_multistep",
+ "scheduler": "simple",
+ "denoise": 1
+ },
+ "_meta": {
+ "title": "KSampler"
+ }
+ },
+ "57:8": {
+ "class_type": "VAEDecode",
+ "inputs": {
+ "samples": [
+ "57:3",
+ 0
+ ],
+ "vae": [
+ "57:29",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "VAE Decode"
+ }
+ },
+ "57:11": {
+ "class_type": "ModelSamplingAuraFlow",
+ "inputs": {
+ "model": [
+ "57:28",
+ 0
+ ],
+ "shift": 3
+ },
+ "_meta": {
+ "title": "ModelSamplingAuraFlow"
+ }
+ },
+ "57:13": {
+ "class_type": "EmptySD3LatentImage",
+ "inputs": {
+ "width": 1024,
+ "height": 1024,
+ "batch_size": 1
+ },
+ "_meta": {
+ "title": "EmptySD3LatentImage"
+ }
+ },
+ "57:27": {
+ "class_type": "CLIPTextEncode",
+ "inputs": {
+ "clip": [
+ "57:30",
+ 0
+ ],
+ "text": "Dramatic black and white high fashion studio portrait, close-up bust shot, pale platinum blonde woman with sleek low ponytail, head tilted upward, eyes softly closed, wearing a fitted black turtleneck top. A large translucent pale white butterfly hovers gently right at her lips, delicate detailed wing veins visible. Hard rim light creates glowing bright white halo around her hair and face, deep inky pure black minimalist background, stark high contrast chiaroscuro lighting, film grain texture, moody ethereal atmosphere, monochrome, editorial fashion photography, shot on 35mm film, soft subtle skin texture, sharp focus on butterfly and facial profile, vertical composition, minimalist dark aesthetic, artistic surreal fashion"
+ },
+ "_meta": {
+ "title": "CLIP Text Encode (Prompt)"
+ }
+ },
+ "57:28": {
+ "class_type": "UNETLoader",
+ "inputs": {
+ "unet_name": "z_image_turbo_int8_convrot.safetensors",
+ "weight_dtype": "default"
+ },
+ "_meta": {
+ "title": "Load Diffusion Model"
+ }
+ },
+ "57:29": {
+ "class_type": "VAELoader",
+ "inputs": {
+ "vae_name": "ae.safetensors"
+ },
+ "_meta": {
+ "title": "Load VAE"
+ }
+ },
+ "57:30": {
+ "class_type": "CLIPLoader",
+ "inputs": {
+ "clip_name": "qwen_3_4b_fp8_mixed.safetensors",
+ "type": "lumina2",
+ "device": "default"
+ },
+ "_meta": {
+ "title": "Load CLIP"
+ }
+ },
+ "57:33": {
+ "class_type": "ConditioningZeroOut",
+ "inputs": {
+ "conditioning": [
+ "57:27",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Conditioning Zero Out"
+ }
+ }
+}
diff --git a/ci/validate.yml b/ci/validate.yml
new file mode 100644
index 0000000..71cc71f
--- /dev/null
+++ b/ci/validate.yml
@@ -0,0 +1,46 @@
+name: validate
+
+on:
+ push:
+ pull_request:
+
+permissions:
+ contents: read
+
+jobs:
+ manifests:
+ name: manifests, tests, generated files
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ - uses: actions/setup-node@v4
+ with:
+ node-version: 22
+ cache: npm
+ - run: npm ci
+ - run: npm run validate
+ - run: npm test
+ - run: npm run typecheck
+ - uses: actions/setup-python@v5
+ with:
+ python-version: "3.12"
+ - run: python -m compileall -q infra lab tools
+ - name: packs and VRAM map match the manifests
+ run: |
+ python tools/catalog.py all
+ git diff --exit-code packs docs
+
+ comfyui:
+ name: ComfyUI accepts every workflow and lab case (CPU)
+ needs: manifests
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ - uses: actions/setup-python@v5
+ with:
+ python-version: "3.12"
+ - run: bash tools/ci_comfyui.sh "$RUNNER_TEMP/comfyui"
+ - run: python tools/comfy_validate.py --comfy-dir "$RUNNER_TEMP/comfyui" --placeholders
+ - run: python tools/comfy_validate.py --comfy-dir "$RUNNER_TEMP/comfyui" --placeholders --lab lab/cases.json
+ - if: failure()
+ run: tail -100 "$RUNNER_TEMP/comfyui/comfyui.log"
diff --git a/docs/vram-map.json b/docs/vram-map.json
new file mode 100644
index 0000000..e40c620
--- /dev/null
+++ b/docs/vram-map.json
@@ -0,0 +1,725 @@
+{
+ "local_gb": 24.0,
+ "headroom_gb": 4.0,
+ "apps": [
+ {
+ "id": "smooth",
+ "name": "Smooth & Slow-mo",
+ "section": "utility",
+ "pack": "upscale",
+ "status": "ready",
+ "whole_gb": 0.07,
+ "phases_gb": {
+ "encode": 0.07,
+ "denoise": 0.07,
+ "denoise2": 0.0,
+ "decode": 0.07,
+ "aux": 0.0
+ },
+ "largest_phase": "encode",
+ "largest_phase_gb": 0.07,
+ "optional_gb": 0,
+ "biggest_file": {
+ "name": "film_net_fp16.safetensors",
+ "gb": 0.07
+ },
+ "verdict_24gb": "fits whole",
+ "modal_gpu": "L4 / A10G (24 GB)",
+ "measured_peak_gb": null
+ },
+ {
+ "id": "remove-bg",
+ "name": "Remove Background",
+ "section": "image",
+ "pack": "upscale",
+ "status": "ready",
+ "whole_gb": 0.44,
+ "phases_gb": {
+ "encode": 0.44,
+ "denoise": 0.44,
+ "denoise2": 0.0,
+ "decode": 0.44,
+ "aux": 0.0
+ },
+ "largest_phase": "encode",
+ "largest_phase_gb": 0.44,
+ "optional_gb": 0,
+ "biggest_file": {
+ "name": "birefnet.safetensors",
+ "gb": 0.44
+ },
+ "verdict_24gb": "fits whole",
+ "modal_gpu": "L4 / A10G (24 GB)",
+ "measured_peak_gb": null
+ },
+ {
+ "id": "upscale",
+ "name": "Upscale Image",
+ "section": "image",
+ "pack": "upscale",
+ "status": "ready",
+ "whole_gb": 3.96,
+ "phases_gb": {
+ "encode": 0.0,
+ "denoise": 3.46,
+ "denoise2": 0.0,
+ "decode": 0.5,
+ "aux": 0.0
+ },
+ "largest_phase": "denoise",
+ "largest_phase_gb": 3.46,
+ "optional_gb": 0,
+ "biggest_file": {
+ "name": "seedvr2_3b_int8_convrot.safetensors",
+ "gb": 3.46
+ },
+ "verdict_24gb": "fits whole",
+ "modal_gpu": "L4 / A10G (24 GB)",
+ "measured_peak_gb": null
+ },
+ {
+ "id": "upscale-video",
+ "name": "Upscale Video",
+ "section": "video",
+ "pack": "upscale",
+ "status": "ready",
+ "whole_gb": 3.96,
+ "phases_gb": {
+ "encode": 0.0,
+ "denoise": 3.46,
+ "denoise2": 0.0,
+ "decode": 0.5,
+ "aux": 0.0
+ },
+ "largest_phase": "denoise",
+ "largest_phase_gb": 3.46,
+ "optional_gb": 0,
+ "biggest_file": {
+ "name": "seedvr2_3b_int8_convrot.safetensors",
+ "gb": 3.46
+ },
+ "verdict_24gb": "fits whole",
+ "modal_gpu": "L4 / A10G (24 GB)",
+ "measured_peak_gb": null
+ },
+ {
+ "id": "character",
+ "name": "Consistent Character",
+ "section": "image",
+ "pack": "image-flux3",
+ "status": "ready",
+ "whole_gb": 11.03,
+ "phases_gb": {
+ "encode": 4.86,
+ "denoise": 5.83,
+ "denoise2": 0.0,
+ "decode": 0.34,
+ "aux": 0.0
+ },
+ "largest_phase": "denoise",
+ "largest_phase_gb": 5.83,
+ "optional_gb": 0,
+ "biggest_file": {
+ "name": "flux3-image-klein-int8-convrot.safetensors",
+ "gb": 5.83
+ },
+ "verdict_24gb": "fits whole",
+ "modal_gpu": "L4 / A10G (24 GB)",
+ "measured_peak_gb": null
+ },
+ {
+ "id": "edit",
+ "name": "Edit Image",
+ "section": "image",
+ "pack": "image-flux3",
+ "status": "ready",
+ "whole_gb": 11.03,
+ "phases_gb": {
+ "encode": 4.86,
+ "denoise": 5.83,
+ "denoise2": 0.0,
+ "decode": 0.34,
+ "aux": 0.0
+ },
+ "largest_phase": "denoise",
+ "largest_phase_gb": 5.83,
+ "optional_gb": 0,
+ "biggest_file": {
+ "name": "flux3-image-klein-int8-convrot.safetensors",
+ "gb": 5.83
+ },
+ "verdict_24gb": "fits whole",
+ "modal_gpu": "L4 / A10G (24 GB)",
+ "measured_peak_gb": null
+ },
+ {
+ "id": "product-shot",
+ "name": "Product Shot",
+ "section": "image",
+ "pack": "image-flux3",
+ "status": "ready",
+ "whole_gb": 11.03,
+ "phases_gb": {
+ "encode": 4.86,
+ "denoise": 5.83,
+ "denoise2": 0.0,
+ "decode": 0.34,
+ "aux": 0.0
+ },
+ "largest_phase": "denoise",
+ "largest_phase_gb": 5.83,
+ "optional_gb": 0,
+ "biggest_file": {
+ "name": "flux3-image-klein-int8-convrot.safetensors",
+ "gb": 5.83
+ },
+ "verdict_24gb": "fits whole",
+ "modal_gpu": "L4 / A10G (24 GB)",
+ "measured_peak_gb": null
+ },
+ {
+ "id": "cinema-studio",
+ "name": "Cinema Studio",
+ "section": "image",
+ "pack": "image",
+ "status": "ready",
+ "whole_gb": 12.17,
+ "phases_gb": {
+ "encode": 5.63,
+ "denoise": 6.2,
+ "denoise2": 0.0,
+ "decode": 0.34,
+ "aux": 0.0
+ },
+ "largest_phase": "denoise",
+ "largest_phase_gb": 6.2,
+ "optional_gb": 0,
+ "biggest_file": {
+ "name": "z_image_turbo_int8_convrot.safetensors",
+ "gb": 6.2
+ },
+ "verdict_24gb": "fits whole",
+ "modal_gpu": "L4 / A10G (24 GB)",
+ "measured_peak_gb": null
+ },
+ {
+ "id": "z-image",
+ "name": "Create Image",
+ "section": "image",
+ "pack": "image",
+ "status": "ready",
+ "whole_gb": 12.17,
+ "phases_gb": {
+ "encode": 5.63,
+ "denoise": 6.2,
+ "denoise2": 0.0,
+ "decode": 0.34,
+ "aux": 0.0
+ },
+ "largest_phase": "denoise",
+ "largest_phase_gb": 6.2,
+ "optional_gb": 0,
+ "biggest_file": {
+ "name": "z_image_turbo_int8_convrot.safetensors",
+ "gb": 6.2
+ },
+ "verdict_24gb": "fits whole",
+ "modal_gpu": "L4 / A10G (24 GB)",
+ "measured_peak_gb": null
+ },
+ {
+ "id": "music",
+ "name": "Music",
+ "section": "audio",
+ "pack": "audio",
+ "status": "ready",
+ "whole_gb": 14.33,
+ "phases_gb": {
+ "encode": 9.2,
+ "denoise": 4.91,
+ "denoise2": 0.0,
+ "decode": 0.22,
+ "aux": 0.0
+ },
+ "largest_phase": "encode",
+ "largest_phase_gb": 9.2,
+ "optional_gb": 0,
+ "biggest_file": {
+ "name": "minimax_music3_text_encoder_pruned_int8_convrot.safetensors",
+ "gb": 9.2
+ },
+ "verdict_24gb": "fits whole",
+ "modal_gpu": "L4 / A10G (24 GB)",
+ "measured_peak_gb": null
+ },
+ {
+ "id": "sfx",
+ "name": "Sound Effects",
+ "section": "audio",
+ "pack": "audio",
+ "status": "ready",
+ "whole_gb": 10.41,
+ "phases_gb": {
+ "encode": 10.41,
+ "denoise": 9.22,
+ "denoise2": 0.0,
+ "decode": 9.22,
+ "aux": 0.0
+ },
+ "largest_phase": "encode",
+ "largest_phase_gb": 10.41,
+ "optional_gb": 4.55,
+ "biggest_file": {
+ "name": "stable_audio_3_medium.safetensors",
+ "gb": 9.22
+ },
+ "verdict_24gb": "fits whole",
+ "modal_gpu": "L4 / A10G (24 GB)",
+ "measured_peak_gb": null
+ },
+ {
+ "id": "style-reference",
+ "name": "Style Reference",
+ "section": "image",
+ "pack": "image-krea2",
+ "status": "ready",
+ "whole_gb": 19.44,
+ "phases_gb": {
+ "encode": 5.24,
+ "denoise": 13.95,
+ "denoise2": 0.0,
+ "decode": 0.25,
+ "aux": 0.0
+ },
+ "largest_phase": "denoise",
+ "largest_phase_gb": 13.95,
+ "optional_gb": 0,
+ "biggest_file": {
+ "name": "krea2_turbo_int8_convrot.safetensors",
+ "gb": 13.49
+ },
+ "verdict_24gb": "fits whole",
+ "modal_gpu": "L4 / A10G (24 GB)",
+ "measured_peak_gb": null
+ },
+ {
+ "id": "styles",
+ "name": "Styles",
+ "section": "image",
+ "pack": "image-krea2",
+ "status": "ready",
+ "whole_gb": 19.45,
+ "phases_gb": {
+ "encode": 5.24,
+ "denoise": 13.96,
+ "denoise2": 0.0,
+ "decode": 0.25,
+ "aux": 0.0
+ },
+ "largest_phase": "denoise",
+ "largest_phase_gb": 13.96,
+ "optional_gb": 3.76,
+ "biggest_file": {
+ "name": "krea2_turbo_int8_convrot.safetensors",
+ "gb": 13.49
+ },
+ "verdict_24gb": "fits whole",
+ "modal_gpu": "L4 / A10G (24 GB)",
+ "measured_peak_gb": null
+ },
+ {
+ "id": "camera-moves",
+ "name": "Camera Moves",
+ "section": "video",
+ "pack": "video-wan-camera",
+ "status": "ready",
+ "whole_gb": 37.59,
+ "phases_gb": {
+ "encode": 6.74,
+ "denoise": 15.3,
+ "denoise2": 15.3,
+ "decode": 0.25,
+ "aux": 0.0
+ },
+ "largest_phase": "denoise",
+ "largest_phase_gb": 15.3,
+ "optional_gb": 2.46,
+ "biggest_file": {
+ "name": "wan2.2_fun_camera_high_noise_14B_fp8_scaled.safetensors",
+ "gb": 15.3
+ },
+ "verdict_24gb": "fits by phases",
+ "modal_gpu": "L4 / A10G (24 GB)",
+ "measured_peak_gb": null
+ },
+ {
+ "id": "motion-transfer",
+ "name": "Motion Transfer",
+ "section": "video",
+ "pack": "video-wan",
+ "status": "draft",
+ "whole_gb": 24.9,
+ "phases_gb": {
+ "encode": 8.0,
+ "denoise": 16.65,
+ "denoise2": 0.0,
+ "decode": 0.25,
+ "aux": 0.0
+ },
+ "largest_phase": "denoise",
+ "largest_phase_gb": 16.65,
+ "optional_gb": 0,
+ "biggest_file": {
+ "name": "wan_animate_2_distill_int8_convrot.safetensors",
+ "gb": 16.65
+ },
+ "verdict_24gb": "fits by phases",
+ "modal_gpu": "L4 / A10G (24 GB)",
+ "measured_peak_gb": null
+ },
+ {
+ "id": "recast",
+ "name": "Recast",
+ "section": "video",
+ "pack": "video-scail",
+ "status": "ready",
+ "whole_gb": 28.62,
+ "phases_gb": {
+ "encode": 8.0,
+ "denoise": 18.62,
+ "denoise2": 0.0,
+ "decode": 0.25,
+ "aux": 1.75
+ },
+ "largest_phase": "denoise",
+ "largest_phase_gb": 18.62,
+ "optional_gb": 0,
+ "biggest_file": {
+ "name": "wan2.1_14B_SCAIL_2_int8_convrot.safetensors",
+ "gb": 16.65
+ },
+ "verdict_24gb": "fits by phases",
+ "modal_gpu": "L4 / A10G (24 GB)",
+ "measured_peak_gb": null
+ },
+ {
+ "id": "speak",
+ "name": "Speak",
+ "section": "video",
+ "pack": "video-ltx25",
+ "status": "ready",
+ "whole_gb": 39.7,
+ "phases_gb": {
+ "encode": 15.37,
+ "denoise": 21.5,
+ "denoise2": 0.0,
+ "decode": 1.83,
+ "aux": 1.0
+ },
+ "largest_phase": "denoise",
+ "largest_phase_gb": 21.5,
+ "optional_gb": 5.2,
+ "biggest_file": {
+ "name": "ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors",
+ "gb": 21.5
+ },
+ "verdict_24gb": "tight (by phases)",
+ "modal_gpu": "test on L4 / A10G; L40S (48 GB) is comfortable",
+ "measured_peak_gb": null
+ },
+ {
+ "id": "talking",
+ "name": "Talking Avatar",
+ "section": "video",
+ "pack": "video-ltx25",
+ "status": "draft",
+ "whole_gb": 39.7,
+ "phases_gb": {
+ "encode": 15.37,
+ "denoise": 21.5,
+ "denoise2": 0.0,
+ "decode": 1.83,
+ "aux": 1.0
+ },
+ "largest_phase": "denoise",
+ "largest_phase_gb": 21.5,
+ "optional_gb": 5.63,
+ "biggest_file": {
+ "name": "ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors",
+ "gb": 21.5
+ },
+ "verdict_24gb": "tight (by phases)",
+ "modal_gpu": "test on L4 / A10G; L40S (48 GB) is comfortable",
+ "measured_peak_gb": null
+ },
+ {
+ "id": "video",
+ "name": "Image to Video",
+ "section": "video",
+ "pack": "video-ltx25",
+ "status": "ready",
+ "whole_gb": 39.7,
+ "phases_gb": {
+ "encode": 15.37,
+ "denoise": 21.5,
+ "denoise2": 0.0,
+ "decode": 1.83,
+ "aux": 1.0
+ },
+ "largest_phase": "denoise",
+ "largest_phase_gb": 21.5,
+ "optional_gb": 5.2,
+ "biggest_file": {
+ "name": "ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors",
+ "gb": 21.5
+ },
+ "verdict_24gb": "tight (by phases)",
+ "modal_gpu": "test on L4 / A10G; L40S (48 GB) is comfortable",
+ "measured_peak_gb": null
+ },
+ {
+ "id": "video-t2v",
+ "name": "Text to Video",
+ "section": "video",
+ "pack": "video-ltx25",
+ "status": "ready",
+ "whole_gb": 39.7,
+ "phases_gb": {
+ "encode": 15.37,
+ "denoise": 21.5,
+ "denoise2": 0.0,
+ "decode": 1.83,
+ "aux": 1.0
+ },
+ "largest_phase": "denoise",
+ "largest_phase_gb": 21.5,
+ "optional_gb": 5.2,
+ "biggest_file": {
+ "name": "ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors",
+ "gb": 21.5
+ },
+ "verdict_24gb": "tight (by phases)",
+ "modal_gpu": "test on L4 / A10G; L40S (48 GB) is comfortable",
+ "measured_peak_gb": null
+ },
+ {
+ "id": "relight",
+ "name": "Relight",
+ "section": "image",
+ "pack": "image-qwen-edit",
+ "status": "ready",
+ "whole_gb": 31.15,
+ "phases_gb": {
+ "encode": 9.38,
+ "denoise": 21.52,
+ "denoise2": 0.0,
+ "decode": 0.25,
+ "aux": 0.0
+ },
+ "largest_phase": "denoise",
+ "largest_phase_gb": 21.52,
+ "optional_gb": 0,
+ "biggest_file": {
+ "name": "qwen_image_edit_2509_fp8_e4m3fn.safetensors",
+ "gb": 20.43
+ },
+ "verdict_24gb": "tight (by phases)",
+ "modal_gpu": "test on L4 / A10G; L40S (48 GB) is comfortable",
+ "measured_peak_gb": null
+ },
+ {
+ "id": "vfx-clean-plate",
+ "name": "Clean Plate",
+ "section": "video",
+ "pack": "video-ltx25",
+ "status": "draft",
+ "whole_gb": 39.03,
+ "phases_gb": {
+ "encode": 15.37,
+ "denoise": 21.83,
+ "denoise2": 0.0,
+ "decode": 1.83,
+ "aux": 0.0
+ },
+ "largest_phase": "denoise",
+ "largest_phase_gb": 21.83,
+ "optional_gb": 5.2,
+ "biggest_file": {
+ "name": "ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors",
+ "gb": 21.5
+ },
+ "verdict_24gb": "tight (by phases)",
+ "modal_gpu": "test on L4 / A10G; L40S (48 GB) is comfortable",
+ "measured_peak_gb": null
+ },
+ {
+ "id": "vfx-day-to-night",
+ "name": "Day to Night",
+ "section": "video",
+ "pack": "video-ltx25",
+ "status": "draft",
+ "whole_gb": 39.03,
+ "phases_gb": {
+ "encode": 15.37,
+ "denoise": 21.83,
+ "denoise2": 0.0,
+ "decode": 1.83,
+ "aux": 0.0
+ },
+ "largest_phase": "denoise",
+ "largest_phase_gb": 21.83,
+ "optional_gb": 5.2,
+ "biggest_file": {
+ "name": "ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors",
+ "gb": 21.5
+ },
+ "verdict_24gb": "tight (by phases)",
+ "modal_gpu": "test on L4 / A10G; L40S (48 GB) is comfortable",
+ "measured_peak_gb": null
+ },
+ {
+ "id": "transitions",
+ "name": "Transitions",
+ "section": "video",
+ "pack": "video-ltx25",
+ "status": "draft",
+ "whole_gb": 39.09,
+ "phases_gb": {
+ "encode": 15.37,
+ "denoise": 21.89,
+ "denoise2": 0.0,
+ "decode": 1.83,
+ "aux": 0.0
+ },
+ "largest_phase": "denoise",
+ "largest_phase_gb": 21.89,
+ "optional_gb": 5.2,
+ "biggest_file": {
+ "name": "ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors",
+ "gb": 21.5
+ },
+ "verdict_24gb": "tight (by phases)",
+ "modal_gpu": "test on L4 / A10G; L40S (48 GB) is comfortable",
+ "measured_peak_gb": null
+ },
+ {
+ "id": "camera-copy",
+ "name": "Camera Copy",
+ "section": "video",
+ "pack": "video-ltx25",
+ "status": "draft",
+ "whole_gb": 39.35,
+ "phases_gb": {
+ "encode": 15.37,
+ "denoise": 22.15,
+ "denoise2": 0.0,
+ "decode": 1.83,
+ "aux": 0.0
+ },
+ "largest_phase": "denoise",
+ "largest_phase_gb": 22.15,
+ "optional_gb": 5.2,
+ "biggest_file": {
+ "name": "ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors",
+ "gb": 21.5
+ },
+ "verdict_24gb": "tight (by phases)",
+ "modal_gpu": "test on L4 / A10G; L40S (48 GB) is comfortable",
+ "measured_peak_gb": null
+ },
+ {
+ "id": "vfx-water",
+ "name": "Water Simulation",
+ "section": "video",
+ "pack": "video-ltx25",
+ "status": "draft",
+ "whole_gb": 39.61,
+ "phases_gb": {
+ "encode": 15.37,
+ "denoise": 22.41,
+ "denoise2": 0.0,
+ "decode": 1.83,
+ "aux": 0.0
+ },
+ "largest_phase": "denoise",
+ "largest_phase_gb": 22.41,
+ "optional_gb": 5.2,
+ "biggest_file": {
+ "name": "ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors",
+ "gb": 21.5
+ },
+ "verdict_24gb": "tight (by phases)",
+ "modal_gpu": "test on L4 / A10G; L40S (48 GB) is comfortable",
+ "measured_peak_gb": null
+ },
+ {
+ "id": "reshoot",
+ "name": "Re-shoot",
+ "section": "video",
+ "pack": "video-h3",
+ "status": "draft",
+ "whole_gb": 54.75,
+ "phases_gb": {
+ "encode": 27.14,
+ "denoise": 23.53,
+ "denoise2": 0.0,
+ "decode": 3.42,
+ "aux": 0.66
+ },
+ "largest_phase": "encode",
+ "largest_phase_gb": 27.14,
+ "optional_gb": 0,
+ "biggest_file": {
+ "name": "qwen3vl_32b_minimax_h3_int8_convrot.safetensors",
+ "gb": 27.14
+ },
+ "verdict_24gb": "needs Modal",
+ "modal_gpu": "L40S (48 GB), by phases",
+ "measured_peak_gb": null
+ },
+ {
+ "id": "smoke",
+ "name": "Smoke test",
+ "section": "utility",
+ "pack": "core",
+ "status": "ready",
+ "whole_gb": 0,
+ "phases_gb": {
+ "encode": 0.0,
+ "denoise": 0.0,
+ "denoise2": 0.0,
+ "decode": 0.0,
+ "aux": 0.0
+ },
+ "largest_phase": "encode",
+ "largest_phase_gb": 0.0,
+ "optional_gb": 0,
+ "biggest_file": null,
+ "verdict_24gb": "no models",
+ "modal_gpu": "any",
+ "measured_peak_gb": null
+ },
+ {
+ "id": "smoke-invert",
+ "name": "Smoke test (file input)",
+ "section": "utility",
+ "pack": "core",
+ "status": "ready",
+ "whole_gb": 0,
+ "phases_gb": {
+ "encode": 0.0,
+ "denoise": 0.0,
+ "denoise2": 0.0,
+ "decode": 0.0,
+ "aux": 0.0
+ },
+ "largest_phase": "encode",
+ "largest_phase_gb": 0.0,
+ "optional_gb": 0,
+ "biggest_file": null,
+ "verdict_24gb": "no models",
+ "modal_gpu": "any",
+ "measured_peak_gb": null
+ }
+ ]
+}
diff --git a/docs/vram-map.md b/docs/vram-map.md
new file mode 100644
index 0000000..4918f1c
--- /dev/null
+++ b/docs/vram-map.md
@@ -0,0 +1,39 @@
+# VRAM map
+
+Generated by `python tools/catalog.py vram` from the apps' `app.json`. Weight sizes come from the Hugging Face Hub;
+activations are **not** included. Local target: one 24 GB card (RTX 3090 Ti) keeping 4 GB of headroom.
+
+When two apps run back to back with different models, the gateway asks ComfyUI to unload everything first
+(`POST /free`), so the previous app never stays in VRAM.
+
+| App | Status | Whole | Largest phase | Biggest file | Verdict on 24 GB | Modal GPU | Measured |
+|---|---|---:|---|---|---|---|---:|
+| `smooth` | ready | 0.1 GB | encode 0.1 GB | film_net_fp16.safetensors (0.1) | fits whole | L4 / A10G (24 GB) | not measured |
+| `remove-bg` | ready | 0.4 GB | encode 0.4 GB | birefnet.safetensors (0.4) | fits whole | L4 / A10G (24 GB) | not measured |
+| `upscale` | ready | 4.0 GB | denoise 3.5 GB | seedvr2_3b_int8_convrot.safetensors (3.5) | fits whole | L4 / A10G (24 GB) | not measured |
+| `upscale-video` | ready | 4.0 GB | denoise 3.5 GB | seedvr2_3b_int8_convrot.safetensors (3.5) | fits whole | L4 / A10G (24 GB) | not measured |
+| `character` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | fits whole | L4 / A10G (24 GB) | not measured |
+| `edit` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | fits whole | L4 / A10G (24 GB) | not measured |
+| `product-shot` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | fits whole | L4 / A10G (24 GB) | not measured |
+| `cinema-studio` | ready | 12.2 GB | denoise 6.2 GB | z_image_turbo_int8_convrot.safetensors (6.2) | fits whole | L4 / A10G (24 GB) | not measured |
+| `z-image` | ready | 12.2 GB | denoise 6.2 GB | z_image_turbo_int8_convrot.safetensors (6.2) | fits whole | L4 / A10G (24 GB) | not measured |
+| `music` | ready | 14.3 GB | encode 9.2 GB | minimax_music3_text_encoder_pruned_int8_convrot.safetensors (9.2) | fits whole | L4 / A10G (24 GB) | not measured |
+| `sfx` | ready | 10.4 GB (+4.5 optional) | encode 10.4 GB | stable_audio_3_medium.safetensors (9.2) | fits whole | L4 / A10G (24 GB) | not measured |
+| `style-reference` | ready | 19.4 GB | denoise 13.9 GB | krea2_turbo_int8_convrot.safetensors (13.5) | fits whole | L4 / A10G (24 GB) | not measured |
+| `styles` | ready | 19.4 GB (+3.8 optional) | denoise 14.0 GB | krea2_turbo_int8_convrot.safetensors (13.5) | fits whole | L4 / A10G (24 GB) | not measured |
+| `camera-moves` | ready | 37.6 GB (+2.5 optional) | denoise 15.3 GB | wan2.2_fun_camera_high_noise_14B_fp8_scaled.safetensors (15.3) | fits by phases | L4 / A10G (24 GB) | not measured |
+| `motion-transfer` | draft | 24.9 GB | denoise 16.6 GB | wan_animate_2_distill_int8_convrot.safetensors (16.6) | fits by phases | L4 / A10G (24 GB) | not measured |
+| `recast` | ready | 28.6 GB | denoise 18.6 GB | wan2.1_14B_SCAIL_2_int8_convrot.safetensors (16.6) | fits by phases | L4 / A10G (24 GB) | not measured |
+| `speak` | ready | 39.7 GB (+5.2 optional) | denoise 21.5 GB | ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors (21.5) | tight (by phases) | test on L4 / A10G; L40S (48 GB) is comfortable | not measured |
+| `talking` | draft | 39.7 GB (+5.6 optional) | denoise 21.5 GB | ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors (21.5) | tight (by phases) | test on L4 / A10G; L40S (48 GB) is comfortable | not measured |
+| `video` | ready | 39.7 GB (+5.2 optional) | denoise 21.5 GB | ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors (21.5) | tight (by phases) | test on L4 / A10G; L40S (48 GB) is comfortable | not measured |
+| `video-t2v` | ready | 39.7 GB (+5.2 optional) | denoise 21.5 GB | ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors (21.5) | tight (by phases) | test on L4 / A10G; L40S (48 GB) is comfortable | not measured |
+| `relight` | ready | 31.1 GB | denoise 21.5 GB | qwen_image_edit_2509_fp8_e4m3fn.safetensors (20.4) | tight (by phases) | test on L4 / A10G; L40S (48 GB) is comfortable | not measured |
+| `vfx-clean-plate` | draft | 39.0 GB (+5.2 optional) | denoise 21.8 GB | ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors (21.5) | tight (by phases) | test on L4 / A10G; L40S (48 GB) is comfortable | not measured |
+| `vfx-day-to-night` | draft | 39.0 GB (+5.2 optional) | denoise 21.8 GB | ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors (21.5) | tight (by phases) | test on L4 / A10G; L40S (48 GB) is comfortable | not measured |
+| `transitions` | draft | 39.1 GB (+5.2 optional) | denoise 21.9 GB | ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors (21.5) | tight (by phases) | test on L4 / A10G; L40S (48 GB) is comfortable | not measured |
+| `camera-copy` | draft | 39.4 GB (+5.2 optional) | denoise 22.1 GB | ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors (21.5) | tight (by phases) | test on L4 / A10G; L40S (48 GB) is comfortable | not measured |
+| `vfx-water` | draft | 39.6 GB (+5.2 optional) | denoise 22.4 GB | ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors (21.5) | tight (by phases) | test on L4 / A10G; L40S (48 GB) is comfortable | not measured |
+| `reshoot` | draft | 54.8 GB | encode 27.1 GB | qwen3vl_32b_minimax_h3_int8_convrot.safetensors (27.1) | needs Modal | L40S (48 GB), by phases | not measured |
+| `smoke` | ready | 0.0 GB | encode 0.0 GB | — | no models | any | not measured |
+| `smoke-invert` | ready | 0.0 GB | encode 0.0 GB | — | no models | any | not measured |
diff --git a/infra/__init__.py b/infra/__init__.py
new file mode 100644
index 0000000..e69de29
diff --git a/infra/common.py b/infra/common.py
new file mode 100644
index 0000000..d835771
--- /dev/null
+++ b/infra/common.py
@@ -0,0 +1,144 @@
+"""Pieces shared by the backend (infra/modal_app.py) and the LoRA lab (lab/lab_modal.py).
+
+The image pins the exact ComfyUI commit the workflows in apps/ were validated against,
+and installs every custom node pack the manifests declare. Model weights never go into
+the image: they live in the "freefield-models" volume and are fetched per pack.
+"""
+from __future__ import annotations
+
+import json
+import os
+import shutil
+import subprocess
+import time
+import urllib.request
+from pathlib import Path
+
+import modal
+
+ROOT = Path(__file__).resolve().parent.parent
+COMFYUI_COMMIT = "e3bee7ffcb7d6547ed0bcd15221792f3b8646b17" # 2026-10-19, ComfyUI 0.42.0+
+COMFY_API_PROXY = "comfy-api-proxy==0.1.6"
+COMFY_DIR = "/comfyui"
+MODELS_DIR = "/models"
+MODEL_DIRS = ["diffusion_models", "text_encoders", "vae", "loras", "checkpoints", "clip_vision",
+ "latent_upscale_models", "upscale_models", "model_patches", "geometry_estimation",
+ "background_removal", "frame_interpolation", "audio_encoders"]
+
+models_volume = modal.Volume.from_name("freefield-models", create_if_missing=True)
+lab_volume = modal.Volume.from_name("freefield-lab", create_if_missing=True)
+hf_secret = modal.Secret.from_name("huggingface") # HF_TOKEN, for gated repos (LTX-2.5, FLUX 3 Klein)
+freefield_secret = modal.Secret.from_name("freefield") # FREEFIELD_TOKEN, the gateway's bearer token
+
+
+def custom_nodes() -> dict[str, str]:
+ """repo URL → commit, from every packs/*.json (run tools/catalog.py packs first)."""
+ out: dict[str, str] = {}
+ for f in sorted((ROOT / "packs").glob("*.json")):
+ if f.name == "index.json":
+ continue
+ for c in json.loads(f.read_text(encoding="utf-8")).get("custom_nodes", []):
+ out[c["repo"]] = c["commit"]
+ return out
+
+
+def extra_model_paths() -> str:
+ lines = ["freefield:", f" base_path: {MODELS_DIR}"] + [f" {d}: {d}" for d in MODEL_DIRS]
+ return "\n".join(lines) + "\n"
+
+
+def build_image() -> modal.Image:
+ img = (
+ modal.Image.debian_slim(python_version="3.12")
+ .apt_install("git", "ffmpeg", "libgl1", "libglib2.0-0")
+ .run_commands(
+ f"git clone https://github.com/Comfy-Org/ComfyUI.git {COMFY_DIR}",
+ f"cd {COMFY_DIR} && git checkout {COMFYUI_COMMIT}",
+ f"pip install -r {COMFY_DIR}/requirements.txt",
+ )
+ .pip_install(COMFY_API_PROXY, "aiohttp", "huggingface_hub[hf-xet]") # hf-xet: fast downloads (hf_transfer is gone in hub 1.x)
+ )
+ for repo, commit in custom_nodes().items():
+ name = repo.rstrip("/").rsplit("/", 1)[-1]
+ target = f"{COMFY_DIR}/custom_nodes/{name}"
+ img = img.run_commands(
+ f"git clone {repo} {target} && cd {target} && git checkout {commit}",
+ f"if [ -f {target}/requirements.txt ]; then pip install -r {target}/requirements.txt; fi",
+ )
+ yaml = extra_model_paths().replace("\n", "\\n")
+ img = img.run_commands(f"printf '{yaml}' > {COMFY_DIR}/extra_model_paths.yaml")
+ # code last, so editing it does not rebuild the layers above
+ return (img.add_local_dir(ROOT / "apps", "/freefield/apps")
+ .add_local_dir(ROOT / "packs", "/freefield/packs")
+ .add_local_dir(ROOT / "infra", "/freefield/infra")
+ .add_local_dir(ROOT / "lab", "/freefield/lab", ignore=["results", "assets"]))
+
+
+# ---------------------------------------------------------------- runtime helpers (run inside containers)
+def ensure_models(models: list[dict], token: str | None = None) -> tuple[list[str], dict[str, str]]:
+ """Download any missing model file into the volume.
+
+ Returns (names fetched, {name: reason} for files that could not be fetched). One failure
+ does not stop the others: a gated repo whose license was not accepted only costs the
+ apps that need it.
+ """
+ from huggingface_hub import hf_hub_download
+
+ fetched: list[str] = []
+ failed: dict[str, str] = {}
+ tmp = Path(MODELS_DIR) / ".incoming"
+ for m in models:
+ name = m["file"].rsplit("/", 1)[-1]
+ dest = Path(MODELS_DIR) / m["dir"] / name
+ if dest.exists() and dest.stat().st_size > 0:
+ continue
+ dest.parent.mkdir(parents=True, exist_ok=True)
+ t0 = time.time()
+ try:
+ path = hf_hub_download(repo_id=m["repo"], filename=m["file"], local_dir=tmp / m["repo"].replace("/", "__"),
+ token=token or os.environ.get("HF_TOKEN"))
+ except Exception as e: # gated, renamed upstream, network
+ reason = f"{type(e).__name__}: {(str(e).strip().splitlines() or [''])[0][:200]}"
+ failed[name] = f"{m['repo']}: {reason}"
+ print(f" ✗ {name} {failed[name]}")
+ if "401" in reason or "403" in reason or "gated" in reason.lower():
+ print(f" accept the license at https://huggingface.co/{m['repo']} with the account behind HF_TOKEN")
+ continue
+ shutil.move(path, dest)
+ fetched.append(name)
+ print(f" ↓ {name} {m.get('gb', 0):.2f} GB {time.time() - t0:.0f}s")
+ shutil.rmtree(tmp, ignore_errors=True)
+ return fetched, failed
+
+
+def start_comfyui(port: int = 8188, extra_args: str = "") -> subprocess.Popen:
+ cmd = ["python", "main.py", "--listen", "127.0.0.1", "--port", str(port), "--disable-auto-launch",
+ "--extra-model-paths-config", f"{COMFY_DIR}/extra_model_paths.yaml"] + extra_args.split()
+ proc = subprocess.Popen(cmd, cwd=COMFY_DIR)
+ wait_http(f"http://127.0.0.1:{port}/system_stats", proc=proc)
+ return proc
+
+
+def wait_port(port: int, timeout_s: float = 60) -> None:
+ import socket
+ deadline = time.time() + timeout_s
+ while time.time() < deadline:
+ with socket.socket() as s:
+ if s.connect_ex(("127.0.0.1", port)) == 0:
+ return
+ time.sleep(0.5)
+ raise TimeoutError(f"port {port} not open after {timeout_s:.0f}s")
+
+
+def wait_http(url: str, timeout_s: float = 900, proc: subprocess.Popen | None = None) -> None:
+ deadline = time.time() + timeout_s
+ while time.time() < deadline:
+ if proc is not None and proc.poll() is not None:
+ raise RuntimeError(f"process exited with {proc.returncode} before {url} came up")
+ try:
+ with urllib.request.urlopen(url, timeout=5) as r:
+ if r.status == 200:
+ return
+ except Exception:
+ time.sleep(1)
+ raise TimeoutError(f"{url} not up after {timeout_s:.0f}s")
diff --git a/infra/gateway.py b/infra/gateway.py
new file mode 100644
index 0000000..6514b40
--- /dev/null
+++ b/infra/gateway.py
@@ -0,0 +1,156 @@
+"""The pass: the only door into the backend container.
+
+ client (SDK) ──▶ gateway :8000 ──▶ comfy-api-proxy :8189 ──▶ ComfyUI :8188
+
+- Every request needs `Authorization: Bearer $FREEFIELD_TOKEN` (the Comfy SDK sends its
+ apiKey that way). The header is stripped before forwarding; the proxy has no auth.
+- POST /freefield/prepare {"app", "models"} is the pantry manager: when the requested
+ app needs a different set of models than the one that ran last, it asks ComfyUI to
+ unload everything (POST /free) so nothing from the previous app stays in VRAM.
+- GET /freefield/status shows the current app and ComfyUI's device stats.
+- GET /health is open, for Modal's startup probe.
+
+Run: python gateway.py (env: FREEFIELD_TOKEN, COMFYUI_URL, PROXY_URL, GATEWAY_PORT)
+"""
+from __future__ import annotations
+
+import asyncio
+import hmac
+import logging
+import os
+import time
+
+from aiohttp import ClientSession, ClientTimeout, web
+
+COMFYUI_URL = os.environ.get("COMFYUI_URL", "http://127.0.0.1:8188")
+PROXY_URL = os.environ.get("PROXY_URL", "http://127.0.0.1:8189")
+TOKEN = os.environ.get("FREEFIELD_TOKEN", "")
+ALLOW_OPEN = os.environ.get("FREEFIELD_ALLOW_OPEN") == "1"
+HOP_HEADERS = {"host", "authorization", "content-length", "transfer-encoding", "connection", "keep-alive"}
+
+log = logging.getLogger("gateway")
+
+
+class Pantry:
+ """Remembers which models are on the GPU and clears it when an app needs others."""
+
+ def __init__(self, session: ClientSession):
+ self.session = session
+ self.models: str | None = None
+ self.app: str | None = None
+ self.lock = asyncio.Lock()
+ self.frees = 0
+
+ async def prepare(self, app: str, models: str) -> dict:
+ async with self.lock:
+ freed = False
+ previous = self.app
+ if self.models is not None and models != self.models:
+ async with self.session.post(f"{COMFYUI_URL}/free", json={"unload_models": True, "free_memory": True}) as r:
+ r.raise_for_status()
+ freed = True
+ self.frees += 1
+ self.models, self.app = models, app
+ return {"freed": freed, "previous": previous, "current": app}
+
+
+def authorized(request: web.Request) -> bool:
+ if ALLOW_OPEN:
+ return True
+ header = request.headers.get("Authorization", "")
+ return bool(TOKEN) and hmac.compare_digest(header, f"Bearer {TOKEN}")
+
+
+async def auth_mw(request: web.Request, handler):
+ if request.path == "/health" or authorized(request):
+ return await handler(request)
+ return web.json_response({"error": "missing or wrong token"}, status=401)
+
+
+async def health(_: web.Request) -> web.Response:
+ return web.json_response({"ok": True})
+
+
+async def prepare(request: web.Request) -> web.Response:
+ body = await request.json()
+ if not isinstance(body.get("models"), str) or not isinstance(body.get("app"), str):
+ return web.json_response({"error": "expected {app, models}"}, status=400)
+ result = await request.app["pantry"].prepare(body["app"], body["models"])
+ log.info("prepare %s → %s", body["app"], result)
+ return web.json_response(result)
+
+
+async def status(request: web.Request) -> web.Response:
+ pantry: Pantry = request.app["pantry"]
+ stats = None
+ try:
+ async with pantry.session.get(f"{COMFYUI_URL}/system_stats") as r:
+ stats = await r.json()
+ except Exception as e: # ComfyUI may still be starting
+ stats = {"error": str(e)}
+ return web.json_response({"app": pantry.app, "models": pantry.models, "frees": pantry.frees, "comfyui": stats})
+
+
+async def forward(request: web.Request) -> web.StreamResponse:
+ session: ClientSession = request.app["session"]
+ headers = {k: v for k, v in request.headers.items() if k.lower() not in HOP_HEADERS}
+
+ async def body():
+ async for chunk in request.content.iter_chunked(1 << 16):
+ yield chunk
+
+ data = body() if request.can_read_body else None
+ async with session.request(request.method, f"{PROXY_URL}{request.rel_url}", headers=headers, data=data,
+ allow_redirects=False) as upstream:
+ resp = web.StreamResponse(status=upstream.status)
+ for k, v in upstream.headers.items():
+ if k.lower() not in HOP_HEADERS | {"content-encoding"}:
+ resp.headers[k] = v
+ await resp.prepare(request)
+ async for chunk in upstream.content.iter_any(): # streams SSE events and big files as they come
+ await resp.write(chunk)
+ await resp.write_eof()
+ return resp
+
+
+async def on_startup(app: web.Application) -> None:
+ app["session"] = ClientSession(timeout=ClientTimeout(total=None, sock_connect=30), auto_decompress=False)
+ app["pantry"] = Pantry(app["session"])
+
+
+async def on_cleanup(app: web.Application) -> None:
+ await app["session"].close()
+
+
+def make_app() -> web.Application:
+ if not TOKEN and not ALLOW_OPEN:
+ raise SystemExit("FREEFIELD_TOKEN is not set; refusing to start an open gateway")
+ app = web.Application(middlewares=[auth_mw], client_max_size=1024 ** 3)
+ app.router.add_get("/health", health)
+ app.router.add_post("/freefield/prepare", prepare)
+ app.router.add_get("/freefield/status", status)
+ app.router.add_route("*", "/{tail:.*}", forward)
+ app.on_startup.append(on_startup)
+ app.on_cleanup.append(on_cleanup)
+ return app
+
+
+async def wait_for(url: str, timeout_s: float = 600) -> None:
+ """Block until url answers 200, so Modal only routes traffic once ComfyUI is up."""
+ deadline = time.time() + timeout_s
+ async with ClientSession() as s:
+ while time.time() < deadline:
+ try:
+ async with s.get(url) as r:
+ if r.status == 200:
+ return
+ except Exception:
+ pass
+ await asyncio.sleep(1)
+ raise TimeoutError(f"{url} did not come up in {timeout_s:.0f}s")
+
+
+if __name__ == "__main__":
+ logging.basicConfig(level=logging.INFO, format="%(asctime)s %(name)s %(message)s")
+ web.run_app(make_app(), host="0.0.0.0", port=int(os.environ.get("GATEWAY_PORT", "8000")))
diff --git a/infra/modal_app.py b/infra/modal_app.py
new file mode 100644
index 0000000..8d86cec
--- /dev/null
+++ b/infra/modal_app.py
@@ -0,0 +1,94 @@
+"""Freefield backend on Modal: ComfyUI + comfy-api-proxy behind a token gateway.
+
+One-time setup (in your terminal, from the repo root):
+ modal secret create freefield FREEFIELD_TOKEN=$(python -c "import secrets;print(secrets.token_urlsafe(32))")
+ modal secret create huggingface HF_TOKEN=hf_... # accept the LTX-2.5 and FLUX 3 Klein licenses on the Hub first
+ python tools/catalog.py packs
+
+Models (once per pack; they stay in the "freefield-models" volume):
+ modal run infra/modal_app.py::download --pack image
+ modal run infra/modal_app.py::download --pack video-ltx25
+
+Backend (private until you share the URL and token):
+ FREEFIELD_GPU=L40S modal deploy infra/modal_app.py # or A10G / L4 to test the 24 GB plan
+ → https://<workspace>--freefield-serve.modal.run (put it in .env as COMFY_BASE_URL)
+
+Refresh the node definitions used by tools/ui2api.py:
+ modal run infra/modal_app.py::object_info > tools/object_info.full.json
+"""
+from __future__ import annotations
+
+import json
+import os
+import subprocess
+import sys
+from pathlib import Path
+
+import modal
+
+sys.path.insert(0, str(Path(__file__).resolve().parent.parent))
+from infra.common import (COMFY_DIR, build_image, ensure_models, freefield_secret, hf_secret, # noqa: E402
+ models_volume, start_comfyui, wait_port)
+
+GPU = os.environ.get("FREEFIELD_GPU", "L40S")
+COMFY_ARGS = os.environ.get("FREEFIELD_COMFY_ARGS", "") # e.g. "--reserve-vram 1" or "--disable-smart-memory"
+
+app = modal.App("freefield")
+image = build_image().add_local_python_source("infra")
+
+
[email protected](image=image, volumes={"/models": models_volume}, secrets=[hf_secret], timeout=4 * 3600, cpu=4, memory=8192)
+def download(pack: str) -> dict:
+ """Fetch every model a pack needs into the volume. Safe to re-run; existing files are skipped."""
+ spec = json.loads(Path(f"/freefield/packs/{pack}.json").read_text())
+ print(f"pack {pack}: {len(spec['models'])} files, {spec['download_gb']:.1f} GB")
+ fetched, failed = ensure_models(spec["models"])
+ models_volume.commit() # keep what did arrive
+ if failed:
+ raise RuntimeError(f"{len(failed)} of {len(spec['models'])} files could not be downloaded:\n"
+ + "\n".join(f" {k}: {v}" for k, v in failed.items()))
+ return {"pack": pack, "fetched": fetched, "total_files": len(spec["models"])}
+
+
+ image=image,
+ gpu=GPU,
+ volumes={"/models": models_volume},
+ secrets=[freefield_secret],
+ timeout=24 * 3600,
+ scaledown_window=600, # stays warm 10 min after the last request
+ max_containers=1, # one ComfyUI owns the GPU; the gateway queues the rest
+)
[email protected](max_inputs=64)
[email protected]_server(8000, startup_timeout=900)
+def serve():
+ start_comfyui(8188, COMFY_ARGS)
+ subprocess.Popen(["comfy-api-proxy", "--comfyui", "http://127.0.0.1:8188", "--port", "8189",
+ "--comfyui-base-dir", COMFY_DIR])
+ wait_port(8189)
+ env = {**os.environ, "COMFYUI_URL": "http://127.0.0.1:8188", "PROXY_URL": "http://127.0.0.1:8189", "GATEWAY_PORT": "8000"}
+ subprocess.Popen(["python", "/freefield/infra/gateway.py"], env=env)
+
+
[email protected](image=image, timeout=1800, cpu=4, memory=8192)
+def object_info() -> str:
+ """Node definitions of exactly this image (custom nodes included), as JSON."""
+ import urllib.request
+ proc = start_comfyui(8188, "--cpu")
+ try:
+ with urllib.request.urlopen("http://127.0.0.1:8188/object_info", timeout=120) as r:
+ return r.read().decode()
+ finally:
+ proc.terminate()
+
+
[email protected]_entrypoint()
+def main():
+ print(__doc__)
+
+
[email protected]_entrypoint()
+def save_object_info(out: str = "tools/object_info.full.json"):
+ """modal run infra/modal_app.py::save_object_info → writes the deployed image's node definitions."""
+ Path(out).write_text(object_info.remote(), encoding="utf-8")
+ print(f"wrote {out}")
diff --git a/lab/assets/README.md b/lab/assets/README.md
new file mode 100644
index 0000000..367d1c4
--- /dev/null
+++ b/lab/assets/README.md
@@ -0,0 +1,2 @@
+Put your own test clips and images here (they are git-ignored) and reference them in a case as
+`"asset:<file name>"`. Use footage you shot or own the rights to; no real people without their permission.
diff --git a/lab/cases.json b/lab/cases.json
new file mode 100644
index 0000000..6c3ebd1
--- /dev/null
+++ b/lab/cases.json
@@ -0,0 +1,120 @@
+{
+ "_about": "LoRA lab for LTX-2.5. References are generated first, then each LoRA runs on them with a fixed seed (42). Run on Modal: modal run lab/lab_modal.py",
+ "cases": [
+ {"id": "ref-face-a", "app": "z-image", "values": {"prompt": "Portrait of a woman with short black hair and a denim jacket, soft studio light, neutral grey background, photorealistic", "width": 1280, "height": 768},
+ "note": "Reference still for image-to-video and transitions."},
+ {"id": "ref-face-b", "app": "z-image", "values": {"prompt": "A polished bronze statue of a woman with short hair and a jacket, same framing, soft studio light, neutral grey background", "width": 1280, "height": 768},
+ "note": "Last frame for the transition test."},
+
+ {"id": "ref-street", "app": "video-t2v", "values": {"prompt": "Static wide shot of a busy city street in daylight, pedestrians walking past colorful shop fronts, parked cars, natural light, realistic", "duration": 4, "enhance": false},
+ "note": "Reference clip with people, for Clean Plate, Day to Night and the exploratory IC-LoRAs."},
+ {"id": "ref-alley", "app": "video-t2v", "values": {"prompt": "Slow dolly forward through a narrow stone alley in daylight, cobblestones, potted plants, realistic", "duration": 4, "enhance": false},
+ "note": "Reference clip for Water Simulation."},
+
+ {"id": "ic-clean-plate", "app": "vfx-clean-plate", "values": {"clip": "@case:ref-street", "size": 544},
+ "note": "People should vanish; the background behind them should be plausible and stable."},
+ {"id": "ic-day-to-night", "app": "vfx-day-to-night", "values": {"clip": "@case:ref-street", "size": 448},
+ "note": "Same shot at night; motion and layout identical to the reference."},
+ {"id": "ic-water", "app": "vfx-water", "values": {"clip": "@case:ref-alley"},
+ "note": "Water should follow the alley's geometry. Prompting for this LoRA is a guess; read its model card if it fails."},
+ {"id": "ic-refine-details", "app": "vfx-clean-plate", "values": {"clip": "@case:ref-street", "prompt": "The same city street, sharper fine detail and texture", "negative": "blurry, smeared"},
+ "overrides": [{"node": "5004:5606", "field": "lora_name", "value": "ltx-2.5-22b-ic-lora-refine-details-1.0.safetensors"}],
+ "loras_download": [{"repo": "Lightricks/LTX-2.5-22b-IC-LoRA-Refine-Details", "file": "ltx-2.5-22b-ic-lora-refine-details-1.0.safetensors"}],
+ "note": "Exploratory: official IC-LoRA run through the generic V2V workflow."},
+ {"id": "ic-restore", "app": "vfx-clean-plate", "values": {"clip": "@case:ref-street", "prompt": "The same city street, restored, clean and detailed", "negative": "noise, artifacts"},
+ "overrides": [{"node": "5004:5606", "field": "lora_name", "value": "ltx-2.5-22b-ic-lora-restore-1.0.safetensors"}],
+ "loras_download": [{"repo": "Lightricks/LTX-2.5-22b-IC-LoRA-Restore", "file": "ltx-2.5-22b-ic-lora-restore-1.0.safetensors"}],
+ "note": "Exploratory: works best on a degraded clip; drop one in lab/assets and use asset:<name>."},
+ {"id": "ic-alpha", "app": "vfx-clean-plate", "values": {"clip": "@case:ref-street", "prompt": "Alpha matte of the people walking", "negative": ""},
+ "overrides": [{"node": "5004:5606", "field": "lora_name", "value": "ltx-2.5-22b-ic-lora-alpha-gen-0.9.safetensors"}],
+ "loras_download": [{"repo": "Lightricks/LTX-2.5-22b-IC-LoRA-Alpha-Gen", "file": "ltx-2.5-22b-ic-lora-alpha-gen-0.9.safetensors"}],
+ "note": "Exploratory: should output a matte of the moving subjects."},
+
+ {"id": "baseline-t2v", "app": "video-t2v", "values": {"prompt": "A glass of water tips over on a wooden table and water splashes, macro shot", "duration": 4, "enhance": false},
+ "note": "No LoRA. Compare against the slow-motion and fluid cases, same prompt and seed."},
+ {"id": "lora-slow-motion", "app": "video-t2v", "values": {"prompt": "A glass of water tips over on a wooden table and water splashes, macro shot, slow motion", "duration": 4, "enhance": false},
+ "loras": [{"repo": "Lightricks/LTX-2.5-22b-LoRA-Slow-Motion-Control", "file": "ltx-2.5-22b-lora-slow-motion-control-1.0.safetensors", "strength": 1.0, "gb": 0.65}],
+ "note": "Official 2.5 LoRA. Motion should be clearly slower than the baseline."},
+ {"id": "lora-fluid", "app": "video-t2v", "values": {"prompt": "A glass of water tips over on a wooden table and water splashes, macro shot", "duration": 4, "enhance": false},
+ "loras": [{"repo": "AInVFX/ainvfx-fluid", "file": "ltx-2.5/ainvfx-fluid.safetensors", "strength": 1.0, "gb": 0.65}],
+ "note": "Community LoRA trained on 2.5. Fluid motion should look more physical than the baseline."},
+ {"id": "lora-motion-enhancer", "app": "video-t2v", "values": {"prompt": "A dancer spins in an empty studio, flowing skirt, wide shot", "duration": 4, "enhance": false},
+ "loras": [{"repo": "rzgar/LTX-2.3-Motion-Enhancer-n4w", "file": "LTX-2.3-Motion-Enhancer-n4w.safetensors", "strength": 0.8, "gb": 2.27}],
+ "note": "Trained on 2.3: tests the 2.3 → 2.5 compatibility claim."},
+ {"id": "lora-cinemagraph", "app": "video", "values": {"image": "@case:ref-face-a", "prompt": "Cinemagraph: only her hair moves gently in a breeze, everything else perfectly still", "duration": 4, "enhance": false},
+ "loras": [{"repo": "Lightricks/LTX-2.5-22b-LoRA-Cinemagraph", "file": "ltx-2.5-22b-lora-cinemagraph-0.9.safetensors", "strength": 1.0, "gb": 0.20}],
+ "note": "Official 2.5 LoRA. Only a small region should move."},
+ {"id": "lora-ripple", "app": "video", "values": {"image": "@case:ref-face-a", "prompt": "A ripple distortion spreads across the frame like a stone dropped in water", "duration": 4, "enhance": false},
+ "loras": [{"repo": "WepeNerd/LTX-Ripple", "file": "LTX25_Ripple_v11.safetensors", "strength": 1.0, "gb": 0.65}],
+ "note": "Community 2.5 LoRA. The trigger phrase is not documented here; check its model card if nothing happens."},
+ {"id": "transition-statue", "app": "transitions", "values": {"first": "@case:ref-face-a", "last": "@case:ref-face-b", "prompt": "She slowly turns into a bronze statue, a smooth magical transformation", "duration": 4},
+ "note": "Transition LoRA from 2.3 on 2.5. The morph should be smooth and stay on her face."},
+
+ {"id": "ref-song", "app": "music", "values": {"style": "warm acoustic folk song, clear female lead vocal, gentle guitar, 92 bpm", "lyrics": "[verse]\nMorning light across the window\nCoffee warm and the city slow\n[chorus]\nSing it out, sing it out\nEvery little thing we know", "seconds": 10},
+ "note": "Vocal reference for the talking avatar (MiniMax Music 3, original lyrics)."},
+ {"id": "talking-sing", "app": "talking", "values": {"portrait": "@case:ref-face-a", "audio": "@case:ref-song", "prompt": "She sings along to the song, natural lip movement, subtle head motion, expressive eyes, soft studio light", "duration": 5},
+ "note": "Baseline audio-to-video: the lips should follow the vocal and the face should stay hers."},
+ {"id": "lora-talking-head", "app": "talking", "values": {"portrait": "@case:ref-face-a", "audio": "@case:ref-song", "prompt": "She sings along to the song, natural lip movement, subtle head motion, expressive eyes, soft studio light", "duration": 5},
+ "loras": [{"repo": "elix3r/LTX-2.3-22b-AV-LoRA-talking-head", "file": "LTX-2.3-22b-AV-LoRA-talking-head-v1.safetensors", "strength": 1.0, "gb": 0.43}],
+ "note": "Community 2.3 talking-head LoRA on 2.5. Compare lip sync and head motion with talking-sing."},
+
+ {"id": "ref-room", "app": "z-image", "values": {"prompt": "Interior of a cozy old library, tall wooden bookshelves, warm reading lamps, a leather armchair, wide shot, photorealistic", "width": 1280, "height": 768},
+ "note": "First frame for the camera-copy pan test."},
+ {"id": "ref-pan", "app": "video-t2v", "values": {"prompt": "Slow steady pan to the right across a mountain lake at sunrise, pine forest on the shore, mist on the water, realistic", "duration": 4, "enhance": false},
+ "note": "Camera reference: a clean pan right."},
+ {"id": "camera-copy-push", "app": "camera-copy", "values": {"image": "@case:ref-face-a", "clip": "@case:ref-alley", "prompt": "The camera slowly pushes in toward her face, soft studio light, shallow depth of field"},
+ "note": "Cameraman v2 (2.3) on 2.5: the alley's dolly forward should become a push-in on the portrait."},
+ {"id": "camera-copy-pan", "app": "camera-copy", "values": {"image": "@case:ref-room", "clip": "@case:ref-pan", "prompt": "The camera pans to the right across the library, revealing more bookshelves and lamps"},
+ "note": "The lake's pan right should move across the library; nothing from the lake should appear."},
+
+ {"id": "camera-moves-fast", "app": "camera-moves", "preset": "fast", "values": {"image": "@case:ref-room", "prompt": "A cozy old library, dust floating in the lamp light, pages of an open book stirring", "camera": "Zoom In", "width": 832, "height": 480},
+ "note": "Wan 2.2 Fun Camera with the 4-step LoRAs. A clean zoom in; compare speed and motion with the quality run."},
+ {"id": "camera-moves-quality", "app": "camera-moves", "values": {"image": "@case:ref-room", "prompt": "A cozy old library, dust floating in the lamp light, pages of an open book stirring", "camera": "Zoom In", "width": 832, "height": 480},
+ "note": "Same shot with the template's 20 steps. Records the peak VRAM of the two 14B experts."},
+
+ {"id": "relight-neon", "app": "relight", "values": {"image": "@case:ref-face-a", "light": "neon night lighting, magenta and cyan rim light, dark moody background"},
+ "note": "Same woman and framing, only the light changes. Records the peak VRAM of Qwen Image Edit (tight on 24 GB)."},
+ {"id": "smooth-slowmo", "app": "smooth", "values": {"clip": "@case:ref-street", "factor": 4, "mode": false},
+ "note": "FILM 4x as slow motion: four times longer at the same frame rate, no warping on the walkers."},
+
+ {"id": "ref-painting", "app": "z-image", "values": {"prompt": "A thick impasto oil painting of a sunflower field under a swirling sky, bold visible brush strokes, vivid yellows and deep blues", "width": 1024, "height": 1024},
+ "note": "Style reference for the Krea 2 test."},
+ {"id": "style-reference-lighthouse", "app": "style-reference", "values": {"style": "@case:ref-painting", "prompt": "a lighthouse on a cliff during a storm, waves crashing"},
+ "note": "The lighthouse should come out as an impasto painting with the reference's palette, not a copy of the sunflowers."},
+ {"id": "styles-tarot", "app": "styles", "values": {"prompt": "a fox reading under a tree at dusk", "style": "vintage tarot style"},
+ "note": "Krea's vintage tarot LoRA: card border, aged paper, flat ornate illustration."},
+
+ {"id": "ref-walk", "app": "video-t2v", "values": {"prompt": "Medium shot of a woman in a white shirt walking toward the camera on a city sidewalk, daylight, realistic", "duration": 4, "enhance": false},
+ "note": "Driving clip for Recast: one person, clear motion."},
+ {"id": "ref-character", "app": "z-image", "values": {"prompt": "Full body photo of a man in a red jacket, jeans and white sneakers standing straight, plain light grey studio background, photorealistic", "width": 768, "height": 1280},
+ "note": "Character for Recast."},
+ {"id": "recast-walk", "app": "recast", "values": {"clip": "@case:ref-walk", "character": "@case:ref-character", "target": "woman", "prompt": "A man in a red jacket and jeans walks toward the camera on a city sidewalk, daylight, realistic", "width": 512, "height": 896},
+ "note": "SCAIL-2: the man should take the woman's place and her walk, the street should stay."},
+
+ {"id": "ref-product", "app": "z-image", "values": {"prompt": "A plain snapshot of a square glass perfume bottle with a gold cap and a small black label reading NOIR, on a white kitchen table, flat lighting", "width": 1024, "height": 1024},
+ "note": "Product for Product Shot."},
+ {"id": "product-shot-splash", "app": "product-shot", "values": {"product": "@case:ref-product", "scene": "floating in mid-air with water splashing around it, high-speed photo, blue gradient background"},
+ "note": "The bottle, cap and NOIR label must stay identical; only the scene changes."},
+ {"id": "speak-hello", "app": "speak", "values": {"image": "@case:ref-face-a", "line": "Hello! This voice and these lips come from a single photo and an open model.", "duration": 5, "aspect": "16:9 (Widescreen)"},
+ "note": "LTX-2.5 voices the quoted line: is it intelligible, is it the right line, do the lips match?"},
+
+ {"id": "edit-jacket", "app": "edit", "values": {"image": "@case:ref-face-a", "instruction": "Change the denim jacket to deep red leather, keep everything else the same."},
+ "note": "Only the jacket changes; face, hair and background stay."},
+ {"id": "character-market", "app": "character", "values": {"reference": "@case:ref-face-a", "scene": "walking through a night market, string lights, light rain"},
+ "note": "Same woman (face, hair) in a new scene."},
+ {"id": "cinema-studio-detective", "app": "cinema-studio", "values": {"camera": "grand format 70mm film camera", "lens": "1970s cinema prime lens"},
+ "note": "The camera and lens words should show: film grain and a vintage look."},
+ {"id": "remove-bg-product", "app": "remove-bg", "values": {"image": "@case:ref-product"},
+ "note": "A clean cut-out of the bottle with transparency."},
+ {"id": "upscale-face", "app": "upscale", "values": {"image": "@case:ref-face-a", "scale": 2},
+ "note": "2x with more detail in skin and hair, no plastic look."},
+ {"id": "upscale-video-street", "app": "upscale-video", "values": {"clip": "@case:ref-street"},
+ "note": "SeedVR2 on a 4 s clip: sharper, no flicker."},
+ {"id": "sfx-rain", "app": "sfx", "values": {"description": "heavy rain on a tin roof with distant thunder", "seconds": 10},
+ "note": "Stable Audio 3: rain and thunder, no music."},
+ {"id": "motion-transfer-walk", "app": "motion-transfer", "values": {"character": "@case:ref-character", "motion": "@case:ref-walk", "character_prompt": "Character appearance description: a man in a red jacket, jeans and white sneakers", "action_prompt": "walking toward the camera on a city sidewalk"},
+ "note": "Wan Animate 2: compare with recast-walk (SCAIL-2) on the same inputs."},
+ {"id": "reshoot-orbit", "app": "reshoot", "values": {"clip": "@case:ref-alley", "azimuth": -30, "elevation": 15, "duration": 4},
+ "note": "MiniMax H3 + MoGe: the alley from 30 degrees to the left. Needs 48 GB (its text encoder alone is 27 GB)."}
+ ]
+}
diff --git a/lab/cases.smoke.json b/lab/cases.smoke.json
new file mode 100644
index 0000000..2031097
--- /dev/null
+++ b/lab/cases.smoke.json
@@ -0,0 +1,10 @@
+{
+ "_about": "Runs on any ComfyUI, even CPU-only: no models needed. Checks uploads, outputs and case chaining.",
+ "cases": [
+ {"id": "smoke-red", "app": "smoke", "values": {"width": 128, "height": 96, "color": 16711680}},
+ {"id": "smoke-invert-chain", "app": "smoke-invert", "values": {"image": "@case:smoke-red"},
+ "note": "Should be cyan: the red square from the previous case, inverted."},
+ {"id": "smoke-missing-asset", "app": "smoke-invert", "values": {"image": "asset:does-not-exist.png"},
+ "note": "Expected to fail cleanly without stopping the batch."}
+ ]
+}
diff --git a/lab/core.py b/lab/core.py
new file mode 100644
index 0000000..c863b72
--- /dev/null
+++ b/lab/core.py
@@ -0,0 +1,317 @@
+#!/usr/bin/env python3
+"""The LoRA lab's engine: run a list of cases against one ComfyUI and keep everything.
+
+A case is an app from apps/ plus values, optional preset, raw overrides and extra LoRAs:
+
+ {"id": "clean-plate-street", "app": "vfx-clean-plate",
+ "values": {"clip": "@case:ref-street", "prompt": "..."},
+ "overrides": [{"node": "5004:5606", "field": "strength_model", "value": 0.8}],
+ "loras": [{"repo": "WepeNerd/LTX-Ripple", "file": "LTX25_Ripple_v11.safetensors", "strength": 1.0}]}
+
+File values can be "asset:<name>" (a file in lab/assets) or "@case:<id>" (the first output
+of an earlier case, so a text-to-video case can feed an IC-LoRA case). For every case the
+lab records status, seconds, peak VRAM (polled with nvidia-smi) and copies the outputs
+into results/<run_id>/<case_id>/. Between cases whose model sets differ it asks ComfyUI to
+unload everything, the same policy as the gateway.
+
+Local check against any running ComfyUI (CPU is fine for the smoke cases):
+ python lab/core.py --url http://127.0.0.1:8188 --comfy-dir /path/to/ComfyUI --cases lab/cases.smoke.json --out lab/results/local
+"""
+from __future__ import annotations
+
+import argparse
+import json
+import re
+import shutil
+import subprocess
+import threading
+import time
+import urllib.error
+import urllib.request
+import uuid
+from pathlib import Path
+
+FILE_TYPES = {"image", "video", "audio"}
+ROOT = Path(__file__).resolve().parent.parent
+
+
+# ---------------------------------------------------------------- HTTP
+def _req(url: str, payload: dict | None = None, timeout: float = 60) -> dict:
+ data = json.dumps(payload).encode() if payload is not None else None
+ req = urllib.request.Request(url, data=data, headers={"content-type": "application/json"} if data else {})
+ try:
+ with urllib.request.urlopen(req, timeout=timeout) as r:
+ body = r.read()
+ return json.loads(body) if body else {}
+ except urllib.error.HTTPError as e:
+ raise RuntimeError(f"{url} → HTTP {e.code}: {e.read().decode(errors='replace')[:800]}") from None
+
+
+# ---------------------------------------------------------------- VRAM
+class VramSampler(threading.Thread):
+ """Peak GPU memory in GB since the last reset, from nvidia-smi every 0.5 s."""
+
+ def __init__(self):
+ super().__init__(daemon=True)
+ self.peak_mib = 0
+ self.available = shutil.which("nvidia-smi") is not None
+ self.gpu_name = None
+ if self.available:
+ try:
+ self.gpu_name = subprocess.run(["nvidia-smi", "--query-gpu=name,memory.total", "--format=csv,noheader"],
+ capture_output=True, text=True, timeout=10).stdout.strip().splitlines()[0]
+ except Exception:
+ self.available = False
+ self._halt = threading.Event()
+
+ def run(self):
+ while self.available and not self._halt.is_set():
+ try:
+ out = subprocess.run(["nvidia-smi", "--query-gpu=memory.used", "--format=csv,noheader,nounits"],
+ capture_output=True, text=True, timeout=5).stdout
+ self.peak_mib = max(self.peak_mib, max(int(x) for x in out.split()))
+ except Exception:
+ pass
+ time.sleep(0.5)
+
+ def reset(self) -> None:
+ self.peak_mib = 0
+
+ def peak_gb(self) -> float | None:
+ return round(self.peak_mib / 1024, 2) if self.available else None
+
+ def stop(self) -> None:
+ self._halt.set()
+
+
+# ---------------------------------------------------------------- workflow edits
+def load_app(apps_dir: Path, app_id: str) -> tuple[dict, dict]:
+ manifest = json.loads((apps_dir / app_id / "app.json").read_text(encoding="utf-8"))
+ if not manifest.get("workflow"):
+ raise ValueError(f"{app_id} has no workflow yet")
+ api = json.loads((apps_dir / app_id / manifest["workflow"]).read_text(encoding="utf-8"))
+ return manifest, api
+
+
+def render(template: str, values: dict) -> str:
+ s = re.sub(r"\{([a-z][a-z0-9_]*)\}", lambda m: "" if values.get(m.group(1)) is None else str(values[m.group(1)]), template)
+ s = re.sub(r"\s+,", ",", s)
+ s = re.sub(r",\s*,+", ",", s)
+ return re.sub(r"\s{2,}", " ", s).strip().rstrip(",")
+
+
+def resolve_values(manifest: dict, given: dict) -> dict:
+ values = {}
+ for inp in manifest.get("inputs", []):
+ v = given.get(inp["id"], inp.get("default"))
+ if inp["type"] == "seed" and v in (None, -1, "-1"):
+ v = 42 # fixed, so cases are comparable
+ if v is not None:
+ values[inp["id"]] = v
+ return values
+
+
+def apply(manifest: dict, api: dict, values: dict, preset: str | None = None) -> None:
+ for inp in manifest.get("inputs", []):
+ if inp["id"] not in values:
+ continue
+ for b in inp.get("bind", []):
+ api[b["node"]]["inputs"][b["field"]] = render(b["template"], values) if b.get("template") else values[inp["id"]]
+ for opt in inp.get("options") or []: # a select option can carry extra fields
+ if opt["value"] == values[inp["id"]]:
+ for s in opt.get("sets", []):
+ api[s["node"]]["inputs"][s["field"]] = s["value"]
+ if preset:
+ p = next(p for p in manifest.get("presets", []) if p["id"] == preset)
+ for s in p["sets"]:
+ api[s["node"]]["inputs"][s["field"]] = s["value"]
+
+
+def add_loras(api: dict, loras: list[dict]) -> None:
+ """Chain LoraLoaderModelOnly nodes right after the diffusion model loader."""
+ unets = [i for i, n in api.items() if n["class_type"] in ("UNETLoader", "CheckpointLoaderSimple")]
+ if len(unets) != 1:
+ raise ValueError(f"expected one model loader, found {unets}")
+ src = [unets[0], 0]
+ for k, l in enumerate(loras):
+ nid = f"lab_lora_{k}"
+ for n in api.values():
+ for f, v in n["inputs"].items():
+ if v == src:
+ n["inputs"][f] = [nid, 0]
+ api[nid] = {"class_type": "LoraLoaderModelOnly", "inputs": {"model": list(src), "lora_name": l["file"].rsplit("/", 1)[-1],
+ "strength_model": l.get("strength", 1.0)}, "_meta": {"title": "lab LoRA"}}
+ src = [nid, 0]
+
+
+def build_case(apps_dir: Path, case: dict, file_value) -> tuple[dict, dict, dict]:
+ """The exact prompt a case submits: app workflow + values + preset + overrides + LoRAs.
+
+ file_value(case_id, raw, kind) turns "@case:…", "asset:…" or a path into a file name in
+ ComfyUI's input folder; kind is the input type (image, video or audio)."""
+ manifest, api = load_app(apps_dir, case["app"])
+ given = dict(case.get("values", {}))
+ types = {i["id"]: i["type"] for i in manifest.get("inputs", [])}
+ for k, v in list(given.items()):
+ if types.get(k) in FILE_TYPES and isinstance(v, str):
+ given[k] = file_value(case["id"], v, types[k])
+ values = resolve_values(manifest, given)
+ apply(manifest, api, values, case.get("preset"))
+ for o in case.get("overrides", []):
+ api[o["node"]]["inputs"][o["field"]] = o["value"]
+ if case.get("loras"):
+ add_loras(api, case["loras"])
+ return manifest, api, {k: v for k, v in values.items() if types.get(k) not in FILE_TYPES}
+
+
+def lora_models(loras: list[dict]) -> list[dict]:
+ return [{"repo": l["repo"], "file": l["file"], "dir": "loras", "gb": l.get("gb", 0)} for l in loras]
+
+
+def models_for_cases(cases: list[dict], apps_dir: Path) -> list[dict]:
+ seen, out = set(), []
+ for c in cases:
+ manifest = json.loads((apps_dir / c["app"] / "app.json").read_text(encoding="utf-8"))
+ extra = lora_models(c.get("loras", [])) + lora_models(c.get("loras_download", [])) # files swapped in by overrides
+ for m in manifest.get("models", []) + extra:
+ key = (m["dir"], m["file"].rsplit("/", 1)[-1])
+ if key not in seen:
+ seen.add(key)
+ out.append(m)
+ return out
+
+
+# ---------------------------------------------------------------- runner
+class Lab:
+ def __init__(self, url: str, input_dir: Path, output_dir: Path, results_dir: Path,
+ apps_dir: Path = ROOT / "apps", assets_dir: Path = ROOT / "lab" / "assets", on_case_done=None,
+ missing: dict[str, str] | None = None):
+ self.url = url.rstrip("/")
+ self.missing = missing or {} # model files that could not be downloaded → reason
+ self.input_dir, self.output_dir, self.results_dir = input_dir, output_dir, results_dir
+ self.apps_dir, self.assets_dir = apps_dir, assets_dir
+ self.on_case_done = on_case_done or (lambda: None)
+ self.outputs: dict[str, list[Path]] = {}
+ self.last_key: str | None = None
+ self.vram = VramSampler()
+ self.vram.start()
+
+ def _file_value(self, case_id: str, raw: str, kind: str = "") -> str:
+ if raw.startswith("@case:"):
+ src_id = raw[len("@case:"):]
+ files = self.outputs.get(src_id) or []
+ if not files:
+ raise RuntimeError(f"{case_id}: case '{src_id}' produced no output to use")
+ src = files[0]
+ elif raw.startswith("asset:"):
+ src = self.assets_dir / raw[len("asset:"):]
+ else:
+ src = Path(raw)
+ if not src.exists():
+ raise FileNotFoundError(f"{case_id}: input file {src} not found")
+ name = f"lab_{case_id}_{src.name}"
+ shutil.copy(src, self.input_dir / name)
+ return name
+
+ def run_case(self, case: dict) -> dict:
+ cid = case["id"]
+ res = {"id": cid, "app": case["app"], "status": "error", "seconds": None, "peak_vram_gb": None,
+ "files": [], "error": None, "values": {}, "loras": case.get("loras", []),
+ "overrides": case.get("overrides", []), "note": case.get("note", "")}
+ try:
+ manifest, api, res["values"] = build_case(self.apps_dir, case, self._file_value)
+ # skip, with the reason, when a file this exact prompt loads could not be downloaded
+ used = {v for n in api.values() for v in n["inputs"].values() if isinstance(v, str)}
+ lacking = sorted(used & set(self.missing))
+ if lacking:
+ res["status"] = "skipped"
+ raise RuntimeError("model file(s) not downloaded: " + "; ".join(f"{n} ({self.missing[n]})" for n in lacking))
+ # same rule as the gateway: unload only when the base models change, not the LoRAs
+ key = "|".join(sorted(f"{m['dir']}/{m['file'].rsplit('/', 1)[-1]}" for m in manifest.get("models", [])
+ if not m.get("optional") and m["dir"] != "loras"))
+ if self.last_key is not None and key != self.last_key:
+ _req(f"{self.url}/free", {"unload_models": True, "free_memory": True})
+ self.last_key = key
+ self.vram.reset()
+ t0 = time.time()
+ pid = _req(f"{self.url}/prompt", {"prompt": api, "client_id": f"lab-{uuid.uuid4().hex[:8]}"})["prompt_id"]
+ deadline = t0 + case.get("timeout", 1800)
+ entry = None
+ while time.time() < deadline:
+ hist = _req(f"{self.url}/history/{pid}")
+ entry = hist.get(pid)
+ if entry and entry.get("status", {}).get("completed") is not None and \
+ (entry["status"].get("completed") or entry["status"].get("status_str") == "error"):
+ break
+ time.sleep(1)
+ res["seconds"] = round(time.time() - t0, 1)
+ res["peak_vram_gb"] = self.vram.peak_gb()
+ if not entry:
+ raise TimeoutError(f"no result after {case.get('timeout', 1800)} s")
+ st = entry.get("status", {})
+ if st.get("status_str") == "error":
+ msgs = [m for m in st.get("messages", []) if m and m[0] == "execution_error"]
+ detail = msgs[-1][1] if msgs else {}
+ raise RuntimeError(f"{detail.get('node_type', '')}: {detail.get('exception_message', 'execution error')}".strip())
+ out_dir = self.results_dir / cid
+ out_dir.mkdir(parents=True, exist_ok=True)
+ wanted = {o["node"] for o in manifest["outputs"]}
+ saved = []
+ for node_id, out in (entry.get("outputs") or {}).items():
+ if node_id not in wanted:
+ continue
+ for items in out.values():
+ if not isinstance(items, list):
+ continue
+ for it in items:
+ if isinstance(it, dict) and "filename" in it and it.get("type", "output") == "output":
+ src = self.output_dir / it.get("subfolder", "") / it["filename"]
+ if src.exists():
+ dst = out_dir / it["filename"]
+ shutil.copy(src, dst)
+ saved.append(dst)
+ self.outputs[cid] = saved
+ res["files"] = [str(p.relative_to(self.results_dir)) for p in saved]
+ res["status"] = "ok" if saved else "no-output"
+ except Exception as e: # keep going: one broken LoRA must not stop the batch
+ res["error"] = f"{type(e).__name__}: {e}"
+ return res
+
+ def run_all(self, cases: list[dict]) -> list[dict]:
+ self.results_dir.mkdir(parents=True, exist_ok=True)
+ results = []
+ meta = {"gpu": self.vram.gpu_name, "started": time.strftime("%Y-%m-%d %H:%M:%S"), "cases": len(cases)}
+ (self.results_dir / "run.json").write_text(json.dumps(meta, indent=2), encoding="utf-8")
+ with open(self.results_dir / "results.jsonl", "a", encoding="utf-8") as f:
+ for c in cases:
+ r = self.run_case(c)
+ results.append(r)
+ f.write(json.dumps(r, ensure_ascii=False) + "\n")
+ f.flush()
+ flag = "✓" if r["status"] == "ok" else "✗"
+ vram = f"{r['peak_vram_gb']:.1f} GB" if r["peak_vram_gb"] is not None else "n/a"
+ print(f"{flag} {r['id']:<34} {r['app']:<18} {r['seconds'] or 0:>7.1f}s peak {vram:>8} {r['error'] or ''}")
+ self.on_case_done()
+ self.vram.stop()
+ return results
+
+
+def main(argv=None) -> int:
+ ap = argparse.ArgumentParser()
+ ap.add_argument("--url", default="http://127.0.0.1:8188")
+ ap.add_argument("--comfy-dir", type=Path, required=True)
+ ap.add_argument("--cases", type=Path, required=True)
+ ap.add_argument("--out", type=Path, required=True)
+ ap.add_argument("--only", default="", help="comma-separated case ids")
+ a = ap.parse_args(argv)
+ cases = json.loads(a.cases.read_text(encoding="utf-8"))["cases"]
+ if a.only:
+ keep = set(a.only.split(","))
+ cases = [c for c in cases if c["id"] in keep]
+ lab = Lab(a.url, a.comfy_dir / "input", a.comfy_dir / "output", a.out)
+ results = lab.run_all(cases)
+ return 0 if all(r["status"] == "ok" for r in results) else 1
+
+
+if __name__ == "__main__":
+ raise SystemExit(main())
diff --git a/lab/lab_modal.py b/lab/lab_modal.py
new file mode 100644
index 0000000..9bb7176
--- /dev/null
+++ b/lab/lab_modal.py
@@ -0,0 +1,100 @@
+"""LoRA lab on Modal: launch a batch of cases, then download the results for review.
+
+ modal run lab/lab_modal.py # every case in lab/cases.json, on an L40S
+ FREEFIELD_GPU=A10G modal run lab/lab_modal.py --only ic-clean-plate,ic-day-to-night # 24 GB parity check
+ modal run lab/lab_modal.py --apps camera-moves,relight # every case of these apps
+ modal volume get freefield-lab <run_id> lab/results/<run_id>
+ python lab/review.py lab/results/<run_id> # opens a gallery to rate each result
+
+Missing model files are downloaded into the "freefield-models" volume first (gated repos
+need the "huggingface" secret and an accepted license). Results and a results.jsonl with
+time and peak VRAM per case are written to the "freefield-lab" volume as they finish, so a
+partial run is still useful.
+"""
+from __future__ import annotations
+
+import json
+import os
+import sys
+import time
+from pathlib import Path
+
+import modal
+
+sys.path.insert(0, str(Path(__file__).resolve().parent.parent))
+from infra.common import build_image, ensure_models, hf_secret, lab_volume, models_volume, start_comfyui # noqa: E402
+
+GPU = os.environ.get("FREEFIELD_GPU", "L40S")
+COMFY_ARGS = os.environ.get("FREEFIELD_COMFY_ARGS", "")
+
+app = modal.App("freefield-lab")
+image = build_image().add_local_python_source("infra")
+
+
[email protected](image=image, gpu=GPU, volumes={"/models": models_volume, "/lab": lab_volume},
+ secrets=[hf_secret], timeout=8 * 3600)
+def run(cases: list[dict], run_id: str, assets: dict[str, bytes]) -> list[dict]:
+ sys.path.insert(0, "/freefield/lab")
+ from core import Lab, models_for_cases # noqa: E402
+
+ needed = models_for_cases(cases, Path("/freefield/apps"))
+ fetched, failed = ensure_models(needed)
+ if fetched:
+ models_volume.commit()
+ if failed:
+ print(f"{len(failed)} model file(s) missing; the cases that need them will be skipped")
+ assets_dir = Path("/tmp/lab-assets")
+ assets_dir.mkdir(exist_ok=True)
+ for name, data in assets.items():
+ (assets_dir / name).write_bytes(data)
+ proc = start_comfyui(8188, COMFY_ARGS)
+ try:
+ lab = Lab("http://127.0.0.1:8188", Path("/comfyui/input"), Path("/comfyui/output"), Path("/lab") / run_id,
+ apps_dir=Path("/freefield/apps"), assets_dir=assets_dir, on_case_done=lab_volume.commit,
+ missing=failed)
+ results = lab.run_all(cases)
+ finally:
+ proc.terminate()
+ lab_volume.commit()
+ return results
+
+
+def with_dependencies(spec: list[dict], keep: set[str]) -> list[dict]:
+ """The chosen cases plus every case they read an output from (transitively), in file order."""
+ by_id = {c["id"]: c for c in spec}
+ todo, seen = list(keep), set()
+ while todo:
+ cid = todo.pop()
+ if cid in seen or cid not in by_id:
+ continue
+ seen.add(cid)
+ todo += [v[len("@case:"):] for v in by_id[cid].get("values", {}).values()
+ if isinstance(v, str) and v.startswith("@case:")]
+ return [c for c in spec if c["id"] in seen]
+
+
[email protected]_entrypoint()
+def main(cases: str = "lab/cases.json", only: str = "", apps: str = "", run_id: str = ""):
+ """--only case,ids or --apps app,ids (their reference cases come along)."""
+ spec = json.loads(Path(cases).read_text(encoding="utf-8"))["cases"]
+ keep = set(filter(None, only.split(","))) | {c["id"] for c in spec if c["app"] in set(filter(None, apps.split(",")))}
+ if only or apps:
+ unknown = set(filter(None, only.split(","))) - {c["id"] for c in spec}
+ if unknown:
+ raise SystemExit(f"unknown case id(s): {', '.join(sorted(unknown))}")
+ spec = with_dependencies(spec, keep)
+ if not spec:
+ raise SystemExit("no case matches --only/--apps")
+ assets = {}
+ for c in spec:
+ for v in c.get("values", {}).values():
+ if isinstance(v, str) and v.startswith("asset:"):
+ name = v[len("asset:"):]
+ assets[name] = (Path("lab/assets") / name).read_bytes()
+ run_id = run_id or time.strftime("%Y%m%d-%H%M%S") + f"-{GPU.lower()}"
+ print(f"run {run_id}: {len(spec)} cases on {GPU}")
+ results = run.remote(spec, run_id, assets)
+ ok = sum(r["status"] == "ok" for r in results)
+ print(f"\n{ok}/{len(results)} ok")
+ print(f"download: modal volume get freefield-lab {run_id} lab/results/{run_id}")
+ print(f"review: python lab/review.py lab/results/{run_id}")
diff --git a/lab/review.py b/lab/review.py
new file mode 100644
index 0000000..f2d87d4
--- /dev/null
+++ b/lab/review.py
@@ -0,0 +1,118 @@
+#!/usr/bin/env python3
+"""Build a local review page for a lab run and, optionally, write measured VRAM back.
+
+ python lab/review.py lab/results/<run_id> → lab/results/<run_id>/review.html
+ python lab/review.py lab/results/<run_id> --apply-peaks also stores each app's highest
+ measured peak in apps/<id>/app.json
+
+The page plays every output next to its settings. Ratings (good / meh / bad) and notes are
+kept in your browser and can be exported as ratings.json for the next round.
+"""
+from __future__ import annotations
+
+import argparse
+import html
+import json
+import sys
+from pathlib import Path
+
+ROOT = Path(__file__).resolve().parent.parent
+
+PAGE = """<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">
+<title>Freefield lab · {run}</title>
+<style>
+:root{{--bg:#0d1520;--card:#152232;--line:#2a3d52;--ink:#e8eef5;--dim:#8fa3b8;--good:#74d97a;--meh:#f5cf4a;--bad:#ff7466}}
+body{{margin:0;background:var(--bg);color:var(--ink);font:15px/1.5 system-ui,sans-serif}}
+header{{padding:20px 24px;border-bottom:1px solid var(--line);display:flex;gap:16px;align-items:center;flex-wrap:wrap}}
+h1{{font-size:20px;margin:0}} .meta{{color:var(--dim)}}
+main{{display:grid;grid-template-columns:repeat(auto-fill,minmax(420px,1fr));gap:16px;padding:16px 24px}}
+.card{{background:var(--card);border:1px solid var(--line);border-radius:10px;padding:14px;display:grid;gap:8px}}
+.card.err{{border-color:var(--bad)}} video,img,audio{{width:100%;border-radius:6px;background:#000}}
+.id{{font-weight:600}} .small{{color:var(--dim);font-size:13px;word-break:break-word}}
+.rate{{display:flex;gap:8px}} .rate button{{flex:1;padding:6px;border-radius:6px;border:1px solid var(--line);background:transparent;color:var(--ink);cursor:pointer}}
+.rate button.on[data-v=good]{{background:var(--good);color:#0d1520}} .rate button.on[data-v=meh]{{background:var(--meh);color:#0d1520}} .rate button.on[data-v=bad]{{background:var(--bad);color:#0d1520}}
+textarea{{width:100%;box-sizing:border-box;background:var(--bg);color:var(--ink);border:1px solid var(--line);border-radius:6px;padding:6px;min-height:48px}}
+button.export{{padding:8px 14px;border-radius:6px;border:0;background:var(--ink);color:var(--bg);cursor:pointer}}
+</style></head><body>
+<header><h1>Lab run {run}</h1><span class="meta">{gpu} · {ok}/{n} ok</span><button class="export" id="export">Export ratings.json</button></header>
+<main>{cards}</main>
+<script>
+const KEY = "freefield-lab-{run}";
+let state = {{}}; try {{ state = JSON.parse(localStorage.getItem(KEY) || "{{}}"); }} catch (e) {{}}
+const save = () => {{ try {{ localStorage.setItem(KEY, JSON.stringify(state)); }} catch (e) {{}} }};
+document.querySelectorAll(".card").forEach(card => {{
+ const id = card.dataset.id; const s = state[id] || {{}};
+ card.querySelectorAll(".rate button").forEach(b => {{
+ if (s.rating === b.dataset.v) b.classList.add("on");
+ b.onclick = () => {{ state[id] = {{...state[id], rating: b.dataset.v}}; save();
+ card.querySelectorAll(".rate button").forEach(x => x.classList.toggle("on", x === b)); }};
+ }});
+ const t = card.querySelector("textarea"); t.value = s.note || "";
+ t.oninput = () => {{ state[id] = {{...state[id], note: t.value}}; save(); }};
+}});
+document.getElementById("export").onclick = () => {{
+ const blob = new Blob([JSON.stringify({{run: "{run}", ratings: state}}, null, 2)], {{type: "application/json"}});
+ const a = document.createElement("a"); a.href = URL.createObjectURL(blob); a.download = "ratings.json"; a.click();
+}};
+</script></body></html>"""
+
+
+def media(path: str) -> str:
+ p = html.escape(path)
+ low = path.lower()
+ if low.endswith((".mp4", ".webm", ".mov")):
+ return f'<video src="{p}" controls loop muted playsinline preload="metadata"></video>'
+ if low.endswith((".mp3", ".wav", ".flac", ".ogg")):
+ return f'<audio src="{p}" controls preload="none"></audio>'
+ return f'<img src="{p}" loading="lazy" alt="">'
+
+
+def card(r: dict) -> str:
+ vals = ", ".join(f"{k}={json.dumps(v)[:80]}" for k, v in r.get("values", {}).items())
+ loras = ", ".join(f"{l['file'].rsplit('/', 1)[-1]} @{l.get('strength', 1.0)}" for l in r.get("loras", []))
+ ovr = ", ".join(f"{o['node']}.{o['field']}={json.dumps(o['value'])[:60]}" for o in r.get("overrides", []))
+ peak = f"{r['peak_vram_gb']:.1f} GB" if r.get("peak_vram_gb") is not None else "n/a"
+ body = "".join(media(f) for f in r.get("files", [])) or f'<div class="small">{html.escape(r.get("error") or "no output")}</div>'
+ return f"""<section class="card{' err' if r['status'] != 'ok' else ''}" data-id="{html.escape(r['id'])}">
+<div class="id">{html.escape(r['id'])} <span class="small">· {html.escape(r['app'])} · {r.get('seconds') or 0:.0f}s · peak {peak}</span></div>
+{body}
+<div class="small">{html.escape(r.get('note', ''))}</div>
+<div class="small">{html.escape(vals)}{('<br>LoRA: ' + html.escape(loras)) if loras else ''}{('<br>overrides: ' + html.escape(ovr)) if ovr else ''}</div>
+<div class="rate"><button data-v="good">good</button><button data-v="meh">meh</button><button data-v="bad">bad</button></div>
+<textarea placeholder="notes"></textarea></section>"""
+
+
+def main(argv=None) -> int:
+ ap = argparse.ArgumentParser()
+ ap.add_argument("run_dir", type=Path)
+ ap.add_argument("--apply-peaks", action="store_true")
+ a = ap.parse_args(argv)
+ lines = (a.run_dir / "results.jsonl").read_text(encoding="utf-8").splitlines()
+ results = {}
+ for line in lines: # a re-run of the same id replaces the earlier row
+ if line.strip():
+ r = json.loads(line)
+ results[r["id"]] = r
+ rows = list(results.values())
+ meta = json.loads((a.run_dir / "run.json").read_text()) if (a.run_dir / "run.json").exists() else {}
+ page = PAGE.format(run=html.escape(a.run_dir.name), gpu=html.escape(meta.get("gpu") or "unknown GPU"),
+ ok=sum(r["status"] == "ok" for r in rows), n=len(rows), cards="\n".join(card(r) for r in rows))
+ out = a.run_dir / "review.html"
+ out.write_text(page, encoding="utf-8")
+ print(f"wrote {out}")
+ if a.apply_peaks:
+ peaks: dict[str, float] = {}
+ for r in rows:
+ if r["status"] == "ok" and r.get("peak_vram_gb"):
+ peaks[r["app"]] = max(peaks.get(r["app"], 0), r["peak_vram_gb"])
+ for app_id, peak in peaks.items():
+ f = ROOT / "apps" / app_id / "app.json"
+ m = json.loads(f.read_text(encoding="utf-8"))
+ m["vram"] = {"peak_gb": peak, "measured_on": f"{meta.get('gpu', 'GPU')} · {meta.get('started', '')[:10]}"}
+ f.write_text(json.dumps(m, indent=2, ensure_ascii=False) + "\n", encoding="utf-8")
+ print(f"apps/{app_id}: peak {peak:.1f} GB")
+ return 0
+
+
+if __name__ == "__main__":
+ sys.exit(main())
diff --git a/package-lock.json b/package-lock.json
new file mode 100644
index 0000000..046870d
--- /dev/null
+++ b/package-lock.json
@@ -0,0 +1,507 @@
+{
+ "name": "freefield",
+ "version": "0.1.0",
+ "lockfileVersion": 3,
+ "requires": true,
+ "packages": {
+ "": {
+ "name": "freefield",
+ "version": "0.1.0",
+ "license": "MIT",
+ "dependencies": {
+ "@comfyorg/sdk": "0.5.0",
+ "ajv": "^8.20.0"
+ },
+ "devDependencies": {
+ "@types/node": "^26.6.5",
+ "typescript": "^7.0.2"
+ },
+ "engines": {
+ "node": ">=22.6.0"
+ }
+ },
+ "node_modules/@comfyorg/sdk": {
+ "version": "0.5.0",
+ "resolved": "https://registry.npmjs.org/@comfyorg/sdk/-/sdk-0.5.0.tgz",
+ "integrity": "sha512-zBOIHmXxlPivt18/Ds6P4m1zwn0hys6MG9waFND2zHKi2oCXi0aZPFLu4lr4uxf0tnGmy3oqabPTcqICH7hA0Q==",
+ "license": "MIT",
+ "dependencies": {
+ "eventsource-parser": "^4.1.0",
+ "hash-wasm": "^4.11.0",
+ "zod": "^4.4.3"
+ },
+ "engines": {
+ "node": ">=22"
+ }
+ },
+ "node_modules/@types/node": {
+ "version": "26.6.5",
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-26.6.5.tgz",
+ "integrity": "sha512-uMzsv9stDdofIZBx4UGh4Z9ZgXnGC9seRDscilBcTHAeOFk67MZg/k9bWVfO+bk4qZmG+l52hRnLwUiH2LnJTg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "undici-types": "~8.9.0"
+ }
+ },
+ "node_modules/@typescript/typescript-aix-ppc64": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmjs.org/@typescript/typescript-aix-ppc64/-/typescript-aix-ppc64-7.0.2.tgz",
+ "integrity": "sha512-MTKKkWB7p/0E9xi1d1tHtZ5PiLkGEMIq88pK2CubZjOsLtYTLqhgIgi6zepFa+9GHZ6h05NMCkQxGKiPXMxXtQ==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "aix"
+ ],
+ "engines": {
+ "node": ">=16.20.0"
+ }
+ },
+ "node_modules/@typescript/typescript-darwin-arm64": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmjs.org/@typescript/typescript-darwin-arm64/-/typescript-darwin-arm64-7.0.2.tgz",
+ "integrity": "sha512-gowzar9MwS/aRWp6f3a4KUqzRjAZjOsmGNCM6LcTgXum+dBfgsBVMN+AgvOCCbguXyick6LJhpBszxMebJ8syA==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=16.20.0"
+ }
+ },
+ "node_modules/@typescript/typescript-darwin-x64": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmjs.org/@typescript/typescript-darwin-x64/-/typescript-darwin-x64-7.0.2.tgz",
+ "integrity": "sha512-SZ9xZInqApNlNGc9s0W1VSsktYSOe9cFqNOIqmN1Gs8SmkjKZYFt017G4VwPxASInODuAdbTW7sXiFUf893RgA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=16.20.0"
+ }
+ },
+ "node_modules/@typescript/typescript-freebsd-arm64": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmjs.org/@typescript/typescript-freebsd-arm64/-/typescript-freebsd-arm64-7.0.2.tgz",
+ "integrity": "sha512-W5NH4y/J0plIIS5b2xvTEkU7JFxyqdMAOgf+Ilhl0vHQXKO5dZoxd+C/jEtq56c4F3wk71RB4BMRQ2XdI+bwYQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">=16.20.0"
+ }
+ },
+ "node_modules/@typescript/typescript-freebsd-x64": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmjs.org/@typescript/typescript-freebsd-x64/-/typescript-freebsd-x64-7.0.2.tgz",
+ "integrity": "sha512-UMGDx5sTpzNw3WiPebH7l90IWfJggEd+egHt/q6p7/Cm3zqoV7VxkGXt+3DxPIw8CcmvAB0j3sVVfbhX+M4Tpw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">=16.20.0"
+ }
+ },
+ "node_modules/@typescript/typescript-linux-arm": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-arm/-/typescript-linux-arm-7.0.2.tgz",
+ "integrity": "sha512-gffT3xPz9sR7j/YJExkyPntrI0P2EP9XbOyWzth2/Gs0RstK+90RBcO0ncXoXy/beYll1SXw846Nf2zdnEz0QQ==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=16.20.0"
+ }
+ },
+ "node_modules/@typescript/typescript-linux-arm64": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-arm64/-/typescript-linux-arm64-7.0.2.tgz",
+ "integrity": "sha512-Qh4eU4/y3yDjnfjjyPYihMj5/ODIlmt+Bzu17OI+fiSRDW57QmU5SiN63exPRNJPKUzcc1INa1NXdrJ+MqHjUQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=16.20.0"
+ }
+ },
+ "node_modules/@typescript/typescript-linux-loong64": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-loong64/-/typescript-linux-loong64-7.0.2.tgz",
+ "integrity": "sha512-uEHck9i8hoAzXPiYRib1O7miOnz23SxIeVl6F4LXox+qov1K35jHcEW6VHKvZI+pyvl7fZEP4MCU5LYvIq1GuQ==",
+ "cpu": [
+ "loong64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=16.20.0"
+ }
+ },
+ "node_modules/@typescript/typescript-linux-mips64el": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-mips64el/-/typescript-linux-mips64el-7.0.2.tgz",
+ "integrity": "sha512-R4KvAMnE43W5Qeqb0Ly56O3mWMWIAgsMyz36DCaycd5nbg/9kzm0liw3JocfRqyJY0KPmzFjbswozXyW0DnIYA==",
+ "cpu": [
+ "mips64el"
+ ],
+ "dev": true,
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=16.20.0"
+ }
+ },
+ "node_modules/@typescript/typescript-linux-ppc64": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-ppc64/-/typescript-linux-ppc64-7.0.2.tgz",
+ "integrity": "sha512-DORx5b3sd/4S7eayxm4FQv+A7CrkUIGRaHiwI8oiHTAI1fAPWhF4J0vAlkC8biAlHSVVwxMQ3tjZ2/DVbnQiiA==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=16.20.0"
+ }
+ },
+ "node_modules/@typescript/typescript-linux-riscv64": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-riscv64/-/typescript-linux-riscv64-7.0.2.tgz",
+ "integrity": "sha512-wf0jqEDOjrPRnKwYRyyJDRo11KMbvMFrU+q4zqKyChODBzvlkbhNQfKvLxQCcwTpdDaXSHZTVuh0JoCrKCUMHQ==",
+ "cpu": [
+ "riscv64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=16.20.0"
+ }
+ },
+ "node_modules/@typescript/typescript-linux-s390x": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-s390x/-/typescript-linux-s390x-7.0.2.tgz",
+ "integrity": "sha512-IkwJc3L7yhytWd/ewjyxNDfOmswCm9GWMJT/ue/dU4aZNbwZeYAetq42VyLmsmSjvoX7z74X6ZaYCtzAr0EuGw==",
+ "cpu": [
+ "s390x"
+ ],
+ "dev": true,
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=16.20.0"
+ }
+ },
+ "node_modules/@typescript/typescript-linux-x64": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-x64/-/typescript-linux-x64-7.0.2.tgz",
+ "integrity": "sha512-EYdf2cNg7rgCWJnxCdJ+F3V39O8ihb37eHAu1LK8oAFizgTQbPOK7zHHXbPt8rX24COqODXeI3sIf0fCXG7H/A==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=16.20.0"
+ }
+ },
+ "node_modules/@typescript/typescript-netbsd-arm64": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmjs.org/@typescript/typescript-netbsd-arm64/-/typescript-netbsd-arm64-7.0.2.tgz",
+ "integrity": "sha512-+polYF4MF04aPpO5FTkHran9yUQDSXqy5GiSDKpsll5jy3l3+g9QLhpf39T+ePtefhXLOGrLl0QIjkQP6VnelA==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "netbsd"
+ ],
+ "engines": {
+ "node": ">=16.20.0"
+ }
+ },
+ "node_modules/@typescript/typescript-netbsd-x64": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmjs.org/@typescript/typescript-netbsd-x64/-/typescript-netbsd-x64-7.0.2.tgz",
+ "integrity": "sha512-8YIT0EHM/3dq10ZOVF/A7pc/YSMtbcecct4rWtexrnSCHOPcpC2KTLXfTCR6vDpnSiY12heNb1GiN/wu+T/FyA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "netbsd"
+ ],
+ "engines": {
+ "node": ">=16.20.0"
+ }
+ },
+ "node_modules/@typescript/typescript-openbsd-arm64": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmjs.org/@typescript/typescript-openbsd-arm64/-/typescript-openbsd-arm64-7.0.2.tgz",
+ "integrity": "sha512-APT8+ClYnuYm1u9+kgGXoMj2VzWzcymwh2gNSQVySHfkRDGOTVkoWLjCmOQSaO+PoqQ57B0flRp9SA+7GnnkzQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "openbsd"
+ ],
+ "engines": {
+ "node": ">=16.20.0"
+ }
+ },
+ "node_modules/@typescript/typescript-openbsd-x64": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmjs.org/@typescript/typescript-openbsd-x64/-/typescript-openbsd-x64-7.0.2.tgz",
+ "integrity": "sha512-yX7s+Q0Dln0Dt9tEzZsAjXXR/+ytBM7AlglaqyeMPxQszJ1JhlJdZ6jLA+IzldHtflX81em7lDao1xXu+aRRkg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "openbsd"
+ ],
+ "engines": {
+ "node": ">=16.20.0"
+ }
+ },
+ "node_modules/@typescript/typescript-sunos-x64": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmjs.org/@typescript/typescript-sunos-x64/-/typescript-sunos-x64-7.0.2.tgz",
+ "integrity": "sha512-dLJDGaLZ1D4HPQn62u1n8mBDkJREwMsAkCdkwd4Ieqw+x3TUyTsqY0YiBCtE6H6OzzgGk3iuZ3vFWRS+E8/d1g==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "sunos"
+ ],
+ "engines": {
+ "node": ">=16.20.0"
+ }
+ },
+ "node_modules/@typescript/typescript-win32-arm64": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmjs.org/@typescript/typescript-win32-arm64/-/typescript-win32-arm64-7.0.2.tgz",
+ "integrity": "sha512-Gyl1Vy6OsWesLzmq+EP0Fb7b4Nid5232AvcA2SFcdYreldpNtYFFofPjnt62y9hQy7VTaZp65ICJjuAQRaVcIQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=16.20.0"
+ }
+ },
+ "node_modules/@typescript/typescript-win32-x64": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmjs.org/@typescript/typescript-win32-x64/-/typescript-win32-x64-7.0.2.tgz",
+ "integrity": "sha512-0BQ3HkAHHlKLSp1qRvf3SUhGpGsDuhB/jgFw75guyqbxJqEaS0Cw/VFO8i2nHglJUzQCRtMMR/IBAKE3ETMC4g==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=16.20.0"
+ }
+ },
+ "node_modules/ajv": {
+ "version": "8.20.0",
+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.20.0.tgz",
+ "integrity": "sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==",
+ "license": "MIT",
+ "dependencies": {
+ "fast-deep-equal": "^3.1.3",
+ "fast-uri": "^3.0.1",
+ "json-schema-traverse": "^1.0.0",
+ "require-from-string": "^2.0.2"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/epoberezkin"
+ }
+ },
+ "node_modules/eventsource-parser": {
+ "version": "4.1.2",
+ "resolved": "https://registry.npmjs.org/eventsource-parser/-/eventsource-parser-4.1.2.tgz",
+ "integrity": "sha512-N9b0EvATDJfZj+Szg3m8WwqseQhei/mtTd6V0rCciGbI/yG24o3yBk0YVyfOZZsLVMZHWs++Zk3Aqd2y2EztnQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=22.12"
+ }
+ },
+ "node_modules/fast-deep-equal": {
+ "version": "3.1.3",
+ "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
+ "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",
+ "license": "MIT"
+ },
+ "node_modules/fast-uri": {
+ "version": "3.1.9",
+ "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.9.tgz",
+ "integrity": "sha512-hS/0Wt3Ya043oKXs0sIxrMpKQITXhMLIrVAKKXi4gozGC9v7YRWVnXIZzjNPTO02M9BdxLCWqK1yRXgNziVyJQ==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/fastify"
+ },
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/fastify"
+ }
+ ],
+ "license": "BSD-3-Clause"
+ },
+ "node_modules/hash-wasm": {
+ "version": "4.12.0",
+ "resolved": "https://registry.npmjs.org/hash-wasm/-/hash-wasm-4.12.0.tgz",
+ "integrity": "sha512-+/2B2rYLb48I/evdOIhP+K/DD2ca2fgBjp6O+GBEnCDk2e4rpeXIK8GvIyRPjTezgmWn9gmKwkQjjx6BtqDHVQ==",
+ "license": "MIT"
+ },
+ "node_modules/json-schema-traverse": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",
+ "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==",
+ "license": "MIT"
+ },
+ "node_modules/require-from-string": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz",
+ "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/typescript": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-7.0.2.tgz",
+ "integrity": "sha512-8FYau96o3NKOhbjKi/qNvG/W5jhzxkbdm5sj9AbZ/5T5sWqn3hJgLfGx27sRKZWTvyzCP8dLRBTf5tBTSRVUNA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "bin": {
+ "tsc": "bin/tsc"
+ },
+ "engines": {
+ "node": ">=16.20.0"
+ },
+ "optionalDependencies": {
+ "@typescript/typescript-aix-ppc64": "7.0.2",
+ "@typescript/typescript-darwin-arm64": "7.0.2",
+ "@typescript/typescript-darwin-x64": "7.0.2",
+ "@typescript/typescript-freebsd-arm64": "7.0.2",
+ "@typescript/typescript-freebsd-x64": "7.0.2",
+ "@typescript/typescript-linux-arm": "7.0.2",
+ "@typescript/typescript-linux-arm64": "7.0.2",
+ "@typescript/typescript-linux-loong64": "7.0.2",
+ "@typescript/typescript-linux-mips64el": "7.0.2",
+ "@typescript/typescript-linux-ppc64": "7.0.2",
+ "@typescript/typescript-linux-riscv64": "7.0.2",
+ "@typescript/typescript-linux-s390x": "7.0.2",
+ "@typescript/typescript-linux-x64": "7.0.2",
+ "@typescript/typescript-netbsd-arm64": "7.0.2",
+ "@typescript/typescript-netbsd-x64": "7.0.2",
+ "@typescript/typescript-openbsd-arm64": "7.0.2",
+ "@typescript/typescript-openbsd-x64": "7.0.2",
+ "@typescript/typescript-sunos-x64": "7.0.2",
+ "@typescript/typescript-win32-arm64": "7.0.2",
+ "@typescript/typescript-win32-x64": "7.0.2"
+ }
+ },
+ "node_modules/undici-types": {
+ "version": "8.9.0",
+ "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-8.9.0.tgz",
+ "integrity": "sha512-KTDyRTYX8sWmKXAikPHHSyc63CRPETMctyjKFupcC6OBLXT3xsN0e9aF7m+mIXutFWpUXuedtowG7iLOzp0kQg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/zod": {
+ "version": "4.6.7",
+ "resolved": "https://registry.npmjs.org/zod/-/zod-4.6.7.tgz",
+ "integrity": "sha512-g8W2D2kU6a8untc053fX1uVBKzM7yqAxW/3zwk83+6RyF2+SKOuV+c0wBDhUwzV1PaGapmZH+rmcUzPf+3CGwg==",
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/colinhacks"
+ }
+ }
+ }
+}
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..43317d5
--- /dev/null
+++ b/package.json
@@ -0,0 +1,27 @@
+{
+ "name": "freefield",
+ "version": "0.1.0",
+ "private": true,
+ "type": "module",
+ "description": "Open-source Higgsfield on ComfyUI: every app is one folder, every model is open weights.",
+ "license": "MIT",
+ "engines": {
+ "node": ">=22.6.0"
+ },
+ "scripts": {
+ "validate": "node --experimental-strip-types --disable-warning=ExperimentalWarning server/cli.ts validate",
+ "apps": "node --experimental-strip-types --disable-warning=ExperimentalWarning server/cli.ts apps",
+ "app": "node --env-file-if-exists=.env --experimental-strip-types --disable-warning=ExperimentalWarning server/cli.ts app",
+ "serve": "node --env-file-if-exists=.env --experimental-strip-types --disable-warning=ExperimentalWarning server/server.ts",
+ "test": "node --experimental-strip-types --disable-warning=ExperimentalWarning --test test/*.test.ts",
+ "typecheck": "tsc --noEmit"
+ },
+ "dependencies": {
+ "@comfyorg/sdk": "0.5.0",
+ "ajv": "^8.20.0"
+ },
+ "devDependencies": {
+ "@types/node": "^26.6.5",
+ "typescript": "^7.0.2"
+ }
+}
diff --git a/packs/audio.json b/packs/audio.json
new file mode 100644
index 0000000..1b84c9c
--- /dev/null
+++ b/packs/audio.json
@@ -0,0 +1,84 @@
+{
+ "pack": "audio",
+ "apps": [
+ "music",
+ "sfx"
+ ],
+ "download_gb": 29.29,
+ "needs_hf_token": false,
+ "custom_nodes": [],
+ "models": [
+ {
+ "repo": "Comfy-Org/stable-audio-3",
+ "file": "checkpoints/stable_audio_3_medium.safetensors",
+ "dir": "checkpoints",
+ "gb": 9.22,
+ "name": "stable_audio_3_medium.safetensors",
+ "gated": false,
+ "license": "Stable Audio Community License",
+ "used_by": [
+ "sfx"
+ ]
+ },
+ {
+ "repo": "Comfy-Org/MiniMax-Music-3",
+ "file": "diffusion_models/minimax_music3_dit_fp16.safetensors",
+ "dir": "diffusion_models",
+ "gb": 4.91,
+ "name": "minimax_music3_dit_fp16.safetensors",
+ "gated": false,
+ "license": "Apache-2.0",
+ "used_by": [
+ "music"
+ ]
+ },
+ {
+ "repo": "Comfy-Org/MiniMax-Music-3",
+ "file": "text_encoders/minimax_music3_text_encoder_pruned_int8_convrot.safetensors",
+ "dir": "text_encoders",
+ "gb": 9.2,
+ "name": "minimax_music3_text_encoder_pruned_int8_convrot.safetensors",
+ "gated": false,
+ "license": "Apache-2.0",
+ "used_by": [
+ "music"
+ ]
+ },
+ {
+ "repo": "Comfy-Org/Qwen3.5",
+ "file": "text_encoders/qwen3.5_2b_bf16.safetensors",
+ "dir": "text_encoders",
+ "gb": 4.55,
+ "name": "qwen3.5_2b_bf16.safetensors",
+ "gated": false,
+ "license": "Apache-2.0",
+ "used_by": [
+ "sfx"
+ ]
+ },
+ {
+ "repo": "Comfy-Org/stable-audio-3",
+ "file": "text_encoders/t5gemma_b_b_ul2.safetensors",
+ "dir": "text_encoders",
+ "gb": 1.19,
+ "name": "t5gemma_b_b_ul2.safetensors",
+ "gated": false,
+ "license": "Stable Audio Community License",
+ "used_by": [
+ "sfx"
+ ]
+ },
+ {
+ "repo": "Comfy-Org/MiniMax-Music-3",
+ "file": "vae/minimax_music3_dav.safetensors",
+ "dir": "vae",
+ "gb": 0.22,
+ "name": "minimax_music3_dav.safetensors",
+ "gated": false,
+ "license": "Apache-2.0",
+ "used_by": [
+ "music"
+ ]
+ }
+ ]
+}
diff --git a/packs/core.json b/packs/core.json
new file mode 100644
index 0000000..309becb
--- /dev/null
+++ b/packs/core.json
@@ -0,0 +1,11 @@
+{
+ "pack": "core",
+ "apps": [
+ "smoke",
+ "smoke-invert"
+ ],
+ "download_gb": 0,
+ "needs_hf_token": false,
+ "custom_nodes": [],
+ "models": []
+}
diff --git a/packs/image-flux3.json b/packs/image-flux3.json
new file mode 100644
index 0000000..265709b
--- /dev/null
+++ b/packs/image-flux3.json
@@ -0,0 +1,55 @@
+{
+ "pack": "image-flux3",
+ "apps": [
+ "character",
+ "edit",
+ "product-shot"
+ ],
+ "download_gb": 11.03,
+ "needs_hf_token": true,
+ "custom_nodes": [],
+ "models": [
+ {
+ "repo": "black-forest-labs/flux-3-image-klein-comfy",
+ "file": "diffusion_models/flux3-image-klein-int8-convrot.safetensors",
+ "dir": "diffusion_models",
+ "gb": 5.83,
+ "name": "flux3-image-klein-int8-convrot.safetensors",
+ "gated": true,
+ "license": "FLUX Kommunity License",
+ "used_by": [
+ "character",
+ "edit",
+ "product-shot"
+ ]
+ },
+ {
+ "repo": "black-forest-labs/flux-3-image-klein-comfy",
+ "file": "text_encoders/qwen3vl_4b_int8_convrot.safetensors",
+ "dir": "text_encoders",
+ "gb": 4.86,
+ "name": "qwen3vl_4b_int8_convrot.safetensors",
+ "gated": true,
+ "license": "FLUX Kommunity License",
+ "used_by": [
+ "character",
+ "edit",
+ "product-shot"
+ ]
+ },
+ {
+ "repo": "black-forest-labs/flux-3-image-klein-comfy",
+ "file": "vae/flux2-vae.safetensors",
+ "dir": "vae",
+ "gb": 0.34,
+ "name": "flux2-vae.safetensors",
+ "gated": true,
+ "license": "FLUX Kommunity License",
+ "used_by": [
+ "character",
+ "edit",
+ "product-shot"
+ ]
+ }
+ ]
+}
diff --git a/packs/image-krea2.json b/packs/image-krea2.json
new file mode 100644
index 0000000..e43c287
--- /dev/null
+++ b/packs/image-krea2.json
@@ -0,0 +1,171 @@
+{
+ "pack": "image-krea2",
+ "apps": [
+ "style-reference",
+ "styles"
+ ],
+ "download_gb": 23.67,
+ "needs_hf_token": false,
+ "custom_nodes": [],
+ "models": [
+ {
+ "repo": "Comfy-Org/Krea-2",
+ "file": "diffusion_models/krea2_turbo_int8_convrot.safetensors",
+ "dir": "diffusion_models",
+ "gb": 13.49,
+ "name": "krea2_turbo_int8_convrot.safetensors",
+ "gated": false,
+ "license": "Krea 2 Community License",
+ "used_by": [
+ "style-reference",
+ "styles"
+ ]
+ },
+ {
+ "repo": "Comfy-Org/Krea-2",
+ "file": "loras/krea2_darkbrush.safetensors",
+ "dir": "loras",
+ "gb": 0.47,
+ "name": "krea2_darkbrush.safetensors",
+ "gated": false,
+ "license": "Krea 2 Community License",
+ "used_by": [
+ "styles"
+ ]
+ },
+ {
+ "repo": "Comfy-Org/Krea-2",
+ "file": "loras/krea2_dotmatrix.safetensors",
+ "dir": "loras",
+ "gb": 0.47,
+ "name": "krea2_dotmatrix.safetensors",
+ "gated": false,
+ "license": "Krea 2 Community License",
+ "used_by": [
+ "styles"
+ ]
+ },
+ {
+ "repo": "Comfy-Org/Krea-2",
+ "file": "loras/krea2_kidsdrawing.safetensors",
+ "dir": "loras",
+ "gb": 0.47,
+ "name": "krea2_kidsdrawing.safetensors",
+ "gated": false,
+ "license": "Krea 2 Community License",
+ "used_by": [
+ "styles"
+ ]
+ },
+ {
+ "repo": "Comfy-Org/Krea-2",
+ "file": "loras/krea2_neondrip.safetensors",
+ "dir": "loras",
+ "gb": 0.47,
+ "name": "krea2_neondrip.safetensors",
+ "gated": false,
+ "license": "Krea 2 Community License",
+ "used_by": [
+ "styles"
+ ]
+ },
+ {
+ "repo": "Comfy-Org/Krea-2",
+ "file": "loras/krea2_rainywindow.safetensors",
+ "dir": "loras",
+ "gb": 0.47,
+ "name": "krea2_rainywindow.safetensors",
+ "gated": false,
+ "license": "Krea 2 Community License",
+ "used_by": [
+ "styles"
+ ]
+ },
+ {
+ "repo": "Comfy-Org/Krea-2",
+ "file": "loras/krea2_retroanime.safetensors",
+ "dir": "loras",
+ "gb": 0.47,
+ "name": "krea2_retroanime.safetensors",
+ "gated": false,
+ "license": "Krea 2 Community License",
+ "used_by": [
+ "styles"
+ ]
+ },
+ {
+ "repo": "Comfy-Org/Krea-2",
+ "file": "loras/krea2_softwatercolor.safetensors",
+ "dir": "loras",
+ "gb": 0.47,
+ "name": "krea2_softwatercolor.safetensors",
+ "gated": false,
+ "license": "Krea 2 Community License",
+ "used_by": [
+ "styles"
+ ]
+ },
+ {
+ "repo": "Comfy-Org/Krea-2",
+ "file": "loras/krea2_style_reference.safetensors",
+ "dir": "loras",
+ "gb": 0.46,
+ "name": "krea2_style_reference.safetensors",
+ "gated": false,
+ "license": "Krea 2 Community License",
+ "used_by": [
+ "style-reference"
+ ]
+ },
+ {
+ "repo": "Comfy-Org/Krea-2",
+ "file": "loras/krea2_sunsetblur.safetensors",
+ "dir": "loras",
+ "gb": 0.47,
+ "name": "krea2_sunsetblur.safetensors",
+ "gated": false,
+ "license": "Krea 2 Community License",
+ "used_by": [
+ "styles"
+ ]
+ },
+ {
+ "repo": "Comfy-Org/Krea-2",
+ "file": "loras/krea2_vintagetarot.safetensors",
+ "dir": "loras",
+ "gb": 0.47,
+ "name": "krea2_vintagetarot.safetensors",
+ "gated": false,
+ "license": "Krea 2 Community License",
+ "used_by": [
+ "styles"
+ ]
+ },
+ {
+ "repo": "Comfy-Org/Krea-2",
+ "file": "text_encoders/qwen3vl_4b_fp8_scaled.safetensors",
+ "dir": "text_encoders",
+ "gb": 5.24,
+ "name": "qwen3vl_4b_fp8_scaled.safetensors",
+ "gated": false,
+ "license": "Krea 2 Community License",
+ "used_by": [
+ "style-reference",
+ "styles"
+ ]
+ },
+ {
+ "repo": "Comfy-Org/Krea-2",
+ "file": "vae/qwen_image_vae.safetensors",
+ "dir": "vae",
+ "gb": 0.25,
+ "name": "qwen_image_vae.safetensors",
+ "gated": false,
+ "license": "Krea 2 Community License",
+ "used_by": [
+ "style-reference",
+ "styles"
+ ]
+ }
+ ]
+}
diff --git a/packs/image-qwen-edit.json b/packs/image-qwen-edit.json
new file mode 100644
index 0000000..a6ebcc2
--- /dev/null
+++ b/packs/image-qwen-edit.json
@@ -0,0 +1,71 @@
+{
+ "pack": "image-qwen-edit",
+ "apps": [
+ "relight"
+ ],
+ "download_gb": 31.15,
+ "needs_hf_token": false,
+ "custom_nodes": [],
+ "models": [
+ {
+ "repo": "Comfy-Org/Qwen-Image-Edit_ComfyUI",
+ "file": "split_files/diffusion_models/qwen_image_edit_2509_fp8_e4m3fn.safetensors",
+ "dir": "diffusion_models",
+ "gb": 20.43,
+ "name": "qwen_image_edit_2509_fp8_e4m3fn.safetensors",
+ "gated": false,
+ "license": "Apache-2.0",
+ "used_by": [
+ "relight"
+ ]
+ },
+ {
+ "repo": "lightx2v/Qwen-Image-Lightning",
+ "file": "Qwen-Image-Edit-2509/Qwen-Image-Edit-2509-Lightning-4steps-V1.0-bf16.safetensors",
+ "dir": "loras",
+ "gb": 0.85,
+ "name": "Qwen-Image-Edit-2509-Lightning-4steps-V1.0-bf16.safetensors",
+ "gated": false,
+ "license": "Apache-2.0",
+ "used_by": [
+ "relight"
+ ]
+ },
+ {
+ "repo": "Comfy-Org/Qwen-Image-Edit_ComfyUI",
+ "file": "split_files/loras/Qwen-Image-Edit-2509-Relight.safetensors",
+ "dir": "loras",
+ "gb": 0.24,
+ "name": "Qwen-Image-Edit-2509-Relight.safetensors",
+ "gated": false,
+ "license": "Apache-2.0",
+ "used_by": [
+ "relight"
+ ]
+ },
+ {
+ "repo": "Comfy-Org/Qwen-Image_ComfyUI",
+ "file": "split_files/text_encoders/qwen_2.5_vl_7b_fp8_scaled.safetensors",
+ "dir": "text_encoders",
+ "gb": 9.38,
+ "name": "qwen_2.5_vl_7b_fp8_scaled.safetensors",
+ "gated": false,
+ "license": "Apache-2.0",
+ "used_by": [
+ "relight"
+ ]
+ },
+ {
+ "repo": "Comfy-Org/Qwen-Image_ComfyUI",
+ "file": "split_files/vae/qwen_image_vae.safetensors",
+ "dir": "vae",
+ "gb": 0.25,
+ "name": "qwen_image_vae.safetensors",
+ "gated": false,
+ "license": "Apache-2.0",
+ "used_by": [
+ "relight"
+ ]
+ }
+ ]
+}
diff --git a/packs/image.json b/packs/image.json
new file mode 100644
index 0000000..4eaec7f
--- /dev/null
+++ b/packs/image.json
@@ -0,0 +1,51 @@
+{
+ "pack": "image",
+ "apps": [
+ "cinema-studio",
+ "z-image"
+ ],
+ "download_gb": 12.17,
+ "needs_hf_token": false,
+ "custom_nodes": [],
+ "models": [
+ {
+ "repo": "Comfy-Org/z_image_turbo",
+ "file": "split_files/diffusion_models/z_image_turbo_int8_convrot.safetensors",
+ "dir": "diffusion_models",
+ "gb": 6.2,
+ "name": "z_image_turbo_int8_convrot.safetensors",
+ "gated": false,
+ "license": "Apache-2.0",
+ "used_by": [
+ "cinema-studio",
+ "z-image"
+ ]
+ },
+ {
+ "repo": "Comfy-Org/z_image_turbo",
+ "file": "split_files/text_encoders/qwen_3_4b_fp8_mixed.safetensors",
+ "dir": "text_encoders",
+ "gb": 5.63,
+ "name": "qwen_3_4b_fp8_mixed.safetensors",
+ "gated": false,
+ "license": "Apache-2.0",
+ "used_by": [
+ "cinema-studio",
+ "z-image"
+ ]
+ },
+ {
+ "repo": "Comfy-Org/z_image_turbo",
+ "file": "split_files/vae/ae.safetensors",
+ "dir": "vae",
+ "gb": 0.34,
+ "name": "ae.safetensors",
+ "gated": false,
+ "license": "Apache-2.0",
+ "used_by": [
+ "cinema-studio",
+ "z-image"
+ ]
+ }
+ ]
+}
diff --git a/packs/index.json b/packs/index.json
new file mode 100644
index 0000000..70f68b9
--- /dev/null
+++ b/packs/index.json
@@ -0,0 +1,103 @@
+{
+ "audio": {
+ "apps": [
+ "music",
+ "sfx"
+ ],
+ "download_gb": 29.29,
+ "needs_hf_token": false
+ },
+ "core": {
+ "apps": [
+ "smoke",
+ "smoke-invert"
+ ],
+ "download_gb": 0,
+ "needs_hf_token": false
+ },
+ "image": {
+ "apps": [
+ "cinema-studio",
+ "z-image"
+ ],
+ "download_gb": 12.17,
+ "needs_hf_token": false
+ },
+ "image-flux3": {
+ "apps": [
+ "character",
+ "edit",
+ "product-shot"
+ ],
+ "download_gb": 11.03,
+ "needs_hf_token": true
+ },
+ "image-krea2": {
+ "apps": [
+ "style-reference",
+ "styles"
+ ],
+ "download_gb": 23.67,
+ "needs_hf_token": false
+ },
+ "image-qwen-edit": {
+ "apps": [
+ "relight"
+ ],
+ "download_gb": 31.15,
+ "needs_hf_token": false
+ },
+ "upscale": {
+ "apps": [
+ "remove-bg",
+ "smooth",
+ "upscale",
+ "upscale-video"
+ ],
+ "download_gb": 4.47,
+ "needs_hf_token": false
+ },
+ "video-h3": {
+ "apps": [
+ "reshoot"
+ ],
+ "download_gb": 54.75,
+ "needs_hf_token": false
+ },
+ "video-ltx25": {
+ "apps": [
+ "camera-copy",
+ "speak",
+ "talking",
+ "transitions",
+ "vfx-clean-plate",
+ "vfx-day-to-night",
+ "vfx-water",
+ "video",
+ "video-t2v"
+ ],
+ "download_gb": 47.94,
+ "needs_hf_token": true
+ },
+ "video-scail": {
+ "apps": [
+ "recast"
+ ],
+ "download_gb": 28.62,
+ "needs_hf_token": false
+ },
+ "video-wan": {
+ "apps": [
+ "motion-transfer"
+ ],
+ "download_gb": 24.9,
+ "needs_hf_token": false
+ },
+ "video-wan-camera": {
+ "apps": [
+ "camera-moves"
+ ],
+ "download_gb": 40.05,
+ "needs_hf_token": false
+ }
+}
diff --git a/packs/upscale.json b/packs/upscale.json
new file mode 100644
index 0000000..bc8864e
--- /dev/null
+++ b/packs/upscale.json
@@ -0,0 +1,64 @@
+{
+ "pack": "upscale",
+ "apps": [
+ "remove-bg",
+ "smooth",
+ "upscale",
+ "upscale-video"
+ ],
+ "download_gb": 4.47,
+ "needs_hf_token": false,
+ "custom_nodes": [],
+ "models": [
+ {
+ "repo": "Comfy-Org/BiRefNet",
+ "file": "background_removal/birefnet.safetensors",
+ "dir": "background_removal",
+ "gb": 0.44,
+ "name": "birefnet.safetensors",
+ "gated": false,
+ "license": "MIT",
+ "used_by": [
+ "remove-bg"
+ ]
+ },
+ {
+ "repo": "Comfy-Org/SeedVR2",
+ "file": "diffusion_models/seedvr2_3b_int8_convrot.safetensors",
+ "dir": "diffusion_models",
+ "gb": 3.46,
+ "name": "seedvr2_3b_int8_convrot.safetensors",
+ "gated": false,
+ "license": "Apache-2.0",
+ "used_by": [
+ "upscale",
+ "upscale-video"
+ ]
+ },
+ {
+ "repo": "Comfy-Org/frame_interpolation",
+ "file": "frame_interpolation/film_net_fp16.safetensors",
+ "dir": "frame_interpolation",
+ "gb": 0.07,
+ "name": "film_net_fp16.safetensors",
+ "gated": false,
+ "license": "Apache-2.0 (FILM, Google Research)",
+ "used_by": [
+ "smooth"
+ ]
+ },
+ {
+ "repo": "Comfy-Org/SeedVR2",
+ "file": "vae/seedvr2_ema_vae_fp16.safetensors",
+ "dir": "vae",
+ "gb": 0.5,
+ "name": "seedvr2_ema_vae_fp16.safetensors",
+ "gated": false,
+ "license": "Apache-2.0",
+ "used_by": [
+ "upscale",
+ "upscale-video"
+ ]
+ }
+ ]
+}
diff --git a/packs/video-h3.json b/packs/video-h3.json
new file mode 100644
index 0000000..ccc0585
--- /dev/null
+++ b/packs/video-h3.json
@@ -0,0 +1,100 @@
+{
+ "pack": "video-h3",
+ "apps": [
+ "reshoot"
+ ],
+ "download_gb": 54.75,
+ "needs_hf_token": false,
+ "custom_nodes": [
+ {
+ "repo": "https://github.com/comfyrob/ComfyUI-CrossViewWarp",
+ "commit": "fbb1e93c7193329ff3ce7c17f95166b539687876"
+ }
+ ],
+ "models": [
+ {
+ "repo": "Comfy-Org/MiniMax-H3",
+ "file": "diffusion_models/minimax_h3_ref2va_pruned_int8_convrot.safetensors",
+ "dir": "diffusion_models",
+ "gb": 20.97,
+ "name": "minimax_h3_ref2va_pruned_int8_convrot.safetensors",
+ "gated": false,
+ "license": "MiniMax H3 Community License",
+ "used_by": [
+ "reshoot"
+ ]
+ },
+ {
+ "repo": "Comfy-Org/MoGe",
+ "file": "geometry_estimation/moge_2_vitl_normal_fp16.safetensors",
+ "dir": "geometry_estimation",
+ "gb": 0.66,
+ "name": "moge_2_vitl_normal_fp16.safetensors",
+ "gated": false,
+ "license": "MIT",
+ "used_by": [
+ "reshoot"
+ ]
+ },
+ {
+ "repo": "Cseti/MiniMax-H3_Ref2VA-LoRA-CrossView-Warp_v1",
+ "file": "MiniMax-H3_Ref2VA-LoRA-CrossView-Warp_v1_3500.safetensors",
+ "dir": "loras",
+ "gb": 0.6,
+ "name": "MiniMax-H3_Ref2VA-LoRA-CrossView-Warp_v1_3500.safetensors",
+ "gated": false,
+ "license": null,
+ "used_by": [
+ "reshoot"
+ ]
+ },
+ {
+ "repo": "lightx2v/Minimax-h3-Turbo",
+ "file": "minimax_h3_ref2v_turbo_8step_v1.0_768p_comfyui_bf16.safetensors",
+ "dir": "loras",
+ "gb": 1.96,
+ "name": "minimax_h3_ref2v_turbo_8step_v1.0_768p_comfyui_bf16.safetensors",
+ "gated": false,
+ "license": null,
+ "used_by": [
+ "reshoot"
+ ]
+ },
+ {
+ "repo": "Comfy-Org/MiniMax-H3",
+ "file": "text_encoders/qwen3vl_32b_minimax_h3_int8_convrot.safetensors",
+ "dir": "text_encoders",
+ "gb": 27.14,
+ "name": "qwen3vl_32b_minimax_h3_int8_convrot.safetensors",
+ "gated": false,
+ "license": "MiniMax H3 Community License",
+ "used_by": [
+ "reshoot"
+ ]
+ },
+ {
+ "repo": "Comfy-Org/MiniMax-H3",
+ "file": "vae/minimax_h3_audio_vae_fp32.safetensors",
+ "dir": "vae",
+ "gb": 0.61,
+ "name": "minimax_h3_audio_vae_fp32.safetensors",
+ "gated": false,
+ "license": "MiniMax H3 Community License",
+ "used_by": [
+ "reshoot"
+ ]
+ },
+ {
+ "repo": "Comfy-Org/MiniMax-H3",
+ "file": "vae/minimax_h3_video_vae_int8_convrot.safetensors",
+ "dir": "vae",
+ "gb": 2.81,
+ "name": "minimax_h3_video_vae_int8_convrot.safetensors",
+ "gated": false,
+ "license": "MiniMax H3 Community License",
+ "used_by": [
+ "reshoot"
+ ]
+ }
+ ]
+}
diff --git a/packs/video-ltx25.json b/packs/video-ltx25.json
new file mode 100644
index 0000000..8673c7e
--- /dev/null
+++ b/packs/video-ltx25.json
@@ -0,0 +1,211 @@
+{
+ "pack": "video-ltx25",
+ "apps": [
+ "camera-copy",
+ "speak",
+ "talking",
+ "transitions",
+ "vfx-clean-plate",
+ "vfx-day-to-night",
+ "vfx-water",
+ "video",
+ "video-t2v"
+ ],
+ "download_gb": 47.94,
+ "needs_hf_token": true,
+ "custom_nodes": [
+ {
+ "repo": "https://github.com/Lightricks/ComfyUI-LTXVideo",
+ "commit": "44c8a36b7c31ee00b4271daed11dc2a4aa481140"
+ }
+ ],
+ "models": [
+ {
+ "repo": "Lightricks/LTX-2.5",
+ "file": "diffusion_models/ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors",
+ "dir": "diffusion_models",
+ "gb": 21.5,
+ "name": "ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors",
+ "gated": true,
+ "license": "LTX-2.x Community License",
+ "used_by": [
+ "camera-copy",
+ "speak",
+ "talking",
+ "transitions",
+ "vfx-clean-plate",
+ "vfx-day-to-night",
+ "vfx-water",
+ "video",
+ "video-t2v"
+ ]
+ },
+ {
+ "repo": "Lightricks/LTX-2.5",
+ "file": "latent_upscale_models/ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors",
+ "dir": "latent_upscale_models",
+ "gb": 1.0,
+ "name": "ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors",
+ "gated": true,
+ "license": "LTX-2.x Community License",
+ "used_by": [
+ "speak",
+ "talking",
+ "video",
+ "video-t2v"
+ ]
+ },
+ {
+ "repo": "elix3r/LTX-2.3-22b-AV-LoRA-talking-head",
+ "file": "LTX-2.3-22b-AV-LoRA-talking-head-v1.safetensors",
+ "dir": "loras",
+ "gb": 0.43,
+ "name": "LTX-2.3-22b-AV-LoRA-talking-head-v1.safetensors",
+ "gated": false,
+ "license": "OpenRAIL",
+ "used_by": [
+ "talking"
+ ]
+ },
+ {
+ "repo": "Cseti/LTX2.3-22B_IC-LoRA-Cameraman_v2",
+ "file": "LTX2.3-22B_IC-LoRA-Cameraman_v2_14000.safetensors",
+ "dir": "loras",
+ "gb": 0.65,
+ "name": "LTX2.3-22B_IC-LoRA-Cameraman_v2_14000.safetensors",
+ "gated": false,
+ "license": "Research only, non-commercial (see model card)",
+ "used_by": [
+ "camera-copy"
+ ]
+ },
+ {
+ "repo": "Lightricks/LTX-2.5-22b-IC-LoRA-Clean-Plate",
+ "file": "ltx-2.5-22b-ic-lora-clean-plate-1.0.safetensors",
+ "dir": "loras",
+ "gb": 0.33,
+ "name": "ltx-2.5-22b-ic-lora-clean-plate-1.0.safetensors",
+ "gated": true,
+ "license": "LTX-2.x Community License",
+ "used_by": [
+ "vfx-clean-plate"
+ ]
+ },
+ {
+ "repo": "Lightricks/LTX-2.5-22b-IC-LoRA-Day-To-Night",
+ "file": "ltx-2.5-22b-ic-lora-day-to-night-0.9.safetensors",
+ "dir": "loras",
+ "gb": 0.33,
+ "name": "ltx-2.5-22b-ic-lora-day-to-night-0.9.safetensors",
+ "gated": true,
+ "license": "LTX-2.x Community License",
+ "used_by": [
+ "vfx-day-to-night"
+ ]
+ },
+ {
+ "repo": "Lightricks/LTX-2.5-22b-IC-LoRA-Water-Simulation",
+ "file": "ltx-2.5-22b-ic-lora-water-simulation-0.9.safetensors",
+ "dir": "loras",
+ "gb": 0.91,
+ "name": "ltx-2.5-22b-ic-lora-water-simulation-0.9.safetensors",
+ "gated": true,
+ "license": "LTX-2.x Community License",
+ "used_by": [
+ "vfx-water"
+ ]
+ },
+ {
+ "repo": "joyfox/LTX-2.3-Transition-LORA",
+ "file": "ltx2.3-transition.safetensors",
+ "dir": "loras",
+ "gb": 0.39,
+ "name": "ltx2.3-transition.safetensors",
+ "gated": false,
+ "license": "Apache-2.0",
+ "used_by": [
+ "transitions"
+ ]
+ },
+ {
+ "repo": "Lightricks/LTX-2.5",
+ "file": "text_encoders/gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors",
+ "dir": "text_encoders",
+ "gb": 15.37,
+ "name": "gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors",
+ "gated": true,
+ "license": "LTX-2.x Community License",
+ "used_by": [
+ "camera-copy",
+ "speak",
+ "talking",
+ "transitions",
+ "vfx-clean-plate",
+ "vfx-day-to-night",
+ "vfx-water",
+ "video",
+ "video-t2v"
+ ]
+ },
+ {
+ "repo": "Comfy-Org/gemma-4",
+ "file": "text_encoders/gemma4_e2b_it_int8_convrot.safetensors",
+ "dir": "text_encoders",
+ "gb": 5.2,
+ "name": "gemma4_e2b_it_int8_convrot.safetensors",
+ "gated": false,
+ "license": "Apache-2.0",
+ "used_by": [
+ "camera-copy",
+ "speak",
+ "talking",
+ "transitions",
+ "vfx-clean-plate",
+ "vfx-day-to-night",
+ "vfx-water",
+ "video",
+ "video-t2v"
+ ]
+ },
+ {
+ "repo": "Lightricks/LTX-2.5",
+ "file": "vae/ltx-2.5-audio-vae-bf16.safetensors",
+ "dir": "vae",
+ "gb": 0.36,
+ "name": "ltx-2.5-audio-vae-bf16.safetensors",
+ "gated": true,
+ "license": "LTX-2.x Community License",
+ "used_by": [
+ "camera-copy",
+ "speak",
+ "talking",
+ "transitions",
+ "vfx-clean-plate",
+ "vfx-day-to-night",
+ "vfx-water",
+ "video",
+ "video-t2v"
+ ]
+ },
+ {
+ "repo": "Lightricks/LTX-2.5",
+ "file": "vae/ltx-2.5-video-vae-bf16.safetensors",
+ "dir": "vae",
+ "gb": 1.47,
+ "name": "ltx-2.5-video-vae-bf16.safetensors",
+ "gated": true,
+ "license": "LTX-2.x Community License",
+ "used_by": [
+ "camera-copy",
+ "speak",
+ "talking",
+ "transitions",
+ "vfx-clean-plate",
+ "vfx-day-to-night",
+ "vfx-water",
+ "video",
+ "video-t2v"
+ ]
+ }
+ ]
+}
diff --git a/packs/video-scail.json b/packs/video-scail.json
new file mode 100644
index 0000000..55ec972
--- /dev/null
+++ b/packs/video-scail.json
@@ -0,0 +1,95 @@
+{
+ "pack": "video-scail",
+ "apps": [
+ "recast"
+ ],
+ "download_gb": 28.62,
+ "needs_hf_token": false,
+ "custom_nodes": [],
+ "models": [
+ {
+ "repo": "Comfy-Org/sam3.1",
+ "file": "checkpoints/sam3.1_multiplex_fp16.safetensors",
+ "dir": "checkpoints",
+ "gb": 1.75,
+ "name": "sam3.1_multiplex_fp16.safetensors",
+ "gated": false,
+ "license": "SAM License",
+ "used_by": [
+ "recast"
+ ]
+ },
+ {
+ "repo": "Comfy-Org/Wan_2.1_ComfyUI_repackaged",
+ "file": "split_files/clip_vision/clip_vision_h.safetensors",
+ "dir": "clip_vision",
+ "gb": 1.26,
+ "name": "clip_vision_h.safetensors",
+ "gated": false,
+ "license": "Apache-2.0",
+ "used_by": [
+ "recast"
+ ]
+ },
+ {
+ "repo": "Comfy-Org/SCAIL-2",
+ "file": "diffusion_models/wan2.1_14B_SCAIL_2_int8_convrot.safetensors",
+ "dir": "diffusion_models",
+ "gb": 16.65,
+ "name": "wan2.1_14B_SCAIL_2_int8_convrot.safetensors",
+ "gated": false,
+ "license": "MIT",
+ "used_by": [
+ "recast"
+ ]
+ },
+ {
+ "repo": "Kijai/WanVideo_comfy",
+ "file": "Lightx2v/lightx2v_I2V_14B_480p_cfg_step_distill_rank64_bf16.safetensors",
+ "dir": "loras",
+ "gb": 0.74,
+ "name": "lightx2v_I2V_14B_480p_cfg_step_distill_rank64_bf16.safetensors",
+ "gated": false,
+ "license": "Apache-2.0",
+ "used_by": [
+ "recast"
+ ]
+ },
+ {
+ "repo": "Comfy-Org/SCAIL-2",
+ "file": "loras/wan2.1_SCAIL_2_DPO_lora_bf16.safetensors",
+ "dir": "loras",
+ "gb": 1.23,
+ "name": "wan2.1_SCAIL_2_DPO_lora_bf16.safetensors",
+ "gated": false,
+ "license": "MIT",
+ "used_by": [
+ "recast"
+ ]
+ },
+ {
+ "repo": "Comfy-Org/Wan_2.1_ComfyUI_repackaged",
+ "file": "split_files/text_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensors",
+ "dir": "text_encoders",
+ "gb": 6.74,
+ "name": "umt5_xxl_fp8_e4m3fn_scaled.safetensors",
+ "gated": false,
+ "license": "Apache-2.0",
+ "used_by": [
+ "recast"
+ ]
+ },
+ {
+ "repo": "Kijai/WanVideo_comfy",
+ "file": "Wan2_1_VAE_bf16.safetensors",
+ "dir": "vae",
+ "gb": 0.25,
+ "name": "Wan2_1_VAE_bf16.safetensors",
+ "gated": false,
+ "license": "Apache-2.0",
+ "used_by": [
+ "recast"
+ ]
+ }
+ ]
+}
diff --git a/packs/video-wan-camera.json b/packs/video-wan-camera.json
new file mode 100644
index 0000000..00c2e44
--- /dev/null
+++ b/packs/video-wan-camera.json
@@ -0,0 +1,83 @@
+{
+ "pack": "video-wan-camera",
+ "apps": [
+ "camera-moves"
+ ],
+ "download_gb": 40.05,
+ "needs_hf_token": false,
+ "custom_nodes": [],
+ "models": [
+ {
+ "repo": "Comfy-Org/Wan_2.2_ComfyUI_Repackaged",
+ "file": "split_files/diffusion_models/wan2.2_fun_camera_high_noise_14B_fp8_scaled.safetensors",
+ "dir": "diffusion_models",
+ "gb": 15.3,
+ "name": "wan2.2_fun_camera_high_noise_14B_fp8_scaled.safetensors",
+ "gated": false,
+ "license": "Apache-2.0",
+ "used_by": [
+ "camera-moves"
+ ]
+ },
+ {
+ "repo": "Comfy-Org/Wan_2.2_ComfyUI_Repackaged",
+ "file": "split_files/diffusion_models/wan2.2_fun_camera_low_noise_14B_fp8_scaled.safetensors",
+ "dir": "diffusion_models",
+ "gb": 15.3,
+ "name": "wan2.2_fun_camera_low_noise_14B_fp8_scaled.safetensors",
+ "gated": false,
+ "license": "Apache-2.0",
+ "used_by": [
+ "camera-moves"
+ ]
+ },
+ {
+ "repo": "Comfy-Org/Wan_2.2_ComfyUI_Repackaged",
+ "file": "split_files/loras/wan2.2_i2v_lightx2v_4steps_lora_v1_high_noise.safetensors",
+ "dir": "loras",
+ "gb": 1.23,
+ "name": "wan2.2_i2v_lightx2v_4steps_lora_v1_high_noise.safetensors",
+ "gated": false,
+ "license": "Apache-2.0",
+ "used_by": [
+ "camera-moves"
+ ]
+ },
+ {
+ "repo": "Comfy-Org/Wan_2.2_ComfyUI_Repackaged",
+ "file": "split_files/loras/wan2.2_i2v_lightx2v_4steps_lora_v1_low_noise.safetensors",
+ "dir": "loras",
+ "gb": 1.23,
+ "name": "wan2.2_i2v_lightx2v_4steps_lora_v1_low_noise.safetensors",
+ "gated": false,
+ "license": "Apache-2.0",
+ "used_by": [
+ "camera-moves"
+ ]
+ },
+ {
+ "repo": "Comfy-Org/Wan_2.1_ComfyUI_repackaged",
+ "file": "split_files/text_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensors",
+ "dir": "text_encoders",
+ "gb": 6.74,
+ "name": "umt5_xxl_fp8_e4m3fn_scaled.safetensors",
+ "gated": false,
+ "license": "Apache-2.0",
+ "used_by": [
+ "camera-moves"
+ ]
+ },
+ {
+ "repo": "Comfy-Org/Wan_2.2_ComfyUI_Repackaged",
+ "file": "split_files/vae/wan_2.1_vae.safetensors",
+ "dir": "vae",
+ "gb": 0.25,
+ "name": "wan_2.1_vae.safetensors",
+ "gated": false,
+ "license": "Apache-2.0",
+ "used_by": [
+ "camera-moves"
+ ]
+ }
+ ]
+}
diff --git a/packs/video-wan.json b/packs/video-wan.json
new file mode 100644
index 0000000..f0e242b
--- /dev/null
+++ b/packs/video-wan.json
@@ -0,0 +1,59 @@
+{
+ "pack": "video-wan",
+ "apps": [
+ "motion-transfer"
+ ],
+ "download_gb": 24.9,
+ "needs_hf_token": false,
+ "custom_nodes": [],
+ "models": [
+ {
+ "repo": "Comfy-Org/Wan-Animate-2",
+ "file": "clip_vision/clip_vision_h.safetensors",
+ "dir": "clip_vision",
+ "gb": 1.26,
+ "name": "clip_vision_h.safetensors",
+ "gated": false,
+ "license": "Apache-2.0",
+ "used_by": [
+ "motion-transfer"
+ ]
+ },
+ {
+ "repo": "Comfy-Org/Wan-Animate-2",
+ "file": "diffusion_models/wan_animate_2_distill_int8_convrot.safetensors",
+ "dir": "diffusion_models",
+ "gb": 16.65,
+ "name": "wan_animate_2_distill_int8_convrot.safetensors",
+ "gated": false,
+ "license": "Apache-2.0",
+ "used_by": [
+ "motion-transfer"
+ ]
+ },
+ {
+ "repo": "Comfy-Org/Wan-Animate-2",
+ "file": "text_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensors",
+ "dir": "text_encoders",
+ "gb": 6.74,
+ "name": "umt5_xxl_fp8_e4m3fn_scaled.safetensors",
+ "gated": false,
+ "license": "Apache-2.0",
+ "used_by": [
+ "motion-transfer"
+ ]
+ },
+ {
+ "repo": "Comfy-Org/Wan-Animate-2",
+ "file": "vae/Wan2_1_VAE_bf16.safetensors",
+ "dir": "vae",
+ "gb": 0.25,
+ "name": "Wan2_1_VAE_bf16.safetensors",
+ "gated": false,
+ "license": "Apache-2.0",
+ "used_by": [
+ "motion-transfer"
+ ]
+ }
+ ]
+}
diff --git a/schema/app.schema.json b/schema/app.schema.json
new file mode 100644
index 0000000..e322414
--- /dev/null
+++ b/schema/app.schema.json
@@ -0,0 +1,190 @@
+{
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "$id": "https://github.com/neuregex/freefield/schema/app.schema.json",
+ "title": "Freefield app manifest (app.json)",
+ "description": "One app = one folder in apps/ with this manifest and a ComfyUI workflow in API format. The web UI, the runner, the model packs and the tests are all derived from this file.",
+ "type": "object",
+ "additionalProperties": false,
+ "required": ["id", "name", "section", "pack", "status", "inputs", "outputs", "models"],
+ "properties": {
+ "$schema": { "type": "string" },
+ "id": {
+ "type": "string",
+ "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$",
+ "description": "Must match the folder name."
+ },
+ "name": { "type": "string", "minLength": 1, "maxLength": 40 },
+ "section": { "enum": ["image", "video", "audio", "utility"] },
+ "summary": { "type": "string", "maxLength": 160 },
+ "higgsfield_feature": {
+ "type": "string",
+ "description": "The Higgsfield feature this app rebuilds, as named in their menu."
+ },
+ "pack": {
+ "type": "string",
+ "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$",
+ "description": "Apps that share models live in the same pack; each pack downloads and deploys on its own."
+ },
+ "status": {
+ "enum": ["draft", "ready"],
+ "description": "draft: planned, workflow may be missing. ready: workflow present and every binding resolves."
+ },
+ "workflow": {
+ "type": "string",
+ "pattern": "\\.api\\.json$",
+ "description": "ComfyUI workflow in API format, relative to the app folder."
+ },
+ "source": {
+ "type": "object",
+ "additionalProperties": false,
+ "properties": {
+ "template": { "type": "string", "description": "Official ComfyUI template it was converted from." },
+ "comfyui": { "type": "string", "description": "ComfyUI version the workflow was validated against." },
+ "notes": { "type": "string" }
+ }
+ },
+ "inputs": { "type": "array", "items": { "$ref": "#/$defs/input" } },
+ "presets": { "type": "array", "items": { "$ref": "#/$defs/preset" } },
+ "outputs": { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/output" } },
+ "models": { "type": "array", "items": { "$ref": "#/$defs/model" } },
+ "custom_nodes": { "type": "array", "items": { "$ref": "#/$defs/customNode" } },
+ "vram": {
+ "type": "object",
+ "additionalProperties": false,
+ "properties": {
+ "peak_gb": { "type": ["number", "null"], "description": "Measured peak, written by the smoke test or the lab." },
+ "measured_on": { "type": ["string", "null"], "description": "GPU and date of the measurement." }
+ }
+ },
+ "test": {
+ "type": "object",
+ "description": "Sample values for the smoke test, keyed by input id. File inputs are paths relative to the app folder.",
+ "additionalProperties": true
+ },
+ "credits": { "type": "array", "items": { "type": "string" } },
+ "notes": { "type": "string" }
+ },
+ "$defs": {
+ "bind": {
+ "type": "object",
+ "additionalProperties": false,
+ "required": ["node", "field"],
+ "properties": {
+ "node": { "type": "string", "description": "Node id in the API workflow, e.g. \"27\" or \"57:27\" inside a subgraph." },
+ "field": { "type": "string", "description": "Input name on that node." },
+ "template": {
+ "type": "string",
+ "description": "Optional. Writes this string instead of the raw value; {input_id} placeholders are filled with any input's value."
+ }
+ }
+ },
+ "option": {
+ "type": "object",
+ "additionalProperties": false,
+ "required": ["value", "label"],
+ "properties": {
+ "value": {},
+ "label": { "type": "string" },
+ "sets": {
+ "type": "array",
+ "items": { "$ref": "#/$defs/set" },
+ "description": "Extra node fields written when this option is chosen, e.g. the LoRA file that goes with a style."
+ }
+ }
+ },
+ "set": {
+ "type": "object",
+ "additionalProperties": false,
+ "required": ["node", "field", "value"],
+ "properties": {
+ "node": { "type": "string" },
+ "field": { "type": "string" },
+ "value": {}
+ }
+ },
+ "input": {
+ "type": "object",
+ "additionalProperties": false,
+ "required": ["id", "type", "label"],
+ "properties": {
+ "id": { "type": "string", "pattern": "^[a-z][a-z0-9_]*$" },
+ "type": { "enum": ["text", "textarea", "number", "slider", "select", "toggle", "seed", "image", "video", "audio"] },
+ "label": { "type": "string" },
+ "help": { "type": "string" },
+ "default": {},
+ "required": { "type": "boolean" },
+ "min": { "type": "number" },
+ "max": { "type": "number" },
+ "step": { "type": "number" },
+ "options": { "type": "array", "items": { "$ref": "#/$defs/option" } },
+ "limits": {
+ "type": "object",
+ "additionalProperties": false,
+ "properties": {
+ "max_mb": { "type": "number" },
+ "seconds": { "type": "array", "items": { "type": "number" }, "minItems": 2, "maxItems": 2 }
+ }
+ },
+ "bind": {
+ "type": "array",
+ "items": { "$ref": "#/$defs/bind" },
+ "description": "Where the value goes. May be empty when the input is only used inside another bind's template."
+ }
+ }
+ },
+ "preset": {
+ "type": "object",
+ "additionalProperties": false,
+ "required": ["id", "label", "sets"],
+ "properties": {
+ "id": { "type": "string", "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$" },
+ "label": { "type": "string" },
+ "sets": { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/set" } }
+ }
+ },
+ "output": {
+ "type": "object",
+ "additionalProperties": false,
+ "required": ["node", "type"],
+ "properties": {
+ "node": { "type": "string" },
+ "type": { "enum": ["image", "video", "audio"] },
+ "label": { "type": "string" }
+ }
+ },
+ "model": {
+ "type": "object",
+ "additionalProperties": false,
+ "required": ["repo", "file", "dir", "gb", "phase"],
+ "properties": {
+ "repo": { "type": "string", "pattern": "^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$", "description": "Hugging Face repo id." },
+ "file": { "type": "string", "description": "Path inside the repo. ComfyUI sees it by its base name." },
+ "dir": {
+ "enum": [
+ "diffusion_models", "text_encoders", "vae", "loras", "checkpoints", "clip_vision",
+ "latent_upscale_models", "upscale_models", "model_patches", "geometry_estimation",
+ "background_removal", "frame_interpolation", "audio_encoders"
+ ],
+ "description": "ComfyUI models/ subfolder."
+ },
+ "gb": { "type": "number", "exclusiveMinimum": 0, "description": "File size in GB (10^9 bytes), from the Hub." },
+ "phase": {
+ "enum": ["encode", "denoise", "denoise2", "decode", "aux", "all"],
+ "description": "When it has to be on the GPU. encode = text/image encoders; denoise = DiT and its LoRAs; denoise2 = a second DiT that takes over after the first (Wan 2.2's low-noise expert) and its LoRAs; decode = VAEs; aux = runs on its own step; all = single checkpoint used throughout."
+ },
+ "gated": { "type": "boolean", "description": "Needs accepting a license on Hugging Face and an HF token." },
+ "license": { "type": "string" },
+ "optional": { "type": "boolean" }
+ }
+ },
+ "customNode": {
+ "type": "object",
+ "additionalProperties": false,
+ "required": ["repo", "commit"],
+ "properties": {
+ "repo": { "type": "string", "pattern": "^https://" },
+ "commit": { "type": "string", "pattern": "^[0-9a-f]{7,40}$" }
+ }
+ }
+ }
+}
diff --git a/server/cli.ts b/server/cli.ts
new file mode 100644
index 0000000..01811a3
--- /dev/null
+++ b/server/cli.ts
@@ -0,0 +1,91 @@
+// Command line for the registry and the runner.
+// npm run validate check every app.json and its bindings
+// npm run apps list apps with status and pack
+// npm run app -- <id> [--set k=v] [--file k=path] [--preset id] [--out dir] [--draft]
+import { mkdirSync, readFileSync } from "node:fs";
+import { basename, join } from "node:path";
+import { loadRegistry } from "./registry.ts";
+import { Runner, type Values } from "./runner.ts";
+
+const [cmd, ...rest] = process.argv.slice(2);
+const { apps, problems } = loadRegistry();
+
+function printProblems(): number {
+ let errors = 0;
+ for (const p of problems) {
+ if (p.severity === "error") errors++;
+ console.log(`${p.severity === "error" ? "✗" : "!"} ${p.app}: ${p.message}`);
+ }
+ return errors;
+}
+
+if (cmd === "validate") {
+ const errors = printProblems();
+ const ready = apps.filter((a) => a.status === "ready").length;
+ console.log(`${apps.length} apps (${ready} ready, ${apps.length - ready} draft) · ${errors} errors · ${problems.length - errors} warnings`);
+ process.exit(errors ? 1 : 0);
+} else if (cmd === "apps") {
+ for (const a of apps) console.log(`${a.status.padEnd(5)} ${a.section.padEnd(7)} ${a.pack.padEnd(14)} ${a.id}`);
+} else if (cmd === "app") {
+ const id = rest[0];
+ const app = apps.find((a) => a.id === id);
+ if (!app) {
+ console.error(`unknown app "${id}". Try: npm run apps`);
+ process.exit(2);
+ }
+ const values: Values = {};
+ let preset: string | undefined;
+ let out = "out";
+ let allowDrafts: boolean | undefined;
+ for (let i = 1; i < rest.length; i++) {
+ const flag = rest[i];
+ if (flag === "--draft") {
+ allowDrafts = true;
+ continue;
+ }
+ const arg = rest[++i] ?? "";
+ if (flag === "--set") {
+ const [k, ...v] = arg.split("=");
+ values[k] = v.join("=");
+ } else if (flag === "--file") {
+ const [k, ...v] = arg.split("=");
+ const path = v.join("=");
+ values[k] = { bytes: new Uint8Array(readFileSync(path)), name: basename(path) };
+ } else if (flag === "--preset") preset = arg;
+ else if (flag === "--out") out = arg;
+ }
+ const runner = new Runner({ allowDrafts });
+ const t0 = Date.now();
+ let job;
+ try {
+ job = await runner.submit(app, values, preset);
+ } catch (e) {
+ console.error(`could not submit ${app.id}: ${(e as Error).message}`);
+ process.exit(1);
+ }
+ console.log(`submitted ${app.id} → job ${job.id}`);
+ try {
+ await job.wait();
+ } catch (e) {
+ console.error(`job ${job.id} ended ${job.status}:`, (e as Error).message);
+ process.exit(1);
+ }
+ if (job.status !== "succeeded") {
+ const err = job.error as { message?: string; class_type?: string; node_id?: string } | null | undefined;
+ const where = err?.class_type ? ` in ${err.class_type} (node ${err.node_id})` : "";
+ console.error(`job ${job.id} ended ${job.status}${err ? `${where}: ${(err.message ?? JSON.stringify(err)).trim()}` : ""}`);
+ process.exit(1);
+ }
+ console.log(`status ${job.status} in ${((Date.now() - t0) / 1000).toFixed(1)} s`);
+ mkdirSync(out, { recursive: true });
+ for (const o of app.outputs) {
+ for (const output of job.getOutputs(o.node)) {
+ const path = join(out, `${app.id}-${output.name}`);
+ await output.toFile(path);
+ console.log(`saved ${path}`);
+ }
+ }
+} else {
+ console.log("usage: cli.ts validate | apps | app <id> [--set k=v] [--file k=path] [--preset id] [--out dir] [--draft]");
+ process.exit(cmd ? 2 : 0);
+}
diff --git a/server/registry.ts b/server/registry.ts
new file mode 100644
index 0000000..e9627b6
--- /dev/null
+++ b/server/registry.ts
@@ -0,0 +1,184 @@
+// The recipe box: loads every apps/<id>/app.json, validates it against the schema,
+// and checks that each binding points at a real node and input of its workflow.
+import { existsSync, readdirSync, readFileSync, statSync } from "node:fs";
+import { basename, dirname, join, resolve } from "node:path";
+import { fileURLToPath } from "node:url";
+import { Ajv2020 } from "ajv/dist/2020.js";
+
+export type Bind = { node: string; field: string; template?: string };
+export type SetField = { node: string; field: string; value: unknown };
+export type Option = { value: unknown; label: string; sets?: SetField[] };
+export type Input = {
+ id: string;
+ type: "text" | "textarea" | "number" | "slider" | "select" | "toggle" | "seed" | "image" | "video" | "audio";
+ label: string;
+ help?: string;
+ default?: unknown;
+ required?: boolean;
+ min?: number;
+ max?: number;
+ step?: number;
+ options?: Option[];
+ limits?: { max_mb?: number; seconds?: [number, number] };
+ bind?: Bind[];
+};
+export type Preset = { id: string; label: string; sets: SetField[] };
+export type Output = { node: string; type: "image" | "video" | "audio"; label?: string };
+export type Model = {
+ repo: string;
+ file: string;
+ dir: string;
+ gb: number;
+ phase: "encode" | "denoise" | "denoise2" | "decode" | "aux" | "all";
+ gated?: boolean;
+ license?: string;
+ optional?: boolean;
+};
+export type ApiNode = { class_type: string; inputs: Record<string, unknown>; _meta?: { title?: string } };
+export type ApiWorkflow = Record<string, ApiNode>;
+
+export type AppManifest = {
+ id: string;
+ name: string;
+ section: "image" | "video" | "audio" | "utility";
+ summary?: string;
+ higgsfield_feature?: string;
+ pack: string;
+ status: "draft" | "ready";
+ workflow?: string;
+ inputs: Input[];
+ presets?: Preset[];
+ outputs: Output[];
+ models: Model[];
+ credits?: string[];
+ vram?: { peak_gb?: number | null; measured_on?: string | null };
+ test?: Record<string, unknown>;
+ notes?: string;
+};
+
+export type App = AppManifest & { dir: string; workflowPath?: string; graph?: ApiWorkflow };
+export type Problem = { app: string; severity: "error" | "warning"; message: string };
+
+const FILE_TYPES = new Set(["image", "video", "audio"]);
+
+export function repoRoot(): string {
+ return resolve(dirname(fileURLToPath(import.meta.url)), "..");
+}
+
+export function isFileInput(input: Input): boolean {
+ return FILE_TYPES.has(input.type);
+}
+
+/** Names of the {placeholders} a template uses. */
+export function templateVars(template: string): string[] {
+ return [...template.matchAll(/\{([a-z][a-z0-9_]*)\}/g)].map((m) => m[1]);
+}
+
+/**
+ * The base models this app keeps on the GPU, as dir/basename, sorted. The gateway unloads
+ * everything when this changes. LoRAs are left out: ComfyUI re-patches them without
+ * reloading the base model, so switching LoRAs is no reason to empty the GPU.
+ */
+export function modelKey(app: AppManifest): string {
+ return app.models
+ .filter((m) => !m.optional && m.dir !== "loras")
+ .map((m) => `${m.dir}/${basename(m.file)}`)
+ .sort()
+ .join("|");
+}
+
+function checkGraph(app: App, problems: Problem[], severity: Problem["severity"]): void {
+ const g = app.graph!;
+ const say = (message: string) => problems.push({ app: app.id, severity, message });
+ const has = (node: string, field: string, where: string) => {
+ const n = g[node];
+ if (!n) return say(`${where}: node "${node}" is not in ${app.workflow}`);
+ if (!(field in n.inputs)) say(`${where}: node "${node}" (${n.class_type}) has no input "${field}"`);
+ };
+ const ids = new Set(app.inputs.map((i) => i.id));
+ const usedInTemplates = new Set<string>();
+ for (const input of app.inputs) {
+ for (const b of input.bind ?? []) {
+ has(b.node, b.field, `input "${input.id}"`);
+ if (b.template) {
+ for (const v of templateVars(b.template)) {
+ if (!ids.has(v)) say(`input "${input.id}": template uses {${v}}, which is not an input`);
+ usedInTemplates.add(v);
+ }
+ }
+ if (isFileInput(input) && b.template) say(`input "${input.id}": file inputs cannot use templates`);
+ }
+ }
+ for (const input of app.inputs) {
+ if (!(input.bind?.length) && !usedInTemplates.has(input.id)) {
+ say(`input "${input.id}" is not bound to any node and no template uses it`);
+ }
+ }
+ for (const p of app.presets ?? []) for (const s of p.sets) has(s.node, s.field, `preset "${p.id}"`);
+ for (const input of app.inputs) {
+ for (const o of input.options ?? []) for (const s of o.sets ?? []) has(s.node, s.field, `input "${input.id}" option "${o.label}"`);
+ }
+ for (const o of app.outputs) if (!g[o.node]) say(`output node "${o.node}" is not in ${app.workflow}`);
+ // every model file the manifest declares should be referenced by some loader in the graph
+ const referenced = new Set<string>();
+ for (const n of Object.values(g)) for (const v of Object.values(n.inputs)) if (typeof v === "string") referenced.add(v);
+ for (const m of app.models) {
+ if (!m.optional && !referenced.has(basename(m.file))) {
+ problems.push({ app: app.id, severity: "warning", message: `model ${basename(m.file)} is declared but no node loads it` });
+ }
+ }
+}
+
+export function loadRegistry(root = repoRoot()): { apps: App[]; problems: Problem[] } {
+ const schema = JSON.parse(readFileSync(join(root, "schema", "app.schema.json"), "utf-8"));
+ const ajv = new Ajv2020({ allErrors: true, strict: false });
+ const validate = ajv.compile(schema);
+ const apps: App[] = [];
+ const problems: Problem[] = [];
+ const appsDir = join(root, "apps");
+ const folders = readdirSync(appsDir).filter((d) => statSync(join(appsDir, d)).isDirectory()).sort();
+ for (const folder of folders) {
+ const dir = join(appsDir, folder);
+ const manifestPath = join(dir, "app.json");
+ if (!existsSync(manifestPath)) {
+ problems.push({ app: folder, severity: "error", message: "missing app.json" });
+ continue;
+ }
+ let manifest: AppManifest;
+ try {
+ manifest = JSON.parse(readFileSync(manifestPath, "utf-8"));
+ } catch (e) {
+ problems.push({ app: folder, severity: "error", message: `app.json is not valid JSON: ${(e as Error).message}` });
+ continue;
+ }
+ if (!validate(manifest)) {
+ for (const err of validate.errors ?? []) {
+ problems.push({ app: folder, severity: "error", message: `schema: ${err.instancePath || "/"} ${err.message}` });
+ }
+ continue;
+ }
+ if (manifest.id !== folder) {
+ problems.push({ app: folder, severity: "error", message: `id "${manifest.id}" must match its folder name` });
+ }
+ const app: App = { ...manifest, dir };
+ const severity: Problem["severity"] = manifest.status === "ready" ? "error" : "warning";
+ if (manifest.workflow) {
+ const wp = join(dir, manifest.workflow);
+ if (existsSync(wp)) {
+ app.workflowPath = wp;
+ try {
+ app.graph = JSON.parse(readFileSync(wp, "utf-8"));
+ } catch (e) {
+ problems.push({ app: folder, severity, message: `${manifest.workflow} is not valid JSON: ${(e as Error).message}` });
+ }
+ } else {
+ problems.push({ app: folder, severity, message: `workflow ${manifest.workflow} not found` });
+ }
+ } else if (manifest.status === "ready") {
+ problems.push({ app: folder, severity: "error", message: "ready apps need a workflow" });
+ }
+ if (app.graph) checkGraph(app, problems, severity);
+ apps.push(app);
+ }
+ return { apps, problems };
+}
diff --git a/server/runner.ts b/server/runner.ts
new file mode 100644
index 0000000..6a55bb7
--- /dev/null
+++ b/server/runner.ts
@@ -0,0 +1,175 @@
+// The waiter: turns form values into a filled workflow using only what app.json says,
+// asks the gateway to clear the GPU when the app's models change, and submits with the Comfy SDK.
+import { Comfy } from "@comfyorg/sdk";
+import type { App, Input } from "./registry.ts";
+import { isFileInput, modelKey } from "./registry.ts";
+
+export type FileValue = { bytes: Uint8Array; name: string; type?: string };
+export type Values = Record<string, unknown>;
+
+/** Anything with setInput, so tests can pass a fake instead of the SDK's Workflow. */
+export type Settable = { setInput(node: string, field: string, value: unknown): unknown };
+
+export class InputError extends Error {}
+
+function isFileValue(v: unknown): v is FileValue {
+ return typeof v === "object" && v !== null && (v as FileValue).bytes instanceof Uint8Array;
+}
+
+function coerce(input: Input, raw: unknown): unknown {
+ switch (input.type) {
+ case "number":
+ case "slider":
+ case "seed": {
+ const n = typeof raw === "number" ? raw : Number(raw);
+ if (!Number.isFinite(n)) throw new InputError(`${input.id}: expected a number`);
+ if (input.min !== undefined && n < input.min) throw new InputError(`${input.id}: must be ≥ ${input.min}`);
+ if (input.max !== undefined && n > input.max) throw new InputError(`${input.id}: must be ≤ ${input.max}`);
+ return input.type === "seed" ? Math.trunc(n) : n;
+ }
+ case "toggle":
+ return raw === true || raw === "true" || raw === "1" || raw === "on";
+ case "select": {
+ const opts = input.options ?? [];
+ const hit = opts.find((o) => o.value === raw || String(o.value) === String(raw));
+ if (!hit) throw new InputError(`${input.id}: "${String(raw)}" is not one of the options`);
+ return hit.value;
+ }
+ default:
+ return raw;
+ }
+}
+
+/** Fill defaults, coerce types, check required fields. File inputs pass through as FileValue. */
+export function resolveValues(app: App, values: Values): Values {
+ const out: Values = {};
+ for (const input of app.inputs) {
+ let v = values[input.id];
+ if (v === undefined || v === "") v = input.default;
+ if (input.type === "seed" && (v === undefined || v === -1 || v === "-1")) {
+ v = Math.floor(Math.random() * 2 ** 48);
+ }
+ if (v === undefined) {
+ if (input.required || isFileInput(input)) throw new InputError(`${input.id}: required`);
+ continue;
+ }
+ if (isFileInput(input)) {
+ if (!isFileValue(v)) throw new InputError(`${input.id}: expected a file`);
+ const maxMb = input.limits?.max_mb;
+ if (maxMb && v.bytes.byteLength > maxMb * 1e6) throw new InputError(`${input.id}: file is over ${maxMb} MB`);
+ out[input.id] = v;
+ } else {
+ out[input.id] = coerce(input, v);
+ }
+ }
+ return out;
+}
+
+export function renderTemplate(template: string, values: Values): string {
+ return template
+ .replace(/\{([a-z][a-z0-9_]*)\}/g, (_, k: string) => (values[k] === undefined ? "" : String(values[k])))
+ .replace(/\s+,/g, ",")
+ .replace(/,\s*,+/g, ",")
+ .replace(/\s{2,}/g, " ")
+ .trim()
+ .replace(/,$/, "");
+}
+
+/**
+ * Apply resolved values and an optional preset to a workflow.
+ * `asset` turns a FileValue into whatever the workflow expects (an SDK asset handle).
+ */
+export function applyInputs(
+ app: App,
+ values: Values,
+ wf: Settable,
+ asset: (f: FileValue) => unknown,
+ presetId?: string,
+): void {
+ for (const input of app.inputs) {
+ const v = values[input.id];
+ if (v === undefined) continue;
+ for (const b of input.bind ?? []) {
+ if (b.template) wf.setInput(b.node, b.field, renderTemplate(b.template, values));
+ else wf.setInput(b.node, b.field, isFileValue(v) ? asset(v) : v);
+ }
+ // a select option can carry extra fields (the LoRA that goes with a style)
+ const chosen = input.type === "select" ? input.options?.find((o) => o.value === v) : undefined;
+ for (const s of chosen?.sets ?? []) wf.setInput(s.node, s.field, s.value);
+ }
+ if (presetId) {
+ const preset = (app.presets ?? []).find((p) => p.id === presetId);
+ if (!preset) throw new InputError(`preset "${presetId}" does not exist in ${app.id}`);
+ for (const s of preset.sets) wf.setInput(s.node, s.field, s.value);
+ }
+}
+
+export type RunnerOptions = {
+ /** Gateway in front of comfy-api-proxy, e.g. https://you--freefield-backend.modal.run */
+ baseUrl?: string;
+ /** Token the gateway expects; sent by the SDK as a bearer token. */
+ token?: string;
+ /** Let draft apps run too (default: FREEFIELD_DRAFTS=1). Drafts have a workflow nobody has run on a GPU yet. */
+ allowDrafts?: boolean;
+ fetch?: typeof fetch;
+};
+
+export class Runner {
+ readonly baseUrl: string;
+ readonly token?: string;
+ readonly allowDrafts: boolean;
+ private comfy: Comfy;
+ private doFetch: typeof fetch;
+
+ constructor(opts: RunnerOptions = {}) {
+ this.baseUrl = (opts.baseUrl ?? process.env.COMFY_BASE_URL ?? "").replace(/\/$/, "");
+ if (!this.baseUrl) throw new Error("Set COMFY_BASE_URL to the gateway URL");
+ this.token = opts.token ?? process.env.FREEFIELD_TOKEN ?? undefined;
+ this.allowDrafts = opts.allowDrafts ?? process.env.FREEFIELD_DRAFTS === "1";
+ process.env.COMFY_BASE_URL = this.baseUrl; // the SDK reads its base URL from the environment
+ this.doFetch = opts.fetch ?? fetch;
+ this.comfy = new Comfy({ apiKey: this.token, clientInfo: "freefield", fetch: opts.fetch });
+ }
+
+ /**
+ * Ask the gateway to make room for this app. It compares the model set with the one
+ * loaded last and unloads everything from VRAM when they differ. A backend without the
+ * Freefield gateway (a bare comfy-api-proxy, a hosted Comfy API) answers 404 and manages
+ * its own memory, so that is not an error.
+ */
+ async prepare(app: App): Promise<{ freed: boolean; skipped?: boolean }> {
+ const res = await this.doFetch(`${this.baseUrl}/freefield/prepare`, {
+ method: "POST",
+ headers: {
+ "content-type": "application/json",
+ ...(this.token ? { authorization: `Bearer ${this.token}` } : {}),
+ },
+ body: JSON.stringify({ app: app.id, models: modelKey(app) }),
+ });
+ if (res.status === 404 || res.status === 405) return { freed: false, skipped: true };
+ if (!res.ok) throw new Error(`gateway /freefield/prepare answered ${res.status}`);
+ return (await res.json()) as { freed: boolean };
+ }
+
+ async submit(app: App, rawValues: Values, presetId?: string) {
+ if (!app.workflowPath) throw new InputError(`${app.id} has no workflow yet`);
+ if (app.status !== "ready" && !this.allowDrafts) {
+ throw new InputError(`${app.id} is a draft; set FREEFIELD_DRAFTS=1 (or pass --draft) to run it anyway`);
+ }
+ const values = resolveValues(app, rawValues);
+ await this.prepare(app);
+ const wf = await this.comfy.workflows.fromFile(app.workflowPath);
+ applyInputs(
+ app,
+ values,
+ wf,
+ (f) => this.comfy.assets.fromBytes(f.bytes, { filename: f.name, contentType: f.type || undefined }),
+ presetId,
+ );
+ return this.comfy.submit(wf);
+ }
+
+ jobs() {
+ return this.comfy.jobs;
+ }
+}
diff --git a/server/server.ts b/server/server.ts
new file mode 100644
index 0000000..047bc4a
--- /dev/null
+++ b/server/server.ts
@@ -0,0 +1,146 @@
+// Minimal HTTP API for the web UI. Node's built-in http plus the Fetch API types; no framework.
+// GET /api/apps catalog (what the UI needs to draw cards and forms)
+// POST /api/apps/:id/run multipart form: one field per input id, optional "preset"
+// GET /api/jobs/:id status and outputs
+// GET /api/jobs/:id/outputs/:outputId output bytes
+// Everything else is served from web/ when it exists.
+import { createServer, type IncomingMessage, type ServerResponse } from "node:http";
+import { existsSync, readFileSync, statSync } from "node:fs";
+import { extname, join, normalize } from "node:path";
+import { loadRegistry, repoRoot, isFileInput, type App } from "./registry.ts";
+import { InputError, Runner, type Values } from "./runner.ts";
+
+const root = repoRoot();
+const { apps, problems } = loadRegistry(root);
+for (const p of problems.filter((x) => x.severity === "error")) console.error(`[registry] ${p.app}: ${p.message}`);
+const byId = new Map(apps.map((a) => [a.id, a]));
+
+// VRAM verdicts from tools/catalog.py (optional: the UI just shows less without it)
+type VramRow = { id: string; whole_gb: number; largest_phase_gb: number; verdict_24gb: string; measured_peak_gb: number | null };
+const vramFile = join(root, "docs", "vram-map.json");
+const vram = new Map<string, VramRow>(
+ existsSync(vramFile) ? (JSON.parse(readFileSync(vramFile, "utf-8")).apps as VramRow[]).map((r) => [r.id, r]) : [],
+);
+let runner: Runner | null = null;
+const getRunner = () => (runner ??= new Runner());
+const draftsAllowed = process.env.FREEFIELD_DRAFTS === "1";
+
+const MIME: Record<string, string> = {
+ ".html": "text/html; charset=utf-8", ".js": "text/javascript", ".css": "text/css", ".json": "application/json",
+ ".svg": "image/svg+xml", ".png": "image/png", ".webp": "image/webp", ".jpg": "image/jpeg", ".mp4": "video/mp4",
+};
+
+function publicApp(a: App) {
+ return {
+ id: a.id, name: a.name, section: a.section, summary: a.summary ?? "", status: a.status, pack: a.pack,
+ runnable: Boolean(a.workflowPath) && (a.status === "ready" || draftsAllowed),
+ higgsfield_feature: a.higgsfield_feature ?? null,
+ inputs: a.inputs.map(({ bind: _bind, options, ...rest }) => ({
+ ...rest, ...(options ? { options: options.map(({ sets: _sets, ...o }) => o) } : {}),
+ })),
+ presets: (a.presets ?? []).map((p) => ({ id: p.id, label: p.label })),
+ outputs: a.outputs.map((o) => ({ type: o.type, label: o.label ?? null })),
+ models: a.models.map((m) => ({
+ name: m.file.split("/").pop(), repo: m.repo, gb: m.gb, license: m.license ?? null,
+ gated: Boolean(m.gated), optional: Boolean(m.optional),
+ })),
+ vram: vram.has(a.id) ? {
+ whole_gb: vram.get(a.id)!.whole_gb, largest_phase_gb: vram.get(a.id)!.largest_phase_gb,
+ verdict: vram.get(a.id)!.verdict_24gb, measured_gb: vram.get(a.id)!.measured_peak_gb,
+ } : null,
+ credits: a.credits ?? [],
+ notes: a.notes ?? null,
+ };
+}
+
+function send(res: ServerResponse, status: number, body: unknown) {
+ res.writeHead(status, { "content-type": "application/json; charset=utf-8" });
+ res.end(JSON.stringify(body));
+}
+
+async function toRequest(req: IncomingMessage): Promise<Request> {
+ const chunks: Buffer[] = [];
+ for await (const c of req) chunks.push(c as Buffer);
+ return new Request(`http://local${req.url}`, {
+ method: req.method,
+ headers: req.headers as Record<string, string>,
+ body: chunks.length ? Buffer.concat(chunks) : undefined,
+ });
+}
+
+async function readValues(app: App, request: Request): Promise<{ values: Values; preset?: string }> {
+ const form = await request.formData();
+ const values: Values = {};
+ for (const input of app.inputs) {
+ const v = form.get(input.id);
+ if (v === null) continue;
+ if (isFileInput(input)) {
+ if (typeof v === "string") throw new InputError(`${input.id}: expected a file upload`);
+ values[input.id] = { bytes: new Uint8Array(await v.arrayBuffer()), name: v.name, type: v.type };
+ } else {
+ values[input.id] = v;
+ }
+ }
+ const preset = form.get("preset");
+ return { values, preset: typeof preset === "string" && preset ? preset : undefined };
+}
+
+async function jobView(id: string) {
+ const job = await getRunner().jobs().get(id);
+ return {
+ id: job.id,
+ status: job.status,
+ error: job.error ?? null,
+ outputs: job.outputs.map((o) => ({ id: o.id, node: o.nodeId, name: o.name, type: o.type, url: `/api/jobs/${job.id}/outputs/${o.id}` })),
+ };
+}
+
+const server = createServer(async (req, res) => {
+ try {
+ const url = new URL(req.url ?? "/", "http://local");
+ const parts = url.pathname.split("/").filter(Boolean);
+ if (parts[0] === "api") {
+ if (req.method === "GET" && parts[1] === "apps" && parts.length === 2) {
+ const order = { image: 0, video: 1, audio: 2, utility: 3 } as Record<string, number>;
+ const sorted = [...apps].sort((a, b) => order[a.section] - order[b.section]
+ || Number(b.status === "ready") - Number(a.status === "ready") || a.name.localeCompare(b.name));
+ return send(res, 200, { apps: sorted.map(publicApp) });
+ }
+ if (req.method === "POST" && parts[1] === "apps" && parts[3] === "run") {
+ const app = byId.get(parts[2]);
+ if (!app) return send(res, 404, { error: "unknown app" });
+ const { values, preset } = await readValues(app, await toRequest(req));
+ const job = await getRunner().submit(app, values, preset);
+ return send(res, 202, { id: job.id, status: job.status });
+ }
+ if (req.method === "GET" && parts[1] === "jobs" && parts.length === 3) {
+ return send(res, 200, await jobView(parts[2]));
+ }
+ if (req.method === "GET" && parts[1] === "jobs" && parts[3] === "outputs" && parts[4]) {
+ const job = await getRunner().jobs().get(parts[2]);
+ const out = job.outputs.find((o) => o.id === parts[4]);
+ if (!out) return send(res, 404, { error: "unknown output" });
+ const bytes = await out.toBytes();
+ res.writeHead(200, { "content-type": out.contentType || "application/octet-stream", "content-length": bytes.byteLength });
+ return res.end(bytes);
+ }
+ return send(res, 404, { error: "not found" });
+ }
+ // static web/
+ const webRoot = join(root, "web");
+ const rel = normalize(url.pathname === "/" ? "index.html" : url.pathname.slice(1)).replace(/^(\.\.[/\\])+/, "");
+ const file = join(webRoot, rel);
+ if (file.startsWith(webRoot) && existsSync(file) && statSync(file).isFile()) {
+ res.writeHead(200, { "content-type": MIME[extname(file)] ?? "application/octet-stream" });
+ return res.end(readFileSync(file));
+ }
+ return send(res, 404, { error: "not found" });
+ } catch (e) {
+ const status = e instanceof InputError ? 400 : 500;
+ if (status === 500) console.error(e);
+ return send(res, status, { error: (e as Error).message });
+ }
+});
+
+const port = Number(process.env.PORT ?? 3000);
+server.listen(port, "127.0.0.1", () => console.log(`freefield on http://127.0.0.1:${port} (${apps.length} apps)`));
diff --git a/test/registry.test.ts b/test/registry.test.ts
new file mode 100644
index 0000000..ee00232
--- /dev/null
+++ b/test/registry.test.ts
@@ -0,0 +1,34 @@
+import { test } from "node:test";
+import assert from "node:assert/strict";
+import { loadRegistry, modelKey, templateVars } from "../server/registry.ts";
+
+const { apps, problems } = loadRegistry();
+
+test("every manifest passes the schema and its bindings resolve", () => {
+ const errors = problems.filter((p) => p.severity === "error");
+ assert.deepEqual(errors, []);
+});
+
+test("ready apps all have a workflow on disk", () => {
+ for (const app of apps.filter((a) => a.status === "ready")) {
+ assert.ok(app.graph, `${app.id} has no workflow loaded`);
+ }
+});
+
+test("folder name and id agree, ids are unique", () => {
+ const ids = apps.map((a) => a.id);
+ assert.equal(new Set(ids).size, ids.length);
+ for (const a of apps) assert.ok(a.dir.endsWith(a.id), `${a.id} lives in ${a.dir}`);
+});
+
+test("apps that share models produce the same model key, so switching between them does not unload", () => {
+ const z = apps.find((a) => a.id === "z-image")!;
+ const cinema = apps.find((a) => a.id === "cinema-studio")!;
+ const video = apps.find((a) => a.id === "video")!;
+ assert.equal(modelKey(z), modelKey(cinema));
+ assert.notEqual(modelKey(z), modelKey(video));
+});
+
+test("templateVars finds placeholders", () => {
+ assert.deepEqual(templateVars("{prompt}, shot on a {camera}"), ["prompt", "camera"]);
+});
diff --git a/test/runner.test.ts b/test/runner.test.ts
new file mode 100644
index 0000000..169dba4
--- /dev/null
+++ b/test/runner.test.ts
@@ -0,0 +1,100 @@
+import { test } from "node:test";
+import assert from "node:assert/strict";
+import { loadRegistry } from "../server/registry.ts";
+import { applyInputs, InputError, renderTemplate, resolveValues, Runner, type Settable } from "../server/runner.ts";
+
+const { apps } = loadRegistry();
+const byId = (id: string) => apps.find((a) => a.id === id)!;
+
+function recorder(): Settable & { sets: Record<string, unknown> } {
+ const sets: Record<string, unknown> = {};
+ return { sets, setInput: (node: string, field: string, value: unknown) => (sets[`${node}.${field}`] = value) };
+}
+
+test("defaults fill in and a -1 seed becomes a real seed", () => {
+ const values = resolveValues(byId("z-image"), { prompt: "a cat" });
+ assert.equal(values.prompt, "a cat");
+ assert.equal(values.steps, 8);
+ assert.equal(typeof values.seed, "number");
+ assert.ok((values.seed as number) >= 0);
+});
+
+test("numbers are coerced and range-checked", () => {
+ const app = byId("z-image");
+ assert.equal(resolveValues(app, { prompt: "x", steps: "12" }).steps, 12);
+ assert.throws(() => resolveValues(app, { prompt: "x", steps: 99 }), InputError);
+});
+
+test("select values must be one of the options", () => {
+ const app = byId("upscale");
+ const file = { bytes: new Uint8Array([1, 2, 3]), name: "a.png" };
+ assert.equal(resolveValues(app, { image: file, scale: "4" }).scale, 4);
+ assert.throws(() => resolveValues(app, { image: file, scale: 3 }), InputError);
+});
+
+test("missing files are rejected", () => {
+ assert.throws(() => resolveValues(byId("edit"), { instruction: "x" }), /image: required/);
+});
+
+test("cinema studio composes the prompt from every select", () => {
+ const app = byId("cinema-studio");
+ const values = resolveValues(app, { prompt: "a fox in snow", seed: 1 });
+ const wf = recorder();
+ applyInputs(app, values, wf, () => null);
+ const text = wf.sets["57:27.text"] as string;
+ assert.match(text, /^a fox in snow, shot on a full-frame digital cinema camera, using a classic anamorphic lens at 35mm/);
+ assert.ok(!text.includes("{"), "no placeholder left behind");
+});
+
+test("file inputs go through the asset function", () => {
+ const app = byId("edit");
+ const file = { bytes: new Uint8Array([1]), name: "me.png" };
+ const values = resolveValues(app, { image: file, instruction: "make it night" });
+ const wf = recorder();
+ applyInputs(app, values, wf, (f) => `asset:${f.name}`);
+ assert.equal(wf.sets["11.image"], "asset:me.png");
+ assert.equal(wf.sets["4.text"], "make it night");
+});
+
+test("a select option writes its extra fields (style → LoRA file)", () => {
+ const app = byId("styles");
+ const values = resolveValues(app, { prompt: "a fox", style: "monochrome ink wash style", seed: 1 });
+ const wf = recorder();
+ applyInputs(app, values, wf, () => null);
+ assert.equal(wf.sets["30:27.string_b"], "monochrome ink wash style");
+ assert.equal(wf.sets["30:15.lora_name"], "krea2_darkbrush.safetensors");
+ assert.throws(() => resolveValues(app, { prompt: "a fox", style: "not a style" }), InputError);
+});
+
+test("renderTemplate tidies empty placeholders", () => {
+ assert.equal(renderTemplate("{a}, {b}, {c}", { a: "x", c: "z" }), "x, z");
+});
+
+function fakeFetch(status: (url: string) => number, seen: string[] = []): typeof fetch {
+ return (async (input: RequestInfo | URL) => {
+ const url = String(input instanceof Request ? input.url : input);
+ seen.push(url);
+ return new Response(status(url) === 200 ? JSON.stringify({ freed: true }) : "{}", { status: status(url) });
+ }) as typeof fetch;
+}
+
+test("prepare: a backend without the gateway (404) is skipped, auth errors are not", async () => {
+ const bare = new Runner({ baseUrl: "http://backend.test", token: "t", fetch: fakeFetch(() => 404) });
+ assert.deepEqual(await bare.prepare(byId("z-image")), { freed: false, skipped: true });
+ const gateway = new Runner({ baseUrl: "http://backend.test", token: "t", fetch: fakeFetch(() => 200) });
+ assert.deepEqual(await gateway.prepare(byId("z-image")), { freed: true });
+ const denied = new Runner({ baseUrl: "http://backend.test", token: "bad", fetch: fakeFetch(() => 401) });
+ await assert.rejects(denied.prepare(byId("z-image")), /answered 401/);
+});
+
+test("drafts run only when allowed", async () => {
+ const draft = apps.find((a) => a.status === "draft" && a.workflowPath)!;
+ const values = Object.fromEntries(draft.inputs.filter((i) => ["image", "video", "audio"].includes(i.type))
+ .map((i) => [i.id, { bytes: new Uint8Array([1]), name: "x.bin" }]));
+ const closed = new Runner({ baseUrl: "http://backend.test", fetch: fakeFetch(() => 500), allowDrafts: false });
+ await assert.rejects(closed.submit(draft, values), (e: unknown) => e instanceof InputError && /draft/.test((e as Error).message));
+ const seen: string[] = [];
+ const open = new Runner({ baseUrl: "http://backend.test", fetch: fakeFetch(() => 500, seen), allowDrafts: true });
+ await assert.rejects(open.submit(draft, values), (e: unknown) => !(e instanceof InputError));
+ assert.ok(seen[0]?.endsWith("/freefield/prepare"), "got past the draft gate and asked the gateway");
+});
diff --git a/tools/build_apps.py b/tools/build_apps.py
new file mode 100644
index 0000000..9e75b40
--- /dev/null
+++ b/tools/build_apps.py
@@ -0,0 +1,332 @@
+#!/usr/bin/env python3
+"""Build every apps/<id>/workflow.api.json from official sources, reproducibly.
+
+Each app starts from an official workflow (ComfyUI's templates package or Lightricks'
+ComfyUI-LTXVideo examples), is converted to API format with ui2api, and then gets a few
+explicit edits (drop UI-only nodes, swap to int8 weights, remove the LTX cloud text
+encoder, set the LoRA). Nothing is edited by hand, so a new ComfyUI release means
+re-running this script.
+
+ pip download --no-deps comfyui-workflow-templates-json==0.1.115 -d /tmp/t && unzip -q /tmp/t/*.whl -d /tmp/t
+ git clone https://github.com/Lightricks/ComfyUI-LTXVideo /tmp/ltx (commit 44c8a36)
+ git clone https://github.com/Comfy-Org/comfy-reshoot /tmp/reshoot (commit dc53fc7)
+ python tools/build_apps.py --templates /tmp/t/comfyui_workflow_templates_json/templates \
+ --ltx /tmp/ltx/example_workflows/2.5 --reshoot /tmp/reshoot/workflows --object-info tools/object_info.json
+"""
+from __future__ import annotations
+
+import argparse
+import json
+import sys
+from pathlib import Path
+
+sys.path.insert(0, str(Path(__file__).resolve().parent))
+from ui2api import convert # noqa: E402
+
+ROOT = Path(__file__).resolve().parent.parent
+Api = dict[str, dict]
+
+
+# ---------------------------------------------------------------- graph edits
+def is_link(v) -> bool:
+ return isinstance(v, list) and len(v) == 2 and isinstance(v[0], str)
+
+
+def drop(api: Api, *ids: str) -> None:
+ """Remove nodes and any input that pointed at them."""
+ for i in ids:
+ if i not in api:
+ raise KeyError(f"drop: node {i} not in workflow")
+ del api[i]
+ gone = set(ids)
+ for node in api.values():
+ for k, v in list(node["inputs"].items()):
+ if is_link(v) and v[0] in gone:
+ del node["inputs"][k]
+
+
+def drop_preview(api: Api, node: str) -> None:
+ """PreviewAny shows text in the UI. Drop it only when nothing reads its output:
+ some templates use it as an any-to-string converter in the middle of the graph."""
+ used = any(is_link(v) and v[0] == node for n in api.values() for v in n["inputs"].values())
+ if not used:
+ drop(api, node)
+
+
+def put(api: Api, node: str, field: str, value) -> None:
+ if node not in api:
+ raise KeyError(f"set: node {node} not in workflow")
+ api[node]["inputs"][field] = value
+
+
+def rewire(api: Api, old: list, new: list) -> None:
+ """Point every consumer of output `old` ([node, slot]) at `new`."""
+ for node in api.values():
+ for k, v in node["inputs"].items():
+ if is_link(v) and v[0] == old[0] and v[1] == old[1]:
+ node["inputs"][k] = list(new)
+
+
+def find(api: Api, class_type: str, **match) -> str:
+ hits = [i for i, n in api.items() if n["class_type"] == class_type
+ and all(n["inputs"].get(k) == v for k, v in match.items())]
+ if len(hits) != 1:
+ raise LookupError(f"expected one {class_type} {match or ''}, found {hits}")
+ return hits[0]
+
+
+def swap_files(api: Api, mapping: dict[str, str]) -> None:
+ for node in api.values():
+ for k, v in node["inputs"].items():
+ if isinstance(v, str) and v in mapping:
+ node["inputs"][k] = mapping[v]
+
+
+def to_save_image(api: Api, node: str, prefix: str) -> None:
+ api[node]["class_type"] = "SaveImage"
+ api[node]["inputs"]["filename_prefix"] = prefix
+ api[node]["_meta"] = {"title": "Save Image"}
+
+
+def add_lora_after(api: Api, model_node: str, lora: str, strength: float = 1.0, nid: str = "ff_lora") -> None:
+ rewire(api, [model_node, 0], [nid, 0])
+ api[nid] = {"class_type": "LoraLoaderModelOnly",
+ "inputs": {"model": [model_node, 0], "lora_name": lora, "strength_model": strength},
+ "_meta": {"title": "Freefield LoRA"}}
+
+
+def prefix_outputs(api: Api, app_id: str) -> None:
+ for node in api.values():
+ if "filename_prefix" in node["inputs"]:
+ node["inputs"]["filename_prefix"] = f"freefield/{app_id}"
+
+
+# ---------------------------------------------------------------- LTX specifics
+LTX_INT8 = {
+ "ltx-2.5-22b-distilled-transformer-bf16.safetensors": "ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors",
+ "gemma4-12b-with-proj-ltx-2.5-bf16.safetensors": "gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors",
+ "gemma4_e2b_it_bf16.safetensors": "gemma4_e2b_it_int8_convrot.safetensors",
+}
+
+
+def ltx_local_text(api: Api) -> None:
+ """Make a Lightricks LTX-2.5 example fully local.
+
+ Their examples can send the prompt to the LTX cloud API (GemmaAPITextEncode) when an
+ API key is set; a switch picks that branch or the local Gemma 4 encoder. Every
+ consumer of those switches is pointed at the local branch and the API nodes are
+ removed. Weights are swapped to int8 so the DiT fits a 24 GB card by phases.
+ """
+ for k in list(LTX_INT8): # the examples store long bf16 names; normalise them first
+ for node in api.values():
+ for f, v in node["inputs"].items():
+ if isinstance(v, str) and v.startswith(k.replace(".safetensors", "")):
+ node["inputs"][f] = k
+ swap_files(api, LTX_INT8)
+ api_nodes = {i for i, n in api.items() if n["class_type"] == "GemmaAPITextEncode"}
+ switches = [i for i, n in api.items() if n["class_type"] == "ComfySwitchNode"
+ and any(is_link(v) and v[0] in api_nodes for v in n["inputs"].values())]
+ for sw in switches:
+ local = api[sw]["inputs"].get("on_false") # the API branch is on_true, taken only with a key
+ assert is_link(local) and local[0] not in api_nodes, (sw, local)
+ rewire(api, [sw, 0], local)
+ drop(api, *api_nodes, *switches, *[i for i, n in api.items() if n["class_type"] == "StringContains"])
+ for p in [i for i, n in api.items() if n["class_type"] == "PreviewAny"]:
+ drop_preview(api, p)
+
+
+def ltx_v2v_local(api: Api, lora_file: str) -> None:
+ """Lightricks' V2V IC-LoRA example: local text, first frame from the clip, chosen IC-LoRA."""
+ ltx_local_text(api)
+ # first frame: take frame 0 of the reference instead of a separate upload (it stays bypassed)
+ load_image = find(api, "LoadImage")
+ components = find(api, "GetVideoComponents")
+ api["ff_first_frame"] = {"class_type": "ImageFromBatch",
+ "inputs": {"image": [components, 0], "batch_index": 0, "length": 1},
+ "_meta": {"title": "First frame of the reference"}}
+ rewire(api, [load_image, 0], ["ff_first_frame", 0])
+ drop(api, load_image)
+ put(api, find(api, "LTXICLoRALoaderModelOnly"), "lora_name", lora_file)
+
+
+CAMERAMAN = "LTX2.3-22B_IC-LoRA-Cameraman_v2_14000.safetensors"
+
+
+def ltx_cameraman(api: Api) -> None:
+ """V2V IC-LoRA example used the other way round: the clip only lends its camera move.
+
+ Cseti's Cameraman v2 IC-LoRA (trained on LTX-2.3) copies the camera motion of the guide
+ clip. The start frame is the user's own image (the example's LoadImage stays), always on,
+ at 0.6 strength as the LoRA card recommends so the camera has room to move.
+ """
+ ltx_local_text(api)
+ put(api, find(api, "LTXICLoRALoaderModelOnly"), "lora_name", CAMERAMAN)
+ use_image = "5014:5506"
+ assert api[use_image]["class_type"] == "PrimitiveBoolean", api[use_image]
+ put(api, use_image, "value", True)
+ put(api, find(api, "LTXVImgToVideoInplace"), "strength", 0.6)
+
+
+def ltx_a2v_local(api: Api) -> None:
+ """Lightricks' audio-to-video example: local text, and the portrait is always used."""
+ ltx_local_text(api)
+ use_image = "5014:5506"
+ assert api[use_image]["class_type"] == "PrimitiveBoolean", api[use_image]
+ put(api, use_image, "value", True)
+
+
+# ---------------------------------------------------------------- recipes
+SMOKE: Api = {
+ "1": {"class_type": "EmptyImage", "inputs": {"width": 256, "height": 256, "batch_size": 1, "color": 0x2A6F97},
+ "_meta": {"title": "Solid color"}},
+ "2": {"class_type": "SaveImage", "inputs": {"images": ["1", 0], "filename_prefix": "freefield/smoke"},
+ "_meta": {"title": "Save Image"}},
+}
+
+
+USED_TYPES: set[str] = set()
+
+
+def _collect_types(ui: dict) -> None:
+ for n in ui.get("nodes", []):
+ USED_TYPES.add(n["type"])
+ for sg in (ui.get("definitions") or {}).get("subgraphs", []):
+ for n in sg.get("nodes", []):
+ USED_TYPES.add(n["type"])
+
+
+SMOKE_INVERT: Api = {
+ "1": {"class_type": "LoadImage", "inputs": {"image": "example.png"}, "_meta": {"title": "Load Image"}},
+ "2": {"class_type": "ImageInvert", "inputs": {"image": ["1", 0]}, "_meta": {"title": "Invert"}},
+ "3": {"class_type": "SaveImage", "inputs": {"images": ["2", 0], "filename_prefix": "freefield/smoke-invert"},
+ "_meta": {"title": "Save Image"}},
+}
+
+
+def recipes(templates: Path, ltx: Path, info: dict, reshoot: Path | None = None) -> dict[str, Api]:
+ def load(path: Path) -> Api:
+ ui = json.loads(path.read_text(encoding="utf-8"))
+ _collect_types(ui)
+ api, warnings = convert(ui, info)
+ for w in warnings:
+ print(f" [{path.name}] {w}")
+ return api
+
+ def tpl(name: str) -> Api:
+ return load(templates / name)
+
+ def ltxwf(name: str) -> Api:
+ return load(ltx / name)
+
+ out: dict[str, Api] = {"smoke": json.loads(json.dumps(SMOKE)), "smoke-invert": json.loads(json.dumps(SMOKE_INVERT))}
+
+ z = tpl("image_z_image_turbo_int8.json")
+ out["z-image"] = z
+ out["cinema-studio"] = json.loads(json.dumps(z))
+
+ e = tpl("image_flux3_klein_distilled_image_edit.json")
+ # keep load → reference latent → sample → save; drop the bounding-box layout tool,
+ # the 9B prompt upsampler and UI previews. The prompt goes straight into node 4.
+ drop(e, "18", "33", "34", "44", "46", "47", "48", "49", "50", "51", "52")
+ put(e, "4", "text", "Change the jacket to deep red leather, keep everything else the same.")
+ out["edit"] = e
+ out["character"] = json.loads(json.dumps(e)) # same pipeline; the manifest wraps the prompt in a template
+ out["product-shot"] = json.loads(json.dumps(e)) # same again, with product-photography scenes
+
+ u = tpl("utility_seedvr2_3b_int8_upscale_image.json")
+ drop(u, find(u, "ImageCompare"))
+ out["upscale"] = u
+ out["upscale-video"] = tpl("utility_seedvr2_3b_int8_upscale_video.json")
+
+ b = tpl("utility_birefnet_remove_background.json")
+ to_save_image(b, find(b, "PreviewImage"), "freefield/remove-bg")
+ drop(b, find(b, "MaskPreview"))
+ out["remove-bg"] = b
+
+ out["video"] = tpl("video_ltx2_5_i2v.json")
+ out["speak"] = tpl("video_ltx2_5_i2v.json") # LTX-2.5 voices a quoted line itself; the manifest builds the prompt
+ out["video-t2v"] = tpl("video_ltx2_5_t2v.json")
+
+ t = tpl("video_ltx2_5_flf2v.json")
+ add_lora_after(t, find(t, "UNETLoader"), "ltx2.3-transition.safetensors", 1.0)
+ out["transitions"] = t
+
+ for app_id, lora in [("vfx-clean-plate", "ltx-2.5-22b-ic-lora-clean-plate-1.0.safetensors"),
+ ("vfx-day-to-night", "ltx-2.5-22b-ic-lora-day-to-night-0.9.safetensors"),
+ ("vfx-water", "ltx-2.5-22b-ic-lora-water-simulation-0.9.safetensors")]:
+ v = ltxwf("LTX-2.5_V2V_ICLoRA_Single_Stage_Distilled.json")
+ ltx_v2v_local(v, lora)
+ out[app_id] = v
+
+ cam = ltxwf("LTX-2.5_V2V_ICLoRA_Single_Stage_Distilled.json")
+ ltx_cameraman(cam)
+ out["camera-copy"] = cam
+
+ talking = ltxwf("LTX-2.5_A2V_Two_Stage_Distilled.json")
+ ltx_a2v_local(talking)
+ out["talking"] = talking
+
+ cm = tpl("video_wan2_2_14B_fun_camera.json")
+ # The template's 4-step Lightning variant is bypassed; its LoRAs come back at strength 0, which
+ # ComfyUI skips without loading the file. The app's "fast" preset turns them on.
+ add_lora_after(cm, find(cm, "UNETLoader", unet_name="wan2.2_fun_camera_high_noise_14B_fp8_scaled.safetensors"),
+ "wan2.2_i2v_lightx2v_4steps_lora_v1_high_noise.safetensors", 0.0, nid="ff_lora_high")
+ add_lora_after(cm, find(cm, "UNETLoader", unet_name="wan2.2_fun_camera_low_noise_14B_fp8_scaled.safetensors"),
+ "wan2.2_i2v_lightx2v_4steps_lora_v1_low_noise.safetensors", 0.0, nid="ff_lora_low")
+ out["camera-moves"] = cm
+
+ out["style-reference"] = tpl("image_krea2_turbo_int8_image_style_reference.json") # Krea 2 Turbo + ostris' style LoRA, as shipped
+ st = tpl("image_krea2_turbo_t2i_int8.json")
+ # the template's own "use LoRA" switch (it also appends the trigger to the prompt) goes on;
+ # the app's style picker writes the trigger and swaps the LoRA file
+ put(st, find(st, "PrimitiveBoolean", value=False), "value", True)
+ put(st, find(st, "LoraLoaderModelOnly"), "lora_name", "krea2_softwatercolor.safetensors")
+ out["styles"] = st
+ out["smooth"] = tpl("utility_video_frame_interpolation.json") # FILM frame interpolation, as shipped
+ rc = tpl("video_wan21_scail2_character_replacement_int8.json")
+ # keep the first segment (81 frames); the template's "extend" subgraph needs a clip of 157+ frames
+ # and fails on shorter ones, so it goes, with the nodes that only joined the two segments
+ drop(rc, *[i for i in rc if i.startswith("262:")], "263", "264", "265", "269", "270", "271")
+ out["recast"] = rc
+ out["relight"] = tpl("image_qwen_image_edit_2509_relight.json") # Qwen Image Edit 2509 + Relight + Lightning LoRAs, as shipped
+
+ out["music"] = tpl("audio_minimax_music_3.json")
+ out["sfx"] = tpl("audio_stable_audio_3_medium.json")
+ out["motion-transfer"] = tpl("video_wan_animate2_distilled.json")
+ if reshoot:
+ # Comfy's own reference app (Comfy-Org/comfy-reshoot, MIT), already in API format
+ out["reshoot"] = json.loads((reshoot / "generate.api.json").read_text(encoding="utf-8"))
+ for app_id, api in out.items():
+ prefix_outputs(api, app_id)
+ for n in [i for i, node in api.items() if node["class_type"] == "PreviewAny"]:
+ drop_preview(api, n)
+ return out
+
+
+def main(argv=None) -> int:
+ ap = argparse.ArgumentParser()
+ ap.add_argument("--templates", type=Path, required=True, help="comfyui_workflow_templates_json/templates folder")
+ ap.add_argument("--ltx", type=Path, required=True, help="ComfyUI-LTXVideo/example_workflows/2.5 folder")
+ ap.add_argument("--object-info", type=Path, default=ROOT / "tools" / "object_info.json")
+ ap.add_argument("--reshoot", type=Path, help="comfy-reshoot/workflows folder (git clone https://github.com/Comfy-Org/comfy-reshoot)")
+ ap.add_argument("--only", nargs="*", help="build only these app ids")
+ ap.add_argument("--save-subset", type=Path, help="write the node definitions these recipes need to this file")
+ a = ap.parse_args(argv)
+ info = json.loads(a.object_info.read_text(encoding="utf-8"))
+ built = recipes(a.templates, a.ltx, info, a.reshoot)
+ if a.save_subset:
+ keep = {t: info[t] for t in sorted(USED_TYPES | {n["class_type"] for api in built.values() for n in api.values()}) if t in info}
+ a.save_subset.write_text(json.dumps(keep, separators=(",", ":")) + "\n", encoding="utf-8")
+ print(f"{a.save_subset}: {len(keep)} node definitions")
+ for app_id, api in built.items():
+ if a.only and app_id not in a.only:
+ continue
+ d = ROOT / "apps" / app_id
+ d.mkdir(parents=True, exist_ok=True)
+ (d / "workflow.api.json").write_text(json.dumps(api, indent=2, ensure_ascii=False) + "\n", encoding="utf-8")
+ print(f"apps/{app_id}/workflow.api.json {len(api)} nodes")
+ return 0
+
+
+if __name__ == "__main__":
+ sys.exit(main())
diff --git a/tools/catalog.py b/tools/catalog.py
new file mode 100644
index 0000000..f82ec65
--- /dev/null
+++ b/tools/catalog.py
@@ -0,0 +1,167 @@
+#!/usr/bin/env python3
+"""Everything derived from the manifests: model packs and the VRAM map.
+
+ python tools/catalog.py packs → packs/<pack>.json (what to download) and packs/index.json
+ python tools/catalog.py vram → docs/vram-map.md and docs/vram-map.json
+ python tools/catalog.py all
+
+VRAM numbers here are weight sizes from the Hub, not measurements. "Whole" assumes every
+model sits on the GPU at once; "largest phase" assumes ComfyUI keeps only the models of
+the current step (text encoding, denoising, decoding) and offloads the rest, which is
+what it does when VRAM is short. Activations come on top and are not estimated: the
+smoke tests and the lab write measured peaks into each app.json (vram.peak_gb).
+"""
+from __future__ import annotations
+
+import json
+import sys
+from collections import defaultdict
+from pathlib import Path
+
+ROOT = Path(__file__).resolve().parent.parent
+LOCAL_GB = 24.0 # the RTX 3090 Ti this project targets locally
+HEADROOM_GB = 4.0 # CUDA context + activations margin used for the "fits" call
+
+
+def load_apps() -> list[dict]:
+ apps = []
+ for f in sorted((ROOT / "apps").glob("*/app.json")):
+ apps.append(json.loads(f.read_text(encoding="utf-8")))
+ return apps
+
+
+def basename(path: str) -> str:
+ return path.rsplit("/", 1)[-1]
+
+
+# ---------------------------------------------------------------- packs
+def build_packs(apps: list[dict]) -> dict[str, dict]:
+ packs: dict[str, dict] = defaultdict(lambda: {"apps": [], "models": {}, "custom_nodes": {}})
+ for a in apps:
+ p = packs[a["pack"]]
+ p["apps"].append(a["id"])
+ for m in a.get("models", []):
+ key = f"{m['dir']}/{basename(m['file'])}"
+ entry = p["models"].setdefault(key, {**{k: m[k] for k in ("repo", "file", "dir", "gb")},
+ "name": basename(m["file"]), "gated": bool(m.get("gated")),
+ "license": m.get("license"), "used_by": []})
+ entry["used_by"].append(a["id"])
+ for c in a.get("custom_nodes", []):
+ p["custom_nodes"][c["repo"]] = c["commit"]
+ out = {}
+ for name, p in sorted(packs.items()):
+ models = sorted(p["models"].values(), key=lambda m: (m["dir"], m["name"]))
+ out[name] = {
+ "pack": name,
+ "apps": sorted(p["apps"]),
+ "download_gb": round(sum(m["gb"] for m in models), 2),
+ "needs_hf_token": any(m["gated"] for m in models),
+ "custom_nodes": [{"repo": r, "commit": c} for r, c in sorted(p["custom_nodes"].items())],
+ "models": models,
+ }
+ return out
+
+
+def write_packs(apps: list[dict]) -> None:
+ packs = build_packs(apps)
+ d = ROOT / "packs"
+ d.mkdir(exist_ok=True)
+ for name, p in packs.items():
+ (d / f"{name}.json").write_text(json.dumps(p, indent=2, ensure_ascii=False) + "\n", encoding="utf-8")
+ index = {name: {"apps": p["apps"], "download_gb": p["download_gb"], "needs_hf_token": p["needs_hf_token"]}
+ for name, p in packs.items()}
+ (d / "index.json").write_text(json.dumps(index, indent=2) + "\n", encoding="utf-8")
+ for name, p in packs.items():
+ print(f"packs/{name}.json {len(p['models'])} files {p['download_gb']:.1f} GB apps: {', '.join(p['apps'])}")
+
+
+# ---------------------------------------------------------------- VRAM
+def vram_row(a: dict) -> dict:
+ req = [m for m in a.get("models", []) if not m.get("optional")]
+ opt = [m for m in a.get("models", []) if m.get("optional")]
+ by = defaultdict(float)
+ for m in req:
+ by[m["phase"]] += m["gb"]
+ always = by["all"]
+ aux_max = max([m["gb"] for m in req if m["phase"] == "aux"], default=0.0)
+ phases = {
+ "encode": round(by["encode"] + always, 2),
+ "denoise": round(by["denoise"] + always, 2),
+ "denoise2": round(by["denoise2"] + always, 2) if by["denoise2"] else 0.0, # second expert, after the first
+ "decode": round(by["decode"] + always, 2),
+ "aux": round(aux_max + always, 2) if aux_max else 0.0,
+ }
+ whole = round(sum(m["gb"] for m in req), 2)
+ largest_phase, largest_gb = max(phases.items(), key=lambda kv: kv[1])
+ limit = LOCAL_GB - HEADROOM_GB
+ if not req:
+ verdict, gpu = "no models", "any"
+ elif whole <= limit:
+ verdict, gpu = "fits whole", "L4 / A10G (24 GB)"
+ elif largest_gb <= limit:
+ verdict, gpu = "fits by phases", "L4 / A10G (24 GB)"
+ elif largest_gb <= LOCAL_GB - 1:
+ verdict, gpu = "tight (by phases)", "test on L4 / A10G; L40S (48 GB) is comfortable"
+ elif whole <= 48 - HEADROOM_GB:
+ verdict, gpu = "needs Modal", "L40S (48 GB), whole"
+ elif largest_gb <= 48 - HEADROOM_GB:
+ verdict, gpu = "needs Modal", "L40S (48 GB), by phases"
+ else:
+ verdict, gpu = "needs Modal", "A100 80GB / H100"
+ biggest = max(req, key=lambda m: m["gb"]) if req else None
+ return {
+ "id": a["id"], "name": a["name"], "section": a["section"], "pack": a["pack"], "status": a["status"],
+ "whole_gb": whole, "phases_gb": phases, "largest_phase": largest_phase, "largest_phase_gb": largest_gb,
+ "optional_gb": round(sum(m["gb"] for m in opt), 2),
+ "biggest_file": {"name": basename(biggest["file"]), "gb": biggest["gb"]} if biggest else None,
+ "verdict_24gb": verdict, "modal_gpu": gpu,
+ "measured_peak_gb": (a.get("vram") or {}).get("peak_gb"),
+ }
+
+
+def write_vram(apps: list[dict]) -> None:
+ rows = [vram_row(a) for a in apps]
+ order = {"fits whole": 0, "fits by phases": 1, "tight (by phases)": 2, "needs Modal": 3, "no models": 4}
+ rows.sort(key=lambda r: (order[r["verdict_24gb"]], r["largest_phase_gb"], r["id"]))
+ docs = ROOT / "docs"
+ docs.mkdir(exist_ok=True)
+ (docs / "vram-map.json").write_text(json.dumps({"local_gb": LOCAL_GB, "headroom_gb": HEADROOM_GB, "apps": rows},
+ indent=2, ensure_ascii=False) + "\n", encoding="utf-8")
+ lines = [
+ "# VRAM map",
+ "",
+ "Generated by `python tools/catalog.py vram` from the apps' `app.json`. Weight sizes come from the Hugging Face Hub;",
+ f"activations are **not** included. Local target: one {LOCAL_GB:.0f} GB card (RTX 3090 Ti) keeping {HEADROOM_GB:.0f} GB of headroom.",
+ "",
+ "When two apps run back to back with different models, the gateway asks ComfyUI to unload everything first",
+ "(`POST /free`), so the previous app never stays in VRAM.",
+ "",
+ "| App | Status | Whole | Largest phase | Biggest file | Verdict on 24 GB | Modal GPU | Measured |",
+ "|---|---|---:|---|---|---|---|---:|",
+ ]
+ for r in rows:
+ bf = f"{r['biggest_file']['name']} ({r['biggest_file']['gb']:.1f})" if r["biggest_file"] else "—"
+ peak = f"{r['measured_peak_gb']:.1f}" if r["measured_peak_gb"] else "not measured"
+ opt = f" (+{r['optional_gb']:.1f} optional)" if r["optional_gb"] else ""
+ lines.append(f"| `{r['id']}` | {r['status']} | {r['whole_gb']:.1f} GB{opt} | {r['largest_phase']} {r['largest_phase_gb']:.1f} GB "
+ f"| {bf} | {r['verdict_24gb']} | {r['modal_gpu']} | {peak} |")
+ (docs / "vram-map.md").write_text("\n".join(lines) + "\n", encoding="utf-8")
+ for r in rows:
+ print(f"{r['verdict_24gb']:<18} whole {r['whole_gb']:5.1f} {r['largest_phase']:<7} {r['largest_phase_gb']:5.1f} {r['id']}")
+
+
+def main(argv: list[str]) -> int:
+ cmd = argv[0] if argv else "all"
+ apps = load_apps()
+ if cmd in ("packs", "all"):
+ write_packs(apps)
+ if cmd in ("vram", "all"):
+ write_vram(apps)
+ if cmd not in ("packs", "vram", "all"):
+ print(__doc__)
+ return 2
+ return 0
+
+
+if __name__ == "__main__":
+ sys.exit(main(sys.argv[1:]))
diff --git a/tools/ci_comfyui.sh b/tools/ci_comfyui.sh
new file mode 100644
index 0000000..1ebac0c
--- /dev/null
+++ b/tools/ci_comfyui.sh
@@ -0,0 +1,56 @@
+#!/usr/bin/env bash
+# A CPU-only ComfyUI at the commit Freefield pins, with every custom node the packs pin, started
+# in the background. Enough for tools/comfy_validate.py; no GPU and no model weights needed.
+#
+# bash tools/ci_comfyui.sh /tmp/comfyui # then:
+# python tools/comfy_validate.py --comfy-dir /tmp/comfyui --placeholders
+#
+# Uses the current python3; run it inside a virtualenv on your own machine.
+set -euo pipefail
+
+DIR=${1:?usage: ci_comfyui.sh <dir> [port]}
+PORT=${2:-8188}
+ROOT=$(cd "$(dirname "$0")/.." && pwd)
+COMMIT=$(sed -n 's/^COMFYUI_COMMIT *= *"\([0-9a-f]*\)".*/\1/p' "$ROOT/infra/common.py")
+[ -n "$COMMIT" ] || { echo "COMFYUI_COMMIT not found in infra/common.py" >&2; exit 1; }
+
+if [ ! -d "$DIR/.git" ]; then
+ git clone --quiet --filter=blob:none https://github.com/comfyanonymous/ComfyUI "$DIR"
+fi
+git -C "$DIR" checkout --quiet "$COMMIT"
+
+# CPU wheels first, so ComfyUI's unpinned torch requirement is already satisfied
+python3 -m pip install --quiet torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
+python3 -m pip install --quiet -r "$DIR/requirements.txt"
+
+python3 - "$ROOT" "$DIR" <<'EOF'
+import json, pathlib, subprocess, sys
+root, comfy = map(pathlib.Path, sys.argv[1:3])
+pinned = {}
+for p in sorted((root / "packs").glob("*.json")):
+ if p.name != "index.json":
+ for cn in json.loads(p.read_text(encoding="utf-8")).get("custom_nodes", []):
+ pinned[cn["repo"]] = cn["commit"]
+for repo, commit in sorted(pinned.items()):
+ dst = comfy / "custom_nodes" / repo.rstrip("/").rsplit("/", 1)[-1]
+ if not dst.exists():
+ subprocess.run(["git", "clone", "--quiet", "--filter=blob:none", repo, str(dst)], check=True)
+ subprocess.run(["git", "-C", str(dst), "checkout", "--quiet", commit], check=True)
+ req = dst / "requirements.txt"
+ if req.exists():
+ subprocess.run([sys.executable, "-m", "pip", "install", "--quiet", "-r", str(req)], check=True)
+ print(f"custom node {dst.name} @ {commit[:7]}")
+EOF
+
+cd "$DIR"
+nohup python3 main.py --cpu --listen 127.0.0.1 --port "$PORT" --disable-auto-launch > "$DIR/comfyui.log" 2>&1 &
+for _ in $(seq 1 150); do
+ if curl -fsS "http://127.0.0.1:$PORT/object_info/KSampler" > /dev/null 2>&1; then
+ echo "ComfyUI $COMMIT is up on :$PORT"
+ exit 0
+ fi
+ sleep 2
+done
+echo "ComfyUI did not start; last log lines:" >&2
+tail -50 "$DIR/comfyui.log" >&2
+exit 1
diff --git a/tools/comfy_validate.py b/tools/comfy_validate.py
new file mode 100644
index 0000000..9b1381e
--- /dev/null
+++ b/tools/comfy_validate.py
@@ -0,0 +1,229 @@
+#!/usr/bin/env python3
+"""Check API workflows against a running ComfyUI without a GPU or real model files.
+
+ComfyUI validates every prompt when it is queued: node types, required inputs, value
+ranges, links, and that each model file name is in its folder list. With --placeholders,
+this script creates empty files with the expected names (models and example inputs) so
+that check can run on any machine, even a CPU-only container. A prompt that passes is
+cancelled right away so nothing heavy runs.
+
+ python tools/comfy_validate.py --url http://127.0.0.1:8188 --comfy-dir /path/to/ComfyUI --placeholders
+ python tools/comfy_validate.py --url ... apps/z-image/workflow.api.json other.api.json
+
+With no workflow paths, it checks every apps/*/app.json that has a workflow, applying the
+app's test values, with no preset and with each preset. With --lab, it checks the prompts a lab run would submit
+(values, overrides and inserted LoRAs included), with tiny placeholders for chained inputs:
+
+ python tools/comfy_validate.py --url ... --comfy-dir ... --placeholders --lab lab/cases.json
+"""
+from __future__ import annotations
+
+import argparse
+import json
+import struct
+import sys
+import time
+import urllib.error
+import urllib.request
+import zlib
+from pathlib import Path
+
+ROOT = Path(__file__).resolve().parent.parent
+MODEL_EXT = (".safetensors", ".gguf", ".pt", ".pth", ".bin", ".ckpt", ".sft")
+MODEL_DIRS = ["diffusion_models", "text_encoders", "vae", "loras", "checkpoints", "clip_vision",
+ "latent_upscale_models", "upscale_models", "model_patches", "geometry_estimation",
+ "background_removal", "frame_interpolation", "audio_encoders", "unet", "clip"]
+IMAGE_EXT = (".png", ".jpg", ".jpeg", ".webp")
+VIDEO_EXT = (".mp4", ".webm", ".mov", ".mkv")
+AUDIO_EXT = (".wav", ".mp3", ".flac", ".ogg", ".m4a")
+
+
+def _post(url: str, payload: dict) -> tuple[int, dict]:
+ req = urllib.request.Request(url, data=json.dumps(payload).encode(), headers={"content-type": "application/json"})
+ try:
+ with urllib.request.urlopen(req, timeout=60) as r:
+ body = r.read()
+ return r.status, (json.loads(body) if body else {})
+ except urllib.error.HTTPError as e:
+ body = e.read()
+ try:
+ return e.code, json.loads(body)
+ except Exception:
+ return e.code, {"raw": body.decode(errors="replace")[:500]}
+
+
+def _tiny_png(path: Path) -> None:
+ def chunk(t: bytes, d: bytes) -> bytes:
+ return struct.pack(">I", len(d)) + t + d + struct.pack(">I", zlib.crc32(t + d) & 0xFFFFFFFF)
+ w = h = 64
+ raw = b"".join(b"\x00" + b"\x80\x80\x80" * w for _ in range(h))
+ data = b"\x89PNG\r\n\x1a\n" + chunk(b"IHDR", struct.pack(">IIBBBBB", w, h, 8, 2, 0, 0, 0)) \
+ + chunk(b"IDAT", zlib.compress(raw)) + chunk(b"IEND", b"")
+ path.write_bytes(data)
+
+
+def _tiny_wav(path: Path) -> None:
+ import wave
+ with wave.open(str(path), "wb") as w:
+ w.setnchannels(1)
+ w.setsampwidth(2)
+ w.setframerate(16000)
+ w.writeframes(b"\x00\x00" * 16000)
+
+
+def _tiny_mp4(path: Path) -> bool:
+ try:
+ import av # ships with ComfyUI's requirements
+ import numpy as np
+ except ImportError:
+ return False
+ with av.open(str(path), "w") as c:
+ s = c.add_stream("mpeg4", rate=24)
+ s.width, s.height, s.pix_fmt = 64, 64, "yuv420p"
+ for i in range(24):
+ frame = av.VideoFrame.from_ndarray(np.full((64, 64, 3), i * 8, dtype=np.uint8), format="rgb24")
+ for p in s.encode(frame):
+ c.mux(p)
+ for p in s.encode():
+ c.mux(p)
+ return True
+
+
+def strings_in(api: dict) -> set[str]:
+ out = set()
+ for node in api.values():
+ for v in node.get("inputs", {}).values():
+ if isinstance(v, str):
+ out.add(v)
+ return out
+
+
+def make_placeholders(api: dict, comfy_dir: Path) -> None:
+ for s in strings_in(api):
+ name = Path(s).name
+ low = name.lower()
+ if low.endswith(MODEL_EXT):
+ for d in MODEL_DIRS:
+ p = comfy_dir / "models" / d / s
+ p.parent.mkdir(parents=True, exist_ok=True)
+ if not p.exists():
+ p.write_bytes(b"")
+ elif low.endswith(IMAGE_EXT + VIDEO_EXT + AUDIO_EXT) and "/" not in s:
+ p = comfy_dir / "input" / s
+ p.parent.mkdir(parents=True, exist_ok=True)
+ if p.exists():
+ continue
+ if low.endswith(IMAGE_EXT):
+ _tiny_png(p)
+ elif low.endswith(AUDIO_EXT):
+ _tiny_wav(p)
+ elif not _tiny_mp4(p):
+ p.write_bytes(b"")
+
+
+def validate(url: str, api: dict, label: str) -> bool:
+ status, body = _post(f"{url}/prompt", {"prompt": api, "client_id": "freefield-validate"})
+ if status == 200 and "prompt_id" in body:
+ _post(f"{url}/queue", {"delete": [body["prompt_id"]]})
+ _post(f"{url}/interrupt", {})
+ print(f"✓ {label}")
+ return True
+ print(f"✗ {label}")
+ err = body.get("error") or {}
+ if err:
+ print(f" {err.get('type', '')}: {err.get('message', '')} {err.get('details', '')}".rstrip())
+ for nid, ne in (body.get("node_errors") or {}).items():
+ for e in ne.get("errors", []):
+ print(f" node {nid} ({ne.get('class_type')}): {e.get('message')} — {e.get('details', '')}")
+ if not err and not body.get("node_errors"):
+ print(f" HTTP {status}: {json.dumps(body)[:300]}")
+ return False
+
+
+def app_variants(app_dir: Path) -> list[tuple[str, dict]]:
+ """The app's workflow with its test values applied, once per preset (or once with none)."""
+ manifest = json.loads((app_dir / "app.json").read_text(encoding="utf-8"))
+ if not manifest.get("workflow") or not (app_dir / manifest["workflow"]).exists():
+ return []
+ base = json.loads((app_dir / manifest["workflow"]).read_text(encoding="utf-8"))
+ test = manifest.get("test") or {}
+ values = {i["id"]: test.get(i["id"], i.get("default")) for i in manifest.get("inputs", [])}
+ for i in manifest.get("inputs", []): # the runner turns -1 into a random seed; any fixed one will do here
+ if i["type"] == "seed" and values.get(i["id"]) in (None, -1, "-1"):
+ values[i["id"]] = 42
+
+ def render(t: str) -> str:
+ import re
+ return re.sub(r"\{([a-z][a-z0-9_]*)\}", lambda m: "" if values.get(m.group(1)) is None else str(values[m.group(1)]), t)
+
+ def apply(api: dict, preset: dict | None) -> dict:
+ api = json.loads(json.dumps(api))
+ for inp in manifest.get("inputs", []):
+ v = values.get(inp["id"])
+ if v is None:
+ continue
+ for b in inp.get("bind", []):
+ if inp["type"] in ("image", "video", "audio"):
+ api[b["node"]]["inputs"][b["field"]] = Path(str(v)).name
+ else:
+ api[b["node"]]["inputs"][b["field"]] = render(b["template"]) if b.get("template") else v
+ for opt in inp.get("options") or []:
+ if opt["value"] == v:
+ for s in opt.get("sets", []):
+ api[s["node"]]["inputs"][s["field"]] = s["value"]
+ for s in (preset or {}).get("sets", []):
+ api[s["node"]]["inputs"][s["field"]] = s["value"]
+ return api
+
+ # no preset is a valid choice in the UI too, so check it alongside every preset
+ return [(manifest["id"], apply(base, None))] + \
+ [(f"{manifest['id']} [{p['id']}]", apply(base, p)) for p in manifest.get("presets") or []]
+
+
+def lab_variants(cases_path: Path) -> list[tuple[str, dict]]:
+ """Every lab case as the prompt the lab would queue; file inputs become placeholders."""
+ sys.path.insert(0, str(ROOT / "lab"))
+ import core # lab/core.py
+ ext = {"image": "png", "video": "mp4", "audio": "wav"}
+ cases = json.loads(cases_path.read_text(encoding="utf-8"))["cases"]
+ out = []
+ for c in cases:
+ _, api, _ = core.build_case(ROOT / "apps", c, lambda _cid, _raw, kind: f"freefield_check_{kind}.{ext[kind]}")
+ out.append((f"lab:{c['id']} ({c['app']})", api))
+ return out
+
+
+def main(argv: list[str] | None = None) -> int:
+ ap = argparse.ArgumentParser()
+ ap.add_argument("workflows", nargs="*", type=Path)
+ ap.add_argument("--url", default="http://127.0.0.1:8188")
+ ap.add_argument("--comfy-dir", type=Path, help="ComfyUI folder, needed for --placeholders")
+ ap.add_argument("--placeholders", action="store_true", help="create empty model files and tiny example inputs")
+ ap.add_argument("--lab", type=Path, help="check the prompts of a lab cases file instead of the apps")
+ a = ap.parse_args(argv)
+
+ jobs: list[tuple[str, dict]] = []
+ if a.lab:
+ jobs = lab_variants(a.lab)
+ elif a.workflows:
+ for p in a.workflows:
+ jobs.append((str(p), json.loads(p.read_text(encoding="utf-8"))))
+ else:
+ for app_dir in sorted((ROOT / "apps").iterdir()):
+ if (app_dir / "app.json").exists():
+ jobs += app_variants(app_dir)
+ ok = 0
+ for label, api in jobs:
+ if a.placeholders:
+ if not a.comfy_dir:
+ print("--placeholders needs --comfy-dir", file=sys.stderr)
+ return 2
+ make_placeholders(api, a.comfy_dir)
+ ok += validate(a.url.rstrip("/"), api, label)
+ time.sleep(0.2)
+ print(f"{ok}/{len(jobs)} workflows valid")
+ return 0 if ok == len(jobs) else 1
+
+
+if __name__ == "__main__":
+ sys.exit(main())
diff --git a/tools/doctor.py b/tools/doctor.py
new file mode 100644
index 0000000..68c6e2e
--- /dev/null
+++ b/tools/doctor.py
@@ -0,0 +1,201 @@
+#!/usr/bin/env python3
+"""Pre-flight check before the first GPU run: what is missing, and the command that fixes it.
+
+ python tools/doctor.py # everything: all packs and the lab's LoRAs
+ python tools/doctor.py --pack video-ltx25 # only the models of these packs (comma-separated)
+
+It checks Node and the npm install, the Modal CLI and its two secrets, that your Hugging Face
+token can download every gated model the packs need (one HEAD request per file, nothing is
+downloaded), and the .env the web app reads. Tokens are never printed; the Hugging Face token
+is only sent to huggingface.co and FREEFIELD_TOKEN only to your own COMFY_BASE_URL.
+"""
+from __future__ import annotations
+
+import argparse
+import json
+import os
+import re
+import subprocess
+import sys
+import urllib.error
+import urllib.request
+from pathlib import Path
+
+ROOT = Path(__file__).resolve().parent.parent
+OK, BAD, WARN = "✓", "✗", "!"
+results: list[tuple[str, str, str]] = []
+
+
+def report(mark: str, what: str, fix: str = "") -> None:
+ results.append((mark, what, fix))
+ print(f"{mark} {what}" + (f"\n → {fix}" if fix else ""))
+
+
+def run(cmd: list[str], timeout: float = 60) -> tuple[int, str]:
+ try:
+ p = subprocess.run(cmd, capture_output=True, text=True, timeout=timeout)
+ return p.returncode, (p.stdout + p.stderr).strip()
+ except (OSError, subprocess.TimeoutExpired) as e:
+ return 127, str(e)
+
+
+def check_node() -> None:
+ code, out = run(["node", "--version"])
+ m = re.match(r"v(\d+)\.(\d+)", out) if code == 0 else None
+ if not m:
+ report(BAD, "Node.js not found", "install Node 22.6 or newer from https://nodejs.org")
+ elif (int(m[1]), int(m[2])) < (22, 6):
+ report(BAD, f"Node {out} is too old", "install Node 22.6 or newer")
+ else:
+ report(OK, f"Node {out}")
+ if (ROOT / "node_modules" / "@comfyorg" / "sdk").exists():
+ report(OK, "npm packages installed")
+ else:
+ report(BAD, "npm packages missing", "npm install")
+
+
+def check_modal() -> None:
+ code, out = run([sys.executable, "-m", "modal", "--version"])
+ if code != 0:
+ report(BAD, "Modal CLI not installed for this Python", f"{Path(sys.executable).name} -m pip install modal")
+ return
+ report(OK, f"Modal CLI {out.split()[-1] if out else ''}".strip())
+ code, out = run([sys.executable, "-m", "modal", "secret", "list", "--json"], timeout=90)
+ if code != 0:
+ report(BAD, "Modal is not logged in (or unreachable)", "modal setup")
+ return
+ try:
+ names = {s.get("Name") or s.get("name") for s in json.loads(out)}
+ except json.JSONDecodeError:
+ names = set(re.findall(r"\b(freefield|huggingface)\b", out))
+ fixes = {
+ "freefield": 'modal secret create freefield FREEFIELD_TOKEN=$(python -c "import secrets;print(secrets.token_urlsafe(32))")',
+ "huggingface": "modal secret create huggingface HF_TOKEN=hf_...",
+ }
+ for name, fix in fixes.items():
+ if name in names:
+ report(OK, f'Modal secret "{name}"')
+ else:
+ report(BAD, f'Modal secret "{name}" missing', fix)
+
+
+def hf_token() -> str | None:
+ if os.environ.get("HF_TOKEN"):
+ return os.environ["HF_TOKEN"]
+ home = Path(os.environ.get("HF_HOME", Path.home() / ".cache" / "huggingface"))
+ f = home / "token"
+ return f.read_text(encoding="utf-8").strip() if f.exists() else None
+
+
+def head(url: str, token: str | None) -> int:
+ req = urllib.request.Request(url, method="HEAD", headers={"authorization": f"Bearer {token}"} if token else {})
+
+ class NoRedirect(urllib.request.HTTPRedirectHandler):
+ def redirect_request(self, *a, **k):
+ return None
+
+ try:
+ with urllib.request.build_opener(NoRedirect).open(req, timeout=30) as r:
+ return r.status
+ except urllib.error.HTTPError as e:
+ return e.code
+ except OSError:
+ return 0
+
+
+def check_hf(packs: list[str], with_lab: bool) -> None:
+ token = hf_token()
+ if token:
+ report(OK, "Hugging Face token found (HF_TOKEN or huggingface-cli login)")
+ else:
+ report(WARN, "No Hugging Face token here; gated models cannot be checked",
+ "set HF_TOKEN (the same one you put in the Modal secret) or run: huggingface-cli login")
+ # access is granted per repo, so one file per repo is enough
+ repos: dict[str, tuple[str, bool | None, str]] = {} # repo -> (file, gated, where)
+ for pack in packs:
+ for m in json.loads((ROOT / "packs" / f"{pack}.json").read_text(encoding="utf-8")).get("models", []):
+ repos.setdefault(m["repo"], (m["file"], bool(m.get("gated")), pack))
+ if with_lab: # LoRAs only the lab uses; their gating is not recorded, so ask the Hub
+ for c in json.loads((ROOT / "lab" / "cases.json").read_text(encoding="utf-8"))["cases"]:
+ for l in c.get("loras", []) + c.get("loras_download", []):
+ repos.setdefault(l["repo"], (l["file"], None, "lab"))
+ for repo, (file, gated, where) in sorted(repos.items(), key=lambda kv: (kv[1][2], kv[0])):
+ if gated is False:
+ continue
+ if not token:
+ if gated:
+ report(WARN, f"{where}: {repo} is gated", f"accept its license at https://huggingface.co/{repo}")
+ continue
+ status = head(f"https://huggingface.co/{repo}/resolve/main/{file}", token)
+ if status in (200, 302, 307):
+ report(OK, f"{where}: access to {repo}")
+ elif status in (401, 403):
+ report(BAD, f"{where}: no access to {repo}", f"accept the license at https://huggingface.co/{repo}")
+ elif status == 404:
+ report(BAD, f"{where}: {repo}/{file} not found", "the file was renamed upstream; update the app.json or lab case")
+ else:
+ report(WARN, f"{where}: could not check {repo} (HTTP {status})")
+
+
+def check_env() -> None:
+ env = ROOT / ".env"
+ if not env.exists():
+ report(BAD, ".env missing (the web app reads COMFY_BASE_URL and FREEFIELD_TOKEN from it)", "cp .env.example .env")
+ return
+ values = dict(re.findall(r"^\s*([A-Z_]+)\s*=\s*(.*?)\s*$", env.read_text(encoding="utf-8"), flags=re.M))
+ base, token = values.get("COMFY_BASE_URL", ""), values.get("FREEFIELD_TOKEN", "")
+ if not base or "YOUR-WORKSPACE" in base:
+ report(BAD, "COMFY_BASE_URL not set in .env", "paste the URL printed by: modal deploy infra/modal_app.py")
+ return
+ if not token:
+ report(BAD, "FREEFIELD_TOKEN empty in .env", "use the same value as the Modal secret \"freefield\"")
+ try:
+ with urllib.request.urlopen(f"{base.rstrip('/')}/health", timeout=20) as r:
+ report(OK, f"backend answers at {base} (HTTP {r.status})")
+ except Exception as e: # a cold Modal container can take a while; this is only a hint
+ report(WARN, f"backend at {base} did not answer /health ({type(e).__name__})",
+ "deploy it (modal deploy infra/modal_app.py) or wait for a cold start and retry")
+ return
+ if token:
+ req = urllib.request.Request(f"{base.rstrip('/')}/freefield/status", headers={"authorization": f"Bearer {token}"})
+ try:
+ with urllib.request.urlopen(req, timeout=20) as r:
+ report(OK, f"gateway accepts the token (HTTP {r.status})")
+ except urllib.error.HTTPError as e:
+ report(BAD, f"gateway refused the token (HTTP {e.code})", "FREEFIELD_TOKEN must match the Modal secret \"freefield\"")
+ except Exception as e:
+ report(WARN, f"could not reach /freefield/status ({type(e).__name__})")
+
+
+def main(argv: list[str] | None = None) -> int:
+ ap = argparse.ArgumentParser(description=__doc__.splitlines()[0])
+ ap.add_argument("--pack", default="", help="comma-separated packs to check (default: all)")
+ ap.add_argument("--skip", default="", help="comma-separated sections to skip: node, modal, hf, env")
+ a = ap.parse_args(argv)
+ if sys.stdout.encoding and sys.stdout.encoding.lower() not in ("utf-8", "utf8"):
+ sys.stdout.reconfigure(errors="replace")
+ all_packs = sorted(p.stem for p in (ROOT / "packs").glob("*.json") if p.name != "index.json")
+ packs = [p for p in a.pack.split(",") if p] or all_packs
+ unknown = set(packs) - set(all_packs)
+ if unknown:
+ print(f"unknown pack(s): {', '.join(sorted(unknown))}; known: {', '.join(all_packs)}", file=sys.stderr)
+ return 2
+ skip = set(a.skip.split(","))
+ with_lab = not a.pack # a full check also covers the LoRAs the lab downloads
+ for name, fn in [("node", check_node), ("modal", check_modal), ("hf", lambda: check_hf(packs, with_lab)), ("env", check_env)]:
+ if name not in skip:
+ print(f"\n[{name}]")
+ fn()
+ bad = sum(1 for m, _, _ in results if m == BAD)
+ warn = sum(1 for m, _, _ in results if m == WARN)
+ if bad:
+ print(f"\n{bad} problem(s)" + (f", {warn} more to check" if warn else ""))
+ elif warn:
+ print(f"\nnothing blocking found; {warn} thing(s) above could not be checked")
+ else:
+ print("\nready for a GPU run")
+ return 1 if bad else 0
+
+
+if __name__ == "__main__":
+ sys.exit(main())
diff --git a/tools/object_info.json b/tools/object_info.json
new file mode 100644
index 0000000..7013279
--- /dev/null
+++ b/tools/object_info.json
@@ -0,0 +1 @@
+{"AudioMerge":{"input":{"required":{"audio1":["AUDIO",{}],"audio2":["AUDIO",{}],"merge_method":["COMBO",{"tooltip":"The method used to combine the audio waveforms.","multiselect":false,"options":["add","mean","subtract","multiply"]}]}},"input_order":{"required":["audio1","audio2","merge_method"]},"is_input_list":false,"output":["AUDIO"],"output_is_list":[false],"output_name":["AUDIO"],"output_tooltips":[null],"output_matchtypes":null,"name":"AudioMerge","display_name":"Merge Audio","description":"Combine two audio tracks by overlaying their waveforms.","python_module":"comfy_extras.nodes_audio","category":"audio","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":["mix audio","overlay audio","layer audio"],"essentials_category":null,"has_intermediate_output":false},"BasicGuider":{"input":{"required":{"model":["MODEL",{}],"conditioning":["CONDITIONING",{}]}},"input_order":{"required":["model","conditioning"]},"is_input_list":false,"output":["GUIDER"],"output_is_list":[false],"output_name":["GUIDER"],"output_tooltips":[null],"output_matchtypes":null,"name":"BasicGuider","display_name":"Basic Guider","description":"","python_module":"comfy_extras.nodes_custom_sampler","category":"model/sampling/guiders","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":null,"essentials_category":null,"has_intermediate_output":false},"BasicScheduler":{"input":{"required":{"model":["MODEL",{}],"scheduler":["COMBO",{"multiselect":false,"options":["simple","sgm_uniform","karras","exponential","ddim_uniform","beta","normal","linear_quadratic","kl_optimal"]}],"steps":["INT",{"default":20,"min":1,"max":10000}],"denoise":["FLOAT",{"default":1.0,"min":0.0,"max":1.0,"step":0.01}]}},"input_order":{"required":["model","scheduler","steps","denoise"]},"is_input_list":false,"output":["SIGMAS"],"output_is_list":[false],"output_name":["SIGMAS"],"output_tooltips":[null],"output_matchtypes":null,"name":"BasicScheduler","display_name":null,"description":"","python_module":"comfy_extras.nodes_custom_sampler","category":"model/sampling/schedulers","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":null,"essentials_category":null,"has_intermediate_output":false},"BatchImagesNode":{"input":{"required":{"images":["COMFY_AUTOGROW_V3",{"template":{"input":{"required":{"image":["IMAGE",{}]}},"prefix":"image","min":1,"max":50}}]}},"input_order":{"required":["images"]},"is_input_list":false,"output":["IMAGE"],"output_is_list":[false],"output_name":["IMAGE"],"output_tooltips":[null],"output_matchtypes":null,"name":"BatchImagesNode","display_name":"Batch Images","description":"","python_module":"comfy_extras.nodes_post_processing","category":"image/batch","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":["batch","image batch","batch images","combine images","merge images","stack images"],"essentials_category":"Image Tools","has_intermediate_output":false},"CFGGuider":{"input":{"required":{"model":["MODEL",{}],"positive":["CONDITIONING",{}],"negative":["CONDITIONING",{}],"cfg":["FLOAT",{"default":8.0,"min":0.0,"max":100.0,"step":0.1,"round":0.01}]}},"input_order":{"required":["model","positive","negative","cfg"]},"is_input_list":false,"output":["GUIDER"],"output_is_list":[false],"output_name":["GUIDER"],"output_tooltips":[null],"output_matchtypes":null,"name":"CFGGuider","display_name":"CFG Guider","description":"","python_module":"comfy_extras.nodes_custom_sampler","category":"model/sampling/guiders","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":null,"essentials_category":null,"has_intermediate_output":false},"CFGNorm":{"input":{"required":{"model":["MODEL",{}],"strength":["FLOAT",{"default":1.0,"min":0.0,"max":100.0,"step":0.01}]},"optional":{"pre_cfg":["BOOLEAN",{"tooltip":"If true, rescale the combined noise BEFORE the sampler's CFG combine, without clamping (can amplify). Matches the norm-scaled CFG used by models like Lens. Default false keeps the original post-CFG x0-space attenuate-only behavior.","default":false}]}},"input_order":{"required":["model","strength"],"optional":["pre_cfg"]},"is_input_list":false,"output":["MODEL"],"output_is_list":[false],"output_name":["patched_model"],"output_tooltips":[null],"output_matchtypes":null,"name":"CFGNorm","display_name":null,"description":"","python_module":"comfy_extras.nodes_cfg","category":"advanced/guidance","output_node":false,"deprecated":false,"experimental":true,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":null,"essentials_category":null,"has_intermediate_output":false},"CLIPLoader":{"input":{"required":{"clip_name":[["Wan2_1_VAE_bf16.safetensors","ae.safetensors","birefnet.safetensors","clip_vision_h.safetensors","flux2-vae.safetensors","flux3-image-klein-base-int8-convrot.safetensors","flux3-image-klein-int8-convrot.safetensors","gemma-3-12b-it-abliterated_lora_rank64_bf16.safetensors","gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors","gemma4_e2b_it_int8_convrot.safetensors","gemma_3_12B_it_fp4_mixed.safetensors","ltx-2.3-22b-dev-fp8.safetensors","ltx-2.3-22b-distilled-fp8.safetensors","ltx-2.3-22b-ic-lora-union-control-ref0.5.safetensors","ltx-2.3-spatial-upscaler-x2-1.1.safetensors","ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors","ltx-2.5-22b-ic-lora-clean-plate-1.0.safetensors","ltx-2.5-22b-ic-lora-day-to-night-0.9.safetensors","ltx-2.5-22b-ic-lora-water-simulation-0.9.safetensors","ltx-2.5-audio-vae-bf16.safetensors","ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors","ltx-2.5-video-vae-bf16.safetensors","ltx2.3-transition.safetensors","ltx_2.3_22b_distilled_1.1_lora_dynamic_fro09_avg_rank_111_bf16.safetensors","minimax_music3_dav.safetensors","minimax_music3_dit_fp16.safetensors","minimax_music3_text_encoder_pruned_int8_convrot.safetensors","moge_2_vitl_normal_fp16.safetensors","qwen3.5_2b_bf16.safetensors","qwen3.5_9b_flux3_prompt_upsampler_w4a8.safetensors","qwen3vl_4b_int8_convrot.safetensors","qwen_3_4b_fp8_mixed.safetensors","sam3.1_multiplex_fp16.safetensors","seedvr2_3b_int8_convrot.safetensors","seedvr2_ema_vae_fp16.safetensors","stable_audio_3_medium.safetensors","t5gemma_b_b_ul2.safetensors","umt5_xxl_fp8_e4m3fn_scaled.safetensors","wan_animate_2_distill_int8_convrot.safetensors","z_image_turbo_int8_convrot.safetensors"]],"type":[["stable_diffusion","stable_cascade","sd3","stable_audio","mochi","ltxv","pixart","cosmos","lumina2","wan","hidream","chroma","ace","omnigen2","qwen_image","hunyuan_image","flux2","ovis","longcat_image","cogvideox","lens","pixeldit","ideogram4","boogu","krea2","joyimage","mage","minimax","yue2","flux3","moss_image"]]},"optional":{"device":[["default","cpu"],{"advanced":true}]}},"input_order":{"required":["clip_name","type"],"optional":["device"]},"is_input_list":false,"output":["CLIP"],"output_is_list":[false],"output_name":["CLIP"],"name":"CLIPLoader","display_name":"Load CLIP","description":"Recipes:\nsd: clip-l\nstable cascade: clip-g\nsd3: t5 xxl / clip-g / clip-l\nstable audio: t5 base\nmochi: t5 xxl\ncogvideox: t5 xxl (226-token padding)\ncosmos: old t5 xxl\nlumina2: gemma 2 2B\nwan: umt5 xxl\nhidream: llama-3.1 (Recommend) or t5\nomnigen2: qwen vl 2.5 3B\njoyimage: qwen3-vl 8B\nlens: gpt-oss-20b\npixeldit: gemma 2 2B elm\nminimax: MiniMax H3 Qwen3-VL or Music3 Qwen/RVQ\nflux3: qwen3-vl 4B","python_module":"nodes","category":"model/loaders","output_node":false,"has_intermediate_output":false,"search_aliases":[]},"CLIPTextEncode":{"input":{"required":{"text":["STRING",{"multiline":true,"dynamicPrompts":true,"tooltip":"The text to be encoded."}],"clip":["CLIP",{"tooltip":"The CLIP model used for encoding the text."}]}},"input_order":{"required":["text","clip"]},"is_input_list":false,"output":["CONDITIONING"],"output_is_list":[false],"output_name":["CONDITIONING"],"name":"CLIPTextEncode","display_name":"CLIP Text Encode (Prompt)","description":"Encodes a text prompt using a CLIP model into an embedding that can be used to guide the diffusion model towards generating specific images.","python_module":"nodes","category":"model/conditioning","output_node":false,"has_intermediate_output":false,"output_tooltips":["A conditioning containing the embedded text used to guide the diffusion model."],"search_aliases":["text","prompt","text prompt","positive prompt","negative prompt","encode text","text encoder","encode prompt"]},"CLIPVisionEncode":{"input":{"required":{"clip_vision":["CLIP_VISION"],"image":["IMAGE"],"crop":[["center","none"]]}},"input_order":{"required":["clip_vision","image","crop"]},"is_input_list":false,"output":["CLIP_VISION_OUTPUT"],"output_is_list":[false],"output_name":["CLIP_VISION_OUTPUT"],"name":"CLIPVisionEncode","display_name":"CLIP Vision Encode","description":"","python_module":"nodes","category":"model/conditioning","output_node":false,"has_intermediate_output":false,"search_aliases":[]},"CLIPVisionLoader":{"input":{"required":{"clip_name":[["Wan2_1_VAE_bf16.safetensors","ae.safetensors","birefnet.safetensors","clip_vision_h.safetensors","flux2-vae.safetensors","flux3-image-klein-base-int8-convrot.safetensors","flux3-image-klein-int8-convrot.safetensors","gemma-3-12b-it-abliterated_lora_rank64_bf16.safetensors","gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors","gemma4_e2b_it_int8_convrot.safetensors","gemma_3_12B_it_fp4_mixed.safetensors","ltx-2.3-22b-dev-fp8.safetensors","ltx-2.3-22b-distilled-fp8.safetensors","ltx-2.3-22b-ic-lora-union-control-ref0.5.safetensors","ltx-2.3-spatial-upscaler-x2-1.1.safetensors","ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors","ltx-2.5-22b-ic-lora-clean-plate-1.0.safetensors","ltx-2.5-22b-ic-lora-day-to-night-0.9.safetensors","ltx-2.5-22b-ic-lora-water-simulation-0.9.safetensors","ltx-2.5-audio-vae-bf16.safetensors","ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors","ltx-2.5-video-vae-bf16.safetensors","ltx2.3-transition.safetensors","ltx_2.3_22b_distilled_1.1_lora_dynamic_fro09_avg_rank_111_bf16.safetensors","minimax_music3_dav.safetensors","minimax_music3_dit_fp16.safetensors","minimax_music3_text_encoder_pruned_int8_convrot.safetensors","moge_2_vitl_normal_fp16.safetensors","qwen3.5_2b_bf16.safetensors","qwen3.5_9b_flux3_prompt_upsampler_w4a8.safetensors","qwen3vl_4b_int8_convrot.safetensors","qwen_3_4b_fp8_mixed.safetensors","sam3.1_multiplex_fp16.safetensors","seedvr2_3b_int8_convrot.safetensors","seedvr2_ema_vae_fp16.safetensors","stable_audio_3_medium.safetensors","t5gemma_b_b_ul2.safetensors","umt5_xxl_fp8_e4m3fn_scaled.safetensors","wan_animate_2_distill_int8_convrot.safetensors","z_image_turbo_int8_convrot.safetensors"]]}},"input_order":{"required":["clip_name"]},"is_input_list":false,"output":["CLIP_VISION"],"output_is_list":[false],"output_name":["CLIP_VISION"],"name":"CLIPVisionLoader","display_name":"Load CLIP Vision","description":"","python_module":"nodes","category":"model/loaders","output_node":false,"has_intermediate_output":false,"search_aliases":[]},"CheckpointLoaderSimple":{"input":{"required":{"ckpt_name":[["Wan2_1_VAE_bf16.safetensors","ae.safetensors","birefnet.safetensors","clip_vision_h.safetensors","flux2-vae.safetensors","flux3-image-klein-base-int8-convrot.safetensors","flux3-image-klein-int8-convrot.safetensors","gemma-3-12b-it-abliterated_lora_rank64_bf16.safetensors","gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors","gemma4_e2b_it_int8_convrot.safetensors","gemma_3_12B_it_fp4_mixed.safetensors","ltx-2.3-22b-dev-fp8.safetensors","ltx-2.3-22b-distilled-fp8.safetensors","ltx-2.3-22b-ic-lora-union-control-ref0.5.safetensors","ltx-2.3-spatial-upscaler-x2-1.1.safetensors","ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors","ltx-2.5-22b-ic-lora-clean-plate-1.0.safetensors","ltx-2.5-22b-ic-lora-day-to-night-0.9.safetensors","ltx-2.5-22b-ic-lora-water-simulation-0.9.safetensors","ltx-2.5-audio-vae-bf16.safetensors","ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors","ltx-2.5-video-vae-bf16.safetensors","ltx2.3-transition.safetensors","ltx_2.3_22b_distilled_1.1_lora_dynamic_fro09_avg_rank_111_bf16.safetensors","minimax_music3_dav.safetensors","minimax_music3_dit_fp16.safetensors","minimax_music3_text_encoder_pruned_int8_convrot.safetensors","moge_2_vitl_normal_fp16.safetensors","qwen3.5_2b_bf16.safetensors","qwen3.5_9b_flux3_prompt_upsampler_w4a8.safetensors","qwen3vl_4b_int8_convrot.safetensors","qwen_3_4b_fp8_mixed.safetensors","sam3.1_multiplex_fp16.safetensors","seedvr2_3b_int8_convrot.safetensors","seedvr2_ema_vae_fp16.safetensors","stable_audio_3_medium.safetensors","t5gemma_b_b_ul2.safetensors","umt5_xxl_fp8_e4m3fn_scaled.safetensors","wan_animate_2_distill_int8_convrot.safetensors","z_image_turbo_int8_convrot.safetensors"],{"tooltip":"The name of the checkpoint (model) to load."}]}},"input_order":{"required":["ckpt_name"]},"is_input_list":false,"output":["MODEL","CLIP","VAE"],"output_is_list":[false,false,false],"output_name":["MODEL","CLIP","VAE"],"name":"CheckpointLoaderSimple","display_name":"Load Checkpoint","description":"Loads a diffusion model checkpoint, diffusion models are used to denoise latents.","python_module":"nodes","category":"model/loaders","output_node":false,"has_intermediate_output":false,"output_tooltips":["The model used for denoising latents.","The CLIP model used for encoding text prompts.","The VAE model used for encoding and decoding images to and from latent space."],"search_aliases":["load model","checkpoint","model loader","load checkpoint","ckpt","model"]},"ColorTransfer":{"input":{"required":{"image_target":["IMAGE",{"tooltip":"Image(s) to apply the color transform to."}],"image_ref":["IMAGE",{"tooltip":"Reference image(s) to match colors to."}],"method":["COMBO",{"multiselect":false,"options":["reinhard_lab","mkl_lab","histogram"]}],"source_stats":["COMFY_DYNAMICCOMBO_V3",{"tooltip":"per_frame: each frame matched to image_ref individually. uniform: pool stats across all source frames as baseline, match to image_ref. target_frame: use one chosen frame as the baseline for the transform to image_ref, applied uniformly to all frames (preserves relative differences)","options":[{"key":"per_frame","inputs":{"required":{}}},{"key":"uniform","inputs":{"required":{}}},{"key":"target_frame","inputs":{"required":{"target_index":["INT",{"tooltip":"Frame index used as the source baseline for computing the transform to image_ref","default":0,"min":0,"max":10000}]}}}]}],"strength":["FLOAT",{"default":1.0,"min":0.0,"max":10.0,"step":0.01}]}},"input_order":{"required":["image_target","image_ref","method","source_stats","strength"]},"is_input_list":false,"output":["IMAGE"],"output_is_list":[false],"output_name":["image"],"output_tooltips":[null],"output_matchtypes":null,"name":"ColorTransfer","display_name":"Transfer Color","description":"Match the colors of one image to another using various algorithms.","python_module":"comfy_extras.nodes_post_processing","category":"image/filters","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":["color match","color grading","color correction","match colors","color transform","mkl","reinhard","histogram"],"essentials_category":null,"has_intermediate_output":false},"ComfyMathExpression":{"input":{"required":{"expression":["STRING",{"default":"a + b","multiline":true}],"values":["COMFY_AUTOGROW_V3",{"template":{"input":{"required":{"value":["FLOAT,INT,BOOLEAN",{}]}},"names":["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],"min":1}}]}},"input_order":{"required":["expression","values"]},"is_input_list":false,"output":["FLOAT","INT","BOOLEAN"],"output_is_list":[false,false,false],"output_name":["FLOAT","INT","BOOL"],"output_tooltips":[null,null,null],"output_matchtypes":null,"name":"ComfyMathExpression","display_name":"Math Expression","description":"","python_module":"comfy_extras.nodes_math","category":"utilities","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":["math","expression","formula","calculate","calculator","eval"],"essentials_category":null,"has_intermediate_output":false},"ComfyNotNode":{"input":{"required":{"value":["*",{}]}},"input_order":{"required":["value"]},"is_input_list":false,"output":["BOOLEAN"],"output_is_list":[false],"output_name":["BOOLEAN"],"output_tooltips":[null],"output_matchtypes":null,"name":"ComfyNotNode","display_name":"Not","description":"Logical NOT operation. Returns true if the value is falsy. Uses Python's rules for truthiness.","python_module":"comfy_extras.nodes_logic","category":"utilities/logic","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":["invert","toggle","negate","flip boolean"],"essentials_category":null,"has_intermediate_output":false},"ComfySwitchNode":{"input":{"required":{"switch":["BOOLEAN",{}]},"optional":{"on_false":["COMFY_MATCHTYPE_V3",{"lazy":true,"template":{"template_id":"switch","allowed_types":"*"}}],"on_true":["COMFY_MATCHTYPE_V3",{"lazy":true,"template":{"template_id":"switch","allowed_types":"*"}}]}},"input_order":{"required":["switch"],"optional":["on_false","on_true"]},"is_input_list":false,"output":["COMFY_MATCHTYPE_V3"],"output_is_list":[false],"output_name":["output"],"output_tooltips":[null],"output_matchtypes":["switch"],"name":"ComfySwitchNode","display_name":"If/Else Switch","description":"","python_module":"comfy_extras.nodes_logic","category":"utilities/logic","output_node":false,"deprecated":false,"experimental":true,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":["if","then","switch","conditional","branch"],"essentials_category":null,"has_intermediate_output":false},"ConditioningZeroOut":{"input":{"required":{"conditioning":["CONDITIONING"]}},"input_order":{"required":["conditioning"]},"is_input_list":false,"output":["CONDITIONING"],"output_is_list":[false],"output_name":["CONDITIONING"],"name":"ConditioningZeroOut","display_name":"Conditioning Zero Out","description":"","python_module":"nodes","category":"model/conditioning/transform","output_node":false,"has_intermediate_output":false,"search_aliases":["null conditioning","clear conditioning"]},"ContextWindowsManual":{"input":{"required":{"model":["MODEL",{"tooltip":"The model to apply context windows to during sampling."}],"context_length":["INT",{"tooltip":"The length of the context window.","default":16,"min":1}],"context_overlap":["INT",{"tooltip":"The overlap of the context window.","default":4,"min":0}],"context_schedule":["COMBO",{"tooltip":"Step-dependent scheduling algorithm for context windows.","default":"standard_static","multiselect":false,"options":["standard_static","standard_uniform","looped_uniform","batched"]}],"context_stride":["INT",{"tooltip":"The stride of the context window; only applicable to uniform schedules.","default":1,"min":1}],"closed_loop":["BOOLEAN",{"tooltip":"Whether to close the context window loop; only applicable to looped schedules.","default":false}],"fuse_method":["COMBO",{"tooltip":"The method to use to fuse the context windows.","default":"pyramid","multiselect":false,"options":["pyramid","relative","flat","overlap-linear"]}],"dim":["INT",{"tooltip":"The dimension to apply the context windows to.","default":0,"min":0,"max":5}],"freenoise":["BOOLEAN",{"tooltip":"Whether to apply FreeNoise noise shuffling, improves window blending.","default":false}],"cond_retain_index_list":["STRING",{"tooltip":"List of latent indices to retain in the conditioning tensors for each window. For concat-style I2V models (e.g. Wan I2V, HunyuanVideo I2V, Cosmos I2V, SVD) the encoded start image lives in the c_concat conditioning channels; setting this to '0' will retain that start image content at sub-pos 0 of every window.","default":"","multiline":false}],"split_conds_to_windows":["BOOLEAN",{"tooltip":"Whether to split multiple conditionings (created by ConditionCombine) to each window based on region index.","default":false}],"latent_retain_index_list":["STRING",{"tooltip":"List of latent indices to retain in the noise latent itself for each window. Use for workflows where reference content (e.g. a start image) lives directly in the noise latent rather than in separate conditioning channels (e.g. inplace-style I2V like LTXV, AnimateDiff). Independent of cond_retain_index_list.","default":"","multiline":false}],"causal_window_fix":["BOOLEAN",{"tooltip":"Whether to add a causal fix frame to non-0-indexed context windows.","default":true}]}},"input_order":{"required":["model","context_length","context_overlap","context_schedule","context_stride","closed_loop","fuse_method","dim","freenoise","cond_retain_index_list","split_conds_to_windows","latent_retain_index_list","causal_window_fix"]},"is_input_list":false,"output":["MODEL"],"output_is_list":[false],"output_name":["MODEL"],"output_tooltips":["The model with context windows applied during sampling."],"output_matchtypes":null,"name":"ContextWindowsManual","display_name":"Context Windows (Manual)","description":"Manually set context windows.","python_module":"comfy_extras.nodes_context_windows","category":"model/patch","output_node":false,"deprecated":false,"experimental":true,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":null,"essentials_category":null,"has_intermediate_output":false},"CreateBoundingBoxes":{"input":{"required":{"width":["INT",{"tooltip":"Width of the canvas and the pixel grid for the bounding boxes.","default":1024,"min":64,"max":16384,"step":16}],"height":["INT",{"tooltip":"Height of the canvas and the pixel grid for the bounding boxes.","default":1024,"min":64,"max":16384,"step":16}],"editor_state":["BOUNDING_BOXES",{"tooltip":"Draw bounding boxes and set each box type, text, description, color palette. Start with background element first and foreground last.","default":[],"socketless":false}]},"optional":{"background":["IMAGE",{"tooltip":"Optional image used as background in the canvas and preview."}],"bboxes":["BOUNDING_BOX,ARRAY,STRING",{"tooltip":"Bounding boxes, elements, or a JSON string to initialize the canvas. A new upstream value initializes the canvas; edits made on the canvas take priority and are kept until the upstream value changes again."}],"last_incoming":["BOUNDING_BOXES",{"tooltip":"Internal state managed by the canvas: the upstream bboxes value that last initialized it. Leave empty to re-initialize the canvas from the bboxes input on the next run.","default":[],"socketless":true}]},"hidden":{"prompt":["PROMPT"],"extra_pnginfo":["EXTRA_PNGINFO"]}},"input_order":{"required":["width","height","editor_state"],"optional":["background","bboxes","last_incoming"],"hidden":["prompt","extra_pnginfo"]},"is_input_list":false,"output":["IMAGE","BOUNDING_BOX","ARRAY"],"output_is_list":[false,false,false],"output_name":["preview","bboxes","elements"],"output_tooltips":[null,null,null],"output_matchtypes":null,"name":"CreateBoundingBoxes","display_name":"Create Bounding Boxes","description":"Draw bounding boxes in a canvas. Outputs Ideogram prompt elements, pixel-space bounding boxes, and a preview image.","python_module":"comfy_extras.nodes_bounding_boxes","category":"utilities","output_node":true,"deprecated":false,"experimental":true,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":null,"essentials_category":null,"has_intermediate_output":false},"CreateVideo":{"input":{"required":{"images":["IMAGE",{"tooltip":"The images to create a video from."}],"fps":["FLOAT",{"default":30.0,"min":1.0,"max":120.0,"step":1.0}]},"optional":{"audio":["AUDIO",{"tooltip":"The audio to add to the video."}],"bit_depth":["COMBO",{"tooltip":"Auto uses 8-bit for sRGB and 10-bit for HDR. Explicit 8-bit and 10-bit choices are independent of colorspace.","default":"auto","multiselect":false,"options":["auto",8,10]}],"color_space":["COMBO",{"tooltip":"Colorspace of the input images. HDR selects BT.2020/HLG and HDR PQ selects BT.2020/PQ.","default":"sRGB","multiselect":false,"options":["sRGB","HDR","HDR PQ"]}],"codec":["COMBO",{"tooltip":"Optionally encode the video immediately. None keeps the images in tensor form; Auto uses H.264.","advanced":true,"default":"none","multiselect":false,"options":["none","auto","h264","av1"]}]}},"input_order":{"required":["images","fps"],"optional":["audio","bit_depth","color_space","codec"]},"is_input_list":false,"output":["VIDEO"],"output_is_list":[false],"output_name":["VIDEO"],"output_tooltips":[null],"output_matchtypes":null,"name":"CreateVideo","display_name":"Create Video","description":"Create a video from images.","python_module":"comfy_extras.nodes_video","category":"video","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":["images to video"],"essentials_category":"Video Tools","has_intermediate_output":false},"CrossViewPrepareClip":{"input":{"required":{"video":["VIDEO"],"duration":["FLOAT",{"default":5.0,"min":0.2,"max":15.0,"step":0.1,"tooltip":"Seconds of the clip to use, from its start. Snapped to the nearest frame count H3 accepts (17k+5 at 24 fps) and capped at the clip."}],"aspect_ratio":[["source","16:9","9:16","1:1","4:3","3:4","21:9"],{"default":"source","tooltip":"Output shape. 'source' keeps the clip's own ratio; the others centre-crop to it."}],"megapixels":["FLOAT",{"default":0.5,"min":0.1,"max":4.0,"step":0.05}],"multiple":["INT",{"default":32,"min":8,"max":128,"step":8}]}},"input_order":{"required":["video","duration","aspect_ratio","megapixels","multiple"]},"is_input_list":false,"output":["IMAGE","INT","INT","INT","AUDIO"],"output_is_list":[false,false,false,false,false],"output_name":["frames","width","height","length","audio"],"name":"CrossViewPrepareClip","display_name":"CrossView Prepare Clip","description":"","python_module":"custom_nodes.ComfyUI-CrossViewWarp","category":"CrossView","output_node":false,"has_intermediate_output":false,"output_tooltips":["The frames both stages use, at 24 fps.","Frame width.","Frame height.","Frame count, on H3's 17k+5 grid.","The clip's own audio over exactly those frames, silence if it has none."],"search_aliases":[]},"CrossViewWarp":{"input":{"required":{"frames":["IMAGE",{"tooltip":"Input video frames. Feed the same frames you send to the depth node."}],"azimuth":["FLOAT",{"default":-30.0,"min":-180.0,"max":180.0,"step":1.0,"tooltip":"Horizontal orbit angle (deg). Negative orbits LEFT, positive RIGHT. The strongest control: +-45 is where the model has been checked, and the training set covers out to +-90 evenly. Past 90 the hidden side is invented."}],"elevation":["FLOAT",{"default":20.0,"min":-90.0,"max":90.0,"step":1.0,"tooltip":"Vertical orbit angle (deg). Positive rises above the subject, negative looks up from below. UP is the weak direction: only 3.1% of the training set sits below -20."}],"distance":["FLOAT",{"default":1.0,"min":0.1,"max":3.0,"step":0.05,"tooltip":"Camera distance (1.0 = same as the source). Below 1 moves closer, above 1 pulls back - and pulling back reveals area the source never framed, so the magenta holes grow. The current LoRA does not follow this reliably."}],"hfov":["FLOAT",{"default":50.0,"min":0.0,"max":120.0,"step":1.0,"tooltip":"Assumed horizontal field of view (deg). ~50 is a normal lens; change it if the clip is clearly wide-angle or telephoto. 0 takes it from moge_geometry, which runs about 10% short - set it yourself if you know the lens."}],"vertical_shift":["FLOAT",{"default":0.0,"min":-1.0,"max":1.0,"step":0.02,"tooltip":"Vertical lens shift, as a fraction of image height. Positive moves the picture DOWN, i.e. the framing up, which rescues a clipped head. The camera does not move, so parallax is unchanged. Leave at 0 unless the framing needs it."}],"depth_ratio":["FLOAT",{"default":6.0,"min":1.5,"max":1000.0,"step":0.5,"tooltip":"Max far/near depth ratio of the scene. Lower = flatter relief and a cleaner warp; higher = more parallax but messier on cluttered scenes. Close-up faces: 2.5-4; mid shots: 4-8; deep/wide scenes: 8-16."}],"smooth_depth":["BOOLEAN",{"default":false,"tooltip":"Edge-aware depth smoothing before warping. Turn ON if the warp has too many speckle holes; it trades a little sharpness for cleaner disocclusion."}],"invert_depth":["BOOLEAN",{"default":false,"tooltip":"Flip depth polarity (near<->far). Leave OFF for the standard DA-V2 node. Turn ON only if the warp looks inside-out - background moving like foreground, or the subject caving in."}]},"optional":{"roll_lock":["BOOLEAN",{"default":true,"tooltip":"Retired and ignored. It rolled the camera to hold the subject's projected lean, but the orbit introduces no roll to correct - a level source gives a level target at every angle - and what it was reacting to is keystone from elevation, which a roll cannot fix. Both training datasets have exactly 0 camera roll."}],"pivot_override":["BOOLEAN",{"default":true,"tooltip":"Orbit around the explicit pivot below instead of an auto- estimated one. ON by default, which is the recommended setup."}],"pivot_x":["FLOAT",{"default":0.0,"min":-1000.0,"max":1000.0,"step":0.01,"tooltip":"Pivot X in the source camera frame (+ = right), in depth units. 0 = image centre. The camera aims at the pivot, so moving this also reframes the shot - unless keep_source_aim is ON, where it only moves the orbit centre."}],"pivot_y":["FLOAT",{"default":0.0,"min":-1000.0,"max":1000.0,"step":0.01,"tooltip":"Pivot Y (+ = down), in depth units. 0 = image centre. Doubles as a reframe like pivot_x. Use vertical_shift to reframe without moving the camera."}],"pivot_z":["FLOAT",{"default":1.05,"min":0.01,"max":1000.0,"step":0.01,"tooltip":"Pivot depth. ~1.05 sits on the nearest subject in the middle of the frame; raise it to orbit something further back. The orbit radius is distance * |pivot|, so this widens the arc as well as moving its centre."}],"use_keyframes":["BOOLEAN",{"default":false,"tooltip":"Animate the camera along the keyframes path instead of holding one pose. Switched on for you when the first keyframe is placed."}],"frame_count":["INT",{"default":0,"min":0,"max":100000,"step":1,"tooltip":"Retired and ignored. The clip length comes from the cached preview."}],"keyframes":["STRING",{"default":"","multiline":false,"tooltip":"Camera path as JSON - normally written for you by the KEY button on the preview, or by right-clicking the orbit sphere. Each entry: 'f' is the frame number counted from 1, 'az'/'el' are degrees, 'dist' is the distance. Optional 'vs' (vertical shift) and 'px'/'py'/'pz' (the pivot) inherit the static widgets when left out; px/py/pz need pivot_override ON. Example: [{\"f\":1,\"az\":-30,\"el\":20,\"dist\":1.0},{\"f\":49,\"az\":45,\"el\":10,\"dist\":1.2}] . The pose is held before the first and after the last keyframe, so a path may cover only part of the clip. Empty = no move."}],"interp_motion":[["linear","ease_in","ease_out","ease_in_out","smooth"],{"default":"linear","tooltip":"Shape and timing of the camera path. linear = straight legs at constant speed. ease_in / ease_out / ease_in_out = the same legs with the camera settling into every keyframe. smooth = a Catmull-Rom spline gliding through them with no corner. Only used while use_keyframes is ON."}],"interpolation":[["linear","smooth"],{"default":"linear","tooltip":"Driven by interp_motion."}],"keep_source_aim":["BOOLEAN",{"default":false,"tooltip":"Which point the orbiting camera looks at. OFF: it looks at the pivot, so the pivot sits dead centre and moving it reframes the shot. ON: it looks where the SOURCE camera looked, so your original framing is kept and the pivot is only the orbit centre. Needs pivot_x or pivot_y off zero to do anything - on the optical axis both aims are the same point. ON is what the training data does and scores 28.9 against 42.3 measured on the training warps; OFF by default for compatibility, turn it ON for new work."}],"depth":["IMAGE",{"tooltip":"Depth map for the same frames, from a Depth Anything V2 node. Brightness = depth; polarity is handled by invert_depth. Leave unconnected if you are feeding moge_geometry instead."}],"moge_geometry":["MOGE_GEOMETRY",{"tooltip":"Metric geometry from Run MoGe Inference, used instead of the depth image. Depth then arrives in real metres, so depth_ratio, invert_depth and smooth_depth no longer apply, and pivot and distance become real distances. Measured against ground truth it roughly halves the warp error. hfov comes from its intrinsics when hfov is 0."}],"camera_info":["LOAD3D_CAMERA",{"tooltip":"Exact target camera, from Create Camera Info or a Load 3D viewport. When connected the pose comes from it, and the orbit controls - angles, distance, hfov, the pivot and the keyframe path - are all ignored."}],"preview_size":["INT",{"default":512,"min":128,"max":768,"step":32,"tooltip":"Longest side the clip is cached at for the live preview. The warp is scale-invariant, so this trades sharpness and memory for frame rate: about 1 MB per frame and 18 fps at 384, 1.8 MB and 11 fps at 512. Takes effect on the next run."}],"frame_index":["INT",{"default":1,"min":1,"max":100000,"step":1,"tooltip":"Playhead for the live preview, counted from 1. The scrub bar under the preview drives it; it does not affect the output and needs no re-run."}]},"hidden":{"unique_id":"UNIQUE_ID"}},"input_order":{"required":["frames","azimuth","elevation","distance","hfov","vertical_shift","depth_ratio","smooth_depth","invert_depth"],"optional":["roll_lock","pivot_override","pivot_x","pivot_y","pivot_z","use_keyframes","frame_count","keyframes","interp_motion","interpolation","keep_source_aim","depth","moge_geometry","camera_info","preview_size","frame_index"],"hidden":["unique_id"]},"is_input_list":false,"output":["IMAGE","IMAGE"],"output_is_list":[false,false],"output_name":["warp","orbit_view"],"name":"CrossViewWarp","display_name":"CrossView Warp","description":"","python_module":"custom_nodes.ComfyUI-CrossViewWarp","category":"CrossView","output_node":true,"has_intermediate_output":false,"output_tooltips":["The warp control video (magenta = disoccluded holes) -> connect to the IC-LoRA reference guide for the WARP stream.","Front view of the orbit globe with the camera marker at the requested az/el/dist - wire to a PreviewImage/SaveImage to document the camera setup."],"search_aliases":[]},"CustomCombo":{"input":{"required":{"choice":["COMBO",{"multiselect":false,"options":[]}]}},"input_order":{"required":["choice"]},"is_input_list":false,"output":["STRING","INT"],"output_is_list":[false,false],"output_name":["STRING","INDEX"],"output_tooltips":[null,null],"output_matchtypes":null,"name":"CustomCombo","display_name":"Custom Combo","description":"","python_module":"comfy_extras.nodes_logic","category":"utilities","output_node":false,"deprecated":false,"experimental":true,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":null,"essentials_category":null,"has_intermediate_output":false},"EmptyAudio":{"input":{"required":{"duration":["FLOAT",{"tooltip":"Duration of the empty audio clip in seconds","default":60.0,"min":0.0,"max":18446744073709551615,"step":0.01}],"sample_rate":["INT",{"tooltip":"Sample rate of the empty audio clip.","advanced":true,"default":44100,"min":1,"max":192000}],"channels":["INT",{"tooltip":"Number of audio channels (1 for mono, 2 for stereo).","advanced":true,"default":2,"min":1,"max":2}]}},"input_order":{"required":["duration","sample_rate","channels"]},"is_input_list":false,"output":["AUDIO"],"output_is_list":[false],"output_name":["AUDIO"],"output_tooltips":[null],"output_matchtypes":null,"name":"EmptyAudio","display_name":"Empty Audio","description":"","python_module":"comfy_extras.nodes_audio","category":"audio","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":["blank audio"],"essentials_category":null,"has_intermediate_output":false},"EmptyFlux2LatentImage":{"input":{"required":{"width":["INT",{"default":1024,"min":16,"max":16384,"step":16}],"height":["INT",{"default":1024,"min":16,"max":16384,"step":16}],"batch_size":["INT",{"default":1,"min":1,"max":4096}]}},"input_order":{"required":["width","height","batch_size"]},"is_input_list":false,"output":["LATENT"],"output_is_list":[false],"output_name":["LATENT"],"output_tooltips":[null],"output_matchtypes":null,"name":"EmptyFlux2LatentImage","display_name":"Empty Flux 2 Latent","description":"","python_module":"comfy_extras.nodes_flux","category":"model/latent/flux","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":null,"essentials_category":null,"has_intermediate_output":false},"EmptyImage":{"input":{"required":{"width":["INT",{"default":512,"min":1,"max":16384,"step":1}],"height":["INT",{"default":512,"min":1,"max":16384,"step":1}],"batch_size":["INT",{"default":1,"min":1,"max":4096}],"color":["INT",{"default":0,"min":0,"max":16777215,"step":1,"display":"color"}]}},"input_order":{"required":["width","height","batch_size","color"]},"is_input_list":false,"output":["IMAGE"],"output_is_list":[false],"output_name":["IMAGE"],"name":"EmptyImage","display_name":"Empty Image","description":"","python_module":"nodes","category":"image","output_node":false,"has_intermediate_output":false,"search_aliases":[]},"EmptyLTXVLatentVideo":{"input":{"required":{"width":["INT",{"default":768,"min":64,"max":16384,"step":32}],"height":["INT",{"default":512,"min":64,"max":16384,"step":32}],"length":["INT",{"default":97,"min":1,"max":16384,"step":8}],"batch_size":["INT",{"default":1,"min":1,"max":4096}]}},"input_order":{"required":["width","height","length","batch_size"]},"is_input_list":false,"output":["LATENT"],"output_is_list":[false],"output_name":["LATENT"],"output_tooltips":[null],"output_matchtypes":null,"name":"EmptyLTXVLatentVideo","display_name":"Empty LTXV Latent Video","description":"","python_module":"comfy_extras.nodes_lt","category":"model/latent/ltxv","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":null,"essentials_category":null,"has_intermediate_output":false},"EmptyLatentAudio":{"input":{"required":{"seconds":["FLOAT",{"default":47.6,"min":1.0,"max":1000.0,"step":0.1}],"batch_size":["INT",{"tooltip":"The number of latent images in the batch.","default":1,"min":1,"max":4096}]}},"input_order":{"required":["seconds","batch_size"]},"is_input_list":false,"output":["LATENT"],"output_is_list":[false],"output_name":["LATENT"],"output_tooltips":[null],"output_matchtypes":null,"name":"EmptyLatentAudio","display_name":"Empty Latent Audio","description":"","python_module":"comfy_extras.nodes_audio","category":"model/latent","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":null,"essentials_category":"Audio","has_intermediate_output":false},"EmptyLatentImage":{"input":{"required":{"width":["INT",{"default":1024,"min":16,"max":16384,"step":8,"tooltip":"The width of the latent images in pixels."}],"height":["INT",{"default":1024,"min":16,"max":16384,"step":8,"tooltip":"The height of the latent images in pixels."}],"batch_size":["INT",{"default":1,"min":1,"max":4096,"tooltip":"The number of latent images in the batch."}]}},"input_order":{"required":["width","height","batch_size"]},"is_input_list":false,"output":["LATENT"],"output_is_list":[false],"output_name":["LATENT"],"name":"EmptyLatentImage","display_name":"Empty Latent Image","description":"Create a new batch of empty latent images to be denoised via sampling.","python_module":"nodes","category":"model/latent","output_node":false,"has_intermediate_output":false,"output_tooltips":["The empty latent image batch."],"search_aliases":["empty","empty latent","new latent","create latent","blank latent","blank"]},"EmptyMiniMaxMusic3LatentAudio":{"input":{"required":{"seconds":["FLOAT",{"default":120.0,"min":0.04,"max":360.0,"step":0.04}],"batch_size":["INT",{"default":1,"min":1,"max":4096}]}},"input_order":{"required":["seconds","batch_size"]},"is_input_list":false,"output":["LATENT"],"output_is_list":[false],"output_name":["LATENT"],"output_tooltips":[null],"output_matchtypes":null,"name":"EmptyMiniMaxMusic3LatentAudio","display_name":"Empty MiniMax Music3 Latent Audio","description":"Creates an empty MiniMax Music3 audio latent for the requested duration.","python_module":"comfy_extras.nodes_minimax_music","category":"model/latent/minimax music","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":null,"essentials_category":null,"has_intermediate_output":false},"EmptySD3LatentImage":{"input":{"required":{"width":["INT",{"default":1024,"min":16,"max":16384,"step":16}],"height":["INT",{"default":1024,"min":16,"max":16384,"step":16}],"batch_size":["INT",{"default":1,"min":1,"max":4096}]}},"input_order":{"required":["width","height","batch_size"]},"is_input_list":false,"output":["LATENT"],"output_is_list":[false],"output_name":["LATENT"],"output_tooltips":[null],"output_matchtypes":null,"name":"EmptySD3LatentImage","display_name":null,"description":"","python_module":"comfy_extras.nodes_sd3","category":"model/latent/stable diffusion","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":null,"essentials_category":null,"has_intermediate_output":false},"Flux3LayoutPrompt":{"input":{"required":{"prompt":["STRING",{"tooltip":"The prompt text. Cite box N as <obj_N> to tie words to it.","multiline":true,"dynamicPrompts":true}],"element":["ARRAY",{"tooltip":"Prompt elements from the node Create Bounding Boxes. Colour palettes are not used, describe colours in the description."}]}},"input_order":{"required":["prompt","element"]},"is_input_list":false,"output":["STRING"],"output_is_list":[false],"output_name":["prompt"],"output_tooltips":[null],"output_matchtypes":null,"name":"Flux3LayoutPrompt","display_name":"FLUX 3 Image Layout Prompt","description":"Appends the boxes from Create Bounding Boxes to a FLUX 3 Image prompt as its layout table.","python_module":"comfy_extras.nodes_flux","category":"model/conditioning/flux","output_node":false,"deprecated":false,"experimental":true,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":null,"essentials_category":null,"has_intermediate_output":false},"FluxKontextImageScale":{"input":{"required":{"image":["IMAGE",{}]}},"input_order":{"required":["image"]},"is_input_list":false,"output":["IMAGE"],"output_is_list":[false],"output_name":["IMAGE"],"output_tooltips":[null],"output_matchtypes":null,"name":"FluxKontextImageScale","display_name":null,"description":"This node resizes the image to one that is more optimal for flux kontext.","python_module":"comfy_extras.nodes_flux","category":"model/conditioning/flux","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":null,"essentials_category":null,"has_intermediate_output":false},"FluxKontextMultiReferenceLatentMethod":{"input":{"required":{"conditioning":["CONDITIONING",{}],"reference_latents_method":["COMBO",{"advanced":true,"multiselect":false,"options":["offset","index","uxo/uno","index_timestep_zero"]}]}},"input_order":{"required":["conditioning","reference_latents_method"]},"is_input_list":false,"output":["CONDITIONING"],"output_is_list":[false],"output_name":["CONDITIONING"],"output_tooltips":[null],"output_matchtypes":null,"name":"FluxKontextMultiReferenceLatentMethod","display_name":"Edit Model Reference Method","description":"","python_module":"comfy_extras.nodes_flux","category":"model/conditioning/flux","output_node":false,"deprecated":false,"experimental":true,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":null,"essentials_category":null,"has_intermediate_output":false},"FrameInterpolate":{"input":{"required":{"interp_model":["INTERP_MODEL",{}],"images":["IMAGE",{}],"multiplier":["INT",{"default":2,"min":2,"max":16}]}},"input_order":{"required":["interp_model","images","multiplier"]},"is_input_list":false,"output":["IMAGE"],"output_is_list":[false],"output_name":["IMAGE"],"output_tooltips":[null],"output_matchtypes":null,"name":"FrameInterpolate","display_name":"Run Frame Interpolation Model","description":"","python_module":"comfy_extras.nodes_frame_interpolation","category":"video","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":["rife","film","frame interpolation","slow motion","interpolate frames","vfi"],"essentials_category":null,"has_intermediate_output":false},"FrameInterpolationModelLoader":{"input":{"required":{"model_name":["COMBO",{"tooltip":"Select a frame interpolation model to load. Models must be placed in the 'frame_interpolation' folder.","multiselect":false,"options":["Wan2_1_VAE_bf16.safetensors","ae.safetensors","birefnet.safetensors","clip_vision_h.safetensors","flux2-vae.safetensors","flux3-image-klein-base-int8-convrot.safetensors","flux3-image-klein-int8-convrot.safetensors","gemma-3-12b-it-abliterated_lora_rank64_bf16.safetensors","gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors","gemma4_e2b_it_int8_convrot.safetensors","gemma_3_12B_it_fp4_mixed.safetensors","ltx-2.3-22b-dev-fp8.safetensors","ltx-2.3-22b-distilled-fp8.safetensors","ltx-2.3-22b-ic-lora-union-control-ref0.5.safetensors","ltx-2.3-spatial-upscaler-x2-1.1.safetensors","ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors","ltx-2.5-22b-ic-lora-clean-plate-1.0.safetensors","ltx-2.5-22b-ic-lora-day-to-night-0.9.safetensors","ltx-2.5-22b-ic-lora-water-simulation-0.9.safetensors","ltx-2.5-audio-vae-bf16.safetensors","ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors","ltx-2.5-video-vae-bf16.safetensors","ltx2.3-transition.safetensors","ltx_2.3_22b_distilled_1.1_lora_dynamic_fro09_avg_rank_111_bf16.safetensors","minimax_music3_dav.safetensors","minimax_music3_dit_fp16.safetensors","minimax_music3_text_encoder_pruned_int8_convrot.safetensors","moge_2_vitl_normal_fp16.safetensors","qwen3.5_2b_bf16.safetensors","qwen3.5_9b_flux3_prompt_upsampler_w4a8.safetensors","qwen3vl_4b_int8_convrot.safetensors","qwen_3_4b_fp8_mixed.safetensors","sam3.1_multiplex_fp16.safetensors","seedvr2_3b_int8_convrot.safetensors","seedvr2_ema_vae_fp16.safetensors","stable_audio_3_medium.safetensors","t5gemma_b_b_ul2.safetensors","umt5_xxl_fp8_e4m3fn_scaled.safetensors","wan_animate_2_distill_int8_convrot.safetensors","z_image_turbo_int8_convrot.safetensors"]}]}},"input_order":{"required":["model_name"]},"is_input_list":false,"output":["INTERP_MODEL"],"output_is_list":[false],"output_name":["INTERP_MODEL"],"output_tooltips":[null],"output_matchtypes":null,"name":"FrameInterpolationModelLoader","display_name":"Load Frame Interpolation Model","description":"","python_module":"comfy_extras.nodes_frame_interpolation","category":"model/loaders","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":null,"essentials_category":null,"has_intermediate_output":false},"GemmaAPITextEncode":{"input":{"required":{"api_key":["STRING",{"default":"","placeholder":"API_KEY","multiline":false,"tooltip":"API key for authentication"}],"prompt":["STRING",{"multiline":true,"default":"","tooltip":"Text prompt to encode"}],"enhance_prompt":["BOOLEAN",{"default":true,"tooltip":"When enabled, the prompt is enhanced using Gemma 3 before encoding"}],"ckpt_name":[["Wan2_1_VAE_bf16.safetensors","ae.safetensors","birefnet.safetensors","clip_vision_h.safetensors","flux2-vae.safetensors","flux3-image-klein-base-int8-convrot.safetensors","flux3-image-klein-int8-convrot.safetensors","gemma-3-12b-it-abliterated_lora_rank64_bf16.safetensors","gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors","gemma4_e2b_it_int8_convrot.safetensors","gemma_3_12B_it_fp4_mixed.safetensors","ltx-2.3-22b-dev-fp8.safetensors","ltx-2.3-22b-distilled-fp8.safetensors","ltx-2.3-22b-ic-lora-union-control-ref0.5.safetensors","ltx-2.3-spatial-upscaler-x2-1.1.safetensors","ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors","ltx-2.5-22b-ic-lora-clean-plate-1.0.safetensors","ltx-2.5-22b-ic-lora-day-to-night-0.9.safetensors","ltx-2.5-22b-ic-lora-water-simulation-0.9.safetensors","ltx-2.5-audio-vae-bf16.safetensors","ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors","ltx-2.5-video-vae-bf16.safetensors","ltx2.3-transition.safetensors","ltx_2.3_22b_distilled_1.1_lora_dynamic_fro09_avg_rank_111_bf16.safetensors","minimax_music3_dav.safetensors","minimax_music3_dit_fp16.safetensors","minimax_music3_text_encoder_pruned_int8_convrot.safetensors","moge_2_vitl_normal_fp16.safetensors","qwen3.5_2b_bf16.safetensors","qwen3.5_9b_flux3_prompt_upsampler_w4a8.safetensors","qwen3vl_4b_int8_convrot.safetensors","qwen_3_4b_fp8_mixed.safetensors","sam3.1_multiplex_fp16.safetensors","seedvr2_3b_int8_convrot.safetensors","seedvr2_ema_vae_fp16.safetensors","stable_audio_3_medium.safetensors","t5gemma_b_b_ul2.safetensors","umt5_xxl_fp8_e4m3fn_scaled.safetensors","wan_animate_2_distill_int8_convrot.safetensors","z_image_turbo_int8_convrot.safetensors"],{"tooltip":"The model to read the API text-encoder selector from. Either a checkpoint or a diffusion model."}]}},"input_order":{"required":["api_key","prompt","enhance_prompt","ckpt_name"]},"is_input_list":false,"output":["CONDITIONING"],"output_is_list":[false],"output_name":["conditioning"],"name":"GemmaAPITextEncode","display_name":"\ud83c\udd5b\ud83c\udd63\ud83c\udd67 Gemma API Text Encode","description":"","python_module":"custom_nodes.ComfyUI-LTXVideo","category":"api node/text/Lightricks","output_node":false,"has_intermediate_output":false,"search_aliases":[]},"GetImageSize":{"input":{"required":{"image":["IMAGE",{}]},"hidden":{"unique_id":["UNIQUE_ID"]}},"input_order":{"required":["image"],"hidden":["unique_id"]},"is_input_list":false,"output":["INT","INT","INT"],"output_is_list":[false,false,false],"output_name":["width","height","batch_size"],"output_tooltips":[null,null,null],"output_matchtypes":null,"name":"GetImageSize","display_name":"Get Image Size","description":"Returns the width, height, and batch size of the image.","python_module":"comfy_extras.nodes_images","category":"image","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":["dimensions","resolution","image info"],"essentials_category":null,"has_intermediate_output":false},"GetVideoComponents":{"input":{"required":{"video":["VIDEO",{"tooltip":"The video to extract components from."}]}},"input_order":{"required":["video"]},"is_input_list":false,"output":["IMAGE","AUDIO","FLOAT","COMBO","COMBO"],"output_is_list":[false,false,false,false,false],"output_name":["images","audio","fps","bit_depth","color_space"],"output_tooltips":[null,null,null,null,null],"output_matchtypes":null,"name":"GetVideoComponents","display_name":"Get Video Components","description":"Extracts video frames, audio, frame rate, bit depth, and color space.","python_module":"comfy_extras.nodes_video","category":"video","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":["extract frames","split video","video to images","demux"],"essentials_category":null,"has_intermediate_output":false},"ImageCompare":{"input":{"required":{"compare_view":["IMAGECOMPARE",{"socketless":true}]},"optional":{"image_a":["IMAGE",{}],"image_b":["IMAGE",{}]},"hidden":{"prompt":["PROMPT"],"extra_pnginfo":["EXTRA_PNGINFO"]}},"input_order":{"required":["compare_view"],"optional":["image_a","image_b"],"hidden":["prompt","extra_pnginfo"]},"is_input_list":false,"output":[],"output_is_list":[],"output_name":[],"output_tooltips":[],"output_matchtypes":null,"name":"ImageCompare","display_name":"Compare Images","description":"Compares two images side by side with a slider.","python_module":"comfy_extras.nodes_image_compare","category":"image","output_node":true,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":null,"essentials_category":"Image Tools","has_intermediate_output":false},"ImageFromBatch":{"input":{"required":{"image":["IMAGE",{}],"batch_index":["INT",{"default":0,"min":-16384,"max":16384}],"length":["INT",{"default":1,"min":1,"max":4096}]}},"input_order":{"required":["image","batch_index","length"]},"is_input_list":false,"output":["IMAGE"],"output_is_list":[false],"output_name":["IMAGE"],"output_tooltips":[null],"output_matchtypes":null,"name":"ImageFromBatch","display_name":"Get Image from Batch","description":"","python_module":"comfy_extras.nodes_images","category":"image/batch","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":["select image","pick from batch","extract image"],"essentials_category":null,"has_intermediate_output":false},"ImageInvert":{"input":{"required":{"image":["IMAGE"]}},"input_order":{"required":["image"]},"is_input_list":false,"output":["IMAGE"],"output_is_list":[false],"output_name":["IMAGE"],"name":"ImageInvert","display_name":"Invert Image Colors","description":"","python_module":"nodes","category":"image/color","output_node":false,"has_intermediate_output":false,"search_aliases":["reverse colors"],"essentials_category":"Image Tools"},"ImageStitch":{"input":{"required":{"image1":["IMAGE",{}],"direction":["COMBO",{"default":"right","multiselect":false,"options":["right","down","left","up"]}],"match_image_size":["BOOLEAN",{"default":true}],"spacing_width":["INT",{"advanced":true,"default":0,"min":0,"max":1024,"step":2}],"spacing_color":["COMBO",{"advanced":true,"default":"white","multiselect":false,"options":["white","black","red","green","blue"]}]},"optional":{"image2":["IMAGE",{}]}},"input_order":{"required":["image1","direction","match_image_size","spacing_width","spacing_color"],"optional":["image2"]},"is_input_list":false,"output":["IMAGE"],"output_is_list":[false],"output_name":["IMAGE"],"output_tooltips":[null],"output_matchtypes":null,"name":"ImageStitch","display_name":"Stitch Images","description":"Stitches image2 to image1 in the specified direction.\nIf image2 is not provided, returns image1 unchanged.\nOptional spacing can be added between images.","python_module":"comfy_extras.nodes_images","category":"image/transform","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":["combine images","join images","concatenate images","side by side"],"essentials_category":null,"has_intermediate_output":false},"InvertMask":{"input":{"required":{"mask":["MASK",{}]}},"input_order":{"required":["mask"]},"is_input_list":false,"output":["MASK"],"output_is_list":[false],"output_name":["MASK"],"output_tooltips":[null],"output_matchtypes":null,"name":"InvertMask","display_name":"Invert Mask","description":"","python_module":"comfy_extras.nodes_mask","category":"image/mask","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":["reverse mask","flip mask"],"essentials_category":null,"has_intermediate_output":false},"JoinImageWithAlpha":{"input":{"required":{"image":["IMAGE",{}],"alpha":["MASK",{}]}},"input_order":{"required":["image","alpha"]},"is_input_list":false,"output":["IMAGE"],"output_is_list":[false],"output_name":["IMAGE"],"output_tooltips":[null],"output_matchtypes":null,"name":"JoinImageWithAlpha","display_name":"Join Image with Alpha","description":"","python_module":"comfy_extras.nodes_compositing","category":"image/compositing","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":["add transparency","apply alpha","composite alpha","RGBA"],"essentials_category":null,"has_intermediate_output":false},"JsonExtractString":{"input":{"required":{"json_string":["STRING",{"multiline":true}],"key":["STRING",{"multiline":false}]}},"input_order":{"required":["json_string","key"]},"is_input_list":false,"output":["STRING"],"output_is_list":[false],"output_name":["STRING"],"output_tooltips":[null],"output_matchtypes":null,"name":"JsonExtractString","display_name":"Extract Text from JSON","description":"Extract a key's value from the first valid JSON object in the text, including Markdown code blocks.","python_module":"comfy_extras.nodes_string","category":"text","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":["json","extract json","parse json","json value","read json"],"essentials_category":null,"has_intermediate_output":false},"KSampler":{"input":{"required":{"model":["MODEL",{"tooltip":"The model used for denoising the input latent."}],"seed":["INT",{"default":0,"min":0,"max":18446744073709551615,"control_after_generate":true,"tooltip":"The random seed used for creating the noise."}],"steps":["INT",{"default":20,"min":1,"max":10000,"tooltip":"The number of steps used in the denoising process."}],"cfg":["FLOAT",{"default":8.0,"min":0.0,"max":100.0,"step":0.1,"round":0.01,"tooltip":"The Classifier-Free Guidance scale balances creativity and adherence to the prompt. Higher values result in images more closely matching the prompt however too high values will negatively impact quality."}],"sampler_name":[["euler","euler_cfg_pp","euler_ancestral","euler_ancestral_cfg_pp","heun","heunpp2","exp_heun_2_x0","exp_heun_2_x0_sde","dpm_2","dpm_2_ancestral","lms","dpm_fast","dpm_adaptive","dpmpp_2s_ancestral","dpmpp_2s_ancestral_cfg_pp","dpmpp_sde","dpmpp_sde_gpu","dpmpp_2m","dpmpp_2m_cfg_pp","dpmpp_2m_sde","dpmpp_2m_sde_gpu","dpmpp_2m_sde_heun","dpmpp_2m_sde_heun_gpu","dpmpp_3m_sde","dpmpp_3m_sde_gpu","ddpm","lcm","ipndm","ipndm_v","deis","cfgpp_ud10_ab","res_multistep","res_multistep_cfg_pp","res_multistep_ancestral","res_multistep_ancestral_cfg_pp","gradient_estimation","gradient_estimation_cfg_pp","er_sde","seeds_2","seeds_3","sa_solver","sa_solver_pece","ddim","uni_pc","uni_pc_bh2"],{"tooltip":"The algorithm used when sampling, this can affect the quality, speed, and style of the generated output."}],"scheduler":[["simple","sgm_uniform","karras","exponential","ddim_uniform","beta","normal","linear_quadratic","kl_optimal"],{"tooltip":"The scheduler controls how noise is gradually removed to form the image."}],"positive":["CONDITIONING",{"tooltip":"The conditioning describing the attributes you want to include in the image."}],"negative":["CONDITIONING",{"tooltip":"The conditioning describing the attributes you want to exclude from the image."}],"latent_image":["LATENT",{"tooltip":"The latent image to denoise."}],"denoise":["FLOAT",{"default":1.0,"min":0.0,"max":1.0,"step":0.01,"tooltip":"The amount of denoising applied, lower values will maintain the structure of the initial image allowing for image to image sampling."}]}},"input_order":{"required":["model","seed","steps","cfg","sampler_name","scheduler","positive","negative","latent_image","denoise"]},"is_input_list":false,"output":["LATENT"],"output_is_list":[false],"output_name":["LATENT"],"name":"KSampler","display_name":"KSampler","description":"Uses the provided model, positive and negative conditioning to denoise the latent image.","python_module":"nodes","category":"model/sampling","output_node":false,"has_intermediate_output":false,"output_tooltips":["The denoised latent."],"search_aliases":["sampler","sample","generate","denoise","diffuse","txt2img","img2img"]},"KSamplerAdvanced":{"input":{"required":{"model":["MODEL"],"add_noise":[["enable","disable"],{"advanced":true}],"noise_seed":["INT",{"default":0,"min":0,"max":18446744073709551615,"control_after_generate":true}],"steps":["INT",{"default":20,"min":1,"max":10000}],"cfg":["FLOAT",{"default":8.0,"min":0.0,"max":100.0,"step":0.1,"round":0.01}],"sampler_name":[["euler","euler_cfg_pp","euler_ancestral","euler_ancestral_cfg_pp","heun","heunpp2","exp_heun_2_x0","exp_heun_2_x0_sde","dpm_2","dpm_2_ancestral","lms","dpm_fast","dpm_adaptive","dpmpp_2s_ancestral","dpmpp_2s_ancestral_cfg_pp","dpmpp_sde","dpmpp_sde_gpu","dpmpp_2m","dpmpp_2m_cfg_pp","dpmpp_2m_sde","dpmpp_2m_sde_gpu","dpmpp_2m_sde_heun","dpmpp_2m_sde_heun_gpu","dpmpp_3m_sde","dpmpp_3m_sde_gpu","ddpm","lcm","ipndm","ipndm_v","deis","cfgpp_ud10_ab","res_multistep","res_multistep_cfg_pp","res_multistep_ancestral","res_multistep_ancestral_cfg_pp","gradient_estimation","gradient_estimation_cfg_pp","er_sde","seeds_2","seeds_3","sa_solver","sa_solver_pece","ddim","uni_pc","uni_pc_bh2"]],"scheduler":[["simple","sgm_uniform","karras","exponential","ddim_uniform","beta","normal","linear_quadratic","kl_optimal"]],"positive":["CONDITIONING"],"negative":["CONDITIONING"],"latent_image":["LATENT"],"start_at_step":["INT",{"default":0,"min":0,"max":10000,"advanced":true}],"end_at_step":["INT",{"default":10000,"min":0,"max":10000,"advanced":true}],"return_with_leftover_noise":[["disable","enable"],{"advanced":true}]}},"input_order":{"required":["model","add_noise","noise_seed","steps","cfg","sampler_name","scheduler","positive","negative","latent_image","start_at_step","end_at_step","return_with_leftover_noise"]},"is_input_list":false,"output":["LATENT"],"output_is_list":[false],"output_name":["LATENT"],"name":"KSamplerAdvanced","display_name":"KSampler (Advanced)","description":"","python_module":"nodes","category":"model/sampling","output_node":false,"has_intermediate_output":false,"search_aliases":[]},"KSamplerSelect":{"input":{"required":{"sampler_name":["COMBO",{"multiselect":false,"options":["euler","euler_cfg_pp","euler_ancestral","euler_ancestral_cfg_pp","heun","heunpp2","exp_heun_2_x0","exp_heun_2_x0_sde","dpm_2","dpm_2_ancestral","lms","dpm_fast","dpm_adaptive","dpmpp_2s_ancestral","dpmpp_2s_ancestral_cfg_pp","dpmpp_sde","dpmpp_sde_gpu","dpmpp_2m","dpmpp_2m_cfg_pp","dpmpp_2m_sde","dpmpp_2m_sde_gpu","dpmpp_2m_sde_heun","dpmpp_2m_sde_heun_gpu","dpmpp_3m_sde","dpmpp_3m_sde_gpu","ddpm","lcm","ipndm","ipndm_v","deis","cfgpp_ud10_ab","res_multistep","res_multistep_cfg_pp","res_multistep_ancestral","res_multistep_ancestral_cfg_pp","gradient_estimation","gradient_estimation_cfg_pp","er_sde","seeds_2","seeds_3","sa_solver","sa_solver_pece","ddim","uni_pc","uni_pc_bh2"]}]}},"input_order":{"required":["sampler_name"]},"is_input_list":false,"output":["SAMPLER"],"output_is_list":[false],"output_name":["SAMPLER"],"output_tooltips":[null],"output_matchtypes":null,"name":"KSamplerSelect","display_name":null,"description":"","python_module":"comfy_extras.nodes_custom_sampler","category":"model/sampling/samplers","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":null,"essentials_category":null,"has_intermediate_output":false},"LTXAddVideoICLoRAGuide":{"input":{"required":{"positive":["CONDITIONING",{}],"negative":["CONDITIONING",{}],"vae":["VAE",{}],"latent":["LATENT",{"tooltip":"Video-only latent to condition. Must be a 5D video latent (batch, channels, frames, height, width)."}],"image":["IMAGE",{}],"frame_idx":["INT",{"tooltip":"RoPE position of the reference, in pixel frames.\n0 aligns the reference with the generated clip. Use for video references.\n>0 places the reference at a specific pixel-frame position in the clip.\n-1 places the reference outside the generated frame range, while still using it for attention conditioning. Use for single-image references.\nFor multi-frame references, >0 values are rounded down to 1 mod 8.","default":0,"min":-9999,"max":9999}],"strength":["FLOAT",{"default":1.0,"min":0.0,"max":1.0,"step":0.01}],"latent_downscale_factor":["FLOAT",{"tooltip":"For IC-LoRA on small grid. 1 means original size, 2 means half size, 3 means third, etc.","default":1.0,"min":1.0,"max":10.0,"step":1.0}],"crop":["COMBO",{"tooltip":"Crop mode when resizing. 'center' crops to fit, 'disabled' stretches to fit.","default":"disabled","multiselect":false,"options":["disabled","center"]}],"use_tiled_encode":["BOOLEAN",{"tooltip":"Enable tiled VAE encoding for large resolutions/long videos to reduce memory usage.","default":false}],"tile_size":["INT",{"tooltip":"Spatial tile size for tiled encoding. Only used when use_tiled_encode is enabled.","default":256,"min":64,"max":512,"step":32}],"tile_overlap":["INT",{"tooltip":"Overlap between tiles for tiled encoding. Only used when use_tiled_encode is enabled.","default":64,"min":16,"max":256,"step":16}]},"optional":{"use_streaming":["BOOLEAN",{"tooltip":"Off (default): encode the whole clip as one IC-LoRA guide. On: re-encode one fresh guide per LTXVTiledFusionSampler temporal window and write the plan the sampler reads. Set tile_frames on this node and the sampler to the same value (97 for LTX).","default":false}],"tile_frames":["INT",{"tooltip":"Window length in pixel frames, used only when use_streaming is on. Snapped to 8n+1. Must match LTXVTiledFusionSampler. Ignored when use_streaming is off.","default":97,"min":0,"max":1000,"step":1}]}},"input_order":{"required":["positive","negative","vae","latent","image","frame_idx","strength","latent_downscale_factor","crop","use_tiled_encode","tile_size","tile_overlap"],"optional":["use_streaming","tile_frames"]},"is_input_list":false,"output":["CONDITIONING","CONDITIONING","LATENT"],"output_is_list":[false,false,false],"output_name":["positive","negative","latent"],"output_tooltips":[null,null,null],"output_matchtypes":null,"name":"LTXAddVideoICLoRAGuide","display_name":"\ud83c\udd5b\ud83c\udd63\ud83c\udd67 Add Video IC-LoRA Guide","description":"Adds one or more conditioning frames starting at the specified frame index. Supports both single images and multi-frame videos. The latent_downscale_factor resizes input to a fraction of the target size (1 = original, 2 = half, 3 = third, etc.) for IC-LoRA on small grids. For LTXVTiledFusionSampler temporal windows, turn on use_streaming and set tile_frames to the same 8n+1 value as the sampler (97 for LTX).","python_module":"custom_nodes.ComfyUI-LTXVideo","category":"Lightricks/IC-LoRA","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":null,"essentials_category":null,"has_intermediate_output":false},"LTXICLoRALoaderModelOnly":{"input":{"required":{"model":["MODEL",{}],"lora_name":["COMBO",{"multiselect":false,"options":["Wan2_1_VAE_bf16.safetensors","ae.safetensors","birefnet.safetensors","clip_vision_h.safetensors","flux2-vae.safetensors","flux3-image-klein-base-int8-convrot.safetensors","flux3-image-klein-int8-convrot.safetensors","gemma-3-12b-it-abliterated_lora_rank64_bf16.safetensors","gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors","gemma4_e2b_it_int8_convrot.safetensors","gemma_3_12B_it_fp4_mixed.safetensors","ltx-2.3-22b-dev-fp8.safetensors","ltx-2.3-22b-distilled-fp8.safetensors","ltx-2.3-22b-ic-lora-union-control-ref0.5.safetensors","ltx-2.3-spatial-upscaler-x2-1.1.safetensors","ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors","ltx-2.5-22b-ic-lora-clean-plate-1.0.safetensors","ltx-2.5-22b-ic-lora-day-to-night-0.9.safetensors","ltx-2.5-22b-ic-lora-water-simulation-0.9.safetensors","ltx-2.5-audio-vae-bf16.safetensors","ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors","ltx-2.5-video-vae-bf16.safetensors","ltx2.3-transition.safetensors","ltx_2.3_22b_distilled_1.1_lora_dynamic_fro09_avg_rank_111_bf16.safetensors","minimax_music3_dav.safetensors","minimax_music3_dit_fp16.safetensors","minimax_music3_text_encoder_pruned_int8_convrot.safetensors","moge_2_vitl_normal_fp16.safetensors","qwen3.5_2b_bf16.safetensors","qwen3.5_9b_flux3_prompt_upsampler_w4a8.safetensors","qwen3vl_4b_int8_convrot.safetensors","qwen_3_4b_fp8_mixed.safetensors","sam3.1_multiplex_fp16.safetensors","seedvr2_3b_int8_convrot.safetensors","seedvr2_ema_vae_fp16.safetensors","stable_audio_3_medium.safetensors","t5gemma_b_b_ul2.safetensors","umt5_xxl_fp8_e4m3fn_scaled.safetensors","wan_animate_2_distill_int8_convrot.safetensors","z_image_turbo_int8_convrot.safetensors"]}],"strength_model":["FLOAT",{"default":1.0,"min":-100.0,"max":100.0,"step":0.01}]}},"input_order":{"required":["model","lora_name","strength_model"]},"is_input_list":false,"output":["MODEL","FLOAT"],"output_is_list":[false,false],"output_name":["model","latent_downscale_factor"],"output_tooltips":[null,null],"output_matchtypes":null,"name":"LTXICLoRALoaderModelOnly","display_name":"\ud83c\udd5b\ud83c\udd63\ud83c\udd67 IC-LoRA Loader Model Only","description":"Loads a LoRA model and extracts the latent_downscale_factor from the safetensors metadata.","python_module":"custom_nodes.ComfyUI-LTXVideo","category":"Lightricks/IC-LoRA","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":null,"essentials_category":null,"has_intermediate_output":false},"LTXVAddGuide":{"input":{"required":{"positive":["CONDITIONING",{}],"negative":["CONDITIONING",{}],"vae":["VAE",{}],"latent":["LATENT",{}],"image":["IMAGE",{"tooltip":"Image or video to condition the latent video on. Must be 8*n + 1 frames. If the video is not 8*n + 1 frames, it will be cropped to the nearest 8*n + 1 frames."}],"frame_idx":["INT",{"tooltip":"Frame index to start the conditioning at. For single-frame images or videos with 1-8 frames, any frame_idx value is acceptable. For videos with 9+ frames, frame_idx must be divisible by 8, otherwise it will be rounded down to the nearest multiple of 8. Negative values are counted from the end of the video.","default":0,"min":-9999,"max":9999}],"strength":["FLOAT",{"default":1.0,"min":0.0,"max":10.0,"step":0.01}]},"optional":{"attention_mask":["MASK",{"tooltip":"Optional pixel-space spatial mask. Controls per-region conditioning influence via self-attention, multiplied by strength."}],"iclora_parameters":["IC_LORA_PARAMETERS",{"tooltip":"Optional IC-LoRA parameters from a Get IC-LoRA Parameters node. Used for adjusting guide processing as required by certain IC-LoRAs (eg. those with a reference_downscale_factor > 1). When chained, each LTXVAddGuide uses only the parameters connected to it."}]}},"input_order":{"required":["positive","negative","vae","latent","image","frame_idx","strength"],"optional":["attention_mask","iclora_parameters"]},"is_input_list":false,"output":["CONDITIONING","CONDITIONING","LATENT"],"output_is_list":[false,false,false],"output_name":["positive","negative","latent"],"output_tooltips":[null,null,null],"output_matchtypes":null,"name":"LTXVAddGuide","display_name":null,"description":"","python_module":"comfy_extras.nodes_lt","category":"model/conditioning/ltxv","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":null,"essentials_category":null,"has_intermediate_output":false},"LTXVAudioVAEDecode":{"input":{"required":{"samples":["LATENT",{"tooltip":"The latent to be decoded."}],"audio_vae":["VAE",{"display_name":"Audio VAE","tooltip":"The Audio VAE model used for decoding the latent."}]}},"input_order":{"required":["samples","audio_vae"]},"is_input_list":false,"output":["AUDIO"],"output_is_list":[false],"output_name":["Audio"],"output_tooltips":[null],"output_matchtypes":null,"name":"LTXVAudioVAEDecode","display_name":"LTXV Audio VAE Decode","description":"","python_module":"comfy_extras.nodes_lt_audio","category":"model/latent/ltxv","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":null,"essentials_category":null,"has_intermediate_output":false},"LTXVAudioVAEEncode":{"input":{"required":{"audio":["AUDIO",{"tooltip":"The audio to be encoded."}],"audio_vae":["VAE",{"display_name":"Audio VAE","tooltip":"The Audio VAE model to use for encoding."}]}},"input_order":{"required":["audio","audio_vae"]},"is_input_list":false,"output":["LATENT"],"output_is_list":[false],"output_name":["Audio Latent"],"output_tooltips":[null],"output_matchtypes":null,"name":"LTXVAudioVAEEncode","display_name":"LTXV Audio VAE Encode","description":"","python_module":"comfy_extras.nodes_lt_audio","category":"model/latent/ltxv","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":null,"essentials_category":null,"has_intermediate_output":false},"LTXVConcatAVLatent":{"input":{"required":{"video_latent":["LATENT",{}],"audio_latent":["LATENT",{}]}},"input_order":{"required":["video_latent","audio_latent"]},"is_input_list":false,"output":["LATENT"],"output_is_list":[false],"output_name":["latent"],"output_tooltips":[null],"output_matchtypes":null,"name":"LTXVConcatAVLatent","display_name":"Concat AV Latent","description":"Merge a video latent and an audio latent into a joint AV latent (any AV model, e.g. LTXV or MiniMax H3).","python_module":"comfy_extras.nodes_lt","category":"model/latent/ltxv","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":null,"essentials_category":null,"has_intermediate_output":false},"LTXVConditioning":{"input":{"required":{"positive":["CONDITIONING",{}],"negative":["CONDITIONING",{}],"frame_rate":["FLOAT",{"default":25.0,"min":0.0,"max":1000.0,"step":0.01}]}},"input_order":{"required":["positive","negative","frame_rate"]},"is_input_list":false,"output":["CONDITIONING","CONDITIONING"],"output_is_list":[false,false],"output_name":["positive","negative"],"output_tooltips":[null,null],"output_matchtypes":null,"name":"LTXVConditioning","display_name":null,"description":"","python_module":"comfy_extras.nodes_lt","category":"model/conditioning/ltxv","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":null,"essentials_category":null,"has_intermediate_output":false},"LTXVCropGuides":{"input":{"required":{"positive":["CONDITIONING",{}],"negative":["CONDITIONING",{}],"latent":["LATENT",{}]}},"input_order":{"required":["positive","negative","latent"]},"is_input_list":false,"output":["CONDITIONING","CONDITIONING","LATENT"],"output_is_list":[false,false,false],"output_name":["positive","negative","latent"],"output_tooltips":[null,null,null],"output_matchtypes":null,"name":"LTXVCropGuides","display_name":null,"description":"","python_module":"comfy_extras.nodes_lt","category":"model/conditioning/ltxv","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":null,"essentials_category":null,"has_intermediate_output":false},"LTXVDualCFGGuider":{"input":{"required":{"model":["MODEL",{}],"positive":["CONDITIONING",{}],"negative":["CONDITIONING",{}],"video_cfg":["FLOAT",{"default":3.0,"min":0.0,"max":100.0,"step":0.1,"round":0.01}],"audio_cfg":["FLOAT",{"default":7.0,"min":0.0,"max":100.0,"step":0.1,"round":0.01}]}},"input_order":{"required":["model","positive","negative","video_cfg","audio_cfg"]},"is_input_list":false,"output":["GUIDER"],"output_is_list":[false],"output_name":["GUIDER"],"output_tooltips":[null],"output_matchtypes":null,"name":"LTXVDualCFGGuider","display_name":"LTXV Dual CFG Guider","description":"Separate CFG scales for the video and audio modalities of a packed LTXV-AV latent.","python_module":"comfy_extras.nodes_lt","category":"model/sampling/guiders","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":null,"essentials_category":null,"has_intermediate_output":false},"LTXVEmptyLatentAudio":{"input":{"required":{"frames_number":["INT",{"tooltip":"Number of frames.","default":97,"min":1,"max":1000,"step":1,"display":"number"}],"frame_rate":["FLOAT,INT",{"tooltip":"Number of frames per second.","default":25.0,"widgetType":"FLOAT","min":1.0,"max":1000.0,"step":0.01,"display":"number"}],"batch_size":["INT",{"tooltip":"The number of latent audio samples in the batch.","default":1,"min":1,"max":4096,"display":"number"}],"audio_vae":["VAE",{"display_name":"Audio VAE","tooltip":"The Audio VAE model to get configuration from."}]}},"input_order":{"required":["frames_number","frame_rate","batch_size","audio_vae"]},"is_input_list":false,"output":["LATENT"],"output_is_list":[false],"output_name":["Latent"],"output_tooltips":[null],"output_matchtypes":null,"name":"LTXVEmptyLatentAudio","display_name":"Empty LTXV Latent Audio","description":"","python_module":"comfy_extras.nodes_lt_audio","category":"model/latent/ltxv","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":null,"essentials_category":null,"has_intermediate_output":false},"LTXVImgToVideoInplace":{"input":{"required":{"vae":["VAE",{}],"image":["IMAGE",{}],"latent":["LATENT",{}],"strength":["FLOAT",{"default":1.0,"min":0.0,"max":1.0}],"bypass":["BOOLEAN",{"tooltip":"Bypass the conditioning.","default":false}]}},"input_order":{"required":["vae","image","latent","strength","bypass"]},"is_input_list":false,"output":["LATENT"],"output_is_list":[false],"output_name":["latent"],"output_tooltips":[null],"output_matchtypes":null,"name":"LTXVImgToVideoInplace","display_name":null,"description":"","python_module":"comfy_extras.nodes_lt","category":"model/conditioning/ltxv","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":null,"essentials_category":null,"has_intermediate_output":false},"LTXVLatentUpsampler":{"input":{"required":{"samples":["LATENT",{}],"upscale_model":["LATENT_UPSCALE_MODEL",{}],"vae":["VAE",{}]}},"input_order":{"required":["samples","upscale_model","vae"]},"is_input_list":false,"output":["LATENT"],"output_is_list":[false],"output_name":["LATENT"],"output_tooltips":[null],"output_matchtypes":null,"name":"LTXVLatentUpsampler","display_name":null,"description":"","python_module":"comfy_extras.nodes_lt_upsampler","category":"model/latent/ltxv","output_node":false,"deprecated":false,"experimental":true,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":null,"essentials_category":null,"has_intermediate_output":false},"LTXVPreprocess":{"input":{"required":{"image":["IMAGE",{}],"img_compression":["INT",{"tooltip":"Amount of compression to apply on image.","default":35,"min":0,"max":100}]}},"input_order":{"required":["image","img_compression"]},"is_input_list":false,"output":["IMAGE"],"output_is_list":[false],"output_name":["output_image"],"output_tooltips":[null],"output_matchtypes":null,"name":"LTXVPreprocess","display_name":"LTXV Preprocess","description":"","python_module":"comfy_extras.nodes_lt","category":"video/preprocessors","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":null,"essentials_category":null,"has_intermediate_output":false},"LTXVSeparateAVLatent":{"input":{"required":{"av_latent":["LATENT",{}]}},"input_order":{"required":["av_latent"]},"is_input_list":false,"output":["LATENT","LATENT"],"output_is_list":[false,false],"output_name":["video_latent","audio_latent"],"output_tooltips":[null,null],"output_matchtypes":null,"name":"LTXVSeparateAVLatent","display_name":"Separate AV Latent","description":"Split a joint AV latent into its video and audio latents (any AV model, e.g. LTXV or MiniMax H3).","python_module":"comfy_extras.nodes_lt","category":"model/latent/ltxv","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":null,"essentials_category":null,"has_intermediate_output":false},"LTXVSetAudioRefTokens":{"input":{"required":{"positive":["CONDITIONING",{"tooltip":"Positive conditioning to attach the reference audio tokens to."}],"negative":["CONDITIONING",{"tooltip":"Negative conditioning to attach the reference audio tokens to."}],"audio_latent":["LATENT",{"tooltip":"Encoded audio latent from LTXV Audio VAE Encode."}]}},"input_order":{"required":["positive","negative","audio_latent"]},"is_input_list":false,"output":["CONDITIONING","CONDITIONING","LATENT"],"output_is_list":[false,false,false],"output_name":["positive","negative","frozen_audio"],"output_tooltips":["Positive conditioning with reference audio tokens attached.","Negative conditioning with reference audio tokens attached.","Audio latent with noise_mask=0, fully frozen during denoising."],"output_matchtypes":null,"name":"LTXVSetAudioRefTokens","display_name":"\ud83c\udd5b\ud83c\udd63\ud83c\udd67 Set Audio Ref Tokens","description":"Provides speaker identity context for audio generation by attaching reference audio tokens to the conditioning. The tokens are prepended with negative temporal positions so the model treats them as context rather than generation targets.","python_module":"custom_nodes.ComfyUI-LTXVideo","category":"Lightricks/IC-LoRA","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":null,"essentials_category":null,"has_intermediate_output":false},"LatentUpscaleModelLoader":{"input":{"required":{"model_name":["COMBO",{"multiselect":false,"options":["Wan2_1_VAE_bf16.safetensors","ae.safetensors","birefnet.safetensors","clip_vision_h.safetensors","flux2-vae.safetensors","flux3-image-klein-base-int8-convrot.safetensors","flux3-image-klein-int8-convrot.safetensors","gemma-3-12b-it-abliterated_lora_rank64_bf16.safetensors","gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors","gemma4_e2b_it_int8_convrot.safetensors","gemma_3_12B_it_fp4_mixed.safetensors","ltx-2.3-22b-dev-fp8.safetensors","ltx-2.3-22b-distilled-fp8.safetensors","ltx-2.3-22b-ic-lora-union-control-ref0.5.safetensors","ltx-2.3-spatial-upscaler-x2-1.1.safetensors","ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors","ltx-2.5-22b-ic-lora-clean-plate-1.0.safetensors","ltx-2.5-22b-ic-lora-day-to-night-0.9.safetensors","ltx-2.5-22b-ic-lora-water-simulation-0.9.safetensors","ltx-2.5-audio-vae-bf16.safetensors","ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors","ltx-2.5-video-vae-bf16.safetensors","ltx2.3-transition.safetensors","ltx_2.3_22b_distilled_1.1_lora_dynamic_fro09_avg_rank_111_bf16.safetensors","minimax_music3_dav.safetensors","minimax_music3_dit_fp16.safetensors","minimax_music3_text_encoder_pruned_int8_convrot.safetensors","moge_2_vitl_normal_fp16.safetensors","qwen3.5_2b_bf16.safetensors","qwen3.5_9b_flux3_prompt_upsampler_w4a8.safetensors","qwen3vl_4b_int8_convrot.safetensors","qwen_3_4b_fp8_mixed.safetensors","sam3.1_multiplex_fp16.safetensors","seedvr2_3b_int8_convrot.safetensors","seedvr2_ema_vae_fp16.safetensors","stable_audio_3_medium.safetensors","t5gemma_b_b_ul2.safetensors","umt5_xxl_fp8_e4m3fn_scaled.safetensors","wan_animate_2_distill_int8_convrot.safetensors","z_image_turbo_int8_convrot.safetensors"]}]}},"input_order":{"required":["model_name"]},"is_input_list":false,"output":["LATENT_UPSCALE_MODEL"],"output_is_list":[false],"output_name":["LATENT_UPSCALE_MODEL"],"output_tooltips":[null],"output_matchtypes":null,"name":"LatentUpscaleModelLoader","display_name":"Load Latent Upscale Model","description":"","python_module":"comfy_extras.nodes_hunyuan","category":"model/loaders","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":null,"essentials_category":null,"has_intermediate_output":false},"LoadAudio":{"input":{"required":{"audio":["COMBO",{"multiselect":false,"options":["clip.mp4","drive_doll_street_dance.mp4","grainy_perfume_shot_crf32.mp4","ltx_23_audio.mp3","stone_ruins.mp4"],"audio_upload":true}]}},"input_order":{"required":["audio"]},"is_input_list":false,"output":["AUDIO"],"output_is_list":[false],"output_name":["AUDIO"],"output_tooltips":[null],"output_matchtypes":null,"name":"LoadAudio","display_name":"Load Audio","description":"","python_module":"comfy_extras.nodes_audio","category":"audio","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":["import audio","open audio","audio file"],"essentials_category":"Audio","has_intermediate_output":false},"LoadBackgroundRemovalModel":{"input":{"required":{"bg_removal_name":["COMBO",{"tooltip":"The model used to remove backgrounds from images","multiselect":false,"options":["Wan2_1_VAE_bf16.safetensors","ae.safetensors","birefnet.safetensors","clip_vision_h.safetensors","flux2-vae.safetensors","flux3-image-klein-base-int8-convrot.safetensors","flux3-image-klein-int8-convrot.safetensors","gemma-3-12b-it-abliterated_lora_rank64_bf16.safetensors","gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors","gemma4_e2b_it_int8_convrot.safetensors","gemma_3_12B_it_fp4_mixed.safetensors","ltx-2.3-22b-dev-fp8.safetensors","ltx-2.3-22b-distilled-fp8.safetensors","ltx-2.3-22b-ic-lora-union-control-ref0.5.safetensors","ltx-2.3-spatial-upscaler-x2-1.1.safetensors","ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors","ltx-2.5-22b-ic-lora-clean-plate-1.0.safetensors","ltx-2.5-22b-ic-lora-day-to-night-0.9.safetensors","ltx-2.5-22b-ic-lora-water-simulation-0.9.safetensors","ltx-2.5-audio-vae-bf16.safetensors","ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors","ltx-2.5-video-vae-bf16.safetensors","ltx2.3-transition.safetensors","ltx_2.3_22b_distilled_1.1_lora_dynamic_fro09_avg_rank_111_bf16.safetensors","minimax_music3_dav.safetensors","minimax_music3_dit_fp16.safetensors","minimax_music3_text_encoder_pruned_int8_convrot.safetensors","moge_2_vitl_normal_fp16.safetensors","qwen3.5_2b_bf16.safetensors","qwen3.5_9b_flux3_prompt_upsampler_w4a8.safetensors","qwen3vl_4b_int8_convrot.safetensors","qwen_3_4b_fp8_mixed.safetensors","sam3.1_multiplex_fp16.safetensors","seedvr2_3b_int8_convrot.safetensors","seedvr2_ema_vae_fp16.safetensors","stable_audio_3_medium.safetensors","t5gemma_b_b_ul2.safetensors","umt5_xxl_fp8_e4m3fn_scaled.safetensors","wan_animate_2_distill_int8_convrot.safetensors","z_image_turbo_int8_convrot.safetensors"]}]}},"input_order":{"required":["bg_removal_name"]},"is_input_list":false,"output":["BACKGROUND_REMOVAL"],"output_is_list":[false],"output_name":["bg_model"],"output_tooltips":[null],"output_matchtypes":null,"name":"LoadBackgroundRemovalModel","display_name":"Load Background Removal Model","description":"","python_module":"comfy_extras.nodes_bg_removal","category":"model/loaders","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":null,"essentials_category":null,"has_intermediate_output":false},"LoadImage":{"input":{"required":{"image":[["cactus_man.png","example.png","fashion_portrait_blue_silk_gown_vis.png","lab_smoke-invert-chain_smoke_00005_.png","ltx23_flf2v_first_frame.png","ltx23_flf2v_last_frame.png","neon_cyborg_portrait.png","neon_guitarist.png","portrait.png","ref_doll_realistic.png","robot_hand.png","robot_hand_energy.png","server_out.png","smoke_00005_.png","the_forgotten_gate.png","the_lily_veil.png","watch_macro_shot.png","woman_gold_earring_teal_top_portrait.png"],{"image_upload":true}]}},"input_order":{"required":["image"]},"is_input_list":false,"output":["IMAGE","MASK"],"output_is_list":[false,false],"output_name":["IMAGE","MASK"],"name":"LoadImage","display_name":"Load Image","description":"","python_module":"nodes","category":"image","output_node":false,"has_intermediate_output":false,"search_aliases":["load image","open image","import image","image input","upload image","read image","image loader"],"essentials_category":"Basics"},"LoadMoGeModel":{"input":{"required":{"model_name":["COMBO",{"multiselect":false,"options":["Wan2_1_VAE_bf16.safetensors","ae.safetensors","birefnet.safetensors","clip_vision_h.safetensors","flux2-vae.safetensors","flux3-image-klein-base-int8-convrot.safetensors","flux3-image-klein-int8-convrot.safetensors","gemma-3-12b-it-abliterated_lora_rank64_bf16.safetensors","gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors","gemma4_e2b_it_int8_convrot.safetensors","gemma_3_12B_it_fp4_mixed.safetensors","ltx-2.3-22b-dev-fp8.safetensors","ltx-2.3-22b-distilled-fp8.safetensors","ltx-2.3-22b-ic-lora-union-control-ref0.5.safetensors","ltx-2.3-spatial-upscaler-x2-1.1.safetensors","ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors","ltx-2.5-22b-ic-lora-clean-plate-1.0.safetensors","ltx-2.5-22b-ic-lora-day-to-night-0.9.safetensors","ltx-2.5-22b-ic-lora-water-simulation-0.9.safetensors","ltx-2.5-audio-vae-bf16.safetensors","ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors","ltx-2.5-video-vae-bf16.safetensors","ltx2.3-transition.safetensors","ltx_2.3_22b_distilled_1.1_lora_dynamic_fro09_avg_rank_111_bf16.safetensors","minimax_music3_dav.safetensors","minimax_music3_dit_fp16.safetensors","minimax_music3_text_encoder_pruned_int8_convrot.safetensors","moge_2_vitl_normal_fp16.safetensors","qwen3.5_2b_bf16.safetensors","qwen3.5_9b_flux3_prompt_upsampler_w4a8.safetensors","qwen3vl_4b_int8_convrot.safetensors","qwen_3_4b_fp8_mixed.safetensors","sam3.1_multiplex_fp16.safetensors","seedvr2_3b_int8_convrot.safetensors","seedvr2_ema_vae_fp16.safetensors","stable_audio_3_medium.safetensors","t5gemma_b_b_ul2.safetensors","umt5_xxl_fp8_e4m3fn_scaled.safetensors","wan_animate_2_distill_int8_convrot.safetensors","z_image_turbo_int8_convrot.safetensors"]}]}},"input_order":{"required":["model_name"]},"is_input_list":false,"output":["MOGE_MODEL"],"output_is_list":[false],"output_name":["MOGE_MODEL"],"output_tooltips":[null],"output_matchtypes":null,"name":"LoadMoGeModel","display_name":"Load MoGe Model","description":"","python_module":"comfy_extras.nodes_moge","category":"model/loaders","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":null,"essentials_category":null,"has_intermediate_output":false},"LoadVideo":{"input":{"required":{"file":["COMBO",{"multiselect":false,"options":["clip.mp4","drive_doll_street_dance.mp4","grainy_perfume_shot_crf32.mp4","stone_ruins.mp4"],"video_upload":true}]}},"input_order":{"required":["file"]},"is_input_list":false,"output":["VIDEO"],"output_is_list":[false],"output_name":["VIDEO"],"output_tooltips":[null],"output_matchtypes":null,"name":"LoadVideo","display_name":"Load Video","description":"","python_module":"comfy_extras.nodes_video","category":"video","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":["import video","open video","video file"],"essentials_category":"Basics","has_intermediate_output":true},"LoraLoaderModelOnly":{"input":{"required":{"model":["MODEL"],"lora_name":[["Wan2_1_VAE_bf16.safetensors","ae.safetensors","birefnet.safetensors","clip_vision_h.safetensors","flux2-vae.safetensors","flux3-image-klein-base-int8-convrot.safetensors","flux3-image-klein-int8-convrot.safetensors","gemma-3-12b-it-abliterated_lora_rank64_bf16.safetensors","gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors","gemma4_e2b_it_int8_convrot.safetensors","gemma_3_12B_it_fp4_mixed.safetensors","ltx-2.3-22b-dev-fp8.safetensors","ltx-2.3-22b-distilled-fp8.safetensors","ltx-2.3-22b-ic-lora-union-control-ref0.5.safetensors","ltx-2.3-spatial-upscaler-x2-1.1.safetensors","ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors","ltx-2.5-22b-ic-lora-clean-plate-1.0.safetensors","ltx-2.5-22b-ic-lora-day-to-night-0.9.safetensors","ltx-2.5-22b-ic-lora-water-simulation-0.9.safetensors","ltx-2.5-audio-vae-bf16.safetensors","ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors","ltx-2.5-video-vae-bf16.safetensors","ltx2.3-transition.safetensors","ltx_2.3_22b_distilled_1.1_lora_dynamic_fro09_avg_rank_111_bf16.safetensors","minimax_music3_dav.safetensors","minimax_music3_dit_fp16.safetensors","minimax_music3_text_encoder_pruned_int8_convrot.safetensors","moge_2_vitl_normal_fp16.safetensors","qwen3.5_2b_bf16.safetensors","qwen3.5_9b_flux3_prompt_upsampler_w4a8.safetensors","qwen3vl_4b_int8_convrot.safetensors","qwen_3_4b_fp8_mixed.safetensors","sam3.1_multiplex_fp16.safetensors","seedvr2_3b_int8_convrot.safetensors","seedvr2_ema_vae_fp16.safetensors","stable_audio_3_medium.safetensors","t5gemma_b_b_ul2.safetensors","umt5_xxl_fp8_e4m3fn_scaled.safetensors","wan_animate_2_distill_int8_convrot.safetensors","z_image_turbo_int8_convrot.safetensors"]],"strength_model":["FLOAT",{"default":1.0,"min":-100.0,"max":100.0,"step":0.01}]}},"input_order":{"required":["model","lora_name","strength_model"]},"is_input_list":false,"output":["MODEL"],"output_is_list":[false],"output_name":["MODEL"],"name":"LoraLoaderModelOnly","display_name":"Load LoRA","description":"This LoRAs loader is used to modify the diffusion model, altering the way in which latents are denoised such as applying styles. Multiple LoRA nodes can be linked together.","python_module":"nodes","category":"model/loaders","output_node":false,"has_intermediate_output":false,"output_tooltips":["The modified diffusion model.","The modified CLIP model."],"search_aliases":["lora","load lora","apply lora","lora loader","lora model"],"essentials_category":"Image Generation"},"ManualSigmas":{"input":{"required":{"sigmas":["STRING",{"default":"1, 0.5","multiline":false}]}},"input_order":{"required":["sigmas"]},"is_input_list":false,"output":["SIGMAS"],"output_is_list":[false],"output_name":["SIGMAS"],"output_tooltips":[null],"output_matchtypes":null,"name":"ManualSigmas","display_name":null,"description":"","python_module":"comfy_extras.nodes_custom_sampler","category":"model/sampling/sigmas","output_node":false,"deprecated":false,"experimental":true,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":["custom noise schedule","define sigmas"],"essentials_category":null,"has_intermediate_output":false},"MaskPreview":{"input":{"required":{"mask":["MASK",{}]},"hidden":{"prompt":["PROMPT"],"extra_pnginfo":["EXTRA_PNGINFO"]}},"input_order":{"required":["mask"],"hidden":["prompt","extra_pnginfo"]},"is_input_list":false,"output":["MASK"],"output_is_list":[false],"output_name":["mask"],"output_tooltips":[null],"output_matchtypes":null,"name":"MaskPreview","display_name":"Preview Mask","description":"Preview the masks without saving them to the ComfyUI output directory.","python_module":"comfy_extras.nodes_mask","category":"image/mask","output_node":true,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":["preview","preview mask","show mask","view mask","inspect mask","debug mask"],"essentials_category":null,"has_intermediate_output":false},"MiniMaxH3AddGuide":{"input":{"required":{"positive":["CONDITIONING",{}],"latent":["LATENT",{}],"frame_idx":["INT",{"tooltip":"Frame index to anchor the image or the clip's first frame at. Negative values are counted from the end of the video.","default":0,"min":-9999,"max":9999}]},"optional":{"vae":["VAE",{"tooltip":"Video VAE, needed when an image is connected."}],"audio_vae":["VAE",{"tooltip":"Audio VAE, needed when an audio is connected."}],"image":["IMAGE",{"tooltip":"Image or video frames to anchor. Multi-frame batches are anchored as a clip and cropped down to the model's valid clip lengths: 5, 22, 39... (17k + 5) frames. Batches shorter than 5 frames use only the first image."}],"audio":["AUDIO",{"tooltip":"Soundtrack to anchor starting at the same frame index, cropped to the video's remaining duration."}]}},"input_order":{"required":["positive","latent","frame_idx"],"optional":["vae","audio_vae","image","audio"]},"is_input_list":false,"output":["CONDITIONING"],"output_is_list":[false],"output_name":["positive"],"output_tooltips":[null],"output_matchtypes":null,"name":"MiniMaxH3AddGuide","display_name":"Add Guide for MiniMax H3","description":"Anchor an image, a short clip, audio, or a clip with its soundtrack at any frame of a MiniMax H3 video. Chain several nodes to anchor several frames.","python_module":"comfy_extras.nodes_minimax_h3","category":"model/conditioning/minimax","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":null,"essentials_category":null,"has_intermediate_output":false},"MiniMaxH3ReferenceToVideo":{"input":{"required":{"clip":["CLIP",{}],"prompt":["STRING",{"multiline":true,"dynamicPrompts":true}],"width":["INT",{"default":1344,"min":32,"max":16384,"step":32}],"height":["INT",{"default":768,"min":32,"max":16384,"step":32}],"length":["INT",{"tooltip":"Frame count at 24 fps, (124 = ~5s, trained range is ~124-362)","default":124,"min":5,"max":3600,"step":17}],"ref_image_size":["COMBO",{"tooltip":"Reference image sizing. 'match' scales each ref (down only, keeping aspect) to the generation's pixel area; 'max' uses the reference pipeline's 2048px short edge for best identity fidelity. Reference tokens ride through every sampling step, so 'max' can be several times slower.","default":"match","multiselect":false,"options":["match","max"]}]},"optional":{"vae":["VAE",{"tooltip":"Video VAE. Without it reference images/videos only condition the text encoder."}],"audio_vae":["VAE",{"tooltip":"Audio VAE. Without it reference audio only conditions the text encoder."}],"ref_images":["COMFY_AUTOGROW_V3",{"template":{"input":{"required":{"ref_image":["IMAGE",{"tooltip":"Reference image (downscaled to 2048 short edge if larger, never upscaled)"}]}},"prefix":"ref_image_","min":0,"max":9}}],"ref_videos":["COMFY_AUTOGROW_V3",{"template":{"input":{"required":{"ref_video":["IMAGE",{"tooltip":"Reference video frames at 24 fps (2-15s)"}]}},"prefix":"ref_video_","min":0,"max":3}}],"ref_video_audios":["COMFY_AUTOGROW_V3",{"template":{"input":{"required":{"ref_video_audio":["AUDIO",{"tooltip":"Soundtrack of the same-numbered reference video"}]}},"prefix":"ref_video_audio_","min":0,"max":3}}],"ref_audios":["COMFY_AUTOGROW_V3",{"template":{"input":{"required":{"ref_audio":["AUDIO",{"tooltip":"Standalone reference audio"}]}},"prefix":"ref_audio_","min":0,"max":3}}]}},"input_order":{"required":["clip","prompt","width","height","length","ref_image_size"],"optional":["vae","audio_vae","ref_images","ref_videos","ref_video_audios","ref_audios"]},"is_input_list":false,"output":["CONDITIONING","LATENT"],"output_is_list":[false,false],"output_name":["positive","LATENT"],"output_tooltips":[null,null],"output_matchtypes":null,"name":"MiniMaxH3ReferenceToVideo","display_name":"MiniMax H3 Reference to Video","description":"<Picture i> / <Video k> / <Audio j> reference conditioning for MiniMax H3. Use the same tags when prompting.","python_module":"comfy_extras.nodes_minimax_h3","category":"model/conditioning/minimax","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":null,"essentials_category":null,"has_intermediate_output":false},"MiniMaxH3SigmaShift":{"input":{"required":{"model":["MODEL",{}],"shift_video":["FLOAT",{"default":12.0,"min":0.01,"max":100.0,"step":0.01}],"shift_audio":["FLOAT",{"default":3.0,"min":0.01,"max":100.0,"step":0.01}]}},"input_order":{"required":["model","shift_video","shift_audio"]},"is_input_list":false,"output":["MODEL"],"output_is_list":[false],"output_name":["MODEL"],"output_tooltips":[null],"output_matchtypes":null,"name":"MiniMaxH3SigmaShift","display_name":"ModelSamplingMiniMaxH3","description":"Set the video/audio flow shifts.","python_module":"comfy_extras.nodes_minimax_h3","category":"model/patch/minimax","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":["sigma shift","minimax shift"],"essentials_category":null,"has_intermediate_output":false},"MiniMaxMusic3TextEncode":{"input":{"required":{"clip":["CLIP",{}],"caption":["STRING",{"multiline":true,"dynamicPrompts":true}],"lyrics":["STRING",{"multiline":true,"dynamicPrompts":true}],"seed":["INT",{"default":0,"min":0,"max":18446744073709551615,"control_after_generate":true}],"max_duration":["FLOAT",{"tooltip":"Maximum duration in seconds; the model can end the song earlier.","default":120.0,"min":0.04,"max":360.0,"step":0.04}],"cfg_scale":["FLOAT",{"advanced":true,"default":1.5,"min":0.0,"max":100.0,"step":0.1,"round":0.01}],"top_k":["INT",{"advanced":true,"default":50,"min":1,"max":16384}]}},"input_order":{"required":["clip","caption","lyrics","seed","max_duration","cfg_scale","top_k"]},"is_input_list":false,"output":["CONDITIONING","FLOAT"],"output_is_list":[false,false],"output_name":["CONDITIONING","seconds"],"output_tooltips":[null,null],"output_matchtypes":null,"name":"MiniMaxMusic3TextEncode","display_name":"MiniMax Music3 Text Encode","description":"Uses a MiniMax Music3 CLIP model to generate the acoustic conditioning sequence.","python_module":"comfy_extras.nodes_minimax_music","category":"model/conditioning/minimax music","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":null,"essentials_category":null,"has_intermediate_output":false},"MoGeInference":{"input":{"required":{"moge_model":["MOGE_MODEL",{}],"image":["IMAGE",{}],"resolution_level":["INT",{"tooltip":"0 = fastest, 9 = most detail.","default":9,"min":0,"max":9}],"fov_x_degrees":["FLOAT",{"tooltip":"Horizontal field of view of the source camera. Sets the focal length used to unproject the depth map into 3D. 0 = auto-recover from the predicted points.","advanced":true,"default":0.0,"min":0.0,"max":170.0,"step":0.1}],"batch_size":["INT",{"tooltip":"Images per inference call. Lower if you OOM on a long video / image set.","default":4,"min":1,"max":64}],"force_projection":["BOOLEAN",{"advanced":true,"default":true}],"apply_mask":["BOOLEAN",{"tooltip":"Set masked-out (sky / invalid) pixels to inf in points and depth so meshing culls them. Disable to keep the raw predicted geometry everywhere; the mask is still returned separately.","advanced":true,"default":true}],"refine_steps":["INT",{"tooltip":"MoGe-3 only: sparse volumetric refinement passes over the predicted depth. More passes sharpen fine detail and edges at a roughly linear cost. 0 disables refinement. Ignored by MoGe-1 / MoGe-2.","advanced":true,"default":3,"min":0,"max":8}]}},"input_order":{"required":["moge_model","image","resolution_level","fov_x_degrees","batch_size","force_projection","apply_mask","refine_steps"]},"is_input_list":false,"output":["MOGE_GEOMETRY"],"output_is_list":[false],"output_name":["moge_geometry"],"output_tooltips":[null],"output_matchtypes":null,"name":"MoGeInference","display_name":"Run MoGe Inference","description":"Run MoGe on a single image to estimate depth and geometry.","python_module":"comfy_extras.nodes_moge","category":"image/geometry estimation","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":["moge","depth","geometry","depth estimation","geometry estimation"],"essentials_category":null,"has_intermediate_output":false},"ModelAttentionBackend":{"input":{"required":{"model":["MODEL",{"tooltip":"The model to patch."}],"attention":["COMBO",{"display_name":"backend","tooltip":"The dense attention backend. Comfy Kitchen attention uses quantized INT8 attention and is available only on Nvidia and AMD GPUs.","default":"pytorch attention","multiselect":false,"options":["pytorch attention"]}]}},"input_order":{"required":["model","attention"]},"is_input_list":false,"output":["MODEL"],"output_is_list":[false],"output_name":["model"],"output_tooltips":["The model with the selected attention backend."],"output_matchtypes":null,"name":"ModelAttentionBackend","display_name":"Model Attention Backend","description":"Selects the dense attention implementation for the model. When used with Block Sparse Attention, this backend is used whenever sparse attention is inactive or unsupported.","python_module":"comfy_extras.nodes_model_advanced","category":"model/patch","output_node":false,"deprecated":false,"experimental":true,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":["comfy kitchen","attention","pytorch","kitchen attention"],"essentials_category":null,"has_intermediate_output":false},"ModelSamplingAuraFlow":{"input":{"required":{"model":["MODEL"],"shift":["FLOAT",{"default":1.73,"min":0.0,"max":100.0,"step":0.01}]},"optional":{"sampling":[["flow","img_to_img_velocity"],{"default":"flow","advanced":true}]}},"input_order":{"required":["model","shift"],"optional":["sampling"]},"is_input_list":false,"output":["MODEL"],"output_is_list":[false],"output_name":["MODEL"],"name":"ModelSamplingAuraFlow","display_name":"ModelSamplingAuraFlow","description":"","python_module":"comfy_extras.nodes_model_advanced","category":"model/patch","output_node":false,"has_intermediate_output":false,"search_aliases":[]},"ModelSamplingFlux":{"input":{"required":{"model":["MODEL"],"max_shift":["FLOAT",{"default":1.15,"min":0.0,"max":100.0,"step":0.01,"advanced":true}],"base_shift":["FLOAT",{"default":0.5,"min":0.0,"max":100.0,"step":0.01,"advanced":true}],"width":["INT",{"default":1024,"min":16,"max":16384,"step":8}],"height":["INT",{"default":1024,"min":16,"max":16384,"step":8}]}},"input_order":{"required":["model","max_shift","base_shift","width","height"]},"is_input_list":false,"output":["MODEL"],"output_is_list":[false],"output_name":["MODEL"],"name":"ModelSamplingFlux","display_name":"ModelSamplingFlux","description":"","python_module":"comfy_extras.nodes_model_advanced","category":"model/patch/flux","output_node":false,"has_intermediate_output":false,"search_aliases":[]},"ModelSamplingSD3":{"input":{"required":{"model":["MODEL"],"shift":["FLOAT",{"default":3.0,"min":0.0,"max":100.0,"step":0.01}]}},"input_order":{"required":["model","shift"]},"is_input_list":false,"output":["MODEL"],"output_is_list":[false],"output_name":["MODEL"],"name":"ModelSamplingSD3","display_name":"ModelSamplingSD3","description":"","python_module":"comfy_extras.nodes_model_advanced","category":"model/patch/stable diffusion","output_node":false,"has_intermediate_output":false,"search_aliases":[]},"PreviewAny":{"input":{"required":{"source":["*",{}]}},"input_order":{"required":["source"]},"is_input_list":false,"output":["STRING"],"output_is_list":[false],"output_name":["STRING"],"name":"PreviewAny","display_name":"Preview as Text","description":"Preview any input value as text.","python_module":"comfy_extras.nodes_preview_any","category":"utilities","output_node":true,"has_intermediate_output":false,"search_aliases":["preview","preview text","show output","inspect","debug","print value","show text"]},"PreviewImage":{"input":{"required":{"images":["IMAGE"]},"hidden":{"prompt":"PROMPT","extra_pnginfo":"EXTRA_PNGINFO"}},"input_order":{"required":["images"],"hidden":["prompt","extra_pnginfo"]},"is_input_list":false,"output":["IMAGE"],"output_is_list":[false],"output_name":["images"],"name":"PreviewImage","display_name":"Preview Image","description":"Preview the images without saving them to the ComfyUI output directory.","python_module":"nodes","category":"image","output_node":true,"has_intermediate_output":false,"search_aliases":["preview","preview image","show image","view image","display image","image viewer"],"essentials_category":"Basics"},"PrimitiveBoolean":{"input":{"required":{"value":["BOOLEAN",{}]}},"input_order":{"required":["value"]},"is_input_list":false,"output":["BOOLEAN"],"output_is_list":[false],"output_name":["BOOLEAN"],"output_tooltips":[null],"output_matchtypes":null,"name":"PrimitiveBoolean","display_name":"Boolean","description":"","python_module":"comfy_extras.nodes_primitive","category":"utilities/primitive","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":null,"essentials_category":null,"has_intermediate_output":false},"PrimitiveFloat":{"input":{"required":{"value":["FLOAT",{"min":-9223372036854775807,"max":9223372036854775807,"step":0.1}]}},"input_order":{"required":["value"]},"is_input_list":false,"output":["FLOAT"],"output_is_list":[false],"output_name":["FLOAT"],"output_tooltips":[null],"output_matchtypes":null,"name":"PrimitiveFloat","display_name":"Float","description":"","python_module":"comfy_extras.nodes_primitive","category":"utilities/primitive","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":null,"essentials_category":null,"has_intermediate_output":false},"PrimitiveInt":{"input":{"required":{"value":["INT",{"min":-9223372036854775807,"max":9223372036854775807,"control_after_generate":"fixed"}]}},"input_order":{"required":["value"]},"is_input_list":false,"output":["INT"],"output_is_list":[false],"output_name":["INT"],"output_tooltips":[null],"output_matchtypes":null,"name":"PrimitiveInt","display_name":"Int","description":"","python_module":"comfy_extras.nodes_primitive","category":"utilities/primitive","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":null,"essentials_category":null,"has_intermediate_output":false},"PrimitiveStringMultiline":{"input":{"required":{"value":["STRING",{"multiline":true}]}},"input_order":{"required":["value"]},"is_input_list":false,"output":["STRING"],"output_is_list":[false],"output_name":["STRING"],"output_tooltips":[null],"output_matchtypes":null,"name":"PrimitiveStringMultiline","display_name":"Text (Multiline)","description":"","python_module":"comfy_extras.nodes_primitive","category":"utilities/primitive","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":["text","string","text box","prompt"],"essentials_category":"Basics","has_intermediate_output":false},"RandomNoise":{"input":{"required":{"noise_seed":["INT",{"default":0,"min":0,"max":18446744073709551615,"control_after_generate":true}]}},"input_order":{"required":["noise_seed"]},"is_input_list":false,"output":["NOISE"],"output_is_list":[false],"output_name":["NOISE"],"output_tooltips":[null],"output_matchtypes":null,"name":"RandomNoise","display_name":null,"description":"","python_module":"comfy_extras.nodes_custom_sampler","category":"model/sampling/noise","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":null,"essentials_category":null,"has_intermediate_output":false},"ReferenceMultiLatent":{"input":{"required":{"positive":["CONDITIONING",{}],"resolution":["COMFY_DYNAMICCOMBO_V3",{"options":[{"key":"keep resolution","inputs":{"required":{}}},{"key":"resize","inputs":{"required":{"megapixels":["FLOAT",{"tooltip":"Target size of each reference image, preserving aspect ratio. 1.0 is about 1024 x 1024 pixels.","default":1.0,"min":0.01,"max":16.0,"step":0.01}]}}}]}]},"optional":{"negative":["CONDITIONING",{}],"vae":["VAE",{"tooltip":"Reference images are ignored when no VAE is connected."}],"images":["COMFY_AUTOGROW_V3",{"template":{"input":{"required":{},"optional":{"image":["IMAGE",{}]}},"prefix":"image","min":1,"max":100}}]}},"input_order":{"required":["positive","resolution"],"optional":["negative","vae","images"]},"is_input_list":false,"output":["CONDITIONING","CONDITIONING","LATENT"],"output_is_list":[false,false,false],"output_name":["positive","negative","empty_latent"],"output_tooltips":[null,"Returns the positive output when negative conditioning is not connected.","First reference latent multiplied by 0.0, or a square empty latent at the selected resolution."],"output_matchtypes":null,"name":"ReferenceMultiLatent","display_name":"Set Reference Multi Latent","description":"Encodes reference images and appends their latents to positive and optional negative conditioning for edit models.","python_module":"comfy_extras.nodes_edit_model","category":"model/conditioning","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":null,"essentials_category":null,"has_intermediate_output":false},"RemoveBackground":{"input":{"required":{"bg_removal_model":["BACKGROUND_REMOVAL",{"tooltip":"Background removal model used to generate the mask"}],"image":["IMAGE",{"tooltip":"Input image to remove the background from"}]}},"input_order":{"required":["bg_removal_model","image"]},"is_input_list":false,"output":["MASK"],"output_is_list":[false],"output_name":["mask"],"output_tooltips":["Generated foreground mask"],"output_matchtypes":null,"name":"RemoveBackground","display_name":"Remove Background","description":"Generates a foreground mask to remove the background from an image using a background removal model.","python_module":"comfy_extras.nodes_bg_removal","category":"image/background removal","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":null,"essentials_category":null,"has_intermediate_output":false},"ResizeImageMaskNode":{"input":{"required":{"input":["COMFY_MATCHTYPE_V3",{"template":{"template_id":"input_type","allowed_types":"IMAGE,MASK"}}],"resize_type":["COMFY_DYNAMICCOMBO_V3",{"tooltip":"Select how to resize: by exact dimensions, scale factor, matching another image, etc.","options":[{"key":"scale dimensions","inputs":{"required":{"width":["INT",{"tooltip":"Target width in pixels. Set to 0 to auto-calculate from height while preserving aspect ratio.","default":512,"min":0,"max":16384,"step":1}],"height":["INT",{"tooltip":"Target height in pixels. Set to 0 to auto-calculate from width while preserving aspect ratio.","default":512,"min":0,"max":16384,"step":1}],"crop":["COMBO",{"tooltip":"How to handle aspect ratio mismatch: 'disabled' stretches to fit, 'center' crops to maintain aspect ratio.","default":"center","multiselect":false,"options":["disabled","center"]}]}}},{"key":"scale by multiplier","inputs":{"required":{"multiplier":["FLOAT",{"tooltip":"Scale factor (e.g., 2.0 doubles size, 0.5 halves size).","default":1.0,"min":0.01,"max":8.0,"step":0.01}]}}},{"key":"scale longer dimension","inputs":{"required":{"longer_size":["INT",{"tooltip":"The longer edge will be resized to this value. Aspect ratio is preserved.","default":512,"min":0,"max":16384,"step":1}]}}},{"key":"scale shorter dimension","inputs":{"required":{"shorter_size":["INT",{"tooltip":"The shorter edge will be resized to this value. Aspect ratio is preserved.","default":512,"min":0,"max":16384,"step":1}]}}},{"key":"scale width","inputs":{"required":{"width":["INT",{"tooltip":"Target width in pixels. Height auto-adjusts to preserve aspect ratio.","default":512,"min":0,"max":16384,"step":1}]}}},{"key":"scale height","inputs":{"required":{"height":["INT",{"tooltip":"Target height in pixels. Width auto-adjusts to preserve aspect ratio.","default":512,"min":0,"max":16384,"step":1}]}}},{"key":"scale total pixels","inputs":{"required":{"megapixels":["FLOAT",{"tooltip":"Target total megapixels (e.g., 1.0 \u2248 1024\u00d71024). Aspect ratio is preserved.","default":1.0,"min":0.01,"max":16.0,"step":0.01}]}}},{"key":"match size","inputs":{"required":{"match":["IMAGE,MASK",{"tooltip":"Resize input to match the dimensions of this reference image or mask."}],"crop":["COMBO",{"tooltip":"How to handle aspect ratio mismatch: 'disabled' stretches to fit, 'center' crops to maintain aspect ratio.","default":"center","multiselect":false,"options":["disabled","center"]}]}}},{"key":"scale to multiple","inputs":{"required":{"multiple":["INT",{"tooltip":"Resize so width and height are divisible by this number. Useful for latent alignment (e.g., 8 or 64).","default":8,"min":1,"max":16384,"step":1}]}}}]}],"scale_method":["COMBO",{"tooltip":"Interpolation algorithm. 'area' is best for downscaling, 'lanczos' for upscaling, 'nearest-exact' for pixel art.","default":"area","multiselect":false,"options":["nearest-exact","bilinear","area","bicubic","lanczos"]}]}},"input_order":{"required":["input","resize_type","scale_method"]},"is_input_list":false,"output":["COMFY_MATCHTYPE_V3"],"output_is_list":[false],"output_name":["resized"],"output_tooltips":[null],"output_matchtypes":["input_type"],"name":"ResizeImageMaskNode","display_name":"Resize Image/Mask","description":"Resize an image or mask using various scaling methods.","python_module":"comfy_extras.nodes_post_processing","category":"image/transform","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":["resize","resize image","resize mask","scale","scale image","scale mask","image resize","change size","dimensions","shrink","enlarge"],"essentials_category":null,"has_intermediate_output":false},"ResolutionSelector":{"input":{"required":{"aspect_ratio":["COMBO",{"tooltip":"The aspect ratio for the output dimensions.","default":"1:1 (Square)","multiselect":false,"options":["1:1 (Square)","2:3 (Portrait Photo)","3:2 (Photo)","3:4 (Portrait Standard)","4:3 (Standard)","9:16 (Portrait Widescreen)","16:9 (Widescreen)","21:9 (Ultrawide)"]}],"megapixels":["FLOAT",{"tooltip":"Target total megapixels. 1.0 MP \u2248 1024x1024 for square.","default":1.0,"min":0.1,"max":16.0,"step":0.1}],"multiple":["INT",{"tooltip":"Nearest multiple of the result to set the selected resolution to.","advanced":true,"default":8,"min":8,"max":128,"step":4}]},"optional":{"preview":["RESOLUTION_PREVIEW",{"tooltip":"Live preview of the calculated output resolution.","socketless":true,"ratio_widget":"aspect_ratio","megapixels_widget":"megapixels","multiple_widget":"multiple"}]}},"input_order":{"required":["aspect_ratio","megapixels","multiple"],"optional":["preview"]},"is_input_list":false,"output":["INT","INT"],"output_is_list":[false,false],"output_name":["width","height"],"output_tooltips":["Calculated width in pixels multiplied by the selected multiple.","Calculated height in pixels multiplied by the selected multiple."],"output_matchtypes":null,"name":"ResolutionSelector","display_name":"Resolution Selector","description":"Calculate width and height from aspect ratio and megapixel target. Useful for setting up Empty Latent Image dimensions.","python_module":"comfy_extras.nodes_resolution","category":"utilities","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":null,"essentials_category":null,"has_intermediate_output":false},"SAM3_VideoTrack":{"input":{"required":{"images":["IMAGE",{"display_name":"images","tooltip":"Video frames as batched images"}],"model":["MODEL",{"display_name":"model"}],"detection_threshold":["FLOAT",{"display_name":"detection_threshold","tooltip":"Score threshold for text-prompted detection.","default":0.5,"min":0.0,"max":1.0,"step":0.01}],"max_objects":["INT",{"display_name":"max_objects","tooltip":"Max tracked objects. Initial masks count toward this limit. 0 uses the internal cap of 64.","default":4,"min":0,"max":64}],"detect_interval":["INT",{"display_name":"detect_interval","tooltip":"Run detection every N frames (1=every frame). Higher values save compute.","default":1,"min":1}]},"optional":{"initial_mask":["MASK",{"display_name":"initial_mask","tooltip":"Mask(s) for the first frame to track (one per object)"}],"conditioning":["CONDITIONING",{"display_name":"conditioning","tooltip":"Text conditioning for detecting new objects during tracking"}]}},"input_order":{"required":["images","model","detection_threshold","max_objects","detect_interval"],"optional":["initial_mask","conditioning"]},"is_input_list":false,"output":["SAM3_TRACK_DATA"],"output_is_list":[false],"output_name":["track_data"],"output_tooltips":[null],"output_matchtypes":null,"name":"SAM3_VideoTrack","display_name":"Run SAM3 Video Track","description":"","python_module":"comfy_extras.nodes_sam3","category":"image/detection","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":["sam3","video","track","propagate"],"essentials_category":null,"has_intermediate_output":false},"SCAIL2ColoredMask":{"input":{"required":{"driving_track_data":["SAM3_TRACK_DATA",{"tooltip":"SAM3 track of the driving pose video. Will be rendered into the pose_video_mask output."}],"object_indices":["STRING",{"tooltip":"Comma-separated list of person indices to include (e.g. '0,2,3'). Applied to both reference and pose video masks. Empty = all.","default":"","multiline":false}],"sort_by":["COMBO",{"tooltip":"Order in which palette colors are assigned to the tracked objects (applied to both reference and pose video so each identity keeps the same color). Objects that appear in earlier frames always come first; within a frame, left_to_right = leftmost object (by centroid at first appearance) gets the first color, area = biggest object (by mask area at first appearance) gets the first color; none = keep SAM3's order.","default":"left_to_right","multiselect":false,"options":["none","left_to_right","area"]}],"replacement_mode":["BOOLEAN",{"tooltip":"False = Animation Mode (pose_video_mask has black background, reference_image_mask has white background). True = Replacement Mode (pose_video_mask has white background, reference_image_mask has black background).","default":false}]},"optional":{"ref_track_data":["SAM3_TRACK_DATA,MASK",{"display_name":"reference_masks","tooltip":"SAM3 track of the reference image(s) (one identity per object, colored in batch order), or a plain MASK of the reference subject (rendered as a single identity)."}]}},"input_order":{"required":["driving_track_data","object_indices","sort_by","replacement_mode"],"optional":["ref_track_data"]},"is_input_list":false,"output":["IMAGE","IMAGE"],"output_is_list":[false,false],"output_name":["pose_video_mask","reference_image_mask"],"output_tooltips":[null,null],"output_matchtypes":null,"name":"SCAIL2ColoredMask","display_name":"Create SCAIL-2 Colored Mask","description":"","python_module":"comfy_extras.nodes_scail","category":"model/conditioning/wan/scail","output_node":false,"deprecated":false,"experimental":true,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":null,"essentials_category":null,"has_intermediate_output":false},"SamplerCustom":{"input":{"required":{"model":["MODEL",{}],"add_noise":["BOOLEAN",{"advanced":true,"default":true}],"noise_seed":["INT",{"default":0,"min":0,"max":18446744073709551615,"control_after_generate":true}],"cfg":["FLOAT",{"default":8.0,"min":0.0,"max":100.0,"step":0.1,"round":0.01}],"positive":["CONDITIONING",{}],"negative":["CONDITIONING",{}],"sampler":["SAMPLER",{}],"sigmas":["SIGMAS",{}],"latent_image":["LATENT",{}]}},"input_order":{"required":["model","add_noise","noise_seed","cfg","positive","negative","sampler","sigmas","latent_image"]},"is_input_list":false,"output":["LATENT","LATENT"],"output_is_list":[false,false],"output_name":["output","denoised_output"],"output_tooltips":[null,null],"output_matchtypes":null,"name":"SamplerCustom","display_name":null,"description":"","python_module":"comfy_extras.nodes_custom_sampler","category":"model/sampling/custom","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":null,"essentials_category":null,"has_intermediate_output":false},"SamplerCustomAdvanced":{"input":{"required":{"noise":["NOISE",{}],"guider":["GUIDER",{}],"sampler":["SAMPLER",{}],"sigmas":["SIGMAS",{}],"latent_image":["LATENT",{}]}},"input_order":{"required":["noise","guider","sampler","sigmas","latent_image"]},"is_input_list":false,"output":["LATENT","LATENT"],"output_is_list":[false,false],"output_name":["output","denoised_output"],"output_tooltips":[null,null],"output_matchtypes":null,"name":"SamplerCustomAdvanced","display_name":null,"description":"","python_module":"comfy_extras.nodes_custom_sampler","category":"model/sampling/custom","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":null,"essentials_category":null,"has_intermediate_output":false},"SamplerEulerAncestral":{"input":{"required":{"eta":["FLOAT",{"advanced":true,"default":1.0,"min":0.0,"max":100.0,"step":0.01,"round":false}],"s_noise":["FLOAT",{"advanced":true,"default":1.0,"min":0.0,"max":100.0,"step":0.01,"round":false}]}},"input_order":{"required":["eta","s_noise"]},"is_input_list":false,"output":["SAMPLER"],"output_is_list":[false],"output_name":["SAMPLER"],"output_tooltips":[null],"output_matchtypes":null,"name":"SamplerEulerAncestral","display_name":null,"description":"","python_module":"comfy_extras.nodes_custom_sampler","category":"model/sampling/samplers","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":null,"essentials_category":null,"has_intermediate_output":false},"SaveAudioAdvanced":{"input":{"required":{"audio":["AUDIO",{"tooltip":"The audio to save."}],"filename_prefix":["STRING",{"tooltip":"The prefix for the file to save. May include formatting tokens such as %date:yyyy-MM-dd%.","default":"audio/ComfyUI","multiline":false}],"format":["COMFY_DYNAMICCOMBO_V3",{"tooltip":"The file format in which to save the audio.","options":[{"key":"flac","inputs":{"required":{}}},{"key":"mp3","inputs":{"required":{"quality":["COMBO",{"default":"V0","multiselect":false,"options":["V0","128k","320k"]}]}}},{"key":"opus","inputs":{"required":{"quality":["COMBO",{"default":"128k","multiselect":false,"options":["64k","96k","128k","192k","320k"]}]}}}]}]},"hidden":{"prompt":["PROMPT"],"extra_pnginfo":["EXTRA_PNGINFO"]}},"input_order":{"required":["audio","filename_prefix","format"],"hidden":["prompt","extra_pnginfo"]},"is_input_list":false,"output":["AUDIO"],"output_is_list":[false],"output_name":["audio"],"output_tooltips":[null],"output_matchtypes":null,"name":"SaveAudioAdvanced","display_name":"Save Audio (Advanced)","description":"Saves the input audio to your ComfyUI output directory.","python_module":"comfy_extras.nodes_audio","category":"audio","output_node":true,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":["save audio","export audio","output audio","write audio","flac","mp3","opus"],"essentials_category":null,"has_intermediate_output":false},"SaveImage":{"input":{"required":{"images":["IMAGE",{"tooltip":"The images to save."}],"filename_prefix":["STRING",{"default":"ComfyUI","tooltip":"The prefix for the file to save. This may include formatting information such as %date:yyyy-MM-dd% or %Empty Latent Image.width% to include values from nodes."}]},"hidden":{"prompt":"PROMPT","extra_pnginfo":"EXTRA_PNGINFO"}},"input_order":{"required":["images","filename_prefix"],"hidden":["prompt","extra_pnginfo"]},"is_input_list":false,"output":["IMAGE"],"output_is_list":[false],"output_name":["images"],"name":"SaveImage","display_name":"Save Image","description":"Saves the input images to your ComfyUI output directory.","python_module":"nodes","category":"image","output_node":true,"has_intermediate_output":false,"search_aliases":["save","save image","export image","output image","write image","download"],"essentials_category":"Basics"},"SaveVideo":{"input":{"required":{"video":["VIDEO",{"tooltip":"The video to save."}],"filename_prefix":["STRING",{"tooltip":"The prefix for the file to save. This may include formatting information such as %date:yyyy-MM-dd% or %Empty Latent Image.width% to include values from nodes.","default":"video/ComfyUI","multiline":false}],"format":["COMFY_DYNAMICCOMBO_V3",{"tooltip":"The output container. Auto uses MP4 for Auto/H.264 and WebM for AV1. MP4, MKV, and WebM select a specific container.","options":[{"key":"auto","inputs":{"required":{"codec":["COMFY_DYNAMICCOMBO_V3",{"tooltip":"The output video codec. Auto preserves a compatible source stream. H.264 and AV1 re-encoding support SDR, HDR (HLG), and HDR PQ.","options":[{"key":"auto","inputs":{"required":{}}},{"key":"h264","inputs":{"required":{},"optional":{"encoding":["COMFY_DYNAMICCOMBO_V3",{"display_name":"encoding mode","tooltip":"Automatic preserves compatible H.264 streams. Re-encode applies custom encoding options.","options":[{"key":"auto","inputs":{"required":{}}},{"key":"re-encode","inputs":{"required":{"crf":["FLOAT",{"tooltip":"Lower values produce higher quality and larger files.","default":18.0,"min":0.0,"max":51.0,"step":1.0}]}}}]}]}}},{"key":"av1","inputs":{"required":{},"optional":{"encoding":["COMFY_DYNAMICCOMBO_V3",{"display_name":"encoding mode","tooltip":"Automatic preserves compatible AV1 streams. Re-encode applies custom encoding options.","options":[{"key":"auto","inputs":{"required":{}}},{"key":"re-encode","inputs":{"required":{"crf":["FLOAT",{"tooltip":"Lower values produce higher quality and larger files.","default":24.0,"min":0.0,"max":63.0,"step":1.0}]}}}]}]}}}]}]}}},{"key":"mp4","inputs":{"required":{"codec":["COMFY_DYNAMICCOMBO_V3",{"tooltip":"The output video codec. Auto preserves a compatible source stream. H.264 and AV1 re-encoding support SDR, HDR (HLG), and HDR PQ.","options":[{"key":"auto","inputs":{"required":{}}},{"key":"h264","inputs":{"required":{},"optional":{"encoding":["COMFY_DYNAMICCOMBO_V3",{"display_name":"encoding mode","tooltip":"Automatic preserves compatible H.264 streams. Re-encode applies custom encoding options.","options":[{"key":"auto","inputs":{"required":{}}},{"key":"re-encode","inputs":{"required":{"crf":["FLOAT",{"tooltip":"Lower values produce higher quality and larger files.","default":18.0,"min":0.0,"max":51.0,"step":1.0}]}}}]}]}}},{"key":"av1","inputs":{"required":{},"optional":{"encoding":["COMFY_DYNAMICCOMBO_V3",{"display_name":"encoding mode","tooltip":"Automatic preserves compatible AV1 streams. Re-encode applies custom encoding options.","options":[{"key":"auto","inputs":{"required":{}}},{"key":"re-encode","inputs":{"required":{"crf":["FLOAT",{"tooltip":"Lower values produce higher quality and larger files.","default":24.0,"min":0.0,"max":63.0,"step":1.0}]}}}]}]}}}]}]}}},{"key":"mkv","inputs":{"required":{"codec":["COMFY_DYNAMICCOMBO_V3",{"tooltip":"The output video codec. Auto preserves a compatible source stream. H.264 and AV1 re-encoding support SDR, HDR (HLG), and HDR PQ.","options":[{"key":"auto","inputs":{"required":{}}},{"key":"h264","inputs":{"required":{},"optional":{"encoding":["COMFY_DYNAMICCOMBO_V3",{"display_name":"encoding mode","tooltip":"Automatic preserves compatible H.264 streams. Re-encode applies custom encoding options.","options":[{"key":"auto","inputs":{"required":{}}},{"key":"re-encode","inputs":{"required":{"crf":["FLOAT",{"tooltip":"Lower values produce higher quality and larger files.","default":18.0,"min":0.0,"max":51.0,"step":1.0}]}}}]}]}}},{"key":"av1","inputs":{"required":{},"optional":{"encoding":["COMFY_DYNAMICCOMBO_V3",{"display_name":"encoding mode","tooltip":"Automatic preserves compatible AV1 streams. Re-encode applies custom encoding options.","options":[{"key":"auto","inputs":{"required":{}}},{"key":"re-encode","inputs":{"required":{"crf":["FLOAT",{"tooltip":"Lower values produce higher quality and larger files.","default":24.0,"min":0.0,"max":63.0,"step":1.0}]}}}]}]}}}]}]}}},{"key":"webm","inputs":{"required":{"codec":["COMFY_DYNAMICCOMBO_V3",{"tooltip":"The output video codec. Auto preserves a compatible source stream. H.264 and AV1 re-encoding support SDR, HDR (HLG), and HDR PQ.","options":[{"key":"auto","inputs":{"required":{}}},{"key":"av1","inputs":{"required":{},"optional":{"encoding":["COMFY_DYNAMICCOMBO_V3",{"display_name":"encoding mode","tooltip":"Automatic preserves compatible AV1 streams. Re-encode applies custom encoding options.","options":[{"key":"auto","inputs":{"required":{}}},{"key":"re-encode","inputs":{"required":{"crf":["FLOAT",{"tooltip":"Lower values produce higher quality and larger files.","default":24.0,"min":0.0,"max":63.0,"step":1.0}]}}}]}]}}}]}]}}}]}]},"optional":{"codec":["COMFY_DYNAMICCOMBO_V3",{"tooltip":"The output video codec. Auto preserves a compatible source stream. H.264 and AV1 re-encoding support SDR, HDR (HLG), and HDR PQ.","hidden":true,"options":[{"key":"auto","inputs":{"required":{}}},{"key":"h264","inputs":{"required":{},"optional":{"encoding":["COMFY_DYNAMICCOMBO_V3",{"display_name":"encoding mode","tooltip":"Automatic preserves compatible H.264 streams. Re-encode applies custom encoding options.","options":[{"key":"auto","inputs":{"required":{}}},{"key":"re-encode","inputs":{"required":{"crf":["FLOAT",{"tooltip":"Lower values produce higher quality and larger files.","default":18.0,"min":0.0,"max":51.0,"step":1.0}]}}}]}]}}},{"key":"av1","inputs":{"required":{},"optional":{"encoding":["COMFY_DYNAMICCOMBO_V3",{"display_name":"encoding mode","tooltip":"Automatic preserves compatible AV1 streams. Re-encode applies custom encoding options.","options":[{"key":"auto","inputs":{"required":{}}},{"key":"re-encode","inputs":{"required":{"crf":["FLOAT",{"tooltip":"Lower values produce higher quality and larger files.","default":24.0,"min":0.0,"max":63.0,"step":1.0}]}}}]}]}}}]}]},"hidden":{"prompt":["PROMPT"],"extra_pnginfo":["EXTRA_PNGINFO"]}},"input_order":{"required":["video","filename_prefix","format"],"optional":["codec"],"hidden":["prompt","extra_pnginfo"]},"is_input_list":false,"output":["VIDEO"],"output_is_list":[false],"output_name":["video"],"output_tooltips":["The input video, unchanged."],"output_matchtypes":null,"name":"SaveVideo","display_name":"Save Video","description":"Saves the input videos to your ComfyUI output directory.","python_module":"comfy_extras.nodes_video","category":"video","output_node":true,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":["export video"],"essentials_category":"Basics","has_intermediate_output":false},"SeedNode":{"input":{"required":{"seed":["INT",{"min":0,"max":9223372036854775807,"control_after_generate":"fixed"}]}},"input_order":{"required":["seed"]},"is_input_list":false,"output":["INT"],"output_is_list":[false],"output_name":["seed"],"output_tooltips":[null],"output_matchtypes":null,"name":"SeedNode","display_name":"Seed","description":"","python_module":"comfy_extras.nodes_seed","category":"utilities","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":["seed","random"],"essentials_category":null,"has_intermediate_output":false},"SeedVR2Conditioning":{"input":{"required":{"model":["MODEL",{"tooltip":"The SeedVR2 model."}],"vae_conditioning":["LATENT",{"display_name":"latent"}]}},"input_order":{"required":["model","vae_conditioning"]},"is_input_list":false,"output":["CONDITIONING","CONDITIONING"],"output_is_list":[false,false],"output_name":["positive","negative"],"output_tooltips":["The positive conditioning for sampling.","The negative conditioning for sampling."],"output_matchtypes":null,"name":"SeedVR2Conditioning","display_name":"Apply SeedVR2 Conditioning","description":"Build SeedVR2 positive/negative conditioning from a VAE latent.","python_module":"comfy_extras.nodes_seedvr","category":"model/conditioning","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":["seedvr2","upscale","conditioning"],"essentials_category":null,"has_intermediate_output":false},"SeedVR2PostProcessing":{"input":{"required":{"images":["IMAGE",{"tooltip":"The generated image to process."}],"original_resized_images":["IMAGE",{"tooltip":"The original resized image before pre-processing, used as reference."}],"color_correction_method":["COMBO",{"tooltip":"Method to match the generated image colors to the original image. lab: transfer color in CIELAB space, preserving detail (most faithful). wavelet: transfer low-frequency color, keeping upscaled high-frequency detail. adain: match per-channel mean/std (fastest, global tint). none: skip color transfer (geometry alignment only).","default":"lab","multiselect":false,"options":["lab","wavelet","adain","none"]}]}},"input_order":{"required":["images","original_resized_images","color_correction_method"]},"is_input_list":false,"output":["IMAGE"],"output_is_list":[false],"output_name":["images"],"output_tooltips":["The aligned, color-corrected image."],"output_matchtypes":null,"name":"SeedVR2PostProcessing","display_name":"Post-Process SeedVR2 Output","description":"Align the generated image with the original resized image and apply color correction.","python_module":"comfy_extras.nodes_seedvr","category":"image/post-processors","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":["seedvr2","upscale","color correction","color match","postprocess"],"essentials_category":null,"has_intermediate_output":false},"SeedVR2Preprocess":{"input":{"required":{"resized_images":["IMAGE",{"tooltip":"The resized image to process."}]}},"input_order":{"required":["resized_images"]},"is_input_list":false,"output":["IMAGE"],"output_is_list":[false],"output_name":["images"],"output_tooltips":["The padded image for VAE encoding."],"output_matchtypes":null,"name":"SeedVR2Preprocess","display_name":"Pre-Process SeedVR2 Input","description":"Pad a resized image for SeedVR2 model. Alpha channel is dropped. The node Post-Process SeedVR2 Output re-applies it from the original resized image.","python_module":"comfy_extras.nodes_seedvr","category":"image/pre-processors","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":["seedvr2","upscale","video upscale","pad","preprocess"],"essentials_category":null,"has_intermediate_output":false},"SeedVR2TemporalChunk":{"input":{"required":{"latent":["LATENT",{"tooltip":"The VAE-encoded SeedVR2 latent to split."}],"temporal_overlap":["INT",{"tooltip":"Latent frames shared between adjacent chunks and crossfaded at merge; 0 = no overlap.","default":0,"min":0,"max":16384}],"chunking_mode":["COMFY_DYNAMICCOMBO_V3",{"tooltip":"manual = use frames_per_chunk exactly; auto = predict the largest chunk that fits free VRAM.","options":[{"key":"auto","inputs":{"required":{}}},{"key":"manual","inputs":{"required":{"frames_per_chunk":["INT",{"tooltip":"Pixel frames per temporal chunk (4n+1: 1, 5, 9, 13, ...).","default":21,"min":1,"max":16384,"step":4}]}}}]}]}},"input_order":{"required":["latent","temporal_overlap","chunking_mode"]},"is_input_list":false,"output":["LATENT","INT"],"output_is_list":[true,false],"output_name":["latents","temporal_overlap"],"output_tooltips":["The temporal chunks in sequence order.","The effective latent-frame overlap between adjacent chunks, for Merge SeedVR2 Latents."],"output_matchtypes":null,"name":"SeedVR2TemporalChunk","display_name":"Split SeedVR2 Latent","description":"Split a SeedVR2 video latent into overlapping temporal chunks small enough to sample one at a time within VRAM, wiring latents outputs to both Apply SeedVR2 Conditioning and the sampler latent input before recombining with Merge SeedVR2 Latents.","python_module":"comfy_extras.nodes_seedvr","category":"model/latent/seedvr","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":["seedvr2","split","chunk","temporal","video upscale","rebatch"],"essentials_category":null,"has_intermediate_output":false},"SeedVR2TemporalMerge":{"input":{"required":{"latents":["LATENT",{"tooltip":"The sampled temporal chunks in sequence order."}],"temporal_overlap":["INT",{"tooltip":"The temporal_overlap output of Split SeedVR2 Latent. 0 = plain concatenation.","default":0,"forceInput":true,"min":0,"max":16384}]}},"input_order":{"required":["latents","temporal_overlap"]},"is_input_list":true,"output":["LATENT"],"output_is_list":[false],"output_name":["latent"],"output_tooltips":["The recombined full-length latent."],"output_matchtypes":null,"name":"SeedVR2TemporalMerge","display_name":"Merge SeedVR2 Latents","description":"Recombine sampled SeedVR2 latent temporal chunks into one latent, crossfading each overlap with a Hann window sized by the temporal_overlap wired from Split SeedVR2 Latent.","python_module":"comfy_extras.nodes_seedvr","category":"model/latent/seedvr","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":["seedvr2","merge","temporal","hann","crossfade"],"essentials_category":null,"has_intermediate_output":false},"SetLatentNoiseMask":{"input":{"required":{"samples":["LATENT"],"mask":["MASK"]}},"input_order":{"required":["samples","mask"]},"is_input_list":false,"output":["LATENT"],"output_is_list":[false],"output_name":["LATENT"],"name":"SetLatentNoiseMask","display_name":"Set Latent Noise Mask","description":"","python_module":"nodes","category":"model/latent","output_node":false,"has_intermediate_output":false,"search_aliases":[]},"SolidMask":{"input":{"required":{"value":["FLOAT",{"default":1.0,"min":0.0,"max":1.0,"step":0.01}],"width":["INT",{"default":512,"min":1,"max":16384,"step":1}],"height":["INT",{"default":512,"min":1,"max":16384,"step":1}]}},"input_order":{"required":["value","width","height"]},"is_input_list":false,"output":["MASK"],"output_is_list":[false],"output_name":["MASK"],"output_tooltips":[null],"output_matchtypes":null,"name":"SolidMask","display_name":"Create Solid Mask","description":"","python_module":"comfy_extras.nodes_mask","category":"image/mask","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":null,"essentials_category":null,"has_intermediate_output":false},"StringConcatenate":{"input":{"required":{"string_a":["STRING",{"multiline":true}],"string_b":["STRING",{"multiline":true}],"delimiter":["STRING",{"default":"","multiline":false}]}},"input_order":{"required":["string_a","string_b","delimiter"]},"is_input_list":false,"output":["STRING"],"output_is_list":[false],"output_name":["STRING"],"output_tooltips":[null],"output_matchtypes":null,"name":"StringConcatenate","display_name":"Concatenate Text","description":"","python_module":"comfy_extras.nodes_string","category":"text","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":["concatenate","text concat","join text","merge text","combine strings","string concat","append text","combine text"],"essentials_category":null,"has_intermediate_output":false},"StringContains":{"input":{"required":{"string":["STRING",{"multiline":true}],"substring":["STRING",{"multiline":true}],"case_sensitive":["BOOLEAN",{"advanced":true,"default":true}]}},"input_order":{"required":["string","substring","case_sensitive"]},"is_input_list":false,"output":["BOOLEAN"],"output_is_list":[false],"output_name":["contains"],"output_tooltips":[null],"output_matchtypes":null,"name":"StringContains","display_name":"Contains Text","description":"","python_module":"comfy_extras.nodes_string","category":"text","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":["contains","text includes","string includes"],"essentials_category":null,"has_intermediate_output":false},"StringReplace":{"input":{"required":{"string":["STRING",{"multiline":true}],"find":["STRING",{"multiline":true}],"replace":["STRING",{"multiline":true}]}},"input_order":{"required":["string","find","replace"]},"is_input_list":false,"output":["STRING"],"output_is_list":[false],"output_name":["STRING"],"output_tooltips":[null],"output_matchtypes":null,"name":"StringReplace","display_name":"Replace Text","description":"","python_module":"comfy_extras.nodes_string","category":"text","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":["replace","find and replace","substitute","swap text"],"essentials_category":null,"has_intermediate_output":false},"TextEncodeQwenImageEditPlus":{"input":{"required":{"clip":["CLIP",{}],"prompt":["STRING",{"multiline":true,"dynamicPrompts":true}]},"optional":{"vae":["VAE",{}],"image1":["IMAGE",{}],"image2":["IMAGE",{}],"image3":["IMAGE",{}]}},"input_order":{"required":["clip","prompt"],"optional":["vae","image1","image2","image3"]},"is_input_list":false,"output":["CONDITIONING"],"output_is_list":[false],"output_name":["CONDITIONING"],"output_tooltips":[null],"output_matchtypes":null,"name":"TextEncodeQwenImageEditPlus","display_name":"Text Encode Qwen Image Edit Plus","description":"","python_module":"comfy_extras.nodes_qwen","category":"model/conditioning/qwen image","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":null,"essentials_category":null,"has_intermediate_output":false},"TextGenerate":{"input":{"required":{"clip":["CLIP",{}],"prompt":["STRING",{"default":"","multiline":true,"dynamicPrompts":true}],"max_length":["INT",{"default":512,"min":1,"max":32768}],"sampling_mode":["COMFY_DYNAMICCOMBO_V3",{"display_name":"Sampling Mode","options":[{"key":"on","inputs":{"required":{"temperature":["FLOAT",{"default":0.7,"min":0.01,"max":2.0,"step":1e-06}],"top_k":["INT",{"default":64,"min":0,"max":1000}],"top_p":["FLOAT",{"default":0.95,"min":0.0,"max":1.0,"step":0.01}],"min_p":["FLOAT",{"default":0.05,"min":0.0,"max":1.0,"step":0.01}],"repetition_penalty":["FLOAT",{"default":1.05,"min":0.0,"max":5.0,"step":0.01}],"seed":["INT",{"default":0,"min":0,"max":18446744073709551615}]},"optional":{"presence_penalty":["FLOAT",{"default":0.0,"min":0.0,"max":5.0,"step":0.01}]}}},{"key":"off","inputs":{"required":{}}}]}]},"optional":{"image":["IMAGE",{}],"video":["IMAGE",{"tooltip":"Video frames as image batch. Assumed to be 24 FPS; subsampled to 1 FPS internally."}],"audio":["AUDIO",{}],"thinking":["BOOLEAN",{"tooltip":"Operate in thinking mode if the model supports it.","default":false}],"use_default_template":["BOOLEAN",{"tooltip":"Use the built in system prompt/template if the model has one.","advanced":true,"default":true}],"mtp":["COMBO",{"tooltip":"Speculative decoding with the checkpoint's multi-token-prediction head. No effect without MTP weights. auto adapts the draft depth; 2-5 pins it. Sampled output stays correctly distributed but differs from non-MTP output for the same seed.","default":"auto","multiselect":false,"options":["auto","off","2","3","4","5"]}],"system_prompt":["STRING",{"tooltip":"Replaces the system prompt in the model's chat template. Ignored when the default template is not used.","forceInput":true,"multiline":false}]}},"input_order":{"required":["clip","prompt","max_length","sampling_mode"],"optional":["image","video","audio","thinking","use_default_template","mtp","system_prompt"]},"is_input_list":false,"output":["STRING","STRING"],"output_is_list":[false,false],"output_name":["generated_text","thinking"],"output_tooltips":[null,null],"output_matchtypes":null,"name":"TextGenerate","display_name":"Generate Text","description":"","python_module":"comfy_extras.nodes_textgen","category":"text","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":["LLM","gemma"],"essentials_category":null,"has_intermediate_output":false},"TextGenerateLTX2Prompt":{"input":{"required":{"clip":["CLIP",{}],"prompt":["STRING",{"default":"","multiline":true,"dynamicPrompts":true}],"max_length":["INT",{"default":512,"min":1,"max":32768}],"sampling_mode":["COMFY_DYNAMICCOMBO_V3",{"display_name":"Sampling Mode","options":[{"key":"on","inputs":{"required":{"temperature":["FLOAT",{"default":0.7,"min":0.01,"max":2.0,"step":1e-06}],"top_k":["INT",{"default":64,"min":0,"max":1000}],"top_p":["FLOAT",{"default":0.95,"min":0.0,"max":1.0,"step":0.01}],"min_p":["FLOAT",{"default":0.05,"min":0.0,"max":1.0,"step":0.01}],"repetition_penalty":["FLOAT",{"default":1.05,"min":0.0,"max":5.0,"step":0.01}],"seed":["INT",{"default":0,"min":0,"max":18446744073709551615}]},"optional":{"presence_penalty":["FLOAT",{"default":0.0,"min":0.0,"max":5.0,"step":0.01}]}}},{"key":"off","inputs":{"required":{}}}]}]},"optional":{"image":["IMAGE",{}],"video":["IMAGE",{"tooltip":"Video frames as image batch. Assumed to be 24 FPS; subsampled to 1 FPS internally."}],"audio":["AUDIO",{}],"thinking":["BOOLEAN",{"tooltip":"Operate in thinking mode if the model supports it.","default":false}],"use_default_template":["BOOLEAN",{"tooltip":"Use the built in system prompt/template if the model has one.","advanced":true,"default":true}],"mtp":["COMBO",{"tooltip":"Speculative decoding with the checkpoint's multi-token-prediction head. No effect without MTP weights. auto adapts the draft depth; 2-5 pins it. Sampled output stays correctly distributed but differs from non-MTP output for the same seed.","default":"auto","multiselect":false,"options":["auto","off","2","3","4","5"]}],"system_prompt":["STRING",{"tooltip":"Replaces the system prompt in the model's chat template. Ignored when the default template is not used.","forceInput":true,"multiline":false}]}},"input_order":{"required":["clip","prompt","max_length","sampling_mode"],"optional":["image","video","audio","thinking","use_default_template","mtp","system_prompt"]},"is_input_list":false,"output":["STRING","STRING"],"output_is_list":[false,false],"output_name":["generated_text","thinking"],"output_tooltips":[null,null],"output_matchtypes":null,"name":"TextGenerateLTX2Prompt","display_name":"Generate LTX2 Prompt","description":"","python_module":"comfy_extras.nodes_textgen","category":"text","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":["prompt enhance","LLM","gemma"],"essentials_category":null,"has_intermediate_output":false},"TrimAudioDuration":{"input":{"required":{"audio":["AUDIO",{}],"start_index":["FLOAT",{"tooltip":"Start time in seconds, can be negative to count from the end (supports sub-seconds).","default":0.0,"min":-18446744073709551615,"max":18446744073709551615,"step":0.01}],"duration":["FLOAT",{"tooltip":"Duration in seconds","default":60.0,"min":0.0,"step":0.01}]}},"input_order":{"required":["audio","start_index","duration"]},"is_input_list":false,"output":["AUDIO"],"output_is_list":[false],"output_name":["AUDIO"],"output_tooltips":[null],"output_matchtypes":null,"name":"TrimAudioDuration","display_name":"Trim Audio Duration","description":"Trim audio tensor into chosen time range.","python_module":"comfy_extras.nodes_audio","category":"audio","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":["cut audio","audio clip","shorten audio"],"essentials_category":null,"has_intermediate_output":false},"TrimVideoLatent":{"input":{"required":{"samples":["LATENT",{}],"trim_amount":["INT",{"default":0,"min":0,"max":99999}]}},"input_order":{"required":["samples","trim_amount"]},"is_input_list":false,"output":["LATENT"],"output_is_list":[false],"output_name":["LATENT"],"output_tooltips":[null],"output_matchtypes":null,"name":"TrimVideoLatent","display_name":"Trim Video Latent","description":"","python_module":"comfy_extras.nodes_wan","category":"model/latent","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":null,"essentials_category":null,"has_intermediate_output":false},"UNETLoader":{"input":{"required":{"unet_name":[["Wan2_1_VAE_bf16.safetensors","ae.safetensors","birefnet.safetensors","clip_vision_h.safetensors","flux2-vae.safetensors","flux3-image-klein-base-int8-convrot.safetensors","flux3-image-klein-int8-convrot.safetensors","gemma-3-12b-it-abliterated_lora_rank64_bf16.safetensors","gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors","gemma4_e2b_it_int8_convrot.safetensors","gemma_3_12B_it_fp4_mixed.safetensors","ltx-2.3-22b-dev-fp8.safetensors","ltx-2.3-22b-distilled-fp8.safetensors","ltx-2.3-22b-ic-lora-union-control-ref0.5.safetensors","ltx-2.3-spatial-upscaler-x2-1.1.safetensors","ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors","ltx-2.5-22b-ic-lora-clean-plate-1.0.safetensors","ltx-2.5-22b-ic-lora-day-to-night-0.9.safetensors","ltx-2.5-22b-ic-lora-water-simulation-0.9.safetensors","ltx-2.5-audio-vae-bf16.safetensors","ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors","ltx-2.5-video-vae-bf16.safetensors","ltx2.3-transition.safetensors","ltx_2.3_22b_distilled_1.1_lora_dynamic_fro09_avg_rank_111_bf16.safetensors","minimax_music3_dav.safetensors","minimax_music3_dit_fp16.safetensors","minimax_music3_text_encoder_pruned_int8_convrot.safetensors","moge_2_vitl_normal_fp16.safetensors","qwen3.5_2b_bf16.safetensors","qwen3.5_9b_flux3_prompt_upsampler_w4a8.safetensors","qwen3vl_4b_int8_convrot.safetensors","qwen_3_4b_fp8_mixed.safetensors","sam3.1_multiplex_fp16.safetensors","seedvr2_3b_int8_convrot.safetensors","seedvr2_ema_vae_fp16.safetensors","stable_audio_3_medium.safetensors","t5gemma_b_b_ul2.safetensors","umt5_xxl_fp8_e4m3fn_scaled.safetensors","wan_animate_2_distill_int8_convrot.safetensors","z_image_turbo_int8_convrot.safetensors"]],"weight_dtype":[["default","fp8_e4m3fn","fp8_e4m3fn_fast","fp8_e5m2"],{"advanced":true}]}},"input_order":{"required":["unet_name","weight_dtype"]},"is_input_list":false,"output":["MODEL"],"output_is_list":[false],"output_name":["MODEL"],"name":"UNETLoader","display_name":"Load Diffusion Model","description":"","python_module":"nodes","category":"model/loaders","output_node":false,"has_intermediate_output":false,"search_aliases":[]},"VAEDecode":{"input":{"required":{"samples":["LATENT",{"tooltip":"The latent to be decoded."}],"vae":["VAE",{"tooltip":"The VAE model used for decoding the latent."}]}},"input_order":{"required":["samples","vae"]},"is_input_list":false,"output":["IMAGE"],"output_is_list":[false],"output_name":["IMAGE"],"name":"VAEDecode","display_name":"VAE Decode","description":"Decodes latent images back into pixel space images.","python_module":"nodes","category":"model/latent","output_node":false,"has_intermediate_output":false,"output_tooltips":["The decoded image."],"search_aliases":["decode","decode latent","latent to image","render latent"]},"VAEDecodeAudio":{"input":{"required":{"samples":["LATENT",{}],"vae":["VAE",{}]}},"input_order":{"required":["samples","vae"]},"is_input_list":false,"output":["AUDIO"],"output_is_list":[false],"output_name":["AUDIO"],"output_tooltips":[null],"output_matchtypes":null,"name":"VAEDecodeAudio","display_name":"VAE Decode Audio","description":"","python_module":"comfy_extras.nodes_audio","category":"model/latent","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":["latent to audio"],"essentials_category":null,"has_intermediate_output":false},"VAEDecodeAudioTiled":{"input":{"required":{"samples":["LATENT",{}],"vae":["VAE",{}],"tile_size":["INT",{"default":512,"min":32,"max":8192,"step":8}],"overlap":["INT",{"default":64,"min":0,"max":1024,"step":8}]}},"input_order":{"required":["samples","vae","tile_size","overlap"]},"is_input_list":false,"output":["AUDIO"],"output_is_list":[false],"output_name":["AUDIO"],"output_tooltips":[null],"output_matchtypes":null,"name":"VAEDecodeAudioTiled","display_name":"VAE Decode Audio (Tiled)","description":"","python_module":"comfy_extras.nodes_audio","category":"model/latent","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":["latent to audio"],"essentials_category":null,"has_intermediate_output":false},"VAEDecodeTiled":{"input":{"required":{"samples":["LATENT"],"vae":["VAE"],"tile_size":["INT",{"default":512,"min":64,"max":4096,"step":32,"advanced":true}],"overlap":["INT",{"default":64,"min":0,"max":4096,"step":32,"advanced":true}],"temporal_size":["INT",{"default":64,"min":8,"max":4096,"step":4,"tooltip":"Only used for video VAEs: Amount of frames to decode at a time.","advanced":true}],"temporal_overlap":["INT",{"default":8,"min":4,"max":4096,"step":4,"tooltip":"Only used for video VAEs: Amount of frames to overlap.","advanced":true}]}},"input_order":{"required":["samples","vae","tile_size","overlap","temporal_size","temporal_overlap"]},"is_input_list":false,"output":["IMAGE"],"output_is_list":[false],"output_name":["IMAGE"],"name":"VAEDecodeTiled","display_name":"VAE Decode (Tiled)","description":"","python_module":"nodes","category":"model/latent","output_node":false,"has_intermediate_output":false,"search_aliases":[]},"VAEEncode":{"input":{"required":{"pixels":["IMAGE"],"vae":["VAE"]}},"input_order":{"required":["pixels","vae"]},"is_input_list":false,"output":["LATENT"],"output_is_list":[false],"output_name":["LATENT"],"name":"VAEEncode","display_name":"VAE Encode","description":"","python_module":"nodes","category":"model/latent","output_node":false,"has_intermediate_output":false,"search_aliases":["encode","encode image","image to latent"]},"VAEEncodeAudio":{"input":{"required":{"audio":["AUDIO",{}],"vae":["VAE",{}]}},"input_order":{"required":["audio","vae"]},"is_input_list":false,"output":["LATENT"],"output_is_list":[false],"output_name":["LATENT"],"output_tooltips":[null],"output_matchtypes":null,"name":"VAEEncodeAudio","display_name":"VAE Encode Audio","description":"","python_module":"comfy_extras.nodes_audio","category":"model/latent","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":["audio to latent"],"essentials_category":null,"has_intermediate_output":false},"VAEEncodeTiled":{"input":{"required":{"pixels":["IMAGE"],"vae":["VAE"],"tile_size":["INT",{"default":512,"min":64,"max":4096,"step":64,"advanced":true}],"overlap":["INT",{"default":64,"min":0,"max":4096,"step":32,"advanced":true}],"temporal_size":["INT",{"default":64,"min":8,"max":4096,"step":4,"tooltip":"Only used for video VAEs: Amount of frames to encode at a time.","advanced":true}],"temporal_overlap":["INT",{"default":8,"min":4,"max":4096,"step":4,"tooltip":"Only used for video VAEs: Amount of frames to overlap.","advanced":true}]}},"input_order":{"required":["pixels","vae","tile_size","overlap","temporal_size","temporal_overlap"]},"is_input_list":false,"output":["LATENT"],"output_is_list":[false],"output_name":["LATENT"],"name":"VAEEncodeTiled","display_name":"VAE Encode (Tiled)","description":"","python_module":"nodes","category":"model/latent","output_node":false,"has_intermediate_output":false,"search_aliases":[]},"VAELoader":{"input":{"required":{"vae_name":[["Wan2_1_VAE_bf16.safetensors","ae.safetensors","birefnet.safetensors","clip_vision_h.safetensors","flux2-vae.safetensors","flux3-image-klein-base-int8-convrot.safetensors","flux3-image-klein-int8-convrot.safetensors","gemma-3-12b-it-abliterated_lora_rank64_bf16.safetensors","gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors","gemma4_e2b_it_int8_convrot.safetensors","gemma_3_12B_it_fp4_mixed.safetensors","ltx-2.3-22b-dev-fp8.safetensors","ltx-2.3-22b-distilled-fp8.safetensors","ltx-2.3-22b-ic-lora-union-control-ref0.5.safetensors","ltx-2.3-spatial-upscaler-x2-1.1.safetensors","ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors","ltx-2.5-22b-ic-lora-clean-plate-1.0.safetensors","ltx-2.5-22b-ic-lora-day-to-night-0.9.safetensors","ltx-2.5-22b-ic-lora-water-simulation-0.9.safetensors","ltx-2.5-audio-vae-bf16.safetensors","ltx-2.5-latent-spatial-upscaler-x2-bf16-1.0.safetensors","ltx-2.5-video-vae-bf16.safetensors","ltx2.3-transition.safetensors","ltx_2.3_22b_distilled_1.1_lora_dynamic_fro09_avg_rank_111_bf16.safetensors","minimax_music3_dav.safetensors","minimax_music3_dit_fp16.safetensors","minimax_music3_text_encoder_pruned_int8_convrot.safetensors","moge_2_vitl_normal_fp16.safetensors","qwen3.5_2b_bf16.safetensors","qwen3.5_9b_flux3_prompt_upsampler_w4a8.safetensors","qwen3vl_4b_int8_convrot.safetensors","qwen_3_4b_fp8_mixed.safetensors","sam3.1_multiplex_fp16.safetensors","seedvr2_3b_int8_convrot.safetensors","seedvr2_ema_vae_fp16.safetensors","stable_audio_3_medium.safetensors","t5gemma_b_b_ul2.safetensors","umt5_xxl_fp8_e4m3fn_scaled.safetensors","wan_animate_2_distill_int8_convrot.safetensors","z_image_turbo_int8_convrot.safetensors","pixel_space"]]}},"input_order":{"required":["vae_name"]},"is_input_list":false,"output":["VAE"],"output_is_list":[false],"output_name":["VAE"],"name":"VAELoader","display_name":"Load VAE","description":"","python_module":"nodes","category":"model/loaders","output_node":false,"has_intermediate_output":false,"search_aliases":[]},"Video Slice":{"input":{"required":{"video":["VIDEO",{}],"start_time":["FLOAT",{"tooltip":"Start time in seconds","default":0.0,"min":-100000.0,"max":100000.0,"step":0.001}],"duration":["FLOAT",{"tooltip":"Duration in seconds, or 0 for unlimited duration","default":0.0,"min":0.0,"step":0.001}],"strict_duration":["BOOLEAN",{"tooltip":"If True, when the specified duration is not possible, an error will be raised.","default":false}]}},"input_order":{"required":["video","start_time","duration","strict_duration"]},"is_input_list":false,"output":["VIDEO"],"output_is_list":[false],"output_name":["VIDEO"],"output_tooltips":[null],"output_matchtypes":null,"name":"Video Slice","display_name":"Trim Video","description":"","python_module":"comfy_extras.nodes_video","category":"video","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":["trim video duration","skip first frames","frame load cap","start time"],"essentials_category":"Video Tools","has_intermediate_output":false},"WanAnimate2Cache":{"input":{"required":{"model":["MODEL",{}],"device":["COMBO",{"tooltip":"Where to keep the cache. cpu (RAM) is the safe choice, the cache will not fit in VRAM alongside the model at typical sizes. gpu (VRAM) can be faster if it fits.","default":"cpu","multiselect":false,"options":["cpu","gpu"]}],"dtype":["COMBO",{"tooltip":"Storage precision. default stores the activations in the model's compute dtype. int8 halves the cache, int4 quarters it, convrot is used to retain accuracy.","default":"default","multiselect":false,"options":["default","int8","int4"]}]}},"input_order":{"required":["model","device","dtype"]},"is_input_list":false,"output":["MODEL"],"output_is_list":[false],"output_name":["MODEL"],"output_tooltips":[null],"output_matchtypes":null,"name":"WanAnimate2Cache","display_name":null,"description":"Caches the pose-video's per-block activations so it runs once instead of on every sampling step. Roughly halves generation time Tradeoff is ~12.5 GB of system RAM at 480x832/81 frames in bf16 (scales with resolution and length). With context windows each window is cached separately, so RAM scales with the window count; use the static_standard schedule, as uniform schedules shift the windows every step and nothing ever recurs to hit the cache.","python_module":"comfy_extras.nodes_wan","category":"model/conditioning/wan/animate","output_node":false,"deprecated":false,"experimental":true,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":null,"essentials_category":null,"has_intermediate_output":false},"WanAnimate2ToVideo":{"input":{"required":{"positive":["CONDITIONING",{}],"negative":["CONDITIONING",{}],"vae":["VAE",{}],"width":["INT",{"tooltip":"Output video width in pixels.","default":832,"min":16,"max":16384,"step":16}],"height":["INT",{"tooltip":"Output video height in pixels.","default":480,"min":16,"max":16384,"step":16}],"length":["INT",{"tooltip":"Number of frames to generate.","default":81,"min":1,"max":16384,"step":4}],"batch_size":["INT",{"tooltip":"Number of videos to generate simultaneously.","default":1,"min":1,"max":4096}],"video_frame_offset":["INT",{"tooltip":"Frames to seek into the pose video. Connect to the video_frame_offset output of the previous node when extending.","default":0,"min":0,"max":16384,"step":1}],"pose_strength":["FLOAT",{"tooltip":"Scales the pose video's influence on the motion. 1.0 is the trained behavior; below weakens adherence, above amplifies. 0.0 mutes it but does not fully remove it.","default":1.0,"min":0.0,"max":10.0,"step":0.01}],"pose_start_percent":["FLOAT",{"tooltip":"Sampling percent at which the pose influence starts. Outside the window the pose branch is skipped entirely, which also speeds those steps up.","default":0.0,"min":0.0,"max":1.0,"step":0.01}],"pose_end_percent":["FLOAT",{"tooltip":"Sampling percent at which the pose influence ends. Motion is mostly established early, so e.g. 0.7 can loosen fine detail while keeping the choreography.","default":1.0,"min":0.0,"max":1.0,"step":0.01}],"reference_image_strength":["FLOAT",{"tooltip":"Scales how strongly generated frames attend to the reference image's latent frame. Below 1.0 loosens identity/appearance adherence (e.g. to let the prompt restyle), above tightens it against drift.","default":1.0,"min":0.0,"max":10.0,"step":0.01}]},"optional":{"reference_image":["IMAGE",{"tooltip":"The character to animate."}],"pose_video":["IMAGE",{"tooltip":"The video whose motion is transferred to the reference character."}],"clip_vision_output":["CLIP_VISION_OUTPUT",{"tooltip":"CLIP vision of the reference image."}],"positive_pose":["CONDITIONING",{"tooltip":"Prompt for the pose-video branch, describing the motion rather than the character. Defaults to positive. Used for both the cond and uncond passes."}],"clip_vision_output_pose":["CLIP_VISION_OUTPUT",{"tooltip":"CLIP vision of the pose video's first frame. Defaults to clip_vision_output."}],"continue_motion":["IMAGE",{"tooltip":"Previous motion sequence to continue from for temporal consistency."}]}},"input_order":{"required":["positive","negative","vae","width","height","length","batch_size","video_frame_offset","pose_strength","pose_start_percent","pose_end_percent","reference_image_strength"],"optional":["reference_image","pose_video","clip_vision_output","positive_pose","clip_vision_output_pose","continue_motion"]},"is_input_list":false,"output":["CONDITIONING","CONDITIONING","LATENT","INT","INT","INT"],"output_is_list":[false,false,false,false,false,false],"output_name":["positive","negative","latent","trim_latent","trim_image","video_frame_offset"],"output_tooltips":[null,null,null,"Number of latent frames that should be trimmed before decoding.","Number of overlapping image frames when extending a video.","Frames to seek into the pose video."],"output_matchtypes":null,"name":"WanAnimate2ToVideo","display_name":null,"description":"Animate a character in a reference image using a video, effectively replicating the facial animation, body motion and hands gesture from the video.","python_module":"comfy_extras.nodes_wan","category":"model/conditioning/wan/animate","output_node":false,"deprecated":false,"experimental":true,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":null,"essentials_category":null,"has_intermediate_output":false},"WanCameraEmbedding":{"input":{"required":{"camera_pose":["COMBO",{"default":"Static","multiselect":false,"options":["Static","Pan Up","Pan Down","Pan Left","Pan Right","Zoom In","Zoom Out","Anti Clockwise (ACW)","ClockWise (CW)"]}],"width":["INT",{"default":832,"min":16,"max":16384,"step":16}],"height":["INT",{"default":480,"min":16,"max":16384,"step":16}],"length":["INT",{"default":81,"min":1,"max":16384,"step":4}]},"optional":{"speed":["FLOAT",{"default":1.0,"min":0,"max":10.0,"step":0.1}],"fx":["FLOAT",{"advanced":true,"default":0.5,"min":0,"max":1,"step":1e-09}],"fy":["FLOAT",{"advanced":true,"default":0.5,"min":0,"max":1,"step":1e-09}],"cx":["FLOAT",{"advanced":true,"default":0.5,"min":0,"max":1,"step":0.01}],"cy":["FLOAT",{"advanced":true,"default":0.5,"min":0,"max":1,"step":0.01}]}},"input_order":{"required":["camera_pose","width","height","length"],"optional":["speed","fx","fy","cx","cy"]},"is_input_list":false,"output":["WAN_CAMERA_EMBEDDING","INT","INT","INT"],"output_is_list":[false,false,false,false],"output_name":["camera_embedding","width","height","length"],"output_tooltips":[null,null,null,null],"output_matchtypes":null,"name":"WanCameraEmbedding","display_name":null,"description":"","python_module":"comfy_extras.nodes_camera_trajectory","category":"model/conditioning/wan/camera","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":null,"essentials_category":null,"has_intermediate_output":false},"WanCameraImageToVideo":{"input":{"required":{"positive":["CONDITIONING",{}],"negative":["CONDITIONING",{}],"vae":["VAE",{}],"width":["INT",{"default":832,"min":16,"max":16384,"step":16}],"height":["INT",{"default":480,"min":16,"max":16384,"step":16}],"length":["INT",{"default":81,"min":1,"max":16384,"step":4}],"batch_size":["INT",{"default":1,"min":1,"max":4096}]},"optional":{"clip_vision_output":["CLIP_VISION_OUTPUT",{}],"start_image":["IMAGE",{}],"camera_conditions":["WAN_CAMERA_EMBEDDING",{}]}},"input_order":{"required":["positive","negative","vae","width","height","length","batch_size"],"optional":["clip_vision_output","start_image","camera_conditions"]},"is_input_list":false,"output":["CONDITIONING","CONDITIONING","LATENT"],"output_is_list":[false,false,false],"output_name":["positive","negative","latent"],"output_tooltips":[null,null,null],"output_matchtypes":null,"name":"WanCameraImageToVideo","display_name":null,"description":"","python_module":"comfy_extras.nodes_wan","category":"model/conditioning/wan/camera","output_node":false,"deprecated":false,"experimental":false,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":null,"essentials_category":null,"has_intermediate_output":false},"WanSCAILToVideo":{"input":{"required":{"positive":["CONDITIONING",{}],"negative":["CONDITIONING",{}],"vae":["VAE",{}],"width":["INT",{"default":512,"min":32,"max":16384,"step":32}],"height":["INT",{"default":896,"min":32,"max":16384,"step":32}],"length":["INT",{"default":81,"min":1,"max":16384,"step":4}],"batch_size":["INT",{"default":1,"min":1,"max":4096}],"pose_strength":["FLOAT",{"tooltip":"Strength of the pose latent.","default":1.0,"min":0.0,"max":10.0,"step":0.01}],"pose_start":["FLOAT",{"tooltip":"Start step of the pose conditioning.","default":0.0,"min":0.0,"max":1.0,"step":0.01}],"pose_end":["FLOAT",{"tooltip":"End step of the pose conditioning.","default":1.0,"min":0.0,"max":1.0,"step":0.01}],"video_frame_offset":["INT",{"tooltip":"Cumulative output frame this chunk begins at. Wire from the previous chunk's video_frame_offset output.","default":0,"min":0,"max":16384,"step":1}],"previous_frame_count":["INT",{"tooltip":"Tail frames of previous_frames to anchor. SCAIL-2 trained at 5 (81-frame chunks, 76-frame step).","default":5,"min":1,"max":16384,"step":4}]},"optional":{"pose_video":["IMAGE",{"tooltip":"Video used for pose conditioning. Will be downscaled to half the resolution of the main video."}],"pose_video_mask":["IMAGE",{"tooltip":"SCAIL-2 only. Colored per-identity SAM3 mask video at the same resolution as pose_video."}],"replacement_mode":["BOOLEAN",{"tooltip":"SCAIL-2 only. False = Animation Mode (pose_video_mask should have black background). True = Replacement Mode (pose_video_mask should have white background).","default":false}],"reference_image":["IMAGE",{"tooltip":"Reference image. The first image is the primary reference (composite all identities onto it). SCAIL-2: extra batch images are used as additional views (back view, close-up, occluded background), each needing a matching reference_image_mask in that identity's color."}],"reference_image_mask":["IMAGE",{"tooltip":"SCAIL-2 only. Colored reference mask, batch matching reference_image (first = primary reference mask, rest = identity masks for the additional reference_image)."}],"clip_vision_output":["CLIP_VISION_OUTPUT",{"tooltip":"CLIP vision features for conditioning. Model is trained with stretch resize to aspect ratio."}],"previous_frames":["IMAGE",{"tooltip":"SCAIL-2 only. Full decoded output of the previous chunk. Only the last previous_frame_count are used as the extension anchor."}]}},"input_order":{"required":["positive","negative","vae","width","height","length","batch_size","pose_strength","pose_start","pose_end","video_frame_offset","previous_frame_count"],"optional":["pose_video","pose_video_mask","replacement_mode","reference_image","reference_image_mask","clip_vision_output","previous_frames"]},"is_input_list":false,"output":["CONDITIONING","CONDITIONING","LATENT","INT"],"output_is_list":[false,false,false,false],"output_name":["positive","negative","latent","video_frame_offset"],"output_tooltips":[null,null,"Empty latent of the generation size.","Adjusted offset + length. Wire into the next chunk."],"output_matchtypes":null,"name":"WanSCAILToVideo","display_name":null,"description":"","python_module":"comfy_extras.nodes_scail","category":"model/conditioning/wan/scail","output_node":false,"deprecated":false,"experimental":true,"dev_only":false,"api_node":false,"price_badge":null,"search_aliases":null,"essentials_category":null,"has_intermediate_output":false}}
diff --git a/tools/ui2api.py b/tools/ui2api.py
new file mode 100644
index 0000000..bb3c124
--- /dev/null
+++ b/tools/ui2api.py
@@ -0,0 +1,292 @@
+#!/usr/bin/env python3
+"""Convert a ComfyUI workflow saved from the UI (with subgraphs) into API format.
+
+ComfyUI's official templates are UI workflows: node positions, links, and nested
+subgraphs. The runner needs the flat API format ({node_id: {class_type, inputs}}).
+This does the same flattening the ComfyUI frontend does on "Export (API)", using the
+node definitions from a running ComfyUI (GET /object_info) so widget values land on
+the right inputs.
+
+ python tools/ui2api.py template.json --object-info tools/object_info.json -o app/workflow.api.json
+
+Subgraph nodes get ids like "57:27" (instance id : inner node id), as the frontend does.
+Only the Python standard library is used.
+"""
+from __future__ import annotations
+
+import argparse
+import json
+import sys
+from dataclasses import dataclass, field
+from pathlib import Path
+from typing import Any
+
+FRONTEND_ONLY_SKIP = {"Note", "MarkdownNote", "Label (rgthree)", "Fast Groups Bypasser (rgthree)"}
+CONTROL_VALUES = {"fixed", "increment", "decrement", "randomize"}
+UPLOAD_VALUES = {"image", "video", "audio", "upload", "file"}
+PRIMITIVE_TYPES = {"INT", "FLOAT", "STRING", "BOOLEAN", "COMBO", "COLOR"}
+DYNAMIC_COMBO = "COMFY_DYNAMICCOMBO_V3" # a combo whose selected option adds its own inputs ("format" → "format.codec")
+
+MODE_NORMAL, MODE_MUTED, MODE_BYPASS = 0, 2, 4
+
+
+class ConversionError(Exception):
+ pass
+
+
+@dataclass
+class Ctx:
+ """One graph level: the root workflow or one subgraph instance."""
+ nodes: dict[int, dict]
+ links: dict[int, tuple[int, int, int, int]] # link id -> (origin, origin_slot, target, target_slot)
+ prefix: str = ""
+ sg_def: dict | None = None
+ instance: dict | None = None
+ parent: "Ctx | None" = None
+ overrides: dict[tuple[str, str], Any] = field(default_factory=dict) # (inner node id, widget) -> value
+
+
+def _links_of(raw_links: list) -> dict[int, tuple[int, int, int, int]]:
+ out = {}
+ for l in raw_links or []:
+ if isinstance(l, dict):
+ out[int(l["id"])] = (int(l["origin_id"]), int(l["origin_slot"]), int(l["target_id"]), int(l["target_slot"]))
+ else: # [id, origin, origin_slot, target, target_slot, type]
+ out[int(l[0])] = (int(l[1]), int(l[2]), int(l[3]), int(l[4]))
+ return out
+
+
+def _is_widget(spec: list) -> bool:
+ if not spec:
+ return False
+ t = spec[0]
+ opts = spec[1] if len(spec) > 1 and isinstance(spec[1], dict) else {}
+ if opts.get("forceInput"):
+ return False
+ if isinstance(t, list):
+ return True
+ # "FLOAT,INT" style multi-types declare the widget they use; custom widget types
+ # (bounding-box editors, image compare) say whether they have a socket.
+ if "widgetType" in opts or "socketless" in opts:
+ return True
+ return t in PRIMITIVE_TYPES or t == DYNAMIC_COMBO
+
+
+def _ordered_widgets(inputs: dict, order: dict | None = None) -> list[tuple[str, list]]:
+ order = order or {k: list((v or {}).keys()) for k, v in inputs.items()}
+ out = []
+ for section in ("required", "optional"):
+ specs = inputs.get(section, {}) or {}
+ for name in order.get(section, []) or []:
+ spec = specs.get(name)
+ if spec is not None and _is_widget(spec):
+ out.append((name, spec))
+ return out
+
+
+def _widget_inputs(info: dict) -> list[tuple[str, list]]:
+ return _ordered_widgets(info.get("input", {}) or {}, info.get("input_order"))
+
+
+def _assign(widgets: list[tuple[str, list]], values: list, i: int, out: dict, prefix: str = "") -> int:
+ for name, spec in widgets:
+ if i >= len(values):
+ return i
+ full = prefix + name
+ val = values[i]
+ out[full] = val
+ i += 1
+ opts = spec[1] if len(spec) > 1 and isinstance(spec[1], dict) else {}
+ # the frontend adds a "control after generate" widget after seed-like INTs
+ if (opts.get("control_after_generate") or name in ("seed", "noise_seed")) and i < len(values) \
+ and isinstance(values[i], str) and values[i] in CONTROL_VALUES:
+ i += 1
+ # and an upload button after file combos
+ if any(opts.get(k) for k in ("image_upload", "video_upload", "audio_upload", "upload")) and i < len(values) \
+ and isinstance(values[i], str) and values[i] in UPLOAD_VALUES:
+ i += 1
+ # a dynamic combo's selected option brings its own widgets, named "<combo>.<input>"
+ if spec[0] == DYNAMIC_COMBO:
+ option = next((o for o in opts.get("options", []) if o.get("key") == val), None)
+ if option:
+ i = _assign(_ordered_widgets(option.get("inputs") or {}), values, i, out, prefix=full + ".")
+ return i
+
+
+def _map_widgets(node: dict, info: dict, warnings: list[str], where: str) -> dict[str, Any]:
+ values = node.get("widgets_values")
+ if values is None:
+ return {}
+ if isinstance(values, dict): # some nodes store values by name
+ return {k: v for k, v in values.items() if k not in ("videopreview", "preview")}
+ out: dict[str, Any] = {}
+ i = _assign(_widget_inputs(info), values, 0, out)
+ if i < len(values):
+ extra = values[i:]
+ if any(v not in (None, "", []) for v in extra):
+ warnings.append(f"{where}: {len(extra)} widget value(s) left over: {json.dumps(extra)[:120]}")
+ return out
+
+
+class Converter:
+ def __init__(self, workflow: dict, object_info: dict):
+ self.wf = workflow
+ self.info = object_info
+ self.subgraphs = {sg["id"]: sg for sg in (workflow.get("definitions") or {}).get("subgraphs", [])}
+ self.warnings: list[str] = []
+ self.api: dict[str, dict] = {}
+
+ # ---- contexts -------------------------------------------------------
+ def root(self) -> Ctx:
+ return Ctx(nodes={int(n["id"]): n for n in self.wf.get("nodes", [])}, links=_links_of(self.wf.get("links")))
+
+ def child(self, parent: Ctx, instance: dict) -> Ctx:
+ sg = self.subgraphs[instance["type"]]
+ ctx = Ctx(
+ nodes={int(n["id"]): n for n in sg.get("nodes", [])},
+ links=_links_of(sg.get("links")),
+ prefix=f"{parent.prefix}{instance['id']}:",
+ sg_def=sg,
+ instance=instance,
+ parent=parent,
+ )
+ # promoted widgets whose value was edited on the instance
+ proxy = (instance.get("properties") or {}).get("proxyWidgets") or []
+ wv = instance.get("widgets_values") or []
+ if isinstance(wv, list) and wv:
+ k = 0
+ for inner_id, wname in proxy:
+ if wname == "control_after_generate":
+ continue
+ if k < len(wv):
+ ctx.overrides[(str(inner_id), wname)] = wv[k]
+ k += 1
+ return ctx
+
+ # ---- link resolution -----------------------------------------------
+ def resolve_link(self, ctx: Ctx, link_id: int):
+ if link_id not in ctx.links:
+ raise ConversionError(f"link {link_id} not found at level '{ctx.prefix or 'root'}'")
+ origin, oslot, _, _ = ctx.links[link_id]
+ return self.resolve_origin(ctx, origin, oslot)
+
+ def resolve_origin(self, ctx: Ctx, origin: int, oslot: int):
+ if origin == -10: # the subgraph's input node
+ name = ctx.sg_def["inputs"][oslot]["name"]
+ for inp in ctx.instance.get("inputs", []) or []:
+ if inp.get("name") == name and inp.get("link") is not None:
+ return self.resolve_link(ctx.parent, int(inp["link"]))
+ return ("unlinked",)
+ node = ctx.nodes.get(origin)
+ if node is None:
+ raise ConversionError(f"origin node {origin} missing at level '{ctx.prefix or 'root'}'")
+ t = node["type"]
+ mode = node.get("mode", MODE_NORMAL)
+ if mode == MODE_BYPASS:
+ out_type = (node.get("outputs") or [{}])[oslot].get("type")
+ for inp in node.get("inputs", []) or []:
+ if inp.get("type") == out_type and inp.get("link") is not None:
+ return self.resolve_link(ctx, int(inp["link"]))
+ return ("unlinked",)
+ if mode == MODE_MUTED:
+ return ("unlinked",)
+ if t == "Reroute":
+ inp = (node.get("inputs") or [{}])[0]
+ return self.resolve_link(ctx, int(inp["link"])) if inp.get("link") is not None else ("unlinked",)
+ if t == "PrimitiveNode":
+ return ("value", (node.get("widgets_values") or [None])[0])
+ if t in self.subgraphs:
+ sub = self.child(ctx, node)
+ out = sub.sg_def["outputs"][oslot]
+ ids = out.get("linkIds") or []
+ if not ids:
+ return ("unlinked",)
+ return self.resolve_link(sub, int(ids[0]))
+ return ("node", f"{ctx.prefix}{origin}", oslot)
+
+ # ---- emission -------------------------------------------------------
+ def emit(self, ctx: Ctx) -> None:
+ for nid, node in ctx.nodes.items():
+ t = node["type"]
+ mode = node.get("mode", MODE_NORMAL)
+ if t in FRONTEND_ONLY_SKIP or t in ("Reroute", "PrimitiveNode"):
+ continue
+ if t in self.subgraphs:
+ if mode in (MODE_MUTED, MODE_BYPASS):
+ continue
+ self.emit(self.child(ctx, node))
+ continue
+ if mode in (MODE_MUTED, MODE_BYPASS):
+ continue
+ info = self.info.get(t)
+ where = f"{ctx.prefix}{nid} ({t})"
+ if info is None:
+ raise ConversionError(f"{where}: node type not in object_info (custom node not installed?)")
+ widgets = _map_widgets(node, info, self.warnings, where)
+ for (inner_id, wname), val in ctx.overrides.items():
+ if inner_id == str(nid) and wname in widgets:
+ widgets[wname] = val
+ inputs: dict[str, Any] = {}
+ for inp in node.get("inputs", []) or []:
+ link = inp.get("link")
+ if link is None:
+ continue
+ r = self.resolve_link(ctx, int(link))
+ if r[0] == "node":
+ inputs[inp["name"]] = [r[1], r[2]]
+ elif r[0] == "value":
+ inputs[inp["name"]] = r[1]
+ for k, v in widgets.items():
+ # a bare list means "link" in API format, so list-valued widgets are wrapped
+ inputs.setdefault(k, {"__value__": v} if isinstance(v, list) else v)
+ # required widgets the UI never stored (e.g. socketless editors) fall back to their default
+ for name, spec in (info.get("input", {}).get("required") or {}).items():
+ opts = spec[1] if len(spec) > 1 and isinstance(spec[1], dict) else {}
+ if name not in inputs and _is_widget(spec):
+ if "default" in opts:
+ d = opts["default"]
+ inputs[name] = {"__value__": d} if isinstance(d, list) else d
+ elif opts.get("socketless"):
+ inputs[name] = None
+ title = node.get("title") or info.get("display_name") or t
+ self.api[f"{ctx.prefix}{nid}"] = {"class_type": t, "inputs": inputs, "_meta": {"title": title}}
+
+ def run(self) -> dict:
+ self.emit(self.root())
+ # drop dangling references to nodes that were skipped
+ for nid, node in self.api.items():
+ for k, v in list(node["inputs"].items()):
+ if isinstance(v, list) and len(v) == 2 and isinstance(v[0], str) and v[0] not in self.api:
+ self.warnings.append(f"{nid}: input '{k}' pointed to skipped node {v[0]}; removed")
+ del node["inputs"][k]
+ return dict(sorted(self.api.items(), key=lambda kv: [int(p) if p.isdigit() else p for p in kv[0].split(":")]))
+
+
+def convert(workflow: dict, object_info: dict) -> tuple[dict, list[str]]:
+ c = Converter(workflow, object_info)
+ api = c.run()
+ return api, c.warnings
+
+
+def main(argv: list[str] | None = None) -> int:
+ ap = argparse.ArgumentParser(description=__doc__.split("\n\n")[0])
+ ap.add_argument("workflow", type=Path)
+ ap.add_argument("--object-info", type=Path, required=True)
+ ap.add_argument("-o", "--out", type=Path)
+ a = ap.parse_args(argv)
+ api, warnings = convert(json.loads(a.workflow.read_text(encoding="utf-8")),
+ json.loads(a.object_info.read_text(encoding="utf-8")))
+ for w in warnings:
+ print(f"warning: {w}", file=sys.stderr)
+ text = json.dumps(api, indent=2, ensure_ascii=False)
+ if a.out:
+ a.out.parent.mkdir(parents=True, exist_ok=True)
+ a.out.write_text(text + "\n", encoding="utf-8")
+ print(f"{a.out}: {len(api)} nodes")
+ else:
+ print(text)
+ return 0
+
+
+if __name__ == "__main__":
+ sys.exit(main())
diff --git a/tsconfig.json b/tsconfig.json
new file mode 100644
index 0000000..9cd855c
--- /dev/null
+++ b/tsconfig.json
@@ -0,0 +1,14 @@
+{
+ "compilerOptions": {
+ "target": "es2023",
+ "module": "nodenext",
+ "moduleResolution": "nodenext",
+ "allowImportingTsExtensions": true,
+ "noEmit": true,
+ "strict": true,
+ "skipLibCheck": true,
+ "verbatimModuleSyntax": false,
+ "types": ["node"]
+ },
+ "include": ["server/**/*.ts", "test/**/*.ts"]
+}
diff --git a/web/index.html b/web/index.html
new file mode 100644
index 0000000..087eb0b
--- /dev/null
+++ b/web/index.html
@@ -0,0 +1,165 @@
+<!doctype html>
+<html lang="en">
+<head>
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width, initial-scale=1">
+<title>Freefield</title>
+<style>
+ /* Minimal menu + auto-generated forms. Everything on screen comes from /api/apps (the app.json files). */
+ :root { --bg:#0e1116; --panel:#161b22; --line:#2b333d; --ink:#e9edf2; --dim:#93a0ae; --accent:#e8ff5a; --bad:#ff7a6b; }
+ * { box-sizing: border-box; }
+ body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
+ header { display: flex; align-items: baseline; gap: 18px; padding: 18px max(16px, env(safe-area-inset-left)); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
+ header h1 { margin: 0; font-size: 22px; letter-spacing: -0.01em; }
+ header p { margin: 0; color: var(--dim); }
+ nav { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
+ nav button { background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 999px; padding: 4px 12px; cursor: pointer; }
+ nav button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
+ main { display: grid; grid-template-columns: minmax(260px, 360px) 1fr; min-height: calc(100vh - 70px); }
+ @media (max-width: 760px) { main { grid-template-columns: 1fr; } }
+ #menu { border-right: 1px solid var(--line); padding: 12px; display: grid; gap: 8px; align-content: start; }
+ .item { text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; color: var(--ink); cursor: pointer; display: grid; gap: 2px; }
+ .item[aria-current="true"] { border-color: var(--accent); }
+ .item small { color: var(--dim); }
+ .badge { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
+ #app { padding: 20px max(16px, env(safe-area-inset-right)) 40px 24px; display: grid; gap: 16px; align-content: start; min-width: 0; }
+ #app h2 { margin: 0; font-size: 22px; }
+ form { display: grid; gap: 14px; max-width: 640px; }
+ label { display: grid; gap: 6px; font-weight: 600; }
+ label span.help { font-weight: 400; color: var(--dim); font-size: 13px; }
+ input, textarea, select { width: 100%; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: inherit; }
+ textarea { min-height: 90px; resize: vertical; }
+ input[type=checkbox] { width: auto; }
+ .row { display: flex; gap: 10px; align-items: center; }
+ button.run { justify-self: start; background: var(--accent); color: #11140a; border: 0; border-radius: 8px; padding: 10px 18px; font-weight: 700; cursor: pointer; }
+ button.run:disabled { opacity: .45; cursor: not-allowed; }
+ #status { color: var(--dim); min-height: 1.5em; }
+ #status.err { color: var(--bad); }
+ #outputs { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
+ #outputs img, #outputs video { width: 100%; border-radius: 10px; background: #000; }
+ .note { margin: 0; max-width: 640px; padding: 8px 12px; border-left: 3px solid var(--accent); background: var(--panel); border-radius: 0 8px 8px 0; color: var(--dim); font-size: 14px; }
+ .fit { font-size: 11px; color: var(--dim); }
+ .fit.ok { color: #9be27a; } .fit.tight { color: #ffc861; } .fit.big { color: var(--bad); }
+ details { max-width: 640px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: var(--panel); }
+ details summary { cursor: pointer; font-weight: 600; }
+ details ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; }
+ details li small { color: var(--dim); }
+ :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
+</style>
+</head>
+<body>
+<header>
+ <h1>Freefield</h1>
+ <p>Open-source Higgsfield on ComfyUI. Every app is one folder.</p>
+ <nav id="sections"></nav>
+</header>
+<main>
+ <div id="menu" aria-label="Apps"></div>
+ <section id="app" aria-live="polite"><p class="badge">Pick an app</p></section>
+</main>
+<script>
+let apps = [], section = "all", current = null;
+
+function el(tag, attrs = {}, ...kids) {
+ const e = document.createElement(tag);
+ for (const [k, v] of Object.entries(attrs)) {
+ if (k === "class") e.className = v; else if (k.startsWith("on")) e[k] = v; else if (v !== undefined && v !== null) e.setAttribute(k, v);
+ }
+ for (const k of kids.flat()) e.append(k?.nodeType ? k : document.createTextNode(k ?? ""));
+ return e;
+}
+
+function drawSections() {
+ const names = ["all", ...new Set(apps.map(a => a.section))];
+ const nav = document.getElementById("sections");
+ nav.replaceChildren(...names.map(n => el("button", { "aria-pressed": String(n === section), onclick: () => { section = n; drawSections(); drawMenu(); } }, n)));
+}
+
+// what the VRAM verdict means on one 24 GB card (tools/catalog.py vram)
+const FIT = { "fits whole": ["fits 24 GB", "ok"], "fits by phases": ["fits 24 GB by phases", "ok"],
+ "tight (by phases)": ["tight on 24 GB", "tight"], "needs Modal": ["needs 48 GB", "big"], "no models": ["no models", ""] };
+function fit(a) {
+ if (!a.vram) return "";
+ const [text, cls] = FIT[a.vram.verdict] || [a.vram.verdict, ""];
+ const measured = a.vram.measured_gb != null ? ` · measured ${a.vram.measured_gb} GB` : "";
+ return el("span", { class: `fit ${cls}` }, text + measured);
+}
+
+function modelsPanel(a) {
+ if (!a.models.length) return "";
+ const total = a.models.filter(m => !m.optional).reduce((s, m) => s + m.gb, 0);
+ return el("details", {}, el("summary", {}, `Open-weight models · ${total.toFixed(1)} GB`),
+ el("ul", {}, ...a.models.map(m => el("li", {}, m.name, " ",
+ el("small", {}, [`${m.gb} GB`, m.license, m.gated ? "accept the license on Hugging Face" : "", m.optional ? "optional" : ""].filter(Boolean).join(" · "))))),
+ a.credits.length ? el("p", {}, el("small", {}, a.credits.join(" · "))) : "");
+}
+
+function drawMenu() {
+ const list = apps.filter(a => section === "all" || a.section === section);
+ document.getElementById("menu").replaceChildren(...list.map(a =>
+ el("button", { class: "item", "aria-current": String(current?.id === a.id), onclick: () => open(a) },
+ el("span", { class: "badge" }, `${a.section} · ${a.status}`), el("strong", {}, a.name), el("small", {}, a.summary), fit(a))));
+}
+
+function field(inp) {
+ const id = `in-${inp.id}`;
+ let control;
+ if (inp.type === "textarea") control = el("textarea", { id, name: inp.id }, inp.default ?? "");
+ else if (inp.type === "select") {
+ control = el("select", { id, name: inp.id }, ...(inp.options || []).map(o => el("option", { value: String(o.value) }, o.label)));
+ if (inp.default !== undefined) control.value = String(inp.default);
+ } else if (inp.type === "toggle") control = el("input", { id, name: inp.id, type: "checkbox", ...(inp.default ? { checked: "" } : {}) });
+ else if (["image", "video", "audio"].includes(inp.type)) control = el("input", { id, name: inp.id, type: "file", accept: `${inp.type}/*` });
+ else if (inp.type === "slider") control = el("input", { id, name: inp.id, type: "range", min: inp.min, max: inp.max, step: inp.step ?? 1, value: inp.default });
+ else if (inp.type === "number" || inp.type === "seed") control = el("input", { id, name: inp.id, type: "number", min: inp.min, max: inp.max, step: inp.step, value: inp.default ?? "" });
+ else control = el("input", { id, name: inp.id, type: "text", value: inp.default ?? "" });
+ const out = inp.type === "slider" ? el("output", { for: id }, String(inp.default ?? "")) : null;
+ if (out) control.oninput = () => (out.value = control.value);
+ return el("label", { for: id }, inp.label, inp.type === "toggle" || out ? el("div", { class: "row" }, control, out) : control, inp.help ? el("span", { class: "help" }, inp.help) : "");
+}
+
+function open(a) {
+ current = a; drawMenu();
+ const status = el("p", { id: "status" });
+ const outputs = el("div", { id: "outputs" });
+ const form = el("form", {}, ...a.inputs.map(field));
+ if (a.presets.length) form.append(el("label", { for: "in-preset" }, "Preset", el("select", { id: "in-preset", name: "preset" }, el("option", { value: "" }, "None"), ...a.presets.map(p => el("option", { value: p.id }, p.label)))));
+ const run = el("button", { class: "run", type: "submit", ...(!a.runnable ? { disabled: "" } : {}) },
+ !a.runnable ? "Draft: not enabled" : a.status === "ready" ? "Generate" : "Generate (draft)");
+ form.append(run);
+ form.onsubmit = async (ev) => {
+ ev.preventDefault();
+ const fd = new FormData(form);
+ for (const inp of a.inputs) if (inp.type === "toggle") fd.set(inp.id, form.elements[inp.id].checked ? "true" : "false");
+ for (const [k, v] of [...fd.entries()]) if (v instanceof File && !v.size) fd.delete(k);
+ run.disabled = true; status.className = ""; status.textContent = "Submitting…"; outputs.replaceChildren();
+ try {
+ const r = await fetch(`/api/apps/${a.id}/run`, { method: "POST", body: fd });
+ const job = await r.json();
+ if (!r.ok) throw new Error(job.error || r.statusText);
+ const t0 = Date.now();
+ for (;;) {
+ await new Promise(res => setTimeout(res, 1500));
+ const s = await (await fetch(`/api/jobs/${job.id}`)).json();
+ status.textContent = `${s.status} · ${Math.round((Date.now() - t0) / 1000)} s`;
+ if (["succeeded", "failed", "canceled", "expired"].includes(s.status)) {
+ if (s.status !== "succeeded") {
+ const err = s.error || {};
+ throw new Error(`${s.status}${err.class_type ? ` in ${err.class_type}` : ""}: ${(err.message || JSON.stringify(err)).trim()}`);
+ }
+ outputs.replaceChildren(...s.outputs.map(o => o.type === "video" ? el("video", { src: o.url, controls: "", loop: "", playsinline: "" })
+ : o.type === "audio" ? el("audio", { src: o.url, controls: "" }) : el("img", { src: o.url, alt: o.name })));
+ break;
+ }
+ }
+ } catch (e) { status.className = "err"; status.textContent = e.message; }
+ finally { run.disabled = !a.runnable; }
+ };
+ document.getElementById("app").replaceChildren(el("p", { class: "badge" }, `${a.section} · ${a.pack} · ${a.status}`), el("h2", {}, a.name), el("p", {}, a.summary), a.notes ? el("p", { class: "note" }, a.notes) : "", fit(a), modelsPanel(a), form, status, outputs);
+ if (matchMedia("(max-width: 760px)").matches) document.getElementById("app").scrollIntoView({ behavior: "smooth" });
+}
+
+fetch("/api/apps").then(r => r.json()).then(d => { apps = d.apps; drawSections(); drawMenu(); });
+</script>
+</body>
+</html>