Skip to content
Python

Effects en 35, marcas de mediocre y 40 apps de plantilla

neuregex954193ef40b9
diff --git a/README.md b/README.md
index cd725de..9a254b9 100644
--- a/README.md
+++ b/README.md
@@ -17,12 +17,12 @@ browser ──▶ web/ + server/ (Node, Comfy SDK) ──▶ gateway :8000 ─
| | |
|---|---|
-| 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) |
+| Apps | 70 manifests, each with a workflow: 29 *ready* that ran on a GPU, 40 template apps (a fixed prompt over the `edit` or `z-image` pipeline, written by `tools/template_apps.py`; their lab run is pending) and 1 *draft* (`reshoot`: it runs, but parts of the new view come out unfilled) |
| 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 | 47 cases, one showcase per app; the prompt each one would queue (values, overrides and inserted LoRAs) passes the same validator |
+| LoRA lab | 141 cases, one showcase per app plus one per effect (35); 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 |
+| GPU runs | Showcase lab run on an L40S (`20261020-133620-l40s`): 35 of 36 cases, one example per app; `recast` failed there and passed in a re-run (`20261020-162214-l40s`). Effects on 4 H100s at once (`20261021-140940-h100`, `--shards 4`): 61 of 61 cases in about 31 minutes of GPU, 2 min 52 s per effect on average, peak 30.8 GB. Two more H100 rounds (`20261021-152107-h100`, `20261021-175735-h100`) re-ran the 5 that failed with new photos and tried 7 LoRAs by other authors: Painting, Pirate captain, Zen and Crash zoom out were taken out, Dolly zoom and Bullet time moved to ostris's and joyfox's LoRAs, and Money rain, Clones and Steam from nose and ears were added. A fourth round (`20261021-195731-h100`, 14 of 14 cases) ran the new ones as shipped; after it, Jungle, Samurai, Warrior, Jumpscare, Smoke outfit change and Gothic transformation were taken out to keep the app SFW. That leaves 35 effects, each with an example in the gallery. VRAM figures below are weight sizes; the lab's measured peaks show up in the web UI |
## Apps
@@ -38,21 +38,73 @@ browser ──▶ web/ + server/ (Node, Comfy SDK) ──▶ gateway :8000 ─
| `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 |
+| `vfx-clean-plate`, `vfx-day-to-night`, `vfx-water` | VFX | LTX-2.5 + official IC-LoRAs | tight: 21.8–22.4 GB | ready |
+| `transitions` | Effects / Transitions | LTX-2.5 + transition LoRA (2.3) | tight: 21.9 GB | ready |
| `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 |
+| `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 | ready |
+| `effects` | Effects | Wan 2.1 image-to-video 14B (fp8) + 35 effect LoRAs, 30 of them by Remade-AI (Cakeify, Robot face reveal, Money rain, 360° orbit…), picked from a gallery, with a 6-step fast preset | fits by phases, 16.8 GB | ready |
| `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 |
+| `motion-transfer` | Character / motion swap | Wan Animate 2 (int8) | fits by phases, 16.6 GB | ready |
| `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 |
+| `talking` | Lipsync / Speak | LTX-2.5 audio-to-video (int8) | tight: 21.5 GB largest phase | ready |
| `smoke`, `smoke-invert` | — | none | — | ready |
+### Template apps
+
+Higgsfield's catalog is mostly fixed prompts over a few pipelines, and so is this: each of these apps is the `edit`
+pipeline (FLUX 3 Image Klein, one reference image) or Z-Image Turbo with its prompt baked in, selects that fill parts of
+it, and an "Extra direction" box appended to it. `tools/template_apps.py` holds the table and writes the 40 folders
+(manifest + a copy of the base workflow) and their lab cases; `--readme` prints this list and `--lab` the command that
+makes every example. Add a line to the table there, not a folder by hand.
+
+| App | Rebuilds | Base | Inputs |
+|---|---|---|---|
+| `poster` | Poster | `edit` | product photo, headline |
+| `packshot` | Packshot | `edit` | product photo, backdrop |
+| `macro-scene` | Macroshot Scene | `edit` | product photo, setting |
+| `macro-product` | Macroshot Product | `edit` | product photo |
+| `giant-product` | Giant Product | `edit` | product photo, time of day |
+| `billboard` | Billboard Ad | `edit` | your photo, where |
+| `graffiti-ad` | Graffiti Ad | `edit` | product photo |
+| `fridge-ad` | Fridge Ad | `edit` | product photo |
+| `ugc-shot` | Marketing (UGC) | `edit` | product photo, where |
+| `headshot` | AI Headshot Generator | `edit` | your selfie, backdrop, outfit |
+| `commercial-faces` | Commercial Faces | `edit` | your photo, campaign |
+| `style-snap` | Style Snap | `edit` | your photo, style |
+| `skin-enhancer` | Skin Enhancer | `edit` | your photo |
+| `outfit-vending` | Outfit Vending Machine | `edit` | your photo |
+| `glitter-sticker` | Glitter Sticker | `edit` | your photo |
+| `game-styles` | Game Dump | `edit` | your photo, game style |
+| `plushie` | Plushies | `edit` | your photo |
+| `render-3d` | 3D Render | `edit` | your photo |
+| `figure-3d` | 3D Figure | `edit` | your photo |
+| `pixel-game` | Pixel Game | `edit` | your photo |
+| `brick-toy` | Brick Cube | `edit` | your photo |
+| `sketch-to-real` | Sketch-to-Real | `edit` | your sketch |
+| `paint-app` | Paint App | `edit` | your photo |
+| `mural` | Signboard | `edit` | your photo |
+| `micro-beasts` | Surrounded by Animals | `edit` | your photo, animals |
+| `meme` | Meme Generator | `z-image` | scene, top text, bottom text |
+| `j-magazine` | J-Magazine | `edit` | your photo |
+| `cafe-60s` | 60s Cafe | `edit` | your photo |
+| `victory-card` | Victory Card | `edit` | your photo |
+| `j-poster` | J-Poster | `edit` | your photo |
+| `mascot` | Mascot | `edit` | your photo, mascot |
+| `burning-sunset` | Burning Sunset | `edit` | your photo |
+| `comic-book` | Comic Book | `edit` | your photo |
+| `giallo` | Giallo Horror | `edit` | your photo |
+| `renaissance` | Renaissance | `edit` | your photo |
+| `japanese-show` | Japanese Show | `edit` | your photo |
+| `breakdown` | Breakdown | `edit` | your photo |
+| `edit-text` | Edit Text | `edit` | image with text, text to replace, new text |
+| `image-effects` | Image Effects | `edit` | your photo, effect |
+| `color-grade` | Color Grading | `edit` | your photo, look |
+
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.
@@ -84,6 +136,35 @@ npm run app -- z-image --set prompt="a red bicycle against a white wall" # or
On Windows PowerShell, environment variables go before the command as `$env:FREEFIELD_GPU = "A10G"; modal deploy ...`.
+### The web app
+
+`npm run serve` opens a studio laid out like the one it rebuilds:
+
+- **Explore**: featured apps as video cards, the studios, and one lab example per app.
+- **Image** and **Audio**: prompt-first apps. Results fill the page and a floating bar holds the prompt, reference
+ images (click **+**, drop or paste them), one chip per setting, the number of generations and **Generate**, which shows
+ how long the lab example took on the GPU.
+- **Video** (and the upload-first tools): controls in a left column (*Create video*, *Edit video*, *Motion control*),
+ results on the right.
+- Every app has **History** (what you generated with it), **Library** (the lab example, *Load this example*) and
+ **How it works** (models and licenses, VRAM by phase, the download and terminal commands).
+- A thumbs-down on any lab example (Explore, Library, the viewer, the effects picker) marks it *mediocre*. The marks
+ live in `lab/flags.json` (key `<app>` or `<app>/<input>/<option>`), **Library → Lab examples → Mediocre** lists them,
+ and `lab/publish.py` clears a mark when a new run replaces that example. It is how a reviewer tells the lab which
+ results need a better model, LoRA or prompt.
+- **Apps** lists every app by category; **Library** shows everything you generated; **VRAM map** draws each app's
+ weights, largest phase and measured peak against 24 and 48 GB.
+- **Compare** (on any result) puts it next to another file side by side, or as a wipe for two images; videos play in
+ sync. Drop the result of the same prompt from Higgsfield, or anything else; dropped files never leave the browser.
+- The **GPU** pill says whether the backend is warm (asking never wakes it) and wakes it on request, so a cold start
+ happens while you prepare the inputs. When warm it shows the VRAM in use and which app is loaded.
+- English or Spanish (the globe button); it follows the browser until you pick one.
+
+Runs are recorded before they are submitted and kept in `out/history/<id>/` (inputs, outputs and a `meta.json` with
+the values, the seed that was used, and timings), so they survive a closed tab, the backend's retention and a server
+restart; runs still going when the server stops are picked up again. *Recreate* puts any result's inputs and settings
+back in the form.
+
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
@@ -99,14 +180,31 @@ modal run --detach lab/lab_modal.py --showcase # one example per app + the re
modal run lab/lab_modal.py --pull <run_id> # only if the terminal closed before the end: copy back and publish
```
+The effects app has one case per effect (`fx-*`, 35 of them, on synthetic people, objects and scenes made
+by `z-image` in the same run). Its effect picker is a *gallery* input, so `lab/publish.py` also keeps one example per
+effect (`web/examples/effects/options/`): the picker shows them as cards and *Explore* gets a wall of effects. A run
+of a few effects adds to that gallery without replacing the rest.
+
+```sh
+modal run --detach lab/lab_modal.py --apps effects --shards 4 # 35 effects + their 19 reference stills, on 4 GPUs at once
+modal run lab/lab_modal.py --only fx-cakeify,fx-squish # re-run a few after changing their prompt
+```
+
+`--shards N` works with any selection: it splits the cases over N GPU containers that run at the same time, keeping
+the cases that read the same reference together so each reference is made once (the 35 effects become 4 groups of
+8 or 9). The GPU time stays about the same, plus loading the models once per container; the wait drops to about 1/N.
+The groups write to `<run_id>-s1`, `-s2`… on the volume and come back merged into one `lab/results/<run_id>`, with one
+`review.html`; `--pull <run_id>` merges them the same way.
+
`--detach` keeps the GPU job running if the terminal closes; the run id is printed at the start. Missing models are
downloaded first on a CPU container, so no GPU is billed while they arrive (the whole catalog is
close to 300 GB). Then one GPU container runs the cases, recording time and peak VRAM, 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. Every output
also gets small web versions (a card, a poster for videos, a web-sized copy). At the end the run is copied to
`lab/results/<run_id>`, `review.html` is built there for rating, and `lab/publish.py` copies one example per app into
-`web/examples/`: the web UI shows it as the app's thumbnail, as an *Example* block (inputs → output, with the settings
-and a *Use these settings* button) and in the **gallery** tab.
+`web/examples/` (its output plus the reference files it was given): the web UI uses it as the app's card and video
+loop, in *Explore*, in each app's *Library* tab, and for *Load this example*, which puts the same inputs and settings in
+the form so you can run it again and compare.
```sh
modal run lab/lab_modal.py # every case (LoRA comparisons included) on an L40S
@@ -120,11 +218,14 @@ python tools/comfy_validate.py --comfy-dir /path/to/ComfyUI --placeholders --lab
## 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)*.
+ export it from ComfyUI with *Export (API)*. A fixed prompt over a pipeline that already runs is one line in
+ `tools/template_apps.py` instead (see *Template apps* above).
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`).
+ (extra node fields written when it is chosen, like the LoRA file that goes with a style); a string in `sets` may
+ use `{input_id}` placeholders like a bind template (each effect writes its LoRA's prompt, with its trigger words, around
+ your `{subject}`). `presets` change several fields at once (the 4-step mode of `camera-moves`), and a select marked
+ `"gallery": true` is shown as cards with one lab example per option.
3. Check it:
```sh
npm run validate # schema, bindings, declared models vs. loaders
@@ -146,5 +247,15 @@ Audio Community License, MiniMax H3 Community License). Some community LoRAs are
`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).
+30 of the 35 effect LoRAs in `effects` are [Remade-AI](https://huggingface.co/Remade-AI)'s; the other 5 are by
+[joyfox](https://huggingface.co/joyfox) (Bullet time, Money rain, Clones; its repos moved there from valiantcat and laozou),
+[ostris](https://huggingface.co/ostris) (Dolly zoom) and
+[lvfengchun](https://huggingface.co/lvfengchun) (Steam from nose and ears), all Apache-2.0. Each effect's prompt follows the
+example on its model card and keeps its trigger words. Nine of Remade-AI's image-to-video LoRAs are left out: the ones that undress someone, fire a gun, make two
+people kiss, or put a franchise character or a religious figure on screen. Four more came out wrong in three lab rounds (Painting,
+Pirate captain, Zen, Crash zoom out) and four were taken out to keep the app SFW (Jungle, Samurai, Warrior, Jumpscare); Remade-AI's
+Dolly effect and Bullet time were replaced. joyfox's smoke outfit change and gothic transformation LoRAs worked in the lab but were
+left out for the same reason: the first dresses people in the outfits of its examples (a bunny suit with a corset, a tight dress,
+a school uniform), the second puts gloved hands from someone unseen on the person's shoulders.
Use footage and characters you own or have permission for; the apps are meant for SFW work.
diff --git a/apps/billboard/app.json b/apps/billboard/app.json
new file mode 100644
index 0000000..cff03b7
--- /dev/null
+++ b/apps/billboard/app.json
@@ -0,0 +1,136 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "billboard",
+ "name": "Billboard",
+ "section": "image",
+ "summary": "Your photo on a giant lit billboard over a city street.",
+ "higgsfield_feature": "Billboard Ad",
+ "pack": "image-flux3",
+ "status": "ready",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "image_flux3_klein_distilled_image_edit.json",
+ "comfyui": "0.42.0",
+ "notes": "Template app written by tools/template_apps.py: the workflow is apps/edit's (built by tools/build_apps.py) and the prompt below is fixed; \"Extra direction\" is appended to it."
+ },
+ "inputs": [
+ {
+ "id": "image",
+ "type": "image",
+ "label": "Your photo",
+ "required": true,
+ "limits": {
+ "max_mb": 20
+ },
+ "bind": [
+ {
+ "node": "11",
+ "field": "image"
+ }
+ ]
+ },
+ {
+ "id": "where",
+ "type": "select",
+ "label": "Where",
+ "default": "on a skyscraper at night",
+ "options": [
+ {
+ "value": "on a skyscraper at night",
+ "label": "Skyscraper at night"
+ },
+ {
+ "value": "over a busy highway at dusk",
+ "label": "Highway at dusk"
+ },
+ {
+ "value": "in a rainy city square",
+ "label": "Rainy city square"
+ }
+ ]
+ },
+ {
+ "id": "details",
+ "type": "textarea",
+ "label": "Extra direction",
+ "help": "Added at the end of the app's prompt.",
+ "bind": [
+ {
+ "node": "4",
+ "field": "text",
+ "template": "The photo from <ref_image_0> displayed on a giant billboard {where}, the billboard lit up, pedestrians and traffic below, realistic. {details}"
+ }
+ ]
+ },
+ {
+ "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": "Result"
+ }
+ ],
+ "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"
+ }
+}
diff --git a/apps/billboard/workflow.api.json b/apps/billboard/workflow.api.json
new file mode 100644
index 0000000..89bf07c
--- /dev/null
+++ b/apps/billboard/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/breakdown/app.json b/apps/breakdown/app.json
new file mode 100644
index 0000000..f05a86c
--- /dev/null
+++ b/apps/breakdown/app.json
@@ -0,0 +1,116 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "breakdown",
+ "name": "Breakdown",
+ "section": "image",
+ "summary": "The subject of your photo taken apart into labeled components, knolling style.",
+ "higgsfield_feature": "Breakdown",
+ "pack": "image-flux3",
+ "status": "ready",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "image_flux3_klein_distilled_image_edit.json",
+ "comfyui": "0.42.0",
+ "notes": "Template app written by tools/template_apps.py: the workflow is apps/edit's (built by tools/build_apps.py) and the prompt below is fixed; \"Extra direction\" is appended to it."
+ },
+ "inputs": [
+ {
+ "id": "image",
+ "type": "image",
+ "label": "Your photo",
+ "required": true,
+ "limits": {
+ "max_mb": 20
+ },
+ "bind": [
+ {
+ "node": "11",
+ "field": "image"
+ }
+ ]
+ },
+ {
+ "id": "details",
+ "type": "textarea",
+ "label": "Extra direction",
+ "help": "Added at the end of the app's prompt.",
+ "bind": [
+ {
+ "node": "4",
+ "field": "text",
+ "template": "The subject of <ref_image_0> taken apart into its components, laid out neatly on a grid with small labels, knolling photography, top-down, white background. {details}"
+ }
+ ]
+ },
+ {
+ "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": "Result"
+ }
+ ],
+ "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"
+ }
+}
diff --git a/apps/breakdown/workflow.api.json b/apps/breakdown/workflow.api.json
new file mode 100644
index 0000000..89bf07c
--- /dev/null
+++ b/apps/breakdown/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/brick-toy/app.json b/apps/brick-toy/app.json
new file mode 100644
index 0000000..631059f
--- /dev/null
+++ b/apps/brick-toy/app.json
@@ -0,0 +1,116 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "brick-toy",
+ "name": "Brick Toy",
+ "section": "image",
+ "summary": "The subject of your photo rebuilt from interlocking plastic bricks.",
+ "higgsfield_feature": "Brick Cube",
+ "pack": "image-flux3",
+ "status": "ready",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "image_flux3_klein_distilled_image_edit.json",
+ "comfyui": "0.42.0",
+ "notes": "Template app written by tools/template_apps.py: the workflow is apps/edit's (built by tools/build_apps.py) and the prompt below is fixed; \"Extra direction\" is appended to it."
+ },
+ "inputs": [
+ {
+ "id": "image",
+ "type": "image",
+ "label": "Your photo",
+ "required": true,
+ "limits": {
+ "max_mb": 20
+ },
+ "bind": [
+ {
+ "node": "11",
+ "field": "image"
+ }
+ ]
+ },
+ {
+ "id": "details",
+ "type": "textarea",
+ "label": "Extra direction",
+ "help": "Added at the end of the app's prompt.",
+ "bind": [
+ {
+ "node": "4",
+ "field": "text",
+ "template": "The subject of <ref_image_0> rebuilt as a toy made of interlocking plastic bricks, blocky shapes, studs visible, on a white table. {details}"
+ }
+ ]
+ },
+ {
+ "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": "Result"
+ }
+ ],
+ "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"
+ }
+}
diff --git a/apps/brick-toy/workflow.api.json b/apps/brick-toy/workflow.api.json
new file mode 100644
index 0000000..89bf07c
--- /dev/null
+++ b/apps/brick-toy/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/burning-sunset/app.json b/apps/burning-sunset/app.json
new file mode 100644
index 0000000..7ddd1ee
--- /dev/null
+++ b/apps/burning-sunset/app.json
@@ -0,0 +1,116 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "burning-sunset",
+ "name": "Burning Sunset",
+ "section": "image",
+ "summary": "Your scene under a blazing sunset sky.",
+ "higgsfield_feature": "Burning Sunset",
+ "pack": "image-flux3",
+ "status": "ready",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "image_flux3_klein_distilled_image_edit.json",
+ "comfyui": "0.42.0",
+ "notes": "Template app written by tools/template_apps.py: the workflow is apps/edit's (built by tools/build_apps.py) and the prompt below is fixed; \"Extra direction\" is appended to it."
+ },
+ "inputs": [
+ {
+ "id": "image",
+ "type": "image",
+ "label": "Your photo",
+ "required": true,
+ "limits": {
+ "max_mb": 20
+ },
+ "bind": [
+ {
+ "node": "11",
+ "field": "image"
+ }
+ ]
+ },
+ {
+ "id": "details",
+ "type": "textarea",
+ "label": "Extra direction",
+ "help": "Added at the end of the app's prompt.",
+ "bind": [
+ {
+ "node": "4",
+ "field": "text",
+ "template": "The scene from <ref_image_0> under a blazing sunset: the sky on fire with orange and crimson clouds, long shadows, warm light on everything, composition unchanged. {details}"
+ }
+ ]
+ },
+ {
+ "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": "Result"
+ }
+ ],
+ "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"
+ }
+}
diff --git a/apps/burning-sunset/workflow.api.json b/apps/burning-sunset/workflow.api.json
new file mode 100644
index 0000000..89bf07c
--- /dev/null
+++ b/apps/burning-sunset/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/cafe-60s/app.json b/apps/cafe-60s/app.json
new file mode 100644
index 0000000..5fc648d
--- /dev/null
+++ b/apps/cafe-60s/app.json
@@ -0,0 +1,116 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "cafe-60s",
+ "name": "60s Cafe",
+ "section": "image",
+ "summary": "You in a 1960s cafe: period clothes, chrome counter, film grain.",
+ "higgsfield_feature": "60s Cafe",
+ "pack": "image-flux3",
+ "status": "ready",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "image_flux3_klein_distilled_image_edit.json",
+ "comfyui": "0.42.0",
+ "notes": "Template app written by tools/template_apps.py: the workflow is apps/edit's (built by tools/build_apps.py) and the prompt below is fixed; \"Extra direction\" is appended to it."
+ },
+ "inputs": [
+ {
+ "id": "image",
+ "type": "image",
+ "label": "Your photo",
+ "required": true,
+ "limits": {
+ "max_mb": 20
+ },
+ "bind": [
+ {
+ "node": "11",
+ "field": "image"
+ }
+ ]
+ },
+ {
+ "id": "details",
+ "type": "textarea",
+ "label": "Extra direction",
+ "help": "Added at the end of the app's prompt.",
+ "bind": [
+ {
+ "node": "4",
+ "field": "text",
+ "template": "The person from <ref_image_0> sitting in a 1960s cafe: period clothes and hairstyle, chrome counter, pastel colors, Kodachrome film grain, warm light. Keep the face, hairstyle and build identical. {details}"
+ }
+ ]
+ },
+ {
+ "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": "Result"
+ }
+ ],
+ "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"
+ }
+}
diff --git a/apps/cafe-60s/workflow.api.json b/apps/cafe-60s/workflow.api.json
new file mode 100644
index 0000000..89bf07c
--- /dev/null
+++ b/apps/cafe-60s/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/camera-copy/app.json b/apps/camera-copy/app.json
index eab5013..13a3398 100644
--- a/apps/camera-copy/app.json
+++ b/apps/camera-copy/app.json
@@ -4,7 +4,7 @@
"name": "Camera Copy",
"section": "video",
"pack": "video-ltx25",
- "status": "draft",
+ "status": "ready",
"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",
diff --git a/apps/color-grade/app.json b/apps/color-grade/app.json
new file mode 100644
index 0000000..0d2a8fb
--- /dev/null
+++ b/apps/color-grade/app.json
@@ -0,0 +1,149 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "color-grade",
+ "name": "Color Grade",
+ "section": "image",
+ "summary": "Six color grades for a photo: teal and orange, vintage film, noir, pastel, B&W, golden hour.",
+ "higgsfield_feature": "Color Grading",
+ "pack": "image-flux3",
+ "status": "ready",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "image_flux3_klein_distilled_image_edit.json",
+ "comfyui": "0.42.0",
+ "notes": "Template app written by tools/template_apps.py: the workflow is apps/edit's (built by tools/build_apps.py) and the prompt below is fixed; \"Extra direction\" is appended to it."
+ },
+ "inputs": [
+ {
+ "id": "image",
+ "type": "image",
+ "label": "Your photo",
+ "required": true,
+ "limits": {
+ "max_mb": 20
+ },
+ "bind": [
+ {
+ "node": "11",
+ "field": "image"
+ }
+ ]
+ },
+ {
+ "id": "look",
+ "type": "select",
+ "label": "Look",
+ "default": "teal and orange blockbuster",
+ "options": [
+ {
+ "value": "teal and orange blockbuster",
+ "label": "Teal and orange"
+ },
+ {
+ "value": "warm vintage film",
+ "label": "Warm vintage film"
+ },
+ {
+ "value": "cold desaturated noir",
+ "label": "Cold noir"
+ },
+ {
+ "value": "soft pastel",
+ "label": "Pastel"
+ },
+ {
+ "value": "high-contrast black and white",
+ "label": "High-contrast B&W"
+ },
+ {
+ "value": "golden hour glow",
+ "label": "Golden hour"
+ }
+ ]
+ },
+ {
+ "id": "details",
+ "type": "textarea",
+ "label": "Extra direction",
+ "help": "Added at the end of the app's prompt.",
+ "bind": [
+ {
+ "node": "4",
+ "field": "text",
+ "template": "Color grade the photo from <ref_image_0> with a {look} look; keep every detail and the composition. {details}"
+ }
+ ]
+ },
+ {
+ "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": "Result"
+ }
+ ],
+ "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",
+ "look": "teal and orange blockbuster"
+ }
+}
diff --git a/apps/color-grade/workflow.api.json b/apps/color-grade/workflow.api.json
new file mode 100644
index 0000000..89bf07c
--- /dev/null
+++ b/apps/color-grade/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/comic-book/app.json b/apps/comic-book/app.json
new file mode 100644
index 0000000..597ccd2
--- /dev/null
+++ b/apps/comic-book/app.json
@@ -0,0 +1,116 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "comic-book",
+ "name": "Comic Book",
+ "section": "image",
+ "summary": "Your photo as a comic book panel: ink lines, halftone, a caption box.",
+ "higgsfield_feature": "Comic Book",
+ "pack": "image-flux3",
+ "status": "ready",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "image_flux3_klein_distilled_image_edit.json",
+ "comfyui": "0.42.0",
+ "notes": "Template app written by tools/template_apps.py: the workflow is apps/edit's (built by tools/build_apps.py) and the prompt below is fixed; \"Extra direction\" is appended to it."
+ },
+ "inputs": [
+ {
+ "id": "image",
+ "type": "image",
+ "label": "Your photo",
+ "required": true,
+ "limits": {
+ "max_mb": 20
+ },
+ "bind": [
+ {
+ "node": "11",
+ "field": "image"
+ }
+ ]
+ },
+ {
+ "id": "details",
+ "type": "textarea",
+ "label": "Extra direction",
+ "help": "Added at the end of the app's prompt.",
+ "bind": [
+ {
+ "node": "4",
+ "field": "text",
+ "template": "The photo from <ref_image_0> as a comic book panel: bold ink outlines, halftone dots, flat colors, an action caption box, dynamic framing. {details}"
+ }
+ ]
+ },
+ {
+ "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": "Result"
+ }
+ ],
+ "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"
+ }
+}
diff --git a/apps/comic-book/workflow.api.json b/apps/comic-book/workflow.api.json
new file mode 100644
index 0000000..89bf07c
--- /dev/null
+++ b/apps/comic-book/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/commercial-faces/app.json b/apps/commercial-faces/app.json
new file mode 100644
index 0000000..2012ccb
--- /dev/null
+++ b/apps/commercial-faces/app.json
@@ -0,0 +1,140 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "commercial-faces",
+ "name": "Commercial Faces",
+ "section": "image",
+ "summary": "Campaign portraits of you: skincare, corporate, sportswear or editorial.",
+ "higgsfield_feature": "Commercial Faces",
+ "pack": "image-flux3",
+ "status": "ready",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "image_flux3_klein_distilled_image_edit.json",
+ "comfyui": "0.42.0",
+ "notes": "Template app written by tools/template_apps.py: the workflow is apps/edit's (built by tools/build_apps.py) and the prompt below is fixed; \"Extra direction\" is appended to it."
+ },
+ "inputs": [
+ {
+ "id": "image",
+ "type": "image",
+ "label": "Your photo",
+ "required": true,
+ "limits": {
+ "max_mb": 20
+ },
+ "bind": [
+ {
+ "node": "11",
+ "field": "image"
+ }
+ ]
+ },
+ {
+ "id": "use",
+ "type": "select",
+ "label": "Campaign",
+ "default": "a skincare advert, clean beauty lighting",
+ "options": [
+ {
+ "value": "a skincare advert, clean beauty lighting",
+ "label": "Skincare advert"
+ },
+ {
+ "value": "a bank's corporate brochure",
+ "label": "Corporate brochure"
+ },
+ {
+ "value": "a sportswear campaign, dynamic pose",
+ "label": "Sportswear"
+ },
+ {
+ "value": "a fashion editorial, dramatic side light",
+ "label": "Fashion editorial"
+ }
+ ]
+ },
+ {
+ "id": "details",
+ "type": "textarea",
+ "label": "Extra direction",
+ "help": "Added at the end of the app's prompt.",
+ "bind": [
+ {
+ "node": "4",
+ "field": "text",
+ "template": "A commercial campaign portrait of the same person as in <ref_image_0> for {use}, professional lighting, editorial composition, magazine print quality. Keep the face, hairstyle and build identical. {details}"
+ }
+ ]
+ },
+ {
+ "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": "Result"
+ }
+ ],
+ "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"
+ }
+}
diff --git a/apps/commercial-faces/workflow.api.json b/apps/commercial-faces/workflow.api.json
new file mode 100644
index 0000000..89bf07c
--- /dev/null
+++ b/apps/commercial-faces/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/edit-text/app.json b/apps/edit-text/app.json
new file mode 100644
index 0000000..748ca0b
--- /dev/null
+++ b/apps/edit-text/app.json
@@ -0,0 +1,132 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "edit-text",
+ "name": "Edit Text",
+ "section": "image",
+ "summary": "Replaces the text written in an image, keeping the font and perspective.",
+ "higgsfield_feature": "Edit Text",
+ "pack": "image-flux3",
+ "status": "ready",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "image_flux3_klein_distilled_image_edit.json",
+ "comfyui": "0.42.0",
+ "notes": "Template app written by tools/template_apps.py: the workflow is apps/edit's (built by tools/build_apps.py) and the prompt below is fixed; \"Extra direction\" is appended to it."
+ },
+ "inputs": [
+ {
+ "id": "image",
+ "type": "image",
+ "label": "Image with text",
+ "required": true,
+ "limits": {
+ "max_mb": 20
+ },
+ "bind": [
+ {
+ "node": "11",
+ "field": "image"
+ }
+ ]
+ },
+ {
+ "id": "old",
+ "type": "text",
+ "label": "Text to replace",
+ "default": "",
+ "required": true
+ },
+ {
+ "id": "new",
+ "type": "text",
+ "label": "New text",
+ "default": "",
+ "required": true
+ },
+ {
+ "id": "details",
+ "type": "textarea",
+ "label": "Extra direction",
+ "help": "Added at the end of the app's prompt.",
+ "bind": [
+ {
+ "node": "4",
+ "field": "text",
+ "template": "Replace the text \"{old}\" with \"{new}\" in <ref_image_0>, keeping the same font, color, size and perspective; nothing else changes. {details}"
+ }
+ ]
+ },
+ {
+ "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": "Result"
+ }
+ ],
+ "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",
+ "old": "OPEN",
+ "new": "CLOSED"
+ }
+}
diff --git a/apps/edit-text/workflow.api.json b/apps/edit-text/workflow.api.json
new file mode 100644
index 0000000..89bf07c
--- /dev/null
+++ b/apps/edit-text/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/effects/app.json b/apps/effects/app.json
new file mode 100644
index 0000000..66eac3f
--- /dev/null
+++ b/apps/effects/app.json
@@ -0,0 +1,1130 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "effects",
+ "name": "Effects",
+ "section": "video",
+ "pack": "video-wan-effects",
+ "status": "ready",
+ "higgsfield_feature": "Effects",
+ "summary": "Turns a photo into a 5-second effect clip: 35 open effect LoRAs, from Cakeify and a robot face reveal to money rain and a 360° orbit (Wan 2.1 image-to-video).",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "image_to_video_wan.json",
+ "comfyui": "0.42.0",
+ "notes": "fp8 weights instead of fp16. Each effect option swaps the effect LoRA that sits after the model loader (Remade-AI's for 30 effects; joyfox's, ostris's and lvfengchun's for the other 5) and writes a prompt modeled on the example in that LoRA's model card (trigger words included), with your subject in it. lightx2v's step-distill LoRA is added at strength 0 (a no-op) for the fast preset. Flow shift 5, as Remade-AI's cards recommend."
+ },
+ "inputs": [
+ {
+ "id": "image",
+ "type": "image",
+ "label": "Your photo",
+ "required": true,
+ "limits": {
+ "max_mb": 20
+ },
+ "bind": [
+ {
+ "node": "52",
+ "field": "image"
+ }
+ ]
+ },
+ {
+ "id": "effect",
+ "type": "select",
+ "label": "Effect",
+ "default": "robot-face",
+ "options": [
+ {
+ "value": "assassin",
+ "label": "Assassin",
+ "sets": [
+ {
+ "node": "ff_effect",
+ "field": "lora_name",
+ "value": "assassin_45_epochs.safetensors"
+ },
+ {
+ "node": "6",
+ "field": "text",
+ "value": "The video starts with a portrait of {subject}. Then the 3p1c epic transformation starts: they are now dressed as a stealthy assassin in a dark hooded outfit with a long coat and black gloves, standing in a moody city alley at night. The 3p1c epic transformation is complete. {details}"
+ }
+ ]
+ },
+ {
+ "value": "baby",
+ "label": "Baby",
+ "sets": [
+ {
+ "node": "ff_effect",
+ "field": "lora_name",
+ "value": "baby_50_epochs.safetensors"
+ },
+ {
+ "node": "6",
+ "field": "text",
+ "value": "The video starts with a studio portrait of {subject}. Then the image shifts to the 848y baby effect, and they are now a baby in front of a crib, surrounded by toys. Finally, the 848y baby effect is shown again in a different location: the baby version is in the crib and seems excited and amused. {details}"
+ }
+ ]
+ },
+ {
+ "value": "bride",
+ "label": "Bride",
+ "sets": [
+ {
+ "node": "ff_effect",
+ "field": "lora_name",
+ "value": "bride_50_epochs.safetensors"
+ },
+ {
+ "node": "6",
+ "field": "text",
+ "value": "The video starts with a close-up of {subject} smiling, then the 8r1d3 bride effect happens. They are now in a white lace wedding dress with a veil, smiling, holding a bouquet of white flowers in front of a softly blurred background. {details}"
+ }
+ ]
+ },
+ {
+ "value": "classy",
+ "label": "Classy",
+ "sets": [
+ {
+ "node": "ff_effect",
+ "field": "lora_name",
+ "value": "classy_45_epochs.safetensors"
+ },
+ {
+ "node": "6",
+ "field": "text",
+ "value": "The video starts with {subject}. The c1455y classy transformation occurs and they are now wearing an elegant light blue dress, holding a small white envelope and a flower, smiling and looking at the camera, seated at a wooden table against a gold and brown background. {details}"
+ }
+ ]
+ },
+ {
+ "value": "mona-lisa",
+ "label": "Mona Lisa",
+ "sets": [
+ {
+ "node": "ff_effect",
+ "field": "lora_name",
+ "value": "mona_lisa_45_epochs.safetensors"
+ },
+ {
+ "node": "6",
+ "field": "text",
+ "value": "The video starts with an image of {subject}. The m0n4 Mona Lisa transformation begins as a dark sheet seems to wrap around them, and when the image resolves, they are depicted as a Mona Lisa version of themselves, seated in a chair with a landscape painting backdrop. {details}"
+ }
+ ]
+ },
+ {
+ "value": "princess",
+ "label": "Princess",
+ "sets": [
+ {
+ "node": "ff_effect",
+ "field": "lora_name",
+ "value": "princess_45_epochs.safetensors"
+ },
+ {
+ "node": "6",
+ "field": "text",
+ "value": "The video begins with an image of {subject}. A pr1nc355 princess transformation then happens as white sparkling light appears around them. They are now wearing a tiara, a long silver beaded gown and long silver gloves, seated in front of a table with gifts and candles in a room with white curtains. {details}"
+ }
+ ]
+ },
+ {
+ "value": "robot-face",
+ "label": "Robot face reveal",
+ "sets": [
+ {
+ "node": "ff_effect",
+ "field": "lora_name",
+ "value": "robot_face_reveal_35_epochs.safetensors"
+ },
+ {
+ "node": "6",
+ "field": "text",
+ "value": "The video shows the face of {subject}, with the r8b8t1c robotic face reveal starting with subtle movements, then lines appear on the face, the expression staying the same as the robot face is revealed. {details}"
+ }
+ ]
+ },
+ {
+ "value": "vip",
+ "label": "VIP red carpet",
+ "sets": [
+ {
+ "node": "ff_effect",
+ "field": "lora_name",
+ "value": "vip_50_epochs.safetensors"
+ },
+ {
+ "node": "6",
+ "field": "text",
+ "value": "The video begins with an image of {subject}. Then the v1p red carpet transformation appears: they are shown wearing an elegant black dress with gold jewelry. The v1p red carpet transformation continues, and they are now on the red carpet, with photographers taking pictures behind a barricade. {details}"
+ }
+ ]
+ },
+ {
+ "value": "angry",
+ "label": "Angry face",
+ "sets": [
+ {
+ "node": "ff_effect",
+ "field": "lora_name",
+ "value": "angry_face_5_epochs.safetensors"
+ },
+ {
+ "node": "6",
+ "field": "text",
+ "value": "The video shows {subject} with a neutral expression. The expression changes to 4ngr23 angry face, and they start yelling, then throw their arms up while making the 4ngr23 angry face. {details}"
+ }
+ ]
+ },
+ {
+ "value": "crying",
+ "label": "Crying",
+ "sets": [
+ {
+ "node": "ff_effect",
+ "field": "lora_name",
+ "value": "crying_20_epochs.safetensors"
+ },
+ {
+ "node": "6",
+ "field": "text",
+ "value": "The video starts with {subject}, appearing with a sad expression. Then a tear rolls down their cheek, as they are cr471ng crying. {details}"
+ }
+ ]
+ },
+ {
+ "value": "laughing",
+ "label": "Laughing",
+ "sets": [
+ {
+ "node": "ff_effect",
+ "field": "lora_name",
+ "value": "laughing_15_epochs.safetensors"
+ },
+ {
+ "node": "6",
+ "field": "text",
+ "value": "The video shows {subject}, who starts by looking into the camera and smiling, and then starts l4a6ing laughing, still l4a6ing laughing at the end. {details}"
+ }
+ ]
+ },
+ {
+ "value": "jaw-drop",
+ "label": "Cartoon jaw drop",
+ "sets": [
+ {
+ "node": "ff_effect",
+ "field": "lora_name",
+ "value": "cartoon_jaw_drop_50_epochs.safetensors"
+ },
+ {
+ "node": "6",
+ "field": "text",
+ "value": "The video shows {subject}, who is smiling wide, then their mouth transforms into a dr0p_j88 comical jaw drop, extending down in a long, rectangular shape, and revealing the tongue and teeth. {details}"
+ }
+ ]
+ },
+ {
+ "value": "puppies",
+ "label": "Surrounded by puppies",
+ "sets": [
+ {
+ "node": "ff_effect",
+ "field": "lora_name",
+ "value": "puppy_50_epochs.safetensors"
+ },
+ {
+ "node": "6",
+ "field": "text",
+ "value": "The video begins with a close-up portrait of {subject}. The background changes and then the pu11y puppy effect begins. They are now surrounded by many puppies and pet the puppies. {details}"
+ }
+ ]
+ },
+ {
+ "value": "selfie-younger",
+ "label": "Selfie with younger self",
+ "sets": [
+ {
+ "node": "ff_effect",
+ "field": "lora_name",
+ "value": "selfie_younger_self_15_epochs.safetensors"
+ },
+ {
+ "node": "6",
+ "field": "text",
+ "value": "The video starts with {subject} smiling at the camera, then s31lf13 taking a selfie with their younger self, and the younger self appears next to them with similar facial features and eye color. The younger self is smiling slightly. {details}"
+ }
+ ]
+ },
+ {
+ "value": "steam",
+ "label": "Steam from nose and ears",
+ "sets": [
+ {
+ "node": "ff_effect",
+ "field": "lora_name",
+ "value": "wan21_penqi_000003500.safetensors"
+ },
+ {
+ "node": "6",
+ "field": "text",
+ "value": "p3n91,鼻孔和耳朵冒出白烟。The video shows {subject}, who gets angry as white steam shoots out of their nostrils and ears. {details}"
+ }
+ ]
+ },
+ {
+ "value": "money-rain",
+ "label": "Money rain",
+ "sets": [
+ {
+ "node": "ff_effect",
+ "field": "lora_name",
+ "value": "money_000003000.safetensors"
+ },
+ {
+ "node": "6",
+ "field": "text",
+ "value": "飘落的美钞。The video shows {subject}, smiling as US dollar bills fall from above all around them. {details}"
+ }
+ ]
+ },
+ {
+ "value": "clones",
+ "label": "Clones",
+ "sets": [
+ {
+ "node": "ff_effect",
+ "field": "lora_name",
+ "value": "fensheng_000003500.safetensors"
+ },
+ {
+ "node": "6",
+ "field": "text",
+ "value": "镜头快速拉远,人物快速分裂出三个做着相同战斗姿势的影分身,站成一排,全身一直散发着浓烈的金色能量,分身保持人物一致性,令人惊叹的视觉效果。The video shows {subject}. {details}"
+ }
+ ]
+ },
+ {
+ "value": "cakeify",
+ "label": "Cakeify",
+ "sets": [
+ {
+ "node": "ff_effect",
+ "field": "lora_name",
+ "value": "cakeify_16_epochs.safetensors"
+ },
+ {
+ "node": "6",
+ "field": "text",
+ "value": "The video opens on {subject}. A knife, held by a hand, is coming into frame and hovering over it. The knife then begins cutting into it to c4k3 cakeify it. As the knife slices it open, the inside is revealed to be cake with chocolate layers. The knife cuts through and the contents are revealed. {details}"
+ }
+ ]
+ },
+ {
+ "value": "crush",
+ "label": "Hydraulic press",
+ "sets": [
+ {
+ "node": "ff_effect",
+ "field": "lora_name",
+ "value": "crush_20_epochs.safetensors"
+ },
+ {
+ "node": "6",
+ "field": "text",
+ "value": "The video begins with {subject}. A hydraulic press positioned above slowly descends towards it. Upon contact, the hydraulic press c5us4 crushes it, deforming and flattening it, causing it to collapse inward until it is no longer recognizable. {details}"
+ }
+ ]
+ },
+ {
+ "value": "deflate",
+ "label": "Deflate",
+ "sets": [
+ {
+ "node": "ff_effect",
+ "field": "lora_name",
+ "value": "deflate_20_epochs.safetensors"
+ },
+ {
+ "node": "6",
+ "field": "text",
+ "value": "The video opens with {subject}. As the video progresses, it begins to d3d1at3 deflate it, gradually shrinking and losing shape, eventually flattening completely into a lifeless, deflated mass on the ground. {details}"
+ }
+ ]
+ },
+ {
+ "value": "electrify",
+ "label": "Electrify",
+ "sets": [
+ {
+ "node": "ff_effect",
+ "field": "lora_name",
+ "value": "electrify_50_epochs.safetensors"
+ },
+ {
+ "node": "6",
+ "field": "text",
+ "value": "The video shows {subject}. The e13c7r1c electricity effect streaks through the scene: bright electric arcs crackle around it, each strike lighting it up for a brief moment. {details}"
+ }
+ ]
+ },
+ {
+ "value": "explode",
+ "label": "Explode",
+ "sets": [
+ {
+ "node": "ff_effect",
+ "field": "lora_name",
+ "value": "explode_30_epochs.safetensors"
+ },
+ {
+ "node": "6",
+ "field": "text",
+ "value": "The video opens with {subject}. Then it 3xp105ion huge explosion that engulfs the entire screen with a bright light. The light is so bright that it obscures everything around. {details}"
+ }
+ ]
+ },
+ {
+ "value": "inflate",
+ "label": "Inflate",
+ "sets": [
+ {
+ "node": "ff_effect",
+ "field": "lora_name",
+ "value": "inflate_20_epochs.safetensors"
+ },
+ {
+ "node": "6",
+ "field": "text",
+ "value": "The video shows {subject}, then infl4t3 inflates it, expanding into a giant, round, inflated figure. {details}"
+ }
+ ]
+ },
+ {
+ "value": "rotate",
+ "label": "Rotate 360°",
+ "sets": [
+ {
+ "node": "ff_effect",
+ "field": "lora_name",
+ "value": "rotate_20_epochs.safetensors"
+ },
+ {
+ "node": "6",
+ "field": "text",
+ "value": "The video shows {subject}. It performs a r0t4tion 360 degrees rotation. {details}"
+ }
+ ]
+ },
+ {
+ "value": "squish",
+ "label": "Squish",
+ "sets": [
+ {
+ "node": "ff_effect",
+ "field": "lora_name",
+ "value": "squish_18.safetensors"
+ },
+ {
+ "node": "6",
+ "field": "text",
+ "value": "In the video, {subject} is presented, held in a person's hands. The person then presses on it, causing a sq41sh squish effect. The person keeps pressing down on it, further showing the sq41sh squish effect. {details}"
+ }
+ ]
+ },
+ {
+ "value": "orbit-360",
+ "label": "360° orbit",
+ "sets": [
+ {
+ "node": "ff_effect",
+ "field": "lora_name",
+ "value": "360_Orbit.safetensors"
+ },
+ {
+ "node": "6",
+ "field": "text",
+ "value": "The video shows {subject}. The camera performs an 0rb4it 360 degree orbit, circling around and showing the surroundings, before returning to the front view. Throughout the 0rb4it 360 degree orbit, the main subject stays in place. {details}"
+ }
+ ]
+ },
+ {
+ "value": "arc-shot",
+ "label": "Arc shot",
+ "sets": [
+ {
+ "node": "ff_effect",
+ "field": "lora_name",
+ "value": "Arc_shot.safetensors"
+ },
+ {
+ "node": "6",
+ "field": "text",
+ "value": "The video shows {subject}. The 34Ar2c arc the camera moves in a smooth curve around the main subject, shifting the perspective around it. {details}"
+ }
+ ]
+ },
+ {
+ "value": "bullet-time",
+ "label": "Bullet time",
+ "sets": [
+ {
+ "node": "ff_effect",
+ "field": "lora_name",
+ "value": "Wan21_I2V_rotation_000003750.safetensors"
+ },
+ {
+ "node": "6",
+ "field": "text",
+ "value": "rw360xz,人物定在空中,相机视角围绕人物向一个方向旋转。The video shows {subject}, frozen in mid-air while the camera circles around them in one direction. {details}"
+ }
+ ]
+ },
+ {
+ "value": "car-chase",
+ "label": "Car chase",
+ "sets": [
+ {
+ "node": "ff_effect",
+ "field": "lora_name",
+ "value": "car_chase.safetensors"
+ },
+ {
+ "node": "6",
+ "field": "text",
+ "value": "The video depicts a dramatic c4r ch4s3 car chase. {subject} speeds along the road, followed closely by a pursuing car, while a helicopter shines a spotlight from above. The camera tracks the pursuit, panning as the car drifts into a turn, emphasizing the ongoing c4r ch4s3 car chase. {details}"
+ }
+ ]
+ },
+ {
+ "value": "crane-down",
+ "label": "Crane down",
+ "sets": [
+ {
+ "node": "ff_effect",
+ "field": "lora_name",
+ "value": "crane_down.safetensors"
+ },
+ {
+ "node": "6",
+ "field": "text",
+ "value": "The video shows {subject}. The cr4n3 crane down camera motion begins high above the scene, slowly lowering the view. The camera continues to move downwards, getting closer. {details}"
+ }
+ ]
+ },
+ {
+ "value": "crane-over-head",
+ "label": "Crane over the head",
+ "sets": [
+ {
+ "node": "ff_effect",
+ "field": "lora_name",
+ "value": "crane_overhead.safetensors"
+ },
+ {
+ "node": "6",
+ "field": "text",
+ "value": "The video shows {subject}. The camera begins a cr4n3 crane over the head movement, rising smoothly upwards. As the cr4n3 crane over the head movement progresses, the camera passes overhead. The cr4n3 crane over the head movement concludes with a high-angle shot looking down. {details}"
+ }
+ ]
+ },
+ {
+ "value": "crane-up",
+ "label": "Crane up",
+ "sets": [
+ {
+ "node": "ff_effect",
+ "field": "lora_name",
+ "value": "crane_up.safetensors"
+ },
+ {
+ "node": "6",
+ "field": "text",
+ "value": "The video shows {subject}. The cr4n3 crane up effect is applied, smoothly lifting the camera's viewpoint higher, revealing more of the surrounding landscape. {details}"
+ }
+ ]
+ },
+ {
+ "value": "crash-zoom-in",
+ "label": "Crash zoom in",
+ "sets": [
+ {
+ "node": "ff_effect",
+ "field": "lora_name",
+ "value": "crash_zoom_in.safetensors"
+ },
+ {
+ "node": "6",
+ "field": "text",
+ "value": "The video shows {subject}. The camera performs a cr34sh crash zoom in effect, rapidly zooming closer to the face. {details}"
+ }
+ ]
+ },
+ {
+ "value": "dolly-zoom",
+ "label": "Dolly zoom",
+ "sets": [
+ {
+ "node": "ff_effect",
+ "field": "lora_name",
+ "value": "wan_21_i2v_dolly_zoom.safetensors"
+ },
+ {
+ "node": "6",
+ "field": "text",
+ "value": "dolly zoom. The video shows {subject}. The camera moves toward them while zooming out: they stay the same size and the background behind them stretches away. {details}"
+ }
+ ]
+ },
+ {
+ "value": "hero-run",
+ "label": "Hero run",
+ "sets": [
+ {
+ "node": "ff_effect",
+ "field": "lora_name",
+ "value": "Hero_run.safetensors"
+ },
+ {
+ "node": "6",
+ "field": "text",
+ "value": "The video shows {subject}, poised in a starting position and facing the camera. Then they explode from the starting position, beginning the 4ct3ion Action Run directly towards the camera, pumping their arms. {details}"
+ }
+ ]
+ }
+ ],
+ "gallery": true
+ },
+ {
+ "id": "subject",
+ "type": "textarea",
+ "label": "Who or what is in the photo",
+ "required": true,
+ "default": "a person",
+ "help": "A few words; the effect's prompt is written around them, e.g. \"a man in a grey t-shirt\", \"an orange cat\", \"a white sneaker\"."
+ },
+ {
+ "id": "details",
+ "type": "textarea",
+ "label": "Extra direction",
+ "help": "Added at the end of the effect's prompt."
+ },
+ {
+ "id": "strength",
+ "type": "slider",
+ "label": "Effect strength",
+ "min": 0.5,
+ "max": 1.4,
+ "step": 0.05,
+ "default": 1.0,
+ "bind": [
+ {
+ "node": "ff_effect",
+ "field": "strength_model"
+ }
+ ]
+ },
+ {
+ "id": "aspect",
+ "type": "select",
+ "label": "Format",
+ "default": "portrait",
+ "options": [
+ {
+ "value": "portrait",
+ "label": "9:16",
+ "sets": [
+ {
+ "node": "50",
+ "field": "width",
+ "value": 480
+ },
+ {
+ "node": "50",
+ "field": "height",
+ "value": 832
+ }
+ ]
+ },
+ {
+ "value": "landscape",
+ "label": "16:9",
+ "sets": [
+ {
+ "node": "50",
+ "field": "width",
+ "value": 832
+ },
+ {
+ "node": "50",
+ "field": "height",
+ "value": 480
+ }
+ ]
+ },
+ {
+ "value": "square",
+ "label": "1:1",
+ "sets": [
+ {
+ "node": "50",
+ "field": "width",
+ "value": 624
+ },
+ {
+ "node": "50",
+ "field": "height",
+ "value": 624
+ }
+ ]
+ }
+ ],
+ "help": "Your photo is center-cropped to this shape."
+ },
+ {
+ "id": "frames",
+ "type": "select",
+ "label": "Length",
+ "default": 81,
+ "options": [
+ {
+ "value": 49,
+ "label": "3 s"
+ },
+ {
+ "value": 81,
+ "label": "5 s"
+ }
+ ],
+ "bind": [
+ {
+ "node": "50",
+ "field": "length"
+ }
+ ]
+ },
+ {
+ "id": "seed",
+ "type": "seed",
+ "label": "Seed",
+ "default": -1,
+ "help": "-1 picks a random seed",
+ "bind": [
+ {
+ "node": "3",
+ "field": "seed"
+ }
+ ]
+ }
+ ],
+ "presets": [
+ {
+ "id": "fast",
+ "label": "Fast: 6 steps with the lightx2v LoRA (about 6x quicker; the effect can come out weaker)",
+ "sets": [
+ {
+ "node": "ff_lora_fast",
+ "field": "strength_model",
+ "value": 1.0
+ },
+ {
+ "node": "3",
+ "field": "steps",
+ "value": 6
+ },
+ {
+ "node": "3",
+ "field": "cfg",
+ "value": 1.0
+ },
+ {
+ "node": "3",
+ "field": "sampler_name",
+ "value": "euler"
+ }
+ ]
+ }
+ ],
+ "outputs": [
+ {
+ "node": "56",
+ "type": "video",
+ "label": "Video"
+ }
+ ],
+ "models": [
+ {
+ "repo": "Comfy-Org/Wan_2.1_ComfyUI_repackaged",
+ "file": "split_files/diffusion_models/wan2.1_i2v_480p_14B_fp8_scaled.safetensors",
+ "dir": "diffusion_models",
+ "gb": 16.4,
+ "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": "Comfy-Org/Wan_2.1_ComfyUI_repackaged",
+ "file": "split_files/vae/wan_2.1_vae.safetensors",
+ "dir": "vae",
+ "gb": 0.25,
+ "phase": "decode",
+ "license": "Apache-2.0"
+ },
+ {
+ "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",
+ "optional": true
+ },
+ {
+ "repo": "Remade-AI/Robot-Face-Reveal",
+ "file": "robot_face_reveal_35_epochs.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "phase": "denoise",
+ "license": "Apache-2.0"
+ },
+ {
+ "repo": "Remade-AI/Assassin",
+ "file": "assassin_45_epochs.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "phase": "denoise",
+ "license": "Apache-2.0",
+ "optional": true
+ },
+ {
+ "repo": "Remade-AI/Baby",
+ "file": "baby_50_epochs.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "phase": "denoise",
+ "license": "Apache-2.0",
+ "optional": true
+ },
+ {
+ "repo": "Remade-AI/Bride",
+ "file": "bride_50_epochs.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "phase": "denoise",
+ "license": "Apache-2.0",
+ "optional": true
+ },
+ {
+ "repo": "Remade-AI/Classy",
+ "file": "classy_45_epochs.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "phase": "denoise",
+ "license": "Apache-2.0",
+ "optional": true
+ },
+ {
+ "repo": "Remade-AI/Mona-Lisa",
+ "file": "mona_lisa_45_epochs.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "phase": "denoise",
+ "license": "Apache-2.0",
+ "optional": true
+ },
+ {
+ "repo": "Remade-AI/Princess",
+ "file": "princess_45_epochs.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "phase": "denoise",
+ "license": "Apache-2.0",
+ "optional": true
+ },
+ {
+ "repo": "Remade-AI/VIP",
+ "file": "vip_50_epochs.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "phase": "denoise",
+ "license": "Apache-2.0",
+ "optional": true
+ },
+ {
+ "repo": "Remade-AI/angry-face",
+ "file": "angry_face_5_epochs.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "phase": "denoise",
+ "license": "Apache-2.0",
+ "optional": true
+ },
+ {
+ "repo": "Remade-AI/crying",
+ "file": "crying_20_epochs.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "phase": "denoise",
+ "license": "Apache-2.0",
+ "optional": true
+ },
+ {
+ "repo": "Remade-AI/Laughing",
+ "file": "laughing_15_epochs.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "phase": "denoise",
+ "license": "Apache-2.0",
+ "optional": true
+ },
+ {
+ "repo": "Remade-AI/Cartoon_Jaw_Drop",
+ "file": "cartoon_jaw_drop_50_epochs.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "phase": "denoise",
+ "license": "Apache-2.0",
+ "optional": true
+ },
+ {
+ "repo": "Remade-AI/Puppy",
+ "file": "puppy_50_epochs.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "phase": "denoise",
+ "license": "Apache-2.0",
+ "optional": true
+ },
+ {
+ "repo": "Remade-AI/Selfie-With-Younger-Self",
+ "file": "selfie_younger_self_15_epochs.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "phase": "denoise",
+ "license": "Apache-2.0",
+ "optional": true
+ },
+ {
+ "repo": "lvfengchun/wan21_i2v_boiling_point",
+ "file": "wan21_penqi_000003500.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "phase": "denoise",
+ "license": "Apache-2.0",
+ "optional": true
+ },
+ {
+ "repo": "joyfox/WAN2.1-I2V-480P-Falling_US_dollars",
+ "file": "money_000003000.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "phase": "denoise",
+ "license": "Apache-2.0",
+ "optional": true
+ },
+ {
+ "repo": "joyfox/wan2.1_I2V480P_fenshengshu_lora",
+ "file": "fensheng_000003500.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "phase": "denoise",
+ "license": "Apache-2.0",
+ "optional": true
+ },
+ {
+ "repo": "Remade-AI/Cakeify",
+ "file": "cakeify_16_epochs.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "phase": "denoise",
+ "license": "Apache-2.0",
+ "optional": true
+ },
+ {
+ "repo": "Remade-AI/Crush",
+ "file": "crush_20_epochs.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "phase": "denoise",
+ "license": "Apache-2.0",
+ "optional": true
+ },
+ {
+ "repo": "Remade-AI/Deflate",
+ "file": "deflate_20_epochs.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "phase": "denoise",
+ "license": "Apache-2.0",
+ "optional": true
+ },
+ {
+ "repo": "Remade-AI/Electrify",
+ "file": "electrify_50_epochs.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "phase": "denoise",
+ "license": "Apache-2.0",
+ "optional": true
+ },
+ {
+ "repo": "Remade-AI/Explode",
+ "file": "explode_30_epochs.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "phase": "denoise",
+ "license": "Apache-2.0",
+ "optional": true
+ },
+ {
+ "repo": "Remade-AI/Inflate",
+ "file": "inflate_20_epochs.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "phase": "denoise",
+ "license": "Apache-2.0",
+ "optional": true
+ },
+ {
+ "repo": "Remade-AI/Rotate",
+ "file": "rotate_20_epochs.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "phase": "denoise",
+ "license": "Apache-2.0",
+ "optional": true
+ },
+ {
+ "repo": "Remade-AI/Squish",
+ "file": "squish_18.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "phase": "denoise",
+ "license": "Apache-2.0",
+ "optional": true
+ },
+ {
+ "repo": "Remade-AI/360-Orbit",
+ "file": "360_Orbit.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "phase": "denoise",
+ "license": "Apache-2.0",
+ "optional": true
+ },
+ {
+ "repo": "Remade-AI/Arc_shot",
+ "file": "Arc_shot.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "phase": "denoise",
+ "license": "Apache-2.0",
+ "optional": true
+ },
+ {
+ "repo": "joyfox/Wan2.1-BulletTime-LoRA",
+ "file": "Wan21_I2V_rotation_000003750.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "phase": "denoise",
+ "license": "Apache-2.0",
+ "optional": true
+ },
+ {
+ "repo": "Remade-AI/Car-chase",
+ "file": "car_chase.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "phase": "denoise",
+ "license": "Apache-2.0",
+ "optional": true
+ },
+ {
+ "repo": "Remade-AI/Crane-down",
+ "file": "crane_down.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "phase": "denoise",
+ "license": "Apache-2.0",
+ "optional": true
+ },
+ {
+ "repo": "Remade-AI/Crane_over_the_head",
+ "file": "crane_overhead.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "phase": "denoise",
+ "license": "Apache-2.0",
+ "optional": true
+ },
+ {
+ "repo": "Remade-AI/Crane_up",
+ "file": "crane_up.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "phase": "denoise",
+ "license": "Apache-2.0",
+ "optional": true
+ },
+ {
+ "repo": "Remade-AI/Crash-zoom-in",
+ "file": "crash_zoom_in.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "phase": "denoise",
+ "license": "Apache-2.0",
+ "optional": true
+ },
+ {
+ "repo": "ostris/wan21_i2v_dolly_zoom_lora",
+ "file": "wan_21_i2v_dolly_zoom.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "phase": "denoise",
+ "license": "Apache-2.0",
+ "optional": true
+ },
+ {
+ "repo": "Remade-AI/Hero-run",
+ "file": "Hero_run.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "phase": "denoise",
+ "license": "Apache-2.0",
+ "optional": true
+ }
+ ],
+ "credits": [
+ "Effect LoRAs by Remade-AI (Apache-2.0)",
+ "Bullet time, Money rain and Clones LoRAs by joyfox (Apache-2.0; the repos moved there from valiantcat and laozou)",
+ "Dolly zoom LoRA by ostris (Apache-2.0)",
+ "Steam LoRA by lvfengchun (Apache-2.0)",
+ "Wan 2.1 image-to-video 14B by Wan-AI, Alibaba (Apache-2.0)",
+ "Step-distill LoRA by lightx2v, packaged for ComfyUI by Kijai",
+ "Workflow: ComfyUI official template"
+ ],
+ "test": {
+ "image": "test/portrait.png",
+ "effect": "squish",
+ "aspect": "square",
+ "frames": 49
+ }
+}
diff --git a/apps/effects/workflow.api.json b/apps/effects/workflow.api.json
new file mode 100644
index 0000000..665e3a8
--- /dev/null
+++ b/apps/effects/workflow.api.json
@@ -0,0 +1,240 @@
+{
+ "3": {
+ "class_type": "KSampler",
+ "inputs": {
+ "model": [
+ "54",
+ 0
+ ],
+ "positive": [
+ "50",
+ 0
+ ],
+ "negative": [
+ "50",
+ 1
+ ],
+ "latent_image": [
+ "50",
+ 2
+ ],
+ "seed": 987948718394761,
+ "steps": 20,
+ "cfg": 6,
+ "sampler_name": "uni_pc",
+ "scheduler": "simple",
+ "denoise": 1
+ },
+ "_meta": {
+ "title": "KSampler"
+ }
+ },
+ "6": {
+ "class_type": "CLIPTextEncode",
+ "inputs": {
+ "clip": [
+ "38",
+ 0
+ ],
+ "text": "a cute anime girl with massive fennec ears and a big fluffy tail wearing a maid outfit turning around"
+ },
+ "_meta": {
+ "title": "CLIP Text Encode (Positive Prompt)"
+ }
+ },
+ "7": {
+ "class_type": "CLIPTextEncode",
+ "inputs": {
+ "clip": [
+ "38",
+ 0
+ ],
+ "text": "色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走"
+ },
+ "_meta": {
+ "title": "CLIP Text Encode (Negative Prompt)"
+ }
+ },
+ "8": {
+ "class_type": "VAEDecode",
+ "inputs": {
+ "samples": [
+ "3",
+ 0
+ ],
+ "vae": [
+ "39",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "VAE Decode"
+ }
+ },
+ "37": {
+ "class_type": "UNETLoader",
+ "inputs": {
+ "unet_name": "wan2.1_i2v_480p_14B_fp8_scaled.safetensors",
+ "weight_dtype": "default"
+ },
+ "_meta": {
+ "title": "Load Diffusion Model"
+ }
+ },
+ "38": {
+ "class_type": "CLIPLoader",
+ "inputs": {
+ "clip_name": "umt5_xxl_fp8_e4m3fn_scaled.safetensors",
+ "type": "wan",
+ "device": "default"
+ },
+ "_meta": {
+ "title": "Load CLIP"
+ }
+ },
+ "39": {
+ "class_type": "VAELoader",
+ "inputs": {
+ "vae_name": "wan_2.1_vae.safetensors"
+ },
+ "_meta": {
+ "title": "Load VAE"
+ }
+ },
+ "49": {
+ "class_type": "CLIPVisionLoader",
+ "inputs": {
+ "clip_name": "clip_vision_h.safetensors"
+ },
+ "_meta": {
+ "title": "Load CLIP Vision"
+ }
+ },
+ "50": {
+ "class_type": "WanImageToVideo",
+ "inputs": {
+ "positive": [
+ "6",
+ 0
+ ],
+ "negative": [
+ "7",
+ 0
+ ],
+ "vae": [
+ "39",
+ 0
+ ],
+ "clip_vision_output": [
+ "51",
+ 0
+ ],
+ "start_image": [
+ "52",
+ 0
+ ],
+ "width": 480,
+ "height": 832,
+ "length": 81,
+ "batch_size": 1
+ },
+ "_meta": {
+ "title": "WanImageToVideo"
+ }
+ },
+ "51": {
+ "class_type": "CLIPVisionEncode",
+ "inputs": {
+ "clip_vision": [
+ "49",
+ 0
+ ],
+ "image": [
+ "52",
+ 0
+ ],
+ "crop": "none"
+ },
+ "_meta": {
+ "title": "CLIP Vision Encode"
+ }
+ },
+ "52": {
+ "class_type": "LoadImage",
+ "inputs": {
+ "image": "image_to_video_wan_start_image.png"
+ },
+ "_meta": {
+ "title": "Load Image"
+ }
+ },
+ "54": {
+ "class_type": "ModelSamplingSD3",
+ "inputs": {
+ "model": [
+ "ff_lora_fast",
+ 0
+ ],
+ "shift": 5.0
+ },
+ "_meta": {
+ "title": "ModelSamplingSD3"
+ }
+ },
+ "55": {
+ "class_type": "CreateVideo",
+ "inputs": {
+ "images": [
+ "8",
+ 0
+ ],
+ "fps": 16
+ },
+ "_meta": {
+ "title": "Create Video"
+ }
+ },
+ "56": {
+ "class_type": "SaveVideo",
+ "inputs": {
+ "video": [
+ "55",
+ 0
+ ],
+ "filename_prefix": "freefield/effects",
+ "format": "auto",
+ "format.codec": "auto"
+ },
+ "_meta": {
+ "title": "Save Video"
+ }
+ },
+ "ff_effect": {
+ "class_type": "LoraLoaderModelOnly",
+ "inputs": {
+ "model": [
+ "37",
+ 0
+ ],
+ "lora_name": "robot_face_reveal_35_epochs.safetensors",
+ "strength_model": 1.0
+ },
+ "_meta": {
+ "title": "Freefield LoRA"
+ }
+ },
+ "ff_lora_fast": {
+ "class_type": "LoraLoaderModelOnly",
+ "inputs": {
+ "model": [
+ "ff_effect",
+ 0
+ ],
+ "lora_name": "lightx2v_I2V_14B_480p_cfg_step_distill_rank64_bf16.safetensors",
+ "strength_model": 0.0
+ },
+ "_meta": {
+ "title": "Freefield LoRA"
+ }
+ }
+}
diff --git a/apps/figure-3d/app.json b/apps/figure-3d/app.json
new file mode 100644
index 0000000..1fac8c2
--- /dev/null
+++ b/apps/figure-3d/app.json
@@ -0,0 +1,116 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "figure-3d",
+ "name": "3D Figure",
+ "section": "image",
+ "summary": "Your photo as a collectible figure in a blister pack on a shelf.",
+ "higgsfield_feature": "3D Figure",
+ "pack": "image-flux3",
+ "status": "ready",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "image_flux3_klein_distilled_image_edit.json",
+ "comfyui": "0.42.0",
+ "notes": "Template app written by tools/template_apps.py: the workflow is apps/edit's (built by tools/build_apps.py) and the prompt below is fixed; \"Extra direction\" is appended to it."
+ },
+ "inputs": [
+ {
+ "id": "image",
+ "type": "image",
+ "label": "Your photo",
+ "required": true,
+ "limits": {
+ "max_mb": 20
+ },
+ "bind": [
+ {
+ "node": "11",
+ "field": "image"
+ }
+ ]
+ },
+ {
+ "id": "details",
+ "type": "textarea",
+ "label": "Extra direction",
+ "help": "Added at the end of the app's prompt.",
+ "bind": [
+ {
+ "node": "4",
+ "field": "text",
+ "template": "The subject of <ref_image_0> as a collectible 3D figure in a clear blister pack with a printed cardboard backing, on a shelf, product photography lighting. {details}"
+ }
+ ]
+ },
+ {
+ "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": "Result"
+ }
+ ],
+ "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"
+ }
+}
diff --git a/apps/figure-3d/workflow.api.json b/apps/figure-3d/workflow.api.json
new file mode 100644
index 0000000..89bf07c
--- /dev/null
+++ b/apps/figure-3d/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/fridge-ad/app.json b/apps/fridge-ad/app.json
new file mode 100644
index 0000000..56d8382
--- /dev/null
+++ b/apps/fridge-ad/app.json
@@ -0,0 +1,116 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "fridge-ad",
+ "name": "Fridge Ad",
+ "section": "image",
+ "summary": "Your product inside an illuminated display fridge, condensation on the glass.",
+ "higgsfield_feature": "Fridge Ad",
+ "pack": "image-flux3",
+ "status": "ready",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "image_flux3_klein_distilled_image_edit.json",
+ "comfyui": "0.42.0",
+ "notes": "Template app written by tools/template_apps.py: the workflow is apps/edit's (built by tools/build_apps.py) and the prompt below is fixed; \"Extra direction\" is appended to it."
+ },
+ "inputs": [
+ {
+ "id": "image",
+ "type": "image",
+ "label": "Product photo",
+ "required": true,
+ "limits": {
+ "max_mb": 20
+ },
+ "bind": [
+ {
+ "node": "11",
+ "field": "image"
+ }
+ ]
+ },
+ {
+ "id": "details",
+ "type": "textarea",
+ "label": "Extra direction",
+ "help": "Added at the end of the app's prompt.",
+ "bind": [
+ {
+ "node": "4",
+ "field": "text",
+ "template": "The product from <ref_image_0> standing inside an illuminated glass-door display fridge in a shop, cold light, condensation on the glass, rows of shelves. Keep the product identical: shape, label, text and colors. {details}"
+ }
+ ]
+ },
+ {
+ "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": "Result"
+ }
+ ],
+ "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"
+ }
+}
diff --git a/apps/fridge-ad/workflow.api.json b/apps/fridge-ad/workflow.api.json
new file mode 100644
index 0000000..89bf07c
--- /dev/null
+++ b/apps/fridge-ad/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/game-styles/app.json b/apps/game-styles/app.json
new file mode 100644
index 0000000..e5ea3ea
--- /dev/null
+++ b/apps/game-styles/app.json
@@ -0,0 +1,173 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "game-styles",
+ "name": "Game Styles",
+ "section": "image",
+ "summary": "You as a character in 12 kinds of video game, from 16-bit pixel art to voxel worlds.",
+ "higgsfield_feature": "Game Dump",
+ "pack": "image-flux3",
+ "status": "ready",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "image_flux3_klein_distilled_image_edit.json",
+ "comfyui": "0.42.0",
+ "notes": "Template app written by tools/template_apps.py: the workflow is apps/edit's (built by tools/build_apps.py) and the prompt below is fixed; \"Extra direction\" is appended to it."
+ },
+ "inputs": [
+ {
+ "id": "image",
+ "type": "image",
+ "label": "Your photo",
+ "required": true,
+ "limits": {
+ "max_mb": 20
+ },
+ "bind": [
+ {
+ "node": "11",
+ "field": "image"
+ }
+ ]
+ },
+ {
+ "id": "style",
+ "type": "select",
+ "label": "Game style",
+ "default": "a 16-bit pixel art platformer",
+ "options": [
+ {
+ "value": "a 16-bit pixel art platformer",
+ "label": "16-bit platformer"
+ },
+ {
+ "value": "a low-poly 1990s console game",
+ "label": "Low-poly 90s console"
+ },
+ {
+ "value": "a cel-shaded action game",
+ "label": "Cel-shaded action"
+ },
+ {
+ "value": "an isometric role-playing game",
+ "label": "Isometric RPG"
+ },
+ {
+ "value": "a voxel block-building game",
+ "label": "Voxel builder"
+ },
+ {
+ "value": "a claymation adventure game",
+ "label": "Claymation adventure"
+ },
+ {
+ "value": "a 2D fighting game character select screen",
+ "label": "Fighting game select screen"
+ },
+ {
+ "value": "a visual novel portrait",
+ "label": "Visual novel"
+ },
+ {
+ "value": "a neon cyberpunk shooter",
+ "label": "Neon cyberpunk shooter"
+ },
+ {
+ "value": "a cozy farming simulator",
+ "label": "Cozy farming sim"
+ },
+ {
+ "value": "a kart racing game",
+ "label": "Kart racer"
+ },
+ {
+ "value": "a survival horror game, no gore",
+ "label": "Survival horror"
+ }
+ ]
+ },
+ {
+ "id": "details",
+ "type": "textarea",
+ "label": "Extra direction",
+ "help": "Added at the end of the app's prompt.",
+ "bind": [
+ {
+ "node": "4",
+ "field": "text",
+ "template": "The same person as in <ref_image_0> as a character in {style}, keep the face recognizable. {details}"
+ }
+ ]
+ },
+ {
+ "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": "Result"
+ }
+ ],
+ "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",
+ "style": "a cel-shaded action game"
+ }
+}
diff --git a/apps/game-styles/workflow.api.json b/apps/game-styles/workflow.api.json
new file mode 100644
index 0000000..89bf07c
--- /dev/null
+++ b/apps/game-styles/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/giallo/app.json b/apps/giallo/app.json
new file mode 100644
index 0000000..67278d6
--- /dev/null
+++ b/apps/giallo/app.json
@@ -0,0 +1,116 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "giallo",
+ "name": "Giallo Horror",
+ "section": "image",
+ "summary": "A 1970s Italian giallo film still: red and blue gels, deep shadows, no blood.",
+ "higgsfield_feature": "Giallo Horror",
+ "pack": "image-flux3",
+ "status": "ready",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "image_flux3_klein_distilled_image_edit.json",
+ "comfyui": "0.42.0",
+ "notes": "Template app written by tools/template_apps.py: the workflow is apps/edit's (built by tools/build_apps.py) and the prompt below is fixed; \"Extra direction\" is appended to it."
+ },
+ "inputs": [
+ {
+ "id": "image",
+ "type": "image",
+ "label": "Your photo",
+ "required": true,
+ "limits": {
+ "max_mb": 20
+ },
+ "bind": [
+ {
+ "node": "11",
+ "field": "image"
+ }
+ ]
+ },
+ {
+ "id": "details",
+ "type": "textarea",
+ "label": "Extra direction",
+ "help": "Added at the end of the app's prompt.",
+ "bind": [
+ {
+ "node": "4",
+ "field": "text",
+ "template": "The person from <ref_image_0> in a 1970s Italian giallo film still: saturated red and blue gel lighting, deep shadows, a gloved hand at the edge of the frame, film grain. No blood, no wounds. Keep the face, hairstyle and build identical. {details}"
+ }
+ ]
+ },
+ {
+ "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": "Result"
+ }
+ ],
+ "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"
+ }
+}
diff --git a/apps/giallo/workflow.api.json b/apps/giallo/workflow.api.json
new file mode 100644
index 0000000..89bf07c
--- /dev/null
+++ b/apps/giallo/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/giant-product/app.json b/apps/giant-product/app.json
new file mode 100644
index 0000000..97b87b4
--- /dev/null
+++ b/apps/giant-product/app.json
@@ -0,0 +1,136 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "giant-product",
+ "name": "Giant Product",
+ "section": "image",
+ "summary": "Your product as a giant monument over a city skyline, people tiny at its base.",
+ "higgsfield_feature": "Giant Product",
+ "pack": "image-flux3",
+ "status": "ready",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "image_flux3_klein_distilled_image_edit.json",
+ "comfyui": "0.42.0",
+ "notes": "Template app written by tools/template_apps.py: the workflow is apps/edit's (built by tools/build_apps.py) and the prompt below is fixed; \"Extra direction\" is appended to it."
+ },
+ "inputs": [
+ {
+ "id": "image",
+ "type": "image",
+ "label": "Product photo",
+ "required": true,
+ "limits": {
+ "max_mb": 20
+ },
+ "bind": [
+ {
+ "node": "11",
+ "field": "image"
+ }
+ ]
+ },
+ {
+ "id": "time",
+ "type": "select",
+ "label": "Time of day",
+ "default": "at sunset",
+ "options": [
+ {
+ "value": "at sunset",
+ "label": "Sunset"
+ },
+ {
+ "value": "at night with the city lights on",
+ "label": "Night, city lights"
+ },
+ {
+ "value": "on a foggy morning",
+ "label": "Foggy morning"
+ }
+ ]
+ },
+ {
+ "id": "details",
+ "type": "textarea",
+ "label": "Extra direction",
+ "help": "Added at the end of the app's prompt.",
+ "bind": [
+ {
+ "node": "4",
+ "field": "text",
+ "template": "The product from <ref_image_0> as a giant monument standing over a city skyline {time}, people and cars tiny at its base, wide-angle shot, realistic scale and lighting. Keep the product identical: shape, label, text and colors. {details}"
+ }
+ ]
+ },
+ {
+ "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": "Result"
+ }
+ ],
+ "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"
+ }
+}
diff --git a/apps/giant-product/workflow.api.json b/apps/giant-product/workflow.api.json
new file mode 100644
index 0000000..89bf07c
--- /dev/null
+++ b/apps/giant-product/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/glitter-sticker/app.json b/apps/glitter-sticker/app.json
new file mode 100644
index 0000000..6434428
--- /dev/null
+++ b/apps/glitter-sticker/app.json
@@ -0,0 +1,116 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "glitter-sticker",
+ "name": "Glitter Sticker",
+ "section": "image",
+ "summary": "You as a glossy glitter sticker with a white die-cut border.",
+ "higgsfield_feature": "Glitter Sticker",
+ "pack": "image-flux3",
+ "status": "ready",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "image_flux3_klein_distilled_image_edit.json",
+ "comfyui": "0.42.0",
+ "notes": "Template app written by tools/template_apps.py: the workflow is apps/edit's (built by tools/build_apps.py) and the prompt below is fixed; \"Extra direction\" is appended to it."
+ },
+ "inputs": [
+ {
+ "id": "image",
+ "type": "image",
+ "label": "Your photo",
+ "required": true,
+ "limits": {
+ "max_mb": 20
+ },
+ "bind": [
+ {
+ "node": "11",
+ "field": "image"
+ }
+ ]
+ },
+ {
+ "id": "details",
+ "type": "textarea",
+ "label": "Extra direction",
+ "help": "Added at the end of the app's prompt.",
+ "bind": [
+ {
+ "node": "4",
+ "field": "text",
+ "template": "The person from <ref_image_0> as a glossy glitter sticker: simplified cute illustration, sparkling holographic texture, thick white die-cut border, on a plain white background. {details}"
+ }
+ ]
+ },
+ {
+ "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": "Result"
+ }
+ ],
+ "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"
+ }
+}
diff --git a/apps/glitter-sticker/workflow.api.json b/apps/glitter-sticker/workflow.api.json
new file mode 100644
index 0000000..89bf07c
--- /dev/null
+++ b/apps/glitter-sticker/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/graffiti-ad/app.json b/apps/graffiti-ad/app.json
new file mode 100644
index 0000000..3eb1f5b
--- /dev/null
+++ b/apps/graffiti-ad/app.json
@@ -0,0 +1,116 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "graffiti-ad",
+ "name": "Graffiti Ad",
+ "section": "image",
+ "summary": "Your product as a spray-paint graffiti mural on a brick wall.",
+ "higgsfield_feature": "Graffiti Ad",
+ "pack": "image-flux3",
+ "status": "ready",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "image_flux3_klein_distilled_image_edit.json",
+ "comfyui": "0.42.0",
+ "notes": "Template app written by tools/template_apps.py: the workflow is apps/edit's (built by tools/build_apps.py) and the prompt below is fixed; \"Extra direction\" is appended to it."
+ },
+ "inputs": [
+ {
+ "id": "image",
+ "type": "image",
+ "label": "Product photo",
+ "required": true,
+ "limits": {
+ "max_mb": 20
+ },
+ "bind": [
+ {
+ "node": "11",
+ "field": "image"
+ }
+ ]
+ },
+ {
+ "id": "details",
+ "type": "textarea",
+ "label": "Extra direction",
+ "help": "Added at the end of the app's prompt.",
+ "bind": [
+ {
+ "node": "4",
+ "field": "text",
+ "template": "The product from <ref_image_0> painted as a large spray-paint graffiti mural on a brick wall in the street, paint drips and stencil edges, daylight. Keep its shape, label and colors recognizable. {details}"
+ }
+ ]
+ },
+ {
+ "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": "Result"
+ }
+ ],
+ "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"
+ }
+}
diff --git a/apps/graffiti-ad/workflow.api.json b/apps/graffiti-ad/workflow.api.json
new file mode 100644
index 0000000..89bf07c
--- /dev/null
+++ b/apps/graffiti-ad/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/headshot/app.json b/apps/headshot/app.json
new file mode 100644
index 0000000..c1bbae6
--- /dev/null
+++ b/apps/headshot/app.json
@@ -0,0 +1,164 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "headshot",
+ "name": "Studio Headshot",
+ "section": "image",
+ "summary": "A professional studio headshot from one selfie: backdrop and outfit of your choice.",
+ "higgsfield_feature": "AI Headshot Generator",
+ "pack": "image-flux3",
+ "status": "ready",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "image_flux3_klein_distilled_image_edit.json",
+ "comfyui": "0.42.0",
+ "notes": "Template app written by tools/template_apps.py: the workflow is apps/edit's (built by tools/build_apps.py) and the prompt below is fixed; \"Extra direction\" is appended to it."
+ },
+ "inputs": [
+ {
+ "id": "image",
+ "type": "image",
+ "label": "Your selfie",
+ "required": true,
+ "limits": {
+ "max_mb": 20
+ },
+ "bind": [
+ {
+ "node": "11",
+ "field": "image"
+ }
+ ]
+ },
+ {
+ "id": "backdrop",
+ "type": "select",
+ "label": "Backdrop",
+ "default": "plain light grey backdrop",
+ "options": [
+ {
+ "value": "plain light grey backdrop",
+ "label": "Light grey"
+ },
+ {
+ "value": "dark charcoal backdrop",
+ "label": "Dark charcoal"
+ },
+ {
+ "value": "in a bright office with blurred windows",
+ "label": "Office, blurred"
+ },
+ {
+ "value": "outdoors with golden-hour bokeh",
+ "label": "Outdoor bokeh"
+ }
+ ]
+ },
+ {
+ "id": "outfit",
+ "type": "select",
+ "label": "Outfit",
+ "default": "a navy blazer over a white shirt",
+ "options": [
+ {
+ "value": "a navy blazer over a white shirt",
+ "label": "Navy blazer"
+ },
+ {
+ "value": "a black turtleneck",
+ "label": "Black turtleneck"
+ },
+ {
+ "value": "a light linen shirt",
+ "label": "Linen shirt"
+ },
+ {
+ "value": "the same clothes as in the photo",
+ "label": "As in the photo"
+ }
+ ]
+ },
+ {
+ "id": "details",
+ "type": "textarea",
+ "label": "Extra direction",
+ "help": "Added at the end of the app's prompt.",
+ "bind": [
+ {
+ "node": "4",
+ "field": "text",
+ "template": "A professional studio headshot of the same person as in <ref_image_0>, {backdrop}, wearing {outfit}, soft three-point lighting, sharp focus on the eyes, shoulders-up framing. Keep the face, hairstyle and build identical. {details}"
+ }
+ ]
+ },
+ {
+ "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": "Result"
+ }
+ ],
+ "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"
+ }
+}
diff --git a/apps/headshot/workflow.api.json b/apps/headshot/workflow.api.json
new file mode 100644
index 0000000..89bf07c
--- /dev/null
+++ b/apps/headshot/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/image-effects/app.json b/apps/image-effects/app.json
new file mode 100644
index 0000000..af93802
--- /dev/null
+++ b/apps/image-effects/app.json
@@ -0,0 +1,165 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "image-effects",
+ "name": "Image Effects",
+ "section": "image",
+ "summary": "Ten effects for a photo: glitch, double exposure, neon, sketch, watercolor and more.",
+ "higgsfield_feature": "Image Effects",
+ "pack": "image-flux3",
+ "status": "ready",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "image_flux3_klein_distilled_image_edit.json",
+ "comfyui": "0.42.0",
+ "notes": "Template app written by tools/template_apps.py: the workflow is apps/edit's (built by tools/build_apps.py) and the prompt below is fixed; \"Extra direction\" is appended to it."
+ },
+ "inputs": [
+ {
+ "id": "image",
+ "type": "image",
+ "label": "Your photo",
+ "required": true,
+ "limits": {
+ "max_mb": 20
+ },
+ "bind": [
+ {
+ "node": "11",
+ "field": "image"
+ }
+ ]
+ },
+ {
+ "id": "effect",
+ "type": "select",
+ "label": "Effect",
+ "default": "glitch distortion with RGB split",
+ "options": [
+ {
+ "value": "glitch distortion with RGB split",
+ "label": "Glitch"
+ },
+ {
+ "value": "double exposure with a forest",
+ "label": "Double exposure"
+ },
+ {
+ "value": "neon outline glow",
+ "label": "Neon outline"
+ },
+ {
+ "value": "pencil sketch",
+ "label": "Pencil sketch"
+ },
+ {
+ "value": "watercolor painting",
+ "label": "Watercolor"
+ },
+ {
+ "value": "pop art screen print",
+ "label": "Pop art"
+ },
+ {
+ "value": "vintage faded film",
+ "label": "Vintage film"
+ },
+ {
+ "value": "infrared false-color",
+ "label": "Infrared"
+ },
+ {
+ "value": "anaglyph 3D",
+ "label": "Anaglyph 3D"
+ },
+ {
+ "value": "thermal camera",
+ "label": "Thermal camera"
+ }
+ ]
+ },
+ {
+ "id": "details",
+ "type": "textarea",
+ "label": "Extra direction",
+ "help": "Added at the end of the app's prompt.",
+ "bind": [
+ {
+ "node": "4",
+ "field": "text",
+ "template": "Apply a {effect} effect to the photo from <ref_image_0>; keep the composition. {details}"
+ }
+ ]
+ },
+ {
+ "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": "Result"
+ }
+ ],
+ "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",
+ "effect": "glitch distortion with RGB split"
+ }
+}
diff --git a/apps/image-effects/workflow.api.json b/apps/image-effects/workflow.api.json
new file mode 100644
index 0000000..89bf07c
--- /dev/null
+++ b/apps/image-effects/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/j-magazine/app.json b/apps/j-magazine/app.json
new file mode 100644
index 0000000..2a93708
--- /dev/null
+++ b/apps/j-magazine/app.json
@@ -0,0 +1,116 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "j-magazine",
+ "name": "J-Magazine",
+ "section": "image",
+ "summary": "You on the cover of a Japanese fashion magazine.",
+ "higgsfield_feature": "J-Magazine",
+ "pack": "image-flux3",
+ "status": "ready",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "image_flux3_klein_distilled_image_edit.json",
+ "comfyui": "0.42.0",
+ "notes": "Template app written by tools/template_apps.py: the workflow is apps/edit's (built by tools/build_apps.py) and the prompt below is fixed; \"Extra direction\" is appended to it."
+ },
+ "inputs": [
+ {
+ "id": "image",
+ "type": "image",
+ "label": "Your photo",
+ "required": true,
+ "limits": {
+ "max_mb": 20
+ },
+ "bind": [
+ {
+ "node": "11",
+ "field": "image"
+ }
+ ]
+ },
+ {
+ "id": "details",
+ "type": "textarea",
+ "label": "Extra direction",
+ "help": "Added at the end of the app's prompt.",
+ "bind": [
+ {
+ "node": "4",
+ "field": "text",
+ "template": "The person from <ref_image_0> on the cover of a Japanese fashion magazine: bold vertical Japanese headlines, a masthead at the top, colorful text blocks, glossy print look. Keep the face, hairstyle and build identical. {details}"
+ }
+ ]
+ },
+ {
+ "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": "Result"
+ }
+ ],
+ "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"
+ }
+}
diff --git a/apps/j-magazine/workflow.api.json b/apps/j-magazine/workflow.api.json
new file mode 100644
index 0000000..89bf07c
--- /dev/null
+++ b/apps/j-magazine/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/j-poster/app.json b/apps/j-poster/app.json
new file mode 100644
index 0000000..467f39b
--- /dev/null
+++ b/apps/j-poster/app.json
@@ -0,0 +1,116 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "j-poster",
+ "name": "J-Poster",
+ "section": "image",
+ "summary": "A Japanese-style graphic poster of you.",
+ "higgsfield_feature": "J-Poster",
+ "pack": "image-flux3",
+ "status": "ready",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "image_flux3_klein_distilled_image_edit.json",
+ "comfyui": "0.42.0",
+ "notes": "Template app written by tools/template_apps.py: the workflow is apps/edit's (built by tools/build_apps.py) and the prompt below is fixed; \"Extra direction\" is appended to it."
+ },
+ "inputs": [
+ {
+ "id": "image",
+ "type": "image",
+ "label": "Your photo",
+ "required": true,
+ "limits": {
+ "max_mb": 20
+ },
+ "bind": [
+ {
+ "node": "11",
+ "field": "image"
+ }
+ ]
+ },
+ {
+ "id": "details",
+ "type": "textarea",
+ "label": "Extra direction",
+ "help": "Added at the end of the app's prompt.",
+ "bind": [
+ {
+ "node": "4",
+ "field": "text",
+ "template": "A Japanese-style poster featuring the person from <ref_image_0>: bold red and black graphic design, vertical typography, rising-sun rays, print texture. Keep the face, hairstyle and build identical. {details}"
+ }
+ ]
+ },
+ {
+ "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": "Result"
+ }
+ ],
+ "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"
+ }
+}
diff --git a/apps/j-poster/workflow.api.json b/apps/j-poster/workflow.api.json
new file mode 100644
index 0000000..89bf07c
--- /dev/null
+++ b/apps/j-poster/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/japanese-show/app.json b/apps/japanese-show/app.json
new file mode 100644
index 0000000..7bb63e6
--- /dev/null
+++ b/apps/japanese-show/app.json
@@ -0,0 +1,116 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "japanese-show",
+ "name": "Japanese Show",
+ "section": "image",
+ "summary": "You on a retro Japanese TV variety show, 4-panel screen.",
+ "higgsfield_feature": "Japanese Show",
+ "pack": "image-flux3",
+ "status": "ready",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "image_flux3_klein_distilled_image_edit.json",
+ "comfyui": "0.42.0",
+ "notes": "Template app written by tools/template_apps.py: the workflow is apps/edit's (built by tools/build_apps.py) and the prompt below is fixed; \"Extra direction\" is appended to it."
+ },
+ "inputs": [
+ {
+ "id": "image",
+ "type": "image",
+ "label": "Your photo",
+ "required": true,
+ "limits": {
+ "max_mb": 20
+ },
+ "bind": [
+ {
+ "node": "11",
+ "field": "image"
+ }
+ ]
+ },
+ {
+ "id": "details",
+ "type": "textarea",
+ "label": "Extra direction",
+ "help": "Added at the end of the app's prompt.",
+ "bind": [
+ {
+ "node": "4",
+ "field": "text",
+ "template": "The person from <ref_image_0> on a retro Japanese TV variety show: a 4-panel screen layout, bright studio set, colorful caption text overlays, 1990s broadcast look. Keep the face, hairstyle and build identical. {details}"
+ }
+ ]
+ },
+ {
+ "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": "Result"
+ }
+ ],
+ "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"
+ }
+}
diff --git a/apps/japanese-show/workflow.api.json b/apps/japanese-show/workflow.api.json
new file mode 100644
index 0000000..89bf07c
--- /dev/null
+++ b/apps/japanese-show/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/macro-product/app.json b/apps/macro-product/app.json
new file mode 100644
index 0000000..b67d17c
--- /dev/null
+++ b/apps/macro-product/app.json
@@ -0,0 +1,116 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "macro-product",
+ "name": "Macro Product",
+ "section": "image",
+ "summary": "A macro photograph of one detail of your product: texture, edges and label filling the frame.",
+ "higgsfield_feature": "Macroshot Product",
+ "pack": "image-flux3",
+ "status": "ready",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "image_flux3_klein_distilled_image_edit.json",
+ "comfyui": "0.42.0",
+ "notes": "Template app written by tools/template_apps.py: the workflow is apps/edit's (built by tools/build_apps.py) and the prompt below is fixed; \"Extra direction\" is appended to it."
+ },
+ "inputs": [
+ {
+ "id": "image",
+ "type": "image",
+ "label": "Product photo",
+ "required": true,
+ "limits": {
+ "max_mb": 20
+ },
+ "bind": [
+ {
+ "node": "11",
+ "field": "image"
+ }
+ ]
+ },
+ {
+ "id": "details",
+ "type": "textarea",
+ "label": "Extra direction",
+ "help": "Added at the end of the app's prompt.",
+ "bind": [
+ {
+ "node": "4",
+ "field": "text",
+ "template": "Extreme macro photograph of a detail of the product from <ref_image_0>: its texture, edges and label fill the frame, 100mm macro lens, soft diffused light. Keep the product identical: shape, label, text and colors. {details}"
+ }
+ ]
+ },
+ {
+ "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": "Result"
+ }
+ ],
+ "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"
+ }
+}
diff --git a/apps/macro-product/workflow.api.json b/apps/macro-product/workflow.api.json
new file mode 100644
index 0000000..89bf07c
--- /dev/null
+++ b/apps/macro-product/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/macro-scene/app.json b/apps/macro-scene/app.json
new file mode 100644
index 0000000..ab83a98
--- /dev/null
+++ b/apps/macro-scene/app.json
@@ -0,0 +1,140 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "macro-scene",
+ "name": "Macro Scene",
+ "section": "image",
+ "summary": "An extreme macro close-up of your product in a natural setting: stone, leaves, sand or ice.",
+ "higgsfield_feature": "Macroshot Scene",
+ "pack": "image-flux3",
+ "status": "ready",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "image_flux3_klein_distilled_image_edit.json",
+ "comfyui": "0.42.0",
+ "notes": "Template app written by tools/template_apps.py: the workflow is apps/edit's (built by tools/build_apps.py) and the prompt below is fixed; \"Extra direction\" is appended to it."
+ },
+ "inputs": [
+ {
+ "id": "image",
+ "type": "image",
+ "label": "Product photo",
+ "required": true,
+ "limits": {
+ "max_mb": 20
+ },
+ "bind": [
+ {
+ "node": "11",
+ "field": "image"
+ }
+ ]
+ },
+ {
+ "id": "setting",
+ "type": "select",
+ "label": "Setting",
+ "default": "on wet black stone with mist",
+ "options": [
+ {
+ "value": "on wet black stone with mist",
+ "label": "Wet black stone"
+ },
+ {
+ "value": "among fresh green leaves",
+ "label": "Green leaves"
+ },
+ {
+ "value": "on sand at golden hour",
+ "label": "Sand at golden hour"
+ },
+ {
+ "value": "on ice with frost crystals",
+ "label": "Ice and frost"
+ }
+ ]
+ },
+ {
+ "id": "details",
+ "type": "textarea",
+ "label": "Extra direction",
+ "help": "Added at the end of the app's prompt.",
+ "bind": [
+ {
+ "node": "4",
+ "field": "text",
+ "template": "Extreme macro close-up of the product from <ref_image_0> {setting}, shallow depth of field, tiny water droplets, crisp texture. Keep the product identical: shape, label, text and colors. {details}"
+ }
+ ]
+ },
+ {
+ "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": "Result"
+ }
+ ],
+ "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"
+ }
+}
diff --git a/apps/macro-scene/workflow.api.json b/apps/macro-scene/workflow.api.json
new file mode 100644
index 0000000..89bf07c
--- /dev/null
+++ b/apps/macro-scene/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/mascot/app.json b/apps/mascot/app.json
new file mode 100644
index 0000000..e5d34c3
--- /dev/null
+++ b/apps/mascot/app.json
@@ -0,0 +1,140 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "mascot",
+ "name": "Mascot",
+ "section": "image",
+ "summary": "You in a football club mascot costume on the pitch.",
+ "higgsfield_feature": "Mascot",
+ "pack": "image-flux3",
+ "status": "ready",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "image_flux3_klein_distilled_image_edit.json",
+ "comfyui": "0.42.0",
+ "notes": "Template app written by tools/template_apps.py: the workflow is apps/edit's (built by tools/build_apps.py) and the prompt below is fixed; \"Extra direction\" is appended to it."
+ },
+ "inputs": [
+ {
+ "id": "image",
+ "type": "image",
+ "label": "Your photo",
+ "required": true,
+ "limits": {
+ "max_mb": 20
+ },
+ "bind": [
+ {
+ "node": "11",
+ "field": "image"
+ }
+ ]
+ },
+ {
+ "id": "animal",
+ "type": "select",
+ "label": "Mascot",
+ "default": "lion",
+ "options": [
+ {
+ "value": "lion",
+ "label": "Lion"
+ },
+ {
+ "value": "eagle",
+ "label": "Eagle"
+ },
+ {
+ "value": "bulldog",
+ "label": "Bulldog"
+ },
+ {
+ "value": "bear",
+ "label": "Bear"
+ }
+ ]
+ },
+ {
+ "id": "details",
+ "type": "textarea",
+ "label": "Extra direction",
+ "help": "Added at the end of the app's prompt.",
+ "bind": [
+ {
+ "node": "4",
+ "field": "text",
+ "template": "The person from <ref_image_0> in a full football club mascot costume: an oversized foam head of a {animal} held under one arm, team colors, standing on a stadium pitch, the crowd behind. Keep the face, hairstyle and build identical. {details}"
+ }
+ ]
+ },
+ {
+ "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": "Result"
+ }
+ ],
+ "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"
+ }
+}
diff --git a/apps/mascot/workflow.api.json b/apps/mascot/workflow.api.json
new file mode 100644
index 0000000..89bf07c
--- /dev/null
+++ b/apps/mascot/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/meme/app.json b/apps/meme/app.json
new file mode 100644
index 0000000..ac4be64
--- /dev/null
+++ b/apps/meme/app.json
@@ -0,0 +1,181 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "meme",
+ "name": "Meme Generator",
+ "section": "image",
+ "summary": "A meme image from a scene and two captions (Z-Image Turbo).",
+ "higgsfield_feature": "Meme Generator",
+ "pack": "image",
+ "status": "ready",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "image_z_image_turbo_int8.json",
+ "comfyui": "0.42.0",
+ "notes": "Template app written by tools/template_apps.py: the workflow is apps/z-image's (built by tools/build_apps.py) and the prompt below is fixed; \"Extra direction\" is appended to it."
+ },
+ "inputs": [
+ {
+ "id": "scene",
+ "type": "textarea",
+ "label": "Scene",
+ "required": true,
+ "default": "a cat staring at a laptop screen with a worried face"
+ },
+ {
+ "id": "top",
+ "type": "text",
+ "label": "Top text",
+ "default": "WHEN THE BUILD",
+ "required": true
+ },
+ {
+ "id": "bottom",
+ "type": "text",
+ "label": "Bottom text",
+ "default": "PASSES ON FRIDAY",
+ "required": true
+ },
+ {
+ "id": "details",
+ "type": "textarea",
+ "label": "Extra direction",
+ "help": "Added at the end of the app's prompt.",
+ "bind": [
+ {
+ "node": "57:27",
+ "field": "text",
+ "template": "A meme image: {scene}. Bold white capital letters in a thick Impact-style font with a black outline read \"{top}\" at the top and \"{bottom}\" at the bottom of the image. {details}"
+ }
+ ]
+ },
+ {
+ "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": "Result"
+ }
+ ],
+ "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": {
+ "scene": "a golden retriever sitting at a desk in front of three monitors, looking proud",
+ "top": "WHEN THE TESTS",
+ "bottom": "PASS FIRST TRY"
+ }
+}
diff --git a/apps/meme/workflow.api.json b/apps/meme/workflow.api.json
new file mode 100644
index 0000000..58c8731
--- /dev/null
+++ b/apps/meme/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/apps/micro-beasts/app.json b/apps/micro-beasts/app.json
new file mode 100644
index 0000000..5799206
--- /dev/null
+++ b/apps/micro-beasts/app.json
@@ -0,0 +1,140 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "micro-beasts",
+ "name": "Micro-Beasts",
+ "section": "image",
+ "summary": "You surrounded by tiny cute animals.",
+ "higgsfield_feature": "Surrounded by Animals",
+ "pack": "image-flux3",
+ "status": "ready",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "image_flux3_klein_distilled_image_edit.json",
+ "comfyui": "0.42.0",
+ "notes": "Template app written by tools/template_apps.py: the workflow is apps/edit's (built by tools/build_apps.py) and the prompt below is fixed; \"Extra direction\" is appended to it."
+ },
+ "inputs": [
+ {
+ "id": "image",
+ "type": "image",
+ "label": "Your photo",
+ "required": true,
+ "limits": {
+ "max_mb": 20
+ },
+ "bind": [
+ {
+ "node": "11",
+ "field": "image"
+ }
+ ]
+ },
+ {
+ "id": "animals",
+ "type": "select",
+ "label": "Animals",
+ "default": "hamsters and kittens",
+ "options": [
+ {
+ "value": "hamsters and kittens",
+ "label": "Hamsters and kittens"
+ },
+ {
+ "value": "ducklings and bunnies",
+ "label": "Ducklings and bunnies"
+ },
+ {
+ "value": "tiny puppies",
+ "label": "Tiny puppies"
+ },
+ {
+ "value": "baby otters",
+ "label": "Baby otters"
+ }
+ ]
+ },
+ {
+ "id": "details",
+ "type": "textarea",
+ "label": "Extra direction",
+ "help": "Added at the end of the app's prompt.",
+ "bind": [
+ {
+ "node": "4",
+ "field": "text",
+ "template": "The person from <ref_image_0> surrounded by tiny cute animals: {animals} climbing on their shoulders and hands, sharp detail, soft daylight. Keep the face, hairstyle and build identical. {details}"
+ }
+ ]
+ },
+ {
+ "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": "Result"
+ }
+ ],
+ "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"
+ }
+}
diff --git a/apps/micro-beasts/workflow.api.json b/apps/micro-beasts/workflow.api.json
new file mode 100644
index 0000000..89bf07c
--- /dev/null
+++ b/apps/micro-beasts/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
index 2221539..32bef3d 100644
--- a/apps/motion-transfer/app.json
+++ b/apps/motion-transfer/app.json
@@ -4,7 +4,7 @@
"name": "Motion Transfer",
"section": "video",
"pack": "video-wan",
- "status": "draft",
+ "status": "ready",
"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",
diff --git a/apps/mural/app.json b/apps/mural/app.json
new file mode 100644
index 0000000..835c5dd
--- /dev/null
+++ b/apps/mural/app.json
@@ -0,0 +1,116 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "mural",
+ "name": "Street Mural",
+ "section": "image",
+ "summary": "You hand-painted on a large street mural.",
+ "higgsfield_feature": "Signboard",
+ "pack": "image-flux3",
+ "status": "ready",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "image_flux3_klein_distilled_image_edit.json",
+ "comfyui": "0.42.0",
+ "notes": "Template app written by tools/template_apps.py: the workflow is apps/edit's (built by tools/build_apps.py) and the prompt below is fixed; \"Extra direction\" is appended to it."
+ },
+ "inputs": [
+ {
+ "id": "image",
+ "type": "image",
+ "label": "Your photo",
+ "required": true,
+ "limits": {
+ "max_mb": 20
+ },
+ "bind": [
+ {
+ "node": "11",
+ "field": "image"
+ }
+ ]
+ },
+ {
+ "id": "details",
+ "type": "textarea",
+ "label": "Extra direction",
+ "help": "Added at the end of the app's prompt.",
+ "bind": [
+ {
+ "node": "4",
+ "field": "text",
+ "template": "The person from <ref_image_0> hand-painted on a large street mural on the side of a building, visible brush strokes, weathered paint, pedestrians passing below. {details}"
+ }
+ ]
+ },
+ {
+ "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": "Result"
+ }
+ ],
+ "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"
+ }
+}
diff --git a/apps/mural/workflow.api.json b/apps/mural/workflow.api.json
new file mode 100644
index 0000000..89bf07c
--- /dev/null
+++ b/apps/mural/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/outfit-vending/app.json b/apps/outfit-vending/app.json
new file mode 100644
index 0000000..073cb5a
--- /dev/null
+++ b/apps/outfit-vending/app.json
@@ -0,0 +1,116 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "outfit-vending",
+ "name": "Outfit Vending",
+ "section": "image",
+ "summary": "The clothes you are wearing, displayed item by item inside a lit vending machine.",
+ "higgsfield_feature": "Outfit Vending Machine",
+ "pack": "image-flux3",
+ "status": "ready",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "image_flux3_klein_distilled_image_edit.json",
+ "comfyui": "0.42.0",
+ "notes": "Template app written by tools/template_apps.py: the workflow is apps/edit's (built by tools/build_apps.py) and the prompt below is fixed; \"Extra direction\" is appended to it."
+ },
+ "inputs": [
+ {
+ "id": "image",
+ "type": "image",
+ "label": "Your photo",
+ "required": true,
+ "limits": {
+ "max_mb": 20
+ },
+ "bind": [
+ {
+ "node": "11",
+ "field": "image"
+ }
+ ]
+ },
+ {
+ "id": "details",
+ "type": "textarea",
+ "label": "Extra direction",
+ "help": "Added at the end of the app's prompt.",
+ "bind": [
+ {
+ "node": "4",
+ "field": "text",
+ "template": "The clothes and accessories worn in <ref_image_0> displayed as separate items inside an illuminated glass vending machine at night, each in its own slot with a price tag, neon glow. {details}"
+ }
+ ]
+ },
+ {
+ "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": "Result"
+ }
+ ],
+ "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"
+ }
+}
diff --git a/apps/outfit-vending/workflow.api.json b/apps/outfit-vending/workflow.api.json
new file mode 100644
index 0000000..89bf07c
--- /dev/null
+++ b/apps/outfit-vending/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/packshot/app.json b/apps/packshot/app.json
new file mode 100644
index 0000000..4c2ccbd
--- /dev/null
+++ b/apps/packshot/app.json
@@ -0,0 +1,140 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "packshot",
+ "name": "Packshot",
+ "section": "image",
+ "summary": "The closing frame of an ad: your product centered on a clean gradient with room for a tagline.",
+ "higgsfield_feature": "Packshot",
+ "pack": "image-flux3",
+ "status": "ready",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "image_flux3_klein_distilled_image_edit.json",
+ "comfyui": "0.42.0",
+ "notes": "Template app written by tools/template_apps.py: the workflow is apps/edit's (built by tools/build_apps.py) and the prompt below is fixed; \"Extra direction\" is appended to it."
+ },
+ "inputs": [
+ {
+ "id": "image",
+ "type": "image",
+ "label": "Product photo",
+ "required": true,
+ "limits": {
+ "max_mb": 20
+ },
+ "bind": [
+ {
+ "node": "11",
+ "field": "image"
+ }
+ ]
+ },
+ {
+ "id": "backdrop",
+ "type": "select",
+ "label": "Backdrop",
+ "default": "dark charcoal",
+ "options": [
+ {
+ "value": "dark charcoal",
+ "label": "Dark charcoal"
+ },
+ {
+ "value": "clean white",
+ "label": "Clean white"
+ },
+ {
+ "value": "deep blue",
+ "label": "Deep blue"
+ },
+ {
+ "value": "warm beige",
+ "label": "Warm beige"
+ }
+ ]
+ },
+ {
+ "id": "details",
+ "type": "textarea",
+ "label": "Extra direction",
+ "help": "Added at the end of the app's prompt.",
+ "bind": [
+ {
+ "node": "4",
+ "field": "text",
+ "template": "The closing packshot of a commercial: the product from <ref_image_0> centered on a smooth {backdrop} gradient background, a soft shadow under it, generous empty space above it. Keep the product identical: shape, label, text and colors. {details}"
+ }
+ ]
+ },
+ {
+ "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": "Result"
+ }
+ ],
+ "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"
+ }
+}
diff --git a/apps/packshot/workflow.api.json b/apps/packshot/workflow.api.json
new file mode 100644
index 0000000..89bf07c
--- /dev/null
+++ b/apps/packshot/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/paint-app/app.json b/apps/paint-app/app.json
new file mode 100644
index 0000000..6893180
--- /dev/null
+++ b/apps/paint-app/app.json
@@ -0,0 +1,116 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "paint-app",
+ "name": "Paint App",
+ "section": "image",
+ "summary": "Your photo redrawn in a 1990s computer paint program.",
+ "higgsfield_feature": "Paint App",
+ "pack": "image-flux3",
+ "status": "ready",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "image_flux3_klein_distilled_image_edit.json",
+ "comfyui": "0.42.0",
+ "notes": "Template app written by tools/template_apps.py: the workflow is apps/edit's (built by tools/build_apps.py) and the prompt below is fixed; \"Extra direction\" is appended to it."
+ },
+ "inputs": [
+ {
+ "id": "image",
+ "type": "image",
+ "label": "Your photo",
+ "required": true,
+ "limits": {
+ "max_mb": 20
+ },
+ "bind": [
+ {
+ "node": "11",
+ "field": "image"
+ }
+ ]
+ },
+ {
+ "id": "details",
+ "type": "textarea",
+ "label": "Extra direction",
+ "help": "Added at the end of the app's prompt.",
+ "bind": [
+ {
+ "node": "4",
+ "field": "text",
+ "template": "The photo from <ref_image_0> redrawn as a crude drawing made in a 1990s computer paint program: aliased lines, flat fill colors, a spray-can texture, white canvas with the program's toolbar at the edge. {details}"
+ }
+ ]
+ },
+ {
+ "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": "Result"
+ }
+ ],
+ "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"
+ }
+}
diff --git a/apps/paint-app/workflow.api.json b/apps/paint-app/workflow.api.json
new file mode 100644
index 0000000..89bf07c
--- /dev/null
+++ b/apps/paint-app/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/pixel-game/app.json b/apps/pixel-game/app.json
new file mode 100644
index 0000000..bcaae30
--- /dev/null
+++ b/apps/pixel-game/app.json
@@ -0,0 +1,116 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "pixel-game",
+ "name": "Pixel Game",
+ "section": "image",
+ "summary": "Your scene redrawn as 16-bit pixel art with a game HUD.",
+ "higgsfield_feature": "Pixel Game",
+ "pack": "image-flux3",
+ "status": "ready",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "image_flux3_klein_distilled_image_edit.json",
+ "comfyui": "0.42.0",
+ "notes": "Template app written by tools/template_apps.py: the workflow is apps/edit's (built by tools/build_apps.py) and the prompt below is fixed; \"Extra direction\" is appended to it."
+ },
+ "inputs": [
+ {
+ "id": "image",
+ "type": "image",
+ "label": "Your photo",
+ "required": true,
+ "limits": {
+ "max_mb": 20
+ },
+ "bind": [
+ {
+ "node": "11",
+ "field": "image"
+ }
+ ]
+ },
+ {
+ "id": "details",
+ "type": "textarea",
+ "label": "Extra direction",
+ "help": "Added at the end of the app's prompt.",
+ "bind": [
+ {
+ "node": "4",
+ "field": "text",
+ "template": "The scene from <ref_image_0> redrawn as 16-bit pixel art from a retro video game, limited palette, visible pixels, a side-view game HUD at the top. {details}"
+ }
+ ]
+ },
+ {
+ "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": "Result"
+ }
+ ],
+ "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"
+ }
+}
diff --git a/apps/pixel-game/workflow.api.json b/apps/pixel-game/workflow.api.json
new file mode 100644
index 0000000..89bf07c
--- /dev/null
+++ b/apps/pixel-game/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/plushie/app.json b/apps/plushie/app.json
new file mode 100644
index 0000000..fa50d7a
--- /dev/null
+++ b/apps/plushie/app.json
@@ -0,0 +1,116 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "plushie",
+ "name": "Plushie",
+ "section": "image",
+ "summary": "The subject of your photo remade as a soft plush toy.",
+ "higgsfield_feature": "Plushies",
+ "pack": "image-flux3",
+ "status": "ready",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "image_flux3_klein_distilled_image_edit.json",
+ "comfyui": "0.42.0",
+ "notes": "Template app written by tools/template_apps.py: the workflow is apps/edit's (built by tools/build_apps.py) and the prompt below is fixed; \"Extra direction\" is appended to it."
+ },
+ "inputs": [
+ {
+ "id": "image",
+ "type": "image",
+ "label": "Your photo",
+ "required": true,
+ "limits": {
+ "max_mb": 20
+ },
+ "bind": [
+ {
+ "node": "11",
+ "field": "image"
+ }
+ ]
+ },
+ {
+ "id": "details",
+ "type": "textarea",
+ "label": "Extra direction",
+ "help": "Added at the end of the app's prompt.",
+ "bind": [
+ {
+ "node": "4",
+ "field": "text",
+ "template": "The subject of <ref_image_0> remade as a soft plush toy: fleece fabric, stitched seams, embroidered eyes, sitting on a child's bed, soft daylight. {details}"
+ }
+ ]
+ },
+ {
+ "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": "Result"
+ }
+ ],
+ "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"
+ }
+}
diff --git a/apps/plushie/workflow.api.json b/apps/plushie/workflow.api.json
new file mode 100644
index 0000000..89bf07c
--- /dev/null
+++ b/apps/plushie/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/poster/app.json b/apps/poster/app.json
new file mode 100644
index 0000000..44f37b0
--- /dev/null
+++ b/apps/poster/app.json
@@ -0,0 +1,124 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "poster",
+ "name": "Poster",
+ "section": "image",
+ "summary": "Turns a product photo into a printed advertising poster with your headline (FLUX 3 Image Klein).",
+ "higgsfield_feature": "Poster",
+ "pack": "image-flux3",
+ "status": "ready",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "image_flux3_klein_distilled_image_edit.json",
+ "comfyui": "0.42.0",
+ "notes": "Template app written by tools/template_apps.py: the workflow is apps/edit's (built by tools/build_apps.py) and the prompt below is fixed; \"Extra direction\" is appended to it."
+ },
+ "inputs": [
+ {
+ "id": "image",
+ "type": "image",
+ "label": "Product photo",
+ "required": true,
+ "limits": {
+ "max_mb": 20
+ },
+ "bind": [
+ {
+ "node": "11",
+ "field": "image"
+ }
+ ]
+ },
+ {
+ "id": "headline",
+ "type": "text",
+ "label": "Headline",
+ "default": "NEW SEASON",
+ "required": true
+ },
+ {
+ "id": "details",
+ "type": "textarea",
+ "label": "Extra direction",
+ "help": "Added at the end of the app's prompt.",
+ "bind": [
+ {
+ "node": "4",
+ "field": "text",
+ "template": "A printed advertising poster for the product from <ref_image_0>: the product large in the center, a bold headline reading \"{headline}\" at the top, a clean typographic layout, studio lighting, vivid colors. Keep the product identical: shape, label, text and colors. {details}"
+ }
+ ]
+ },
+ {
+ "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": "Result"
+ }
+ ],
+ "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",
+ "headline": "NOIR"
+ }
+}
diff --git a/apps/poster/workflow.api.json b/apps/poster/workflow.api.json
new file mode 100644
index 0000000..89bf07c
--- /dev/null
+++ b/apps/poster/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/recast/workflow.api.json b/apps/recast/workflow.api.json
index 0e562a8..6923430 100644
--- a/apps/recast/workflow.api.json
+++ b/apps/recast/workflow.api.json
@@ -464,10 +464,7 @@
"213:157",
0
],
- "batch_index": [
- "213:184",
- 1
- ],
+ "batch_index": 0,
"length": 81
},
"_meta": {
@@ -518,28 +515,6 @@
"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": {
diff --git a/apps/renaissance/app.json b/apps/renaissance/app.json
new file mode 100644
index 0000000..493ee16
--- /dev/null
+++ b/apps/renaissance/app.json
@@ -0,0 +1,116 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "renaissance",
+ "name": "Renaissance",
+ "section": "image",
+ "summary": "You as a Renaissance oil painting in a gilded museum frame.",
+ "higgsfield_feature": "Renaissance",
+ "pack": "image-flux3",
+ "status": "ready",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "image_flux3_klein_distilled_image_edit.json",
+ "comfyui": "0.42.0",
+ "notes": "Template app written by tools/template_apps.py: the workflow is apps/edit's (built by tools/build_apps.py) and the prompt below is fixed; \"Extra direction\" is appended to it."
+ },
+ "inputs": [
+ {
+ "id": "image",
+ "type": "image",
+ "label": "Your photo",
+ "required": true,
+ "limits": {
+ "max_mb": 20
+ },
+ "bind": [
+ {
+ "node": "11",
+ "field": "image"
+ }
+ ]
+ },
+ {
+ "id": "details",
+ "type": "textarea",
+ "label": "Extra direction",
+ "help": "Added at the end of the app's prompt.",
+ "bind": [
+ {
+ "node": "4",
+ "field": "text",
+ "template": "The person from <ref_image_0> as a Renaissance oil painting: chiaroscuro light, period clothing, cracked varnish, in an ornate gilded frame on a museum wall. Keep the face, hairstyle and build identical. {details}"
+ }
+ ]
+ },
+ {
+ "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": "Result"
+ }
+ ],
+ "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"
+ }
+}
diff --git a/apps/renaissance/workflow.api.json b/apps/renaissance/workflow.api.json
new file mode 100644
index 0000000..89bf07c
--- /dev/null
+++ b/apps/renaissance/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/render-3d/app.json b/apps/render-3d/app.json
new file mode 100644
index 0000000..bd8b99b
--- /dev/null
+++ b/apps/render-3d/app.json
@@ -0,0 +1,116 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "render-3d",
+ "name": "3D Render",
+ "section": "image",
+ "summary": "A stylized 3D render of your photo: clay-like materials, soft studio light.",
+ "higgsfield_feature": "3D Render",
+ "pack": "image-flux3",
+ "status": "ready",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "image_flux3_klein_distilled_image_edit.json",
+ "comfyui": "0.42.0",
+ "notes": "Template app written by tools/template_apps.py: the workflow is apps/edit's (built by tools/build_apps.py) and the prompt below is fixed; \"Extra direction\" is appended to it."
+ },
+ "inputs": [
+ {
+ "id": "image",
+ "type": "image",
+ "label": "Your photo",
+ "required": true,
+ "limits": {
+ "max_mb": 20
+ },
+ "bind": [
+ {
+ "node": "11",
+ "field": "image"
+ }
+ ]
+ },
+ {
+ "id": "details",
+ "type": "textarea",
+ "label": "Extra direction",
+ "help": "Added at the end of the app's prompt.",
+ "bind": [
+ {
+ "node": "4",
+ "field": "text",
+ "template": "The subject of <ref_image_0> as a stylized 3D render: smooth clay-like materials, big expressive proportions, soft studio lighting, subtle subsurface scattering, clean gradient background. {details}"
+ }
+ ]
+ },
+ {
+ "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": "Result"
+ }
+ ],
+ "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"
+ }
+}
diff --git a/apps/render-3d/workflow.api.json b/apps/render-3d/workflow.api.json
new file mode 100644
index 0000000..89bf07c
--- /dev/null
+++ b/apps/render-3d/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/sketch-to-real/app.json b/apps/sketch-to-real/app.json
new file mode 100644
index 0000000..b198445
--- /dev/null
+++ b/apps/sketch-to-real/app.json
@@ -0,0 +1,116 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "sketch-to-real",
+ "name": "Sketch to Real",
+ "section": "image",
+ "summary": "Turns a sketch into a photorealistic photo of the same scene.",
+ "higgsfield_feature": "Sketch-to-Real",
+ "pack": "image-flux3",
+ "status": "ready",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "image_flux3_klein_distilled_image_edit.json",
+ "comfyui": "0.42.0",
+ "notes": "Template app written by tools/template_apps.py: the workflow is apps/edit's (built by tools/build_apps.py) and the prompt below is fixed; \"Extra direction\" is appended to it."
+ },
+ "inputs": [
+ {
+ "id": "image",
+ "type": "image",
+ "label": "Your sketch",
+ "required": true,
+ "limits": {
+ "max_mb": 20
+ },
+ "bind": [
+ {
+ "node": "11",
+ "field": "image"
+ }
+ ]
+ },
+ {
+ "id": "details",
+ "type": "textarea",
+ "label": "Extra direction",
+ "help": "Added at the end of the app's prompt.",
+ "bind": [
+ {
+ "node": "4",
+ "field": "text",
+ "template": "Turn the sketch from <ref_image_0> into a photorealistic photograph of the same scene: same composition and subjects, real materials, natural light. {details}"
+ }
+ ]
+ },
+ {
+ "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": "Result"
+ }
+ ],
+ "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"
+ }
+}
diff --git a/apps/sketch-to-real/workflow.api.json b/apps/sketch-to-real/workflow.api.json
new file mode 100644
index 0000000..89bf07c
--- /dev/null
+++ b/apps/sketch-to-real/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/skin-enhancer/app.json b/apps/skin-enhancer/app.json
new file mode 100644
index 0000000..8dbd7ba
--- /dev/null
+++ b/apps/skin-enhancer/app.json
@@ -0,0 +1,116 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "skin-enhancer",
+ "name": "Skin Enhancer",
+ "section": "image",
+ "summary": "A beauty-editor retouch: even tone, natural pores kept, no plastic smoothing.",
+ "higgsfield_feature": "Skin Enhancer",
+ "pack": "image-flux3",
+ "status": "ready",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "image_flux3_klein_distilled_image_edit.json",
+ "comfyui": "0.42.0",
+ "notes": "Template app written by tools/template_apps.py: the workflow is apps/edit's (built by tools/build_apps.py) and the prompt below is fixed; \"Extra direction\" is appended to it."
+ },
+ "inputs": [
+ {
+ "id": "image",
+ "type": "image",
+ "label": "Your photo",
+ "required": true,
+ "limits": {
+ "max_mb": 20
+ },
+ "bind": [
+ {
+ "node": "11",
+ "field": "image"
+ }
+ ]
+ },
+ {
+ "id": "details",
+ "type": "textarea",
+ "label": "Extra direction",
+ "help": "Added at the end of the app's prompt.",
+ "bind": [
+ {
+ "node": "4",
+ "field": "text",
+ "template": "Retouch the photo from <ref_image_0> like a beauty editor: even skin tone, natural pores and fine texture kept, blemishes reduced, no plastic smoothing. Everything else stays exactly the same. {details}"
+ }
+ ]
+ },
+ {
+ "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": "Result"
+ }
+ ],
+ "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"
+ }
+}
diff --git a/apps/skin-enhancer/workflow.api.json b/apps/skin-enhancer/workflow.api.json
new file mode 100644
index 0000000..89bf07c
--- /dev/null
+++ b/apps/skin-enhancer/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/style-snap/app.json b/apps/style-snap/app.json
new file mode 100644
index 0000000..81bbf0d
--- /dev/null
+++ b/apps/style-snap/app.json
@@ -0,0 +1,149 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "style-snap",
+ "name": "Style Snap",
+ "section": "image",
+ "summary": "You in a complete new outfit: streetwear, business, gala, athleisure, 70s or monochrome.",
+ "higgsfield_feature": "Style Snap",
+ "pack": "image-flux3",
+ "status": "ready",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "image_flux3_klein_distilled_image_edit.json",
+ "comfyui": "0.42.0",
+ "notes": "Template app written by tools/template_apps.py: the workflow is apps/edit's (built by tools/build_apps.py) and the prompt below is fixed; \"Extra direction\" is appended to it."
+ },
+ "inputs": [
+ {
+ "id": "image",
+ "type": "image",
+ "label": "Your photo",
+ "required": true,
+ "limits": {
+ "max_mb": 20
+ },
+ "bind": [
+ {
+ "node": "11",
+ "field": "image"
+ }
+ ]
+ },
+ {
+ "id": "style",
+ "type": "select",
+ "label": "Style",
+ "default": "streetwear",
+ "options": [
+ {
+ "value": "streetwear",
+ "label": "Streetwear"
+ },
+ {
+ "value": "business formal",
+ "label": "Business formal"
+ },
+ {
+ "value": "evening gala",
+ "label": "Evening gala"
+ },
+ {
+ "value": "sporty athleisure",
+ "label": "Athleisure"
+ },
+ {
+ "value": "vintage 1970s",
+ "label": "Vintage 70s"
+ },
+ {
+ "value": "minimalist monochrome",
+ "label": "Minimal monochrome"
+ }
+ ]
+ },
+ {
+ "id": "details",
+ "type": "textarea",
+ "label": "Extra direction",
+ "help": "Added at the end of the app's prompt.",
+ "bind": [
+ {
+ "node": "4",
+ "field": "text",
+ "template": "The same person as in <ref_image_0> wearing a complete {style} outfit, full-length shot in a matching setting, natural pose. Keep the face, hairstyle and build identical. {details}"
+ }
+ ]
+ },
+ {
+ "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": "Result"
+ }
+ ],
+ "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",
+ "style": "streetwear"
+ }
+}
diff --git a/apps/style-snap/workflow.api.json b/apps/style-snap/workflow.api.json
new file mode 100644
index 0000000..89bf07c
--- /dev/null
+++ b/apps/style-snap/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/talking/app.json b/apps/talking/app.json
index b8b8a18..7b5db6e 100644
--- a/apps/talking/app.json
+++ b/apps/talking/app.json
@@ -4,7 +4,7 @@
"name": "Talking Avatar",
"section": "video",
"pack": "video-ltx25",
- "status": "draft",
+ "status": "ready",
"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",
diff --git a/apps/transitions/app.json b/apps/transitions/app.json
index 9d49cca..6301605 100644
--- a/apps/transitions/app.json
+++ b/apps/transitions/app.json
@@ -4,7 +4,7 @@
"name": "Transitions",
"section": "video",
"pack": "video-ltx25",
- "status": "draft",
+ "status": "ready",
"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",
diff --git a/apps/ugc-shot/app.json b/apps/ugc-shot/app.json
new file mode 100644
index 0000000..4c62525
--- /dev/null
+++ b/apps/ugc-shot/app.json
@@ -0,0 +1,136 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "ugc-shot",
+ "name": "UGC Shot",
+ "section": "image",
+ "summary": "A casual phone photo of a hand holding your product, like a social media post.",
+ "higgsfield_feature": "Marketing (UGC)",
+ "pack": "image-flux3",
+ "status": "ready",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "image_flux3_klein_distilled_image_edit.json",
+ "comfyui": "0.42.0",
+ "notes": "Template app written by tools/template_apps.py: the workflow is apps/edit's (built by tools/build_apps.py) and the prompt below is fixed; \"Extra direction\" is appended to it."
+ },
+ "inputs": [
+ {
+ "id": "image",
+ "type": "image",
+ "label": "Product photo",
+ "required": true,
+ "limits": {
+ "max_mb": 20
+ },
+ "bind": [
+ {
+ "node": "11",
+ "field": "image"
+ }
+ ]
+ },
+ {
+ "id": "where",
+ "type": "select",
+ "label": "Where",
+ "default": "in a bright kitchen",
+ "options": [
+ {
+ "value": "in a bright kitchen",
+ "label": "Bright kitchen"
+ },
+ {
+ "value": "at a cafe table",
+ "label": "Cafe table"
+ },
+ {
+ "value": "outdoors in a park",
+ "label": "Outdoors in a park"
+ }
+ ]
+ },
+ {
+ "id": "details",
+ "type": "textarea",
+ "label": "Extra direction",
+ "help": "Added at the end of the app's prompt.",
+ "bind": [
+ {
+ "node": "4",
+ "field": "text",
+ "template": "A casual phone photo of a hand holding the product from <ref_image_0> {where}, natural light, slightly tilted framing, like a social media post. Keep the product identical: shape, label, text and colors. {details}"
+ }
+ ]
+ },
+ {
+ "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": "Result"
+ }
+ ],
+ "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"
+ }
+}
diff --git a/apps/ugc-shot/workflow.api.json b/apps/ugc-shot/workflow.api.json
new file mode 100644
index 0000000..89bf07c
--- /dev/null
+++ b/apps/ugc-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/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/vfx-clean-plate/app.json b/apps/vfx-clean-plate/app.json
index ad3e46e..454464f 100644
--- a/apps/vfx-clean-plate/app.json
+++ b/apps/vfx-clean-plate/app.json
@@ -4,7 +4,7 @@
"name": "Clean Plate",
"section": "video",
"pack": "video-ltx25",
- "status": "draft",
+ "status": "ready",
"higgsfield_feature": "VFX: remove people",
"summary": "Removes people and moving subjects from a shot and rebuilds the background.",
"workflow": "workflow.api.json",
diff --git a/apps/vfx-day-to-night/app.json b/apps/vfx-day-to-night/app.json
index aaa79a2..8cfaebb 100644
--- a/apps/vfx-day-to-night/app.json
+++ b/apps/vfx-day-to-night/app.json
@@ -4,7 +4,7 @@
"name": "Day to Night",
"section": "video",
"pack": "video-ltx25",
- "status": "draft",
+ "status": "ready",
"higgsfield_feature": "VFX: relight",
"summary": "Turns a daytime shot into a believable night version of the same shot.",
"workflow": "workflow.api.json",
diff --git a/apps/vfx-water/app.json b/apps/vfx-water/app.json
index afb5fee..0366b10 100644
--- a/apps/vfx-water/app.json
+++ b/apps/vfx-water/app.json
@@ -4,7 +4,7 @@
"name": "Water Simulation",
"section": "video",
"pack": "video-ltx25",
- "status": "draft",
+ "status": "ready",
"higgsfield_feature": "VFX: water",
"summary": "Adds simulated water to a shot, following the scene's geometry.",
"workflow": "workflow.api.json",
diff --git a/apps/victory-card/app.json b/apps/victory-card/app.json
new file mode 100644
index 0000000..d2bac8e
--- /dev/null
+++ b/apps/victory-card/app.json
@@ -0,0 +1,116 @@
+{
+ "$schema": "../../schema/app.schema.json",
+ "id": "victory-card",
+ "name": "Victory Card",
+ "section": "image",
+ "summary": "Your face on a playing card in a winning poker hand.",
+ "higgsfield_feature": "Victory Card",
+ "pack": "image-flux3",
+ "status": "ready",
+ "workflow": "workflow.api.json",
+ "source": {
+ "template": "image_flux3_klein_distilled_image_edit.json",
+ "comfyui": "0.42.0",
+ "notes": "Template app written by tools/template_apps.py: the workflow is apps/edit's (built by tools/build_apps.py) and the prompt below is fixed; \"Extra direction\" is appended to it."
+ },
+ "inputs": [
+ {
+ "id": "image",
+ "type": "image",
+ "label": "Your photo",
+ "required": true,
+ "limits": {
+ "max_mb": 20
+ },
+ "bind": [
+ {
+ "node": "11",
+ "field": "image"
+ }
+ ]
+ },
+ {
+ "id": "details",
+ "type": "textarea",
+ "label": "Extra direction",
+ "help": "Added at the end of the app's prompt.",
+ "bind": [
+ {
+ "node": "4",
+ "field": "text",
+ "template": "The person from <ref_image_0> as the face of a king or queen playing card in a winning poker hand, ornate card design, gold foil, five cards fanned on green felt. {details}"
+ }
+ ]
+ },
+ {
+ "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": "Result"
+ }
+ ],
+ "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"
+ }
+}
diff --git a/apps/victory-card/workflow.api.json b/apps/victory-card/workflow.api.json
new file mode 100644
index 0000000..89bf07c
--- /dev/null
+++ b/apps/victory-card/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/docs/vram-map.json b/docs/vram-map.json
index e40c620..1f15406 100644
--- a/docs/vram-map.json
+++ b/docs/vram-map.json
@@ -102,6 +102,131 @@
"modal_gpu": "L4 / A10G (24 GB)",
"measured_peak_gb": null
},
+ {
+ "id": "billboard",
+ "name": "Billboard",
+ "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": "breakdown",
+ "name": "Breakdown",
+ "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": "brick-toy",
+ "name": "Brick Toy",
+ "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": "burning-sunset",
+ "name": "Burning Sunset",
+ "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": "cafe-60s",
+ "name": "60s Cafe",
+ "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": "character",
"name": "Consistent Character",
@@ -128,8 +253,683 @@
"measured_peak_gb": null
},
{
- "id": "edit",
- "name": "Edit Image",
+ "id": "color-grade",
+ "name": "Color Grade",
+ "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": "comic-book",
+ "name": "Comic Book",
+ "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": "commercial-faces",
+ "name": "Commercial Faces",
+ "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": "edit-text",
+ "name": "Edit Text",
+ "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": "figure-3d",
+ "name": "3D Figure",
+ "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": "fridge-ad",
+ "name": "Fridge Ad",
+ "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": "game-styles",
+ "name": "Game Styles",
+ "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": "giallo",
+ "name": "Giallo Horror",
+ "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": "giant-product",
+ "name": "Giant Product",
+ "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": "glitter-sticker",
+ "name": "Glitter Sticker",
+ "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": "graffiti-ad",
+ "name": "Graffiti Ad",
+ "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": "headshot",
+ "name": "Studio Headshot",
+ "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": "image-effects",
+ "name": "Image Effects",
+ "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": "j-magazine",
+ "name": "J-Magazine",
+ "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": "j-poster",
+ "name": "J-Poster",
+ "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": "japanese-show",
+ "name": "Japanese Show",
+ "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": "macro-product",
+ "name": "Macro Product",
+ "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": "macro-scene",
+ "name": "Macro Scene",
+ "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": "mascot",
+ "name": "Mascot",
+ "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": "micro-beasts",
+ "name": "Micro-Beasts",
+ "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": "mural",
+ "name": "Street Mural",
+ "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": "outfit-vending",
+ "name": "Outfit Vending",
+ "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": "packshot",
+ "name": "Packshot",
+ "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": "paint-app",
+ "name": "Paint App",
+ "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": "pixel-game",
+ "name": "Pixel Game",
+ "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": "plushie",
+ "name": "Plushie",
+ "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": "poster",
+ "name": "Poster",
"section": "image",
"pack": "image-flux3",
"status": "ready",
@@ -177,6 +977,181 @@
"modal_gpu": "L4 / A10G (24 GB)",
"measured_peak_gb": null
},
+ {
+ "id": "renaissance",
+ "name": "Renaissance",
+ "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": "render-3d",
+ "name": "3D Render",
+ "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": "sketch-to-real",
+ "name": "Sketch to Real",
+ "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": "skin-enhancer",
+ "name": "Skin Enhancer",
+ "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": "style-snap",
+ "name": "Style Snap",
+ "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": "ugc-shot",
+ "name": "UGC 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": "victory-card",
+ "name": "Victory Card",
+ "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",
@@ -202,6 +1177,31 @@
"modal_gpu": "L4 / A10G (24 GB)",
"measured_peak_gb": null
},
+ {
+ "id": "meme",
+ "name": "Meme Generator",
+ "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",
@@ -357,7 +1357,7 @@
"name": "Motion Transfer",
"section": "video",
"pack": "video-wan",
- "status": "draft",
+ "status": "ready",
"whole_gb": 24.9,
"phases_gb": {
"encode": 8.0,
@@ -377,6 +1377,31 @@
"modal_gpu": "L4 / A10G (24 GB)",
"measured_peak_gb": null
},
+ {
+ "id": "effects",
+ "name": "Effects",
+ "section": "video",
+ "pack": "video-wan-effects",
+ "status": "ready",
+ "whole_gb": 25.01,
+ "phases_gb": {
+ "encode": 8.0,
+ "denoise": 16.76,
+ "denoise2": 0.0,
+ "decode": 0.25,
+ "aux": 0.0
+ },
+ "largest_phase": "denoise",
+ "largest_phase_gb": 16.76,
+ "optional_gb": 12.98,
+ "biggest_file": {
+ "name": "wan2.1_i2v_480p_14B_fp8_scaled.safetensors",
+ "gb": 16.4
+ },
+ "verdict_24gb": "fits by phases",
+ "modal_gpu": "L4 / A10G (24 GB)",
+ "measured_peak_gb": null
+ },
{
"id": "recast",
"name": "Recast",
@@ -432,7 +1457,7 @@
"name": "Talking Avatar",
"section": "video",
"pack": "video-ltx25",
- "status": "draft",
+ "status": "ready",
"whole_gb": 39.7,
"phases_gb": {
"encode": 15.37,
@@ -532,7 +1557,7 @@
"name": "Clean Plate",
"section": "video",
"pack": "video-ltx25",
- "status": "draft",
+ "status": "ready",
"whole_gb": 39.03,
"phases_gb": {
"encode": 15.37,
@@ -557,7 +1582,7 @@
"name": "Day to Night",
"section": "video",
"pack": "video-ltx25",
- "status": "draft",
+ "status": "ready",
"whole_gb": 39.03,
"phases_gb": {
"encode": 15.37,
@@ -582,7 +1607,7 @@
"name": "Transitions",
"section": "video",
"pack": "video-ltx25",
- "status": "draft",
+ "status": "ready",
"whole_gb": 39.09,
"phases_gb": {
"encode": 15.37,
@@ -607,7 +1632,7 @@
"name": "Camera Copy",
"section": "video",
"pack": "video-ltx25",
- "status": "draft",
+ "status": "ready",
"whole_gb": 39.35,
"phases_gb": {
"encode": 15.37,
@@ -632,7 +1657,7 @@
"name": "Water Simulation",
"section": "video",
"pack": "video-ltx25",
- "status": "draft",
+ "status": "ready",
"whole_gb": 39.61,
"phases_gb": {
"encode": 15.37,
diff --git a/docs/vram-map.md b/docs/vram-map.md
index 4918f1c..abf9443 100644
--- a/docs/vram-map.md
+++ b/docs/vram-map.md
@@ -12,28 +12,69 @@ When two apps run back to back with different models, the gateway asks ComfyUI t
| `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 |
+| `billboard` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | fits whole | L4 / A10G (24 GB) | not measured |
+| `breakdown` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | fits whole | L4 / A10G (24 GB) | not measured |
+| `brick-toy` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | fits whole | L4 / A10G (24 GB) | not measured |
+| `burning-sunset` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | fits whole | L4 / A10G (24 GB) | not measured |
+| `cafe-60s` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | 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 |
+| `color-grade` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | fits whole | L4 / A10G (24 GB) | not measured |
+| `comic-book` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | fits whole | L4 / A10G (24 GB) | not measured |
+| `commercial-faces` | 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 |
+| `edit-text` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | fits whole | L4 / A10G (24 GB) | not measured |
+| `figure-3d` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | fits whole | L4 / A10G (24 GB) | not measured |
+| `fridge-ad` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | fits whole | L4 / A10G (24 GB) | not measured |
+| `game-styles` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | fits whole | L4 / A10G (24 GB) | not measured |
+| `giallo` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | fits whole | L4 / A10G (24 GB) | not measured |
+| `giant-product` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | fits whole | L4 / A10G (24 GB) | not measured |
+| `glitter-sticker` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | fits whole | L4 / A10G (24 GB) | not measured |
+| `graffiti-ad` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | fits whole | L4 / A10G (24 GB) | not measured |
+| `headshot` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | fits whole | L4 / A10G (24 GB) | not measured |
+| `image-effects` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | fits whole | L4 / A10G (24 GB) | not measured |
+| `j-magazine` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | fits whole | L4 / A10G (24 GB) | not measured |
+| `j-poster` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | fits whole | L4 / A10G (24 GB) | not measured |
+| `japanese-show` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | fits whole | L4 / A10G (24 GB) | not measured |
+| `macro-product` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | fits whole | L4 / A10G (24 GB) | not measured |
+| `macro-scene` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | fits whole | L4 / A10G (24 GB) | not measured |
+| `mascot` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | fits whole | L4 / A10G (24 GB) | not measured |
+| `micro-beasts` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | fits whole | L4 / A10G (24 GB) | not measured |
+| `mural` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | fits whole | L4 / A10G (24 GB) | not measured |
+| `outfit-vending` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | fits whole | L4 / A10G (24 GB) | not measured |
+| `packshot` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | fits whole | L4 / A10G (24 GB) | not measured |
+| `paint-app` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | fits whole | L4 / A10G (24 GB) | not measured |
+| `pixel-game` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | fits whole | L4 / A10G (24 GB) | not measured |
+| `plushie` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | fits whole | L4 / A10G (24 GB) | not measured |
+| `poster` | 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 |
+| `renaissance` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | fits whole | L4 / A10G (24 GB) | not measured |
+| `render-3d` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | fits whole | L4 / A10G (24 GB) | not measured |
+| `sketch-to-real` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | fits whole | L4 / A10G (24 GB) | not measured |
+| `skin-enhancer` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | fits whole | L4 / A10G (24 GB) | not measured |
+| `style-snap` | ready | 11.0 GB | denoise 5.8 GB | flux3-image-klein-int8-convrot.safetensors (5.8) | fits whole | L4 / A10G (24 GB) | not measured |
+| `ugc-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 |
+| `victory-card` | 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 |
+| `meme` | 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 |
+| `motion-transfer` | ready | 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 |
+| `effects` | ready | 25.0 GB (+13.0 optional) | denoise 16.8 GB | wan2.1_i2v_480p_14B_fp8_scaled.safetensors (16.4) | 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 |
+| `talking` | ready | 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 |
+| `vfx-clean-plate` | ready | 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` | ready | 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` | ready | 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` | ready | 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` | ready | 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/lab/cases.json b/lab/cases.json
index 2490502..e2a1623 100644
--- a/lab/cases.json
+++ b/lab/cases.json
@@ -117,6 +117,198 @@
{"id": "motion-transfer-walk", "showcase": true, "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", "showcase": true, "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)."}
+ "note": "MiniMax H3 + MoGe: the alley from 30 degrees to the left. Needs 48 GB (its text encoder alone is 27 GB)."},
+
+ {"id": "ref-fx-man-a", "app": "z-image", "values": {"prompt": "Waist-up portrait photo of a man in his thirties with short dark hair and a trimmed beard, wearing a plain grey t-shirt, slight smile, looking at the camera, soft daylight, plain light grey background, photorealistic", "width": 768, "height": 1280},
+ "note": "Reference still for the effects app (synthetic)."},
+ {"id": "ref-fx-man-b", "app": "z-image", "values": {"prompt": "Waist-up portrait photo of a young Black man with short curly hair, wearing a mustard yellow hoodie, friendly smile, looking at the camera, soft studio light, plain teal background, photorealistic", "width": 768, "height": 1280},
+ "note": "Reference still for the effects app (synthetic)."},
+ {"id": "ref-fx-woman-a", "app": "z-image", "values": {"prompt": "Waist-up portrait photo of a young woman with long wavy brown hair, wearing a cream knit sweater, gentle smile, looking at the camera, soft daylight, plain warm beige background, photorealistic", "width": 768, "height": 1280},
+ "note": "Reference still for the effects app (synthetic)."},
+ {"id": "ref-fx-woman-b", "app": "z-image", "values": {"prompt": "Waist-up portrait photo of an East Asian woman in her thirties with a short black bob haircut, wearing a navy blazer, calm expression, looking at the camera, soft studio light, plain light blue background, photorealistic", "width": 768, "height": 1280},
+ "note": "Reference still for the effects app (synthetic)."},
+ {"id": "ref-fx-runner", "app": "z-image", "values": {"prompt": "A female sprinter in a red and white running outfit crouched in the starting position on a red running track in an outdoor stadium, facing the camera, bright daylight, photorealistic", "width": 1280, "height": 768},
+ "note": "Reference still for the effects app (synthetic)."},
+ {"id": "ref-fx-plush", "app": "z-image", "values": {"prompt": "Close-up photo of a small brown plush teddy bear sitting on a white table, soft daylight, plain background, photorealistic", "width": 1024, "height": 1024},
+ "note": "Reference still for the effects app (synthetic)."},
+ {"id": "ref-fx-duck", "app": "z-image", "values": {"prompt": "Close-up photo of a yellow rubber duck on a white kitchen table, soft daylight, plain background, photorealistic", "width": 1024, "height": 1024},
+ "note": "Reference still for the effects app (synthetic)."},
+ {"id": "ref-fx-flamingo", "app": "z-image", "values": {"prompt": "Photo of a large pink inflatable flamingo pool float lying on a sunny poolside deck, blue water behind, photorealistic", "width": 1280, "height": 768},
+ "note": "Reference still for the effects app (synthetic)."},
+ {"id": "ref-fx-sneaker", "app": "z-image", "values": {"prompt": "Product photo of a single white sneaker with red details on a light wooden table, soft daylight, plain background, photorealistic", "width": 1280, "height": 768},
+ "note": "Reference still for the effects app (synthetic)."},
+ {"id": "ref-fx-toycar", "app": "z-image", "values": {"prompt": "Close-up photo of a shiny red toy car on a metal workbench in a workshop, soft light, photorealistic", "width": 1280, "height": 768},
+ "note": "Reference still for the effects app (synthetic)."},
+ {"id": "ref-fx-warehouse", "app": "z-image", "values": {"prompt": "Wide shot of an abandoned wooden warehouse standing alone in a flat desert, clear blue sky, midday sun, photorealistic", "width": 1280, "height": 768},
+ "note": "Reference still for the effects app (synthetic)."},
+ {"id": "ref-fx-storm", "app": "z-image", "values": {"prompt": "Wide shot of a lone oak tree on a grassy hill under dark storm clouds at dusk, dramatic sky, photorealistic", "width": 1280, "height": 768},
+ "note": "Reference still for the effects app (synthetic)."},
+ {"id": "ref-fx-street", "app": "z-image", "values": {"prompt": "Full body photo of a woman in a yellow raincoat standing in the middle of a narrow cobblestone street in an old European town, shops and street lamps on both sides, overcast daylight, photorealistic", "width": 768, "height": 1280},
+ "note": "Reference still for the effects app (synthetic)."},
+ {"id": "ref-fx-cafe", "app": "z-image", "values": {"prompt": "Medium shot of a man in a denim jacket sitting at a small table in a busy cafe, holding a cup of coffee, people and warm lights in the background, photorealistic", "width": 1280, "height": 768},
+ "note": "Reference still for the effects app (synthetic)."},
+ {"id": "ref-fx-lake", "app": "z-image", "values": {"prompt": "Wide shot of a hiker with a red backpack standing on a large rock at the edge of a calm mountain lake at sunrise, pine forest and snowy peaks around, photorealistic", "width": 1280, "height": 768},
+ "note": "Reference still for the effects app (synthetic)."},
+ {"id": "ref-fx-road", "app": "z-image", "values": {"prompt": "Wide shot of a red sports car driving fast on a winding mountain road at dusk, headlights on, cliffs and forest around, photorealistic", "width": 1280, "height": 768},
+ "note": "Reference still for the effects app (synthetic)."},
+ {"id": "ref-fx-jump", "app": "z-image", "values": {"prompt": "A parkour athlete in a black t-shirt frozen mid-leap between two rooftops at sunset, city skyline behind, photorealistic", "width": 1280, "height": 768},
+ "note": "Reference still for the effects app (synthetic)."},
+
+ {"id": "fx-assassin", "app": "effects", "values": {"image": "@case:ref-fx-woman-b", "effect": "assassin", "subject": "a woman with a short black bob in a navy blazer", "aspect": "portrait"},
+ "note": "Remade-AI Assassin. Costume change into a hooded assassin; the face should stay hers."},
+ {"id": "fx-baby", "app": "effects", "values": {"image": "@case:ref-fx-man-a", "effect": "baby", "subject": "a man with short dark hair and a trimmed beard in a grey t-shirt", "aspect": "portrait"},
+ "note": "Remade-AI Baby. He becomes a baby by a crib; a recognizable baby version, not a random baby."},
+ {"id": "fx-bride", "app": "effects", "values": {"image": "@case:ref-fx-woman-a", "effect": "bride", "subject": "a young woman with long wavy brown hair in a cream sweater", "aspect": "portrait"},
+ "note": "Remade-AI Bride. Wedding dress, veil and bouquet; same face."},
+ {"id": "fx-classy", "app": "effects", "values": {"image": "@case:ref-fx-woman-b", "effect": "classy", "subject": "a woman with a short black bob in a navy blazer", "aspect": "portrait"},
+ "note": "Remade-AI Classy. Elegant dress, envelope and flower, gold-brown backdrop."},
+ {"id": "fx-mona-lisa", "app": "effects", "values": {"image": "@case:ref-fx-woman-a", "effect": "mona-lisa", "subject": "a young woman with long wavy brown hair in a cream sweater", "aspect": "portrait"},
+ "note": "Remade-AI Mona-Lisa. A dark wrap, then the Mona Lisa pose and backdrop with her face."},
+ {"id": "fx-princess", "app": "effects", "values": {"image": "@case:ref-fx-woman-a", "effect": "princess", "subject": "a young woman with long wavy brown hair in a cream sweater", "aspect": "portrait"},
+ "note": "Remade-AI Princess. Sparkles, then tiara and silver gown; same face."},
+ {"id": "fx-robot-face", "showcase": true, "app": "effects", "values": {"image": "@case:ref-fx-man-b", "effect": "robot-face", "subject": "a young man with short curly hair in a mustard yellow hoodie", "aspect": "portrait"},
+ "note": "Remade-AI Robot-Face-Reveal. Seams open on his face and a robotic face shows underneath."},
+ {"id": "fx-vip", "app": "effects", "values": {"image": "@case:ref-fx-woman-b", "effect": "vip", "subject": "a woman with a short black bob in a navy blazer", "aspect": "portrait"},
+ "note": "Remade-AI VIP. Black dress and gold jewelry, then the red carpet with photographers."},
+ {"id": "fx-angry", "app": "effects", "values": {"image": "@case:ref-fx-man-a", "effect": "angry", "subject": "a man with short dark hair and a trimmed beard in a grey t-shirt", "aspect": "portrait"},
+ "note": "Remade-AI angry-face. From neutral to yelling with arms up; same person throughout."},
+ {"id": "fx-crying", "app": "effects", "values": {"image": "@case:ref-fx-woman-a", "effect": "crying", "subject": "a young woman with long wavy brown hair in a cream sweater", "aspect": "portrait"},
+ "note": "Remade-AI crying. A tear rolls down; a subtle effect, the face must not drift."},
+ {"id": "fx-laughing", "app": "effects", "values": {"image": "@case:ref-fx-woman-b", "effect": "laughing", "subject": "a woman with a short black bob in a navy blazer", "aspect": "portrait"},
+ "note": "Remade-AI Laughing. A natural laugh, not a frozen grin."},
+ {"id": "fx-jaw-drop", "app": "effects", "values": {"image": "@case:ref-fx-man-b", "effect": "jaw-drop", "subject": "a young man with short curly hair in a mustard yellow hoodie", "aspect": "portrait"},
+ "note": "Remade-AI Cartoon_Jaw_Drop. A cartoon jaw stretching down; funny, not gory."},
+ {"id": "fx-puppies", "app": "effects", "values": {"image": "@case:ref-fx-man-b", "effect": "puppies", "subject": "a young man with short curly hair in a mustard yellow hoodie", "aspect": "portrait"},
+ "note": "Remade-AI Puppy. Puppies appear around him and he pets them."},
+ {"id": "fx-selfie-younger", "app": "effects", "values": {"image": "@case:ref-fx-woman-b", "effect": "selfie-younger", "subject": "a woman with a short black bob in a navy blazer", "aspect": "portrait"},
+ "note": "Remade-AI Selfie-With-Younger-Self. A younger look-alike appears beside her for a selfie."},
+ {"id": "fx-steam", "app": "effects", "values": {"image": "@case:ref-fx-man-a", "effect": "steam", "subject": "a man with short dark hair and a trimmed beard in a grey t-shirt", "aspect": "portrait"},
+ "note": "lvfengchun wan21_i2v_boiling_point. He frowns and white steam shoots out of his nose and ears, cartoon style."},
+ {"id": "fx-money-rain", "app": "effects", "values": {"image": "@case:ref-fx-woman-b", "effect": "money-rain", "subject": "a woman with a short black bob in a navy blazer", "aspect": "portrait"},
+ "note": "joyfox WAN2.1-I2V-480P-Falling_US_dollars. Dollar bills fall around her and she smiles, same face. The LoRA card pairs it with a dance LoRA; this prompt asks for no dance."},
+ {"id": "fx-clones", "app": "effects", "values": {"image": "@case:ref-character", "effect": "clones", "subject": "a man in a red jacket, jeans and white sneakers", "aspect": "portrait"},
+ "note": "joyfox wan2.1_I2V480P_fenshengshu_lora. He splits into three copies in the same fighting pose with a golden glow, as the trigger asks; the glow tints his clothes."},
+ {"id": "fx-cakeify", "app": "effects", "values": {"image": "@case:ref-fx-sneaker", "effect": "cakeify", "subject": "a white sneaker with red details", "aspect": "landscape"},
+ "note": "Remade-AI Cakeify. A knife slices the sneaker and it is cake inside."},
+ {"id": "fx-crush", "app": "effects", "values": {"image": "@case:ref-fx-toycar", "effect": "crush", "subject": "a red toy car on a workbench", "aspect": "landscape"},
+ "note": "Remade-AI Crush. A press comes down and flattens the toy car."},
+ {"id": "fx-deflate", "app": "effects", "values": {"image": "@case:ref-fx-flamingo", "effect": "deflate", "subject": "a pink inflatable flamingo pool float", "aspect": "landscape"},
+ "note": "Remade-AI Deflate. The flamingo float sags and flattens."},
+ {"id": "fx-electrify", "app": "effects", "values": {"image": "@case:ref-fx-storm", "effect": "electrify", "subject": "a lone oak tree on a hill under storm clouds", "aspect": "landscape"},
+ "note": "Remade-AI Electrify. Lightning and electric arcs around the tree."},
+ {"id": "fx-explode", "app": "effects", "values": {"image": "@case:ref-fx-warehouse", "effect": "explode", "subject": "an abandoned wooden warehouse in the desert", "aspect": "landscape"},
+ "note": "Remade-AI Explode. A big explosion that fills the frame with light; no people in the shot."},
+ {"id": "fx-inflate", "app": "effects", "values": {"image": "@case:ref-fx-street", "effect": "inflate", "subject": "a woman in a yellow raincoat on a narrow cobblestone street", "aspect": "portrait"},
+ "note": "Remade-AI Inflate. She swells into a round balloon figure on the street and stays recognizable. Run 1 used a waist-up studio portrait: it turned into an abstract red face and then a balloon."},
+ {"id": "fx-rotate", "app": "effects", "values": {"image": "@case:ref-fx-duck", "effect": "rotate", "subject": "a yellow rubber duck", "aspect": "square"},
+ "note": "Remade-AI Rotate. The duck turns a full circle in place, shape unchanged."},
+ {"id": "fx-squish", "app": "effects", "values": {"image": "@case:ref-fx-plush", "effect": "squish", "subject": "a small brown plush teddy bear", "aspect": "square"},
+ "note": "Remade-AI Squish. Hands squeeze the teddy and it squishes like dough."},
+ {"id": "fx-orbit-360", "app": "effects", "values": {"image": "@case:ref-fx-sneaker", "effect": "orbit-360", "subject": "a white sneaker with red details", "aspect": "landscape"},
+ "note": "Remade-AI 360-Orbit. The camera circles the sneaker; the shoe keeps its shape from every side."},
+ {"id": "fx-arc-shot", "app": "effects", "values": {"image": "@case:ref-fx-cafe", "effect": "arc-shot", "subject": "a man in a denim jacket sitting in a busy cafe", "aspect": "landscape"},
+ "note": "Remade-AI Arc_shot. A smooth curved move around him; the cafe shows parallax."},
+ {"id": "fx-bullet-time", "app": "effects", "values": {"image": "@case:ref-fx-jump", "effect": "bullet-time", "subject": "a parkour athlete leaping between two rooftops", "aspect": "landscape"},
+ "note": "joyfox Wan2.1-BulletTime-LoRA. He stays frozen mid-leap while the camera circles him and the skyline stays the same (Remade's matrix-shot turned the city into trees in run 1)."},
+ {"id": "fx-car-chase", "app": "effects", "values": {"image": "@case:ref-fx-road", "effect": "car-chase", "subject": "a red sports car on a winding mountain road at dusk", "aspect": "landscape"},
+ "note": "Remade-AI Car-chase. Fast tracking shot with a pursuer; the red car stays the hero."},
+ {"id": "fx-crane-down", "app": "effects", "values": {"image": "@case:ref-room", "effect": "crane-down", "subject": "a cozy old library with tall wooden bookshelves and a leather armchair", "aspect": "landscape"},
+ "note": "Remade-AI Crane-down. The camera descends smoothly; the library stays consistent."},
+ {"id": "fx-crane-over-head", "app": "effects", "values": {"image": "@case:ref-fx-street", "effect": "crane-over-head", "subject": "a woman in a yellow raincoat on a narrow cobblestone street", "aspect": "portrait"},
+ "note": "Remade-AI Crane_over_the_head. The camera rises over her and ends looking down."},
+ {"id": "fx-crane-up", "app": "effects", "values": {"image": "@case:ref-fx-lake", "effect": "crane-up", "subject": "a hiker with a red backpack on a rock by a mountain lake", "aspect": "landscape"},
+ "note": "Remade-AI Crane_up. The camera lifts and reveals more of the lake and peaks."},
+ {"id": "fx-crash-zoom-in", "app": "effects", "values": {"image": "@case:ref-fx-cafe", "effect": "crash-zoom-in", "subject": "a man in a denim jacket sitting in a busy cafe", "aspect": "landscape"},
+ "note": "Remade-AI Crash-zoom-in. A sudden, fast zoom to his face."},
+ {"id": "fx-dolly-zoom", "app": "effects", "values": {"image": "@case:ref-fx-cafe", "effect": "dolly-zoom", "subject": "a man in a denim jacket sitting in a busy cafe", "aspect": "landscape"},
+ "note": "ostris wan21_i2v_dolly_zoom_lora. Vertigo effect: he stays the same size while the cafe behind him stretches away (Remade's Dolly-Effect barely moved in runs 1 and 2; ostris's did it on the cafe and the street in run 3)."},
+ {"id": "fx-hero-run", "app": "effects", "values": {"image": "@case:ref-fx-runner", "effect": "hero-run", "subject": "a female sprinter in a red and white running outfit on a stadium track", "aspect": "landscape"},
+ "note": "Remade-AI Hero-run. She bursts out of the blocks and runs at the camera, which keeps up."},
+
+ {"id": "ref-tpl-sketch", "app": "z-image", "values": {"prompt": "A rough pencil sketch on white paper of a cat sitting on a windowsill next to a potted plant, loose lines, no color", "width": 1024, "height": 1024},
+ "note": "Reference sketch for Sketch to Real."},
+ {"id": "ref-tpl-sign", "app": "z-image", "values": {"prompt": "Photo of a small bakery storefront with a wooden sign above the door that reads OPEN in bold white letters, daylight, photorealistic", "width": 1280, "height": 768},
+ "note": "Reference with legible text for Edit Text."},
+
+ {"id": "tpl-poster", "showcase": true, "app": "poster", "values": {"image": "@case:ref-product", "headline": "NOIR"},
+ "note": "Poster. A poster layout with the bottle intact and the headline legible."},
+ {"id": "tpl-packshot", "showcase": true, "app": "packshot", "values": {"image": "@case:ref-product"},
+ "note": "Packshot. Centered bottle, clean gradient, nothing else in frame."},
+ {"id": "tpl-macro-scene", "showcase": true, "app": "macro-scene", "values": {"image": "@case:ref-product"},
+ "note": "Macroshot Scene. Macro look with droplets; the label still readable."},
+ {"id": "tpl-macro-product", "showcase": true, "app": "macro-product", "values": {"image": "@case:ref-product"},
+ "note": "Macroshot Product. A tight detail of the bottle, not the whole bottle."},
+ {"id": "tpl-giant-product", "showcase": true, "app": "giant-product", "values": {"image": "@case:ref-product"},
+ "note": "Giant Product. Convincing scale: the bottle towers over buildings."},
+ {"id": "tpl-billboard", "showcase": true, "app": "billboard", "values": {"image": "@case:ref-face-a"},
+ "note": "Billboard Ad. The portrait appears on the billboard, not as the whole image."},
+ {"id": "tpl-graffiti-ad", "showcase": true, "app": "graffiti-ad", "values": {"image": "@case:ref-fx-sneaker"},
+ "note": "Graffiti Ad. A mural of the sneaker with graffiti texture."},
+ {"id": "tpl-fridge-ad", "showcase": true, "app": "fridge-ad", "values": {"image": "@case:ref-product"},
+ "note": "Fridge Ad. Fridge interior with the bottle on a shelf."},
+ {"id": "tpl-ugc-shot", "showcase": true, "app": "ugc-shot", "values": {"image": "@case:ref-product"},
+ "note": "Marketing (UGC). A hand holding the bottle; snapshot look, not studio."},
+ {"id": "tpl-headshot", "showcase": true, "app": "headshot", "values": {"image": "@case:ref-fx-woman-a"},
+ "note": "AI Headshot Generator. Same face, studio light, blazer; shoulders-up."},
+ {"id": "tpl-commercial-faces", "showcase": true, "app": "commercial-faces", "values": {"image": "@case:ref-fx-man-b"},
+ "note": "Commercial Faces. Campaign look with his face unchanged."},
+ {"id": "tpl-style-snap", "showcase": true, "app": "style-snap", "values": {"image": "@case:ref-fx-woman-a", "style": "streetwear"},
+ "note": "Style Snap. Full-length, new outfit, same face."},
+ {"id": "tpl-skin-enhancer", "showcase": true, "app": "skin-enhancer", "values": {"image": "@case:ref-fx-man-b"},
+ "note": "Skin Enhancer. Subtle: compare with the input; pores still visible."},
+ {"id": "tpl-outfit-vending", "showcase": true, "app": "outfit-vending", "values": {"image": "@case:ref-character"},
+ "note": "Outfit Vending Machine. Red jacket, jeans and sneakers as vending items."},
+ {"id": "tpl-glitter-sticker", "showcase": true, "app": "glitter-sticker", "values": {"image": "@case:ref-fx-woman-a"},
+ "note": "Glitter Sticker. Sticker look: white border, holographic sparkle."},
+ {"id": "tpl-game-styles", "showcase": true, "app": "game-styles", "values": {"image": "@case:ref-fx-man-b", "style": "a cel-shaded action game"},
+ "note": "Game Dump. Cel-shaded render with his features."},
+ {"id": "tpl-plushie", "showcase": true, "app": "plushie", "values": {"image": "@case:ref-fx-duck"},
+ "note": "Plushies. A plush duck with seams and embroidered eyes."},
+ {"id": "tpl-render-3d", "showcase": true, "app": "render-3d", "values": {"image": "@case:ref-fx-woman-a"},
+ "note": "3D Render. 3D look, recognizable features."},
+ {"id": "tpl-figure-3d", "showcase": true, "app": "figure-3d", "values": {"image": "@case:ref-character"},
+ "note": "3D Figure. Figure in packaging, same outfit."},
+ {"id": "tpl-pixel-game", "showcase": true, "app": "pixel-game", "values": {"image": "@case:ref-fx-cafe"},
+ "note": "Pixel Game. Visible pixels, HUD at the top."},
+ {"id": "tpl-brick-toy", "showcase": true, "app": "brick-toy", "values": {"image": "@case:ref-fx-toycar"},
+ "note": "Brick Cube. A brick-built red car with studs."},
+ {"id": "tpl-sketch-to-real", "showcase": true, "app": "sketch-to-real", "values": {"image": "@case:ref-tpl-sketch"},
+ "note": "Sketch-to-Real. A real cat on a real windowsill, same layout as the sketch."},
+ {"id": "tpl-paint-app", "showcase": true, "app": "paint-app", "values": {"image": "@case:ref-fx-woman-a"},
+ "note": "Paint App. Crude flat drawing with a toolbar."},
+ {"id": "tpl-mural", "showcase": true, "app": "mural", "values": {"image": "@case:ref-fx-man-b"},
+ "note": "Signboard. Painted wall with his face, street below."},
+ {"id": "tpl-micro-beasts", "showcase": true, "app": "micro-beasts", "values": {"image": "@case:ref-fx-woman-a"},
+ "note": "Surrounded by Animals. Small animals on her shoulders; same face."},
+ {"id": "tpl-meme", "showcase": true, "app": "meme", "values": {"scene": "a golden retriever sitting at a desk in front of three monitors, looking proud", "top": "WHEN THE TESTS", "bottom": "PASS FIRST TRY"},
+ "note": "Meme Generator. Legible captions top and bottom."},
+ {"id": "tpl-j-magazine", "showcase": true, "app": "j-magazine", "values": {"image": "@case:ref-fx-woman-a"},
+ "note": "J-Magazine. Magazine cover layout with her face."},
+ {"id": "tpl-cafe-60s", "showcase": true, "app": "cafe-60s", "values": {"image": "@case:ref-fx-man-b"},
+ "note": "60s Cafe. Period look, same face."},
+ {"id": "tpl-victory-card", "showcase": true, "app": "victory-card", "values": {"image": "@case:ref-fx-woman-a"},
+ "note": "Victory Card. Her face on the court card."},
+ {"id": "tpl-j-poster", "showcase": true, "app": "j-poster", "values": {"image": "@case:ref-fx-man-b"},
+ "note": "J-Poster. Bold graphic poster with his face."},
+ {"id": "tpl-mascot", "showcase": true, "app": "mascot", "values": {"image": "@case:ref-fx-man-b"},
+ "note": "Mascot. Mascot suit, foam head under the arm, his face visible."},
+ {"id": "tpl-burning-sunset", "showcase": true, "app": "burning-sunset", "values": {"image": "@case:ref-fx-lake"},
+ "note": "Burning Sunset. Same lake, fiery sky."},
+ {"id": "tpl-comic-book", "showcase": true, "app": "comic-book", "values": {"image": "@case:ref-fx-cafe"},
+ "note": "Comic Book. Inked panel with halftone."},
+ {"id": "tpl-giallo", "showcase": true, "app": "giallo", "values": {"image": "@case:ref-fx-woman-a"},
+ "note": "Giallo Horror. Gel lighting and grain; nothing gory."},
+ {"id": "tpl-renaissance", "showcase": true, "app": "renaissance", "values": {"image": "@case:ref-fx-man-b"},
+ "note": "Renaissance. Oil painting in a frame, same face."},
+ {"id": "tpl-japanese-show", "showcase": true, "app": "japanese-show", "values": {"image": "@case:ref-fx-woman-a"},
+ "note": "Japanese Show. Four panels, TV captions."},
+ {"id": "tpl-breakdown", "showcase": true, "app": "breakdown", "values": {"image": "@case:ref-fx-sneaker"},
+ "note": "Breakdown. Sole, laces, upper laid out on a grid."},
+ {"id": "tpl-edit-text", "showcase": true, "app": "edit-text", "values": {"image": "@case:ref-tpl-sign", "old": "OPEN", "new": "CLOSED"},
+ "note": "Edit Text. The sign now reads CLOSED in the same style."},
+ {"id": "tpl-image-effects", "showcase": true, "app": "image-effects", "values": {"image": "@case:ref-fx-cafe", "effect": "glitch distortion with RGB split"},
+ "note": "Image Effects. RGB split and glitch bands over the cafe."},
+ {"id": "tpl-color-grade", "showcase": true, "app": "color-grade", "values": {"image": "@case:ref-fx-cafe", "look": "teal and orange blockbuster"},
+ "note": "Color Grading. Only the colors change."}
]
}
diff --git a/lab/core.py b/lab/core.py
index c238090..d58defa 100644
--- a/lab/core.py
+++ b/lab/core.py
@@ -93,13 +93,21 @@ def load_app(apps_dir: Path, app_id: str) -> tuple[dict, dict]:
return manifest, api
+PLACEHOLDER = re.compile(r"\{([a-z][a-z0-9_]*)\}")
+
+
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 = PLACEHOLDER.sub(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 set_value(value, values: dict):
+ """A value in an option's or preset's sets: a string with {placeholders} is filled like a bind template."""
+ return render(value, values) if isinstance(value, str) and PLACEHOLDER.search(value) else value
+
+
def resolve_values(manifest: dict, given: dict) -> dict:
values = {}
for inp in manifest.get("inputs", []):
@@ -120,11 +128,11 @@ def apply(manifest: dict, api: dict, values: dict, preset: str | None = None) ->
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"]
+ api[s["node"]]["inputs"][s["field"]] = set_value(s["value"], values)
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"]
+ api[s["node"]]["inputs"][s["field"]] = set_value(s["value"], values)
def add_loras(api: dict, loras: list[dict]) -> None:
diff --git a/lab/lab_modal.py b/lab/lab_modal.py
index 4d49587..240d5de 100644
--- a/lab/lab_modal.py
+++ b/lab/lab_modal.py
@@ -4,6 +4,7 @@
modal run lab/lab_modal.py # every case in lab/cases.json, on an L40S
modal run lab/lab_modal.py --apps camera-moves,relight # every case of these apps
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 effects --shards 4 # the same cases split over 4 GPUs at once
modal run lab/lab_modal.py --pull <run_id> # copy back and publish a run that finished without you
Missing model files are downloaded first on a CPU container (no GPU billed while they
@@ -12,11 +13,18 @@ accepted license. Results, a results.jsonl with time and peak VRAM per case, and
versions of every output go to the "freefield-lab" volume as each case finishes, so a partial
run is still useful. At the end the run is copied to lab/results/<run_id>, review.html is
built there, and the examples the web UI shows are refreshed (--no-publish to skip).
+
+--shards N runs the cases on N GPU containers at the same time. Cases that read the same
+reference stay in one group, so every reference is still made once; each group writes to
+<run_id>-s1, -s2, … on the volume, and they come back merged into lab/results/<run_id>. The
+GPU time is about the same as one container (plus loading the models once per container);
+the wait is about 1/N.
"""
from __future__ import annotations
import json
import os
+import re
import sys
import time
from pathlib import Path
@@ -84,14 +92,85 @@ def with_dependencies(spec: list[dict], keep: set[str]) -> list[dict]:
return [c for c in spec if c["id"] in seen]
-def download_run(run_id: str, dest: Path) -> int:
- """Copy /<run_id> from the lab volume to dest; files already there with the same size are kept."""
+def split_cases(spec: list[dict], keep: set[str], n: int) -> list[list[dict]]:
+ """The chosen cases in at most n groups that can run at the same time, each with the cases it reads.
+
+ Chosen cases that read the same reference (directly or through another case) stay in one group,
+ so a reference is never made twice; groups are balanced by how many chosen cases they hold."""
+ by_id = {c["id"]: c for c in spec}
+
+ def sources(cid: str) -> set[str]:
+ out, todo = set(), [cid]
+ while todo:
+ for v in by_id[todo.pop()].get("values", {}).values():
+ src = v[len("@case:"):] if isinstance(v, str) and v.startswith("@case:") else None
+ if src in by_id and src not in out:
+ out.add(src)
+ todo.append(src)
+ return out
+
+ blocks: list[tuple[set[str], list[str]]] = [] # (every case the block touches, its chosen cases)
+ for c in spec:
+ if c["id"] not in keep:
+ continue
+ touch, chosen = {c["id"]} | sources(c["id"]), [c["id"]]
+ for b in [b for b in blocks if b[0] & touch]:
+ blocks.remove(b)
+ touch, chosen = touch | b[0], b[1] + chosen
+ blocks.append((touch, chosen))
+ bins: list[list[str]] = [[] for _ in range(max(1, min(n, len(blocks))))]
+ for _, chosen in sorted(blocks, key=lambda b: -len(b[1])):
+ min(bins, key=len).extend(chosen)
+ return [with_dependencies(spec, set(b)) for b in bins if b]
+
+
+def shard_ids(run_id: str) -> list[str]:
+ """The volume folders of a run split with --shards (<run_id>-s1, -s2, …); empty for a run in one piece."""
+ found = []
+ for entry in lab_volume.listdir("/"):
+ name = entry.path.strip("/").rsplit("/", 1)[-1]
+ m = re.fullmatch(re.escape(run_id) + r"-s(\d+)", name)
+ if m:
+ found.append((int(m.group(1)), name))
+ return [name for _, name in sorted(found)]
+
+
+def volume_text(path: str) -> str:
+ try:
+ return b"".join(lab_volume.read_file(path)).decode("utf-8")
+ except Exception: # not written yet: that shard has not started a case
+ return ""
+
+
+def merge_shards(parts: list[str], dest: Path) -> None:
+ """Every shard's case folders side by side in dest, with one results.jsonl and one run.json for all."""
+ lines, metas = [], []
+ for sid in parts:
+ print(f" {sid}: {download_run(sid, dest, skip={'results.jsonl', 'run.json'})} new files")
+ lines += [ln for ln in volume_text(f"/{sid}/results.jsonl").splitlines() if ln.strip()]
+ try:
+ metas.append(json.loads(volume_text(f"/{sid}/run.json") or "{}"))
+ except json.JSONDecodeError:
+ pass
+ dest.mkdir(parents=True, exist_ok=True)
+ (dest / "results.jsonl").write_text("".join(ln + "\n" for ln in lines), encoding="utf-8")
+ meta = {"gpu": next((m["gpu"] for m in metas if m.get("gpu")), None),
+ "started": min((m["started"] for m in metas if m.get("started")), default=None),
+ "cases": sum(m.get("cases", 0) for m in metas), "shards": parts}
+ (dest / "run.json").write_text(json.dumps(meta, indent=2), encoding="utf-8")
+
+
+def download_run(run_id: str, dest: Path, skip: set[str] | frozenset[str] = frozenset()) -> int:
+ """Copy /<run_id> from the lab volume to dest, except the top-level files named in skip;
+ files already there with the same size are kept."""
n = 0
for entry in lab_volume.iterdir(f"/{run_id}", recursive=True):
if int(entry.type) != 1: # 1 = file
continue
rel = entry.path.lstrip("/")
rel = rel[len(run_id) + 1:] if rel.startswith(run_id + "/") else rel
+ if rel in skip:
+ continue
target = dest / rel
if target.exists() and target.stat().st_size == entry.size:
continue
@@ -104,11 +183,16 @@ def download_run(run_id: str, dest: Path) -> int:
def finish(run_id: str, publish: bool) -> None:
- """Copy the run to lab/results/<run_id>, build review.html there and publish the examples."""
+ """Copy the run (all its shards, if it was split) to lab/results/<run_id>, build review.html there and publish."""
sys.path.insert(0, str(Path(__file__).resolve().parent))
dest = Path("lab/results") / run_id
- print(f"downloading the run to {dest} ...")
- print(f" {download_run(run_id, dest)} new files")
+ parts = shard_ids(run_id)
+ if parts:
+ print(f"downloading {len(parts)} shards of the run to {dest} ...")
+ merge_shards(parts, dest)
+ else:
+ print(f"downloading the run to {dest} ...")
+ print(f" {download_run(run_id, dest)} new files")
import review # lab/review.py
review.main([str(dest)])
print(f"review: {dest / 'review.html'}")
@@ -119,8 +203,9 @@ def finish(run_id: str, publish: bool) -> None:
@app.local_entrypoint()
def main(cases: str = "lab/cases.json", only: str = "", apps: str = "", showcase: bool = False,
- run_id: str = "", publish: bool = True, pull: str = ""):
+ run_id: str = "", publish: bool = True, pull: str = "", shards: int = 1):
"""--showcase (one case per app), --only case,ids or --apps app,ids; their reference cases come along.
+ --shards N splits them over N GPU containers that run at the same time.
--pull <run_id> only copies an earlier run back (say, after the terminal closed) and publishes it."""
if pull:
finish(pull, publish)
@@ -136,6 +221,8 @@ def main(cases: str = "lab/cases.json", only: str = "", apps: str = "", showcase
spec = with_dependencies(spec, keep)
if not spec:
raise SystemExit("no case matches --only/--apps/--showcase")
+ else:
+ keep = {c["id"] for c in spec}
assets = {}
for c in spec:
for v in c.get("values", {}).values():
@@ -152,8 +239,25 @@ def main(cases: str = "lab/cases.json", only: str = "", apps: str = "", showcase
print(f"{len(failed)} file(s) could not be downloaded; the cases that need them will be skipped:")
for name, reason in failed.items():
print(f" {name}: {reason}")
- print(f"running on {GPU}")
- results = run.remote(spec, run_id, assets)
+ if shards > 1:
+ groups = split_cases(spec, keep, shards)
+ ids = [f"{run_id}-s{k}" for k in range(1, len(groups) + 1)]
+ print(f"running on {len(groups)} x {GPU} at once:")
+ for sid, g in zip(ids, groups):
+ print(f" {sid}: {sum(c['id'] in keep for c in g)} cases + {sum(c['id'] not in keep for c in g)} references")
+ calls = [run.spawn(g, sid, assets) for g, sid in zip(groups, ids)]
+ results = []
+ for sid, call in zip(ids, calls):
+ try:
+ part = call.get()
+ except Exception as e: # a container that died: the cases it finished are on the volume
+ print(f" {sid} stopped: {type(e).__name__}: {e}")
+ continue
+ print(f" {sid}: {sum(r['status'] == 'ok' for r in part)}/{len(part)} ok")
+ results += part
+ else:
+ print(f"running 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")
finish(run_id, publish)
diff --git a/lab/publish.py b/lab/publish.py
index 85421e3..f150056 100644
--- a/lab/publish.py
+++ b/lab/publish.py
@@ -8,18 +8,30 @@ it ran, otherwise the first one in file order) and copies that case's web versio
web/examples/<app>/, plus small previews of the files the case was given (the reference images,
clips or songs made earlier in the run). web/examples/index.json lists them; the web UI uses it
for the app cards, the example shown with each app, and the gallery. Apps without a successful
-case keep the example they had.
+case keep the example they had, and a run without the app's showcase case keeps a showcase
+example published earlier. Cases with overrides or extra LoRAs (experiments) come last.
+
+A select input marked "gallery" in app.json (the effects picker) also gets one example per
+option, from the cases that chose it and run the app as shipped (no overrides, no extra LoRAs):
+web/examples/<app>/options/<input>/<value>/ holds its card and poster. Options this run did not
+cover keep what they had.
+
+lab/flags.json holds the examples marked "mediocre" in the web UI (key "<app>" or
+"<app>/<input>/<value>"); an example this run replaces loses its mark, since the new one has not
+been looked at yet.
"""
from __future__ import annotations
import argparse
import json
+import re
import shutil
import sys
from pathlib import Path
ROOT = Path(__file__).resolve().parent.parent
EXAMPLES = ROOT / "web" / "examples"
+FLAGS = ROOT / "lab" / "flags.json"
HIDDEN = {"smoke", "smoke-invert"}
@@ -45,19 +57,97 @@ def copy_as(run_dir: Path, rel: str | None, dest: Path, stem: str) -> str | None
return target.relative_to(ROOT / "web").as_posix()
+def experimental(r: dict) -> bool:
+ """The case changed the app's workflow (overrides or extra LoRAs), so it shows a test, not the app as shipped."""
+ return bool(r.get("overrides") or r.get("loras"))
+
+
+def clear_main(dest: Path) -> None:
+ """Empty the app's own example folder (only ever our generated files), keeping the per-option examples."""
+ dest.mkdir(parents=True, exist_ok=True)
+ for p in dest.iterdir():
+ if p.name != "options":
+ shutil.rmtree(p) if p.is_dir() else p.unlink()
+
+
+def slug(value) -> str:
+ return re.sub(r"[^a-z0-9_-]+", "-", str(value).lower()).strip("-") or "x"
+
+
+def unmark(keys: set[str]) -> int:
+ """Drop the "mediocre" marks of the examples in keys from lab/flags.json; returns how many were dropped."""
+ if not keys or not FLAGS.exists():
+ return 0
+ try:
+ data = json.loads(FLAGS.read_text(encoding="utf-8"))
+ except json.JSONDecodeError:
+ return 0
+ marks = data.get("mediocre") if isinstance(data.get("mediocre"), dict) else {}
+ gone = [k for k in marks if k in keys]
+ for k in gone:
+ del marks[k]
+ if gone:
+ data["mediocre"] = marks
+ FLAGS.write_text(json.dumps(data, indent=2, ensure_ascii=False) + "\n", encoding="utf-8")
+ return len(gone)
+
+
+def publish_options(run_dir: Path, ok: list[dict], dest: Path, manifest: dict, order, meta: dict, prev: dict, replaced: set[str]) -> dict:
+ """One example per option of each gallery input, from the cases that chose that option.
+ The keys of the examples written (and of the options dropped) go into replaced."""
+ out = {k: dict(v) for k, v in prev.items()}
+ for inp in manifest.get("inputs", []):
+ if inp.get("type") != "select" or not inp.get("gallery"):
+ continue
+ per = out.setdefault(inp["id"], {})
+ for opt in inp.get("options", []):
+ # a case that swaps nodes (overrides) or adds LoRAs is an experiment, not an example of the option
+ hits = [r for r in ok if (r.get("values") or {}).get(inp["id"]) == opt["value"] and not experimental(r)]
+ if not hits:
+ continue
+ r = sorted(hits, key=order)[0]
+ replaced.add(f'{manifest["id"]}/{inp["id"]}/{opt["value"]}')
+ d = dest / "options" / inp["id"] / slug(opt["value"])
+ if d.exists():
+ shutil.rmtree(d)
+ d.mkdir(parents=True)
+ web = r["web"]
+ # a muted 5 s card and a poster are all the picker needs; the full clip stays in the run folder
+ card = copy_as(run_dir, web.get("card") or web.get("full"), d, "card")
+ per[str(opt["value"])] = {
+ "case": r["id"], "type": web.get("type"), "card": card, "poster": copy_as(run_dir, web.get("poster"), d, "poster"),
+ "values": {k: v for k, v in (r.get("values") or {}).items() if k != "seed"}, "seed": (r.get("values") or {}).get("seed"),
+ "seconds": r.get("seconds"), "peak_vram_gb": r.get("peak_vram_gb"), "gpu": meta.get("gpu"), "run": run_dir.name,
+ }
+ valid = {str(o["value"]) for o in inp.get("options", [])}
+ for k in [k for k in per if k not in valid]: # an option that was removed from app.json
+ shutil.rmtree(dest / "options" / inp["id"] / slug(k), ignore_errors=True)
+ del per[k]
+ replaced.add(f'{manifest["id"]}/{inp["id"]}/{k}')
+ return out
+
+
def main(argv: list[str] | None = None) -> int:
ap = argparse.ArgumentParser(description=__doc__.splitlines()[0])
ap.add_argument("run_dir", type=Path)
a = ap.parse_args(argv)
run_dir = a.run_dir.resolve()
results = read_results(run_dir)
- order = [c["id"] for c in json.loads((ROOT / "lab" / "cases.json").read_text(encoding="utf-8"))["cases"]]
- rank = {cid: i for i, cid in enumerate(order)}
+ cases = json.loads((ROOT / "lab" / "cases.json").read_text(encoding="utf-8"))["cases"]
+ rank = {c["id"]: i for i, c in enumerate(cases)}
+ showcase = {c["id"] for c in cases if c.get("showcase")}
+
+ def is_showcase(r: dict) -> bool: # lab/cases.json as it is now decides; the flag a result recorded is the fallback
+ return r["id"] in showcase if r["id"] in rank else bool(r.get("showcase"))
+
+ def order(r: dict): # showcase first, then cases that run the app as shipped, then file order
+ return (not is_showcase(r), experimental(r), rank.get(r["id"], 10**6))
meta = json.loads((run_dir / "run.json").read_text(encoding="utf-8")) if (run_dir / "run.json").exists() else {}
index_path = EXAMPLES / "index.json"
index = json.loads(index_path.read_text(encoding="utf-8")) if index_path.exists() else {"apps": {}}
published, missing = [], []
+ replaced: set[str] = set() # examples written now: their "mediocre" marks no longer apply
for manifest_path in sorted((ROOT / "apps").glob("*/app.json")):
manifest = json.loads(manifest_path.read_text(encoding="utf-8"))
app_id = manifest["id"]
@@ -67,12 +157,18 @@ def main(argv: list[str] | None = None) -> int:
if not ok:
missing.append(app_id)
continue
- pick = sorted(ok, key=lambda r: (not r.get("showcase"), rank.get(r["id"], 10**6)))[0]
- web = pick["web"]
+ pick = sorted(ok, key=order)[0]
dest = EXAMPLES / app_id
- if dest.exists():
- shutil.rmtree(dest) # only ever our own generated folder
- dest.mkdir(parents=True)
+ prev = index["apps"].get(app_id) or {}
+ options = publish_options(run_dir, ok, dest, manifest, order, meta, prev.get("options") or {}, replaced)
+ if prev.get("case") in showcase and not is_showcase(pick) and prev.get("full") and (ROOT / "web" / prev["full"]).exists():
+ # a run of a few cases does not replace the showcase example with a lesser one
+ index["apps"][app_id] = {**prev, **({"options": options} if options else {})}
+ published.append(app_id)
+ continue
+ web = pick["web"]
+ replaced.add(app_id)
+ clear_main(dest)
full = copy_as(run_dir, web.get("full"), dest, "full")
card = copy_as(run_dir, web.get("card"), dest, "card") or (full if web.get("type") == "image" else None)
poster = copy_as(run_dir, web.get("poster"), dest, "poster")
@@ -85,9 +181,10 @@ def main(argv: list[str] | None = None) -> int:
source = results.get(raw[len("@case:"):])
if source and source.get("web"):
w = source["web"]
- # a still for images, the poster for clips, the waveform for audio, plus the playable file
+ # a still for the card (the poster for clips, the waveform for audio) plus the full file, which
+ # the UI plays and loads into the form when someone presses "Load this example"
src = copy_as(run_dir, w.get("card") if w.get("type") != "video" else w.get("poster"), dest, f"input-{input_id}")
- playable = copy_as(run_dir, w.get("full"), dest, f"input-{input_id}-full") if w.get("type") in ("video", "audio") else None
+ playable = copy_as(run_dir, w.get("full"), dest, f"input-{input_id}-full")
inputs.append({"id": input_id, "label": labels.get(input_id, {}).get("label", input_id),
"type": w.get("type"), "src": src, "full": playable, "from_case": source["id"]})
continue
@@ -100,6 +197,7 @@ def main(argv: list[str] | None = None) -> int:
"inputs": inputs, "values": shown, "seed": (pick.get("values") or {}).get("seed"),
"seconds": pick.get("seconds"), "peak_vram_gb": pick.get("peak_vram_gb"),
"gpu": meta.get("gpu"), "run": run_dir.name,
+ **({"options": options} if options else {}),
}
published.append(app_id)
@@ -107,6 +205,9 @@ def main(argv: list[str] | None = None) -> int:
index["updated_from"] = run_dir.name
index_path.write_text(json.dumps(index, indent=2, ensure_ascii=False) + "\n", encoding="utf-8")
print(f"published {len(published)} app example(s) to {EXAMPLES.relative_to(ROOT)}")
+ dropped = unmark(replaced)
+ if dropped:
+ print(f"{dropped} \"mediocre\" mark(s) removed from lab/flags.json: those examples were replaced")
if missing:
print(f"no successful case in this run for: {', '.join(missing)}")
return 0
diff --git a/packs/image-flux3.json b/packs/image-flux3.json
index 265709b..c71fe0b 100644
--- a/packs/image-flux3.json
+++ b/packs/image-flux3.json
@@ -1,9 +1,48 @@
{
"pack": "image-flux3",
"apps": [
+ "billboard",
+ "breakdown",
+ "brick-toy",
+ "burning-sunset",
+ "cafe-60s",
"character",
+ "color-grade",
+ "comic-book",
+ "commercial-faces",
"edit",
- "product-shot"
+ "edit-text",
+ "figure-3d",
+ "fridge-ad",
+ "game-styles",
+ "giallo",
+ "giant-product",
+ "glitter-sticker",
+ "graffiti-ad",
+ "headshot",
+ "image-effects",
+ "j-magazine",
+ "j-poster",
+ "japanese-show",
+ "macro-product",
+ "macro-scene",
+ "mascot",
+ "micro-beasts",
+ "mural",
+ "outfit-vending",
+ "packshot",
+ "paint-app",
+ "pixel-game",
+ "plushie",
+ "poster",
+ "product-shot",
+ "renaissance",
+ "render-3d",
+ "sketch-to-real",
+ "skin-enhancer",
+ "style-snap",
+ "ugc-shot",
+ "victory-card"
],
"download_gb": 11.03,
"needs_hf_token": true,
@@ -18,9 +57,48 @@
"gated": true,
"license": "FLUX Kommunity License",
"used_by": [
+ "billboard",
+ "breakdown",
+ "brick-toy",
+ "burning-sunset",
+ "cafe-60s",
"character",
+ "color-grade",
+ "comic-book",
+ "commercial-faces",
"edit",
- "product-shot"
+ "edit-text",
+ "figure-3d",
+ "fridge-ad",
+ "game-styles",
+ "giallo",
+ "giant-product",
+ "glitter-sticker",
+ "graffiti-ad",
+ "headshot",
+ "image-effects",
+ "j-magazine",
+ "j-poster",
+ "japanese-show",
+ "macro-product",
+ "macro-scene",
+ "mascot",
+ "micro-beasts",
+ "mural",
+ "outfit-vending",
+ "packshot",
+ "paint-app",
+ "pixel-game",
+ "plushie",
+ "poster",
+ "product-shot",
+ "renaissance",
+ "render-3d",
+ "sketch-to-real",
+ "skin-enhancer",
+ "style-snap",
+ "ugc-shot",
+ "victory-card"
]
},
{
@@ -32,9 +110,48 @@
"gated": true,
"license": "FLUX Kommunity License",
"used_by": [
+ "billboard",
+ "breakdown",
+ "brick-toy",
+ "burning-sunset",
+ "cafe-60s",
"character",
+ "color-grade",
+ "comic-book",
+ "commercial-faces",
"edit",
- "product-shot"
+ "edit-text",
+ "figure-3d",
+ "fridge-ad",
+ "game-styles",
+ "giallo",
+ "giant-product",
+ "glitter-sticker",
+ "graffiti-ad",
+ "headshot",
+ "image-effects",
+ "j-magazine",
+ "j-poster",
+ "japanese-show",
+ "macro-product",
+ "macro-scene",
+ "mascot",
+ "micro-beasts",
+ "mural",
+ "outfit-vending",
+ "packshot",
+ "paint-app",
+ "pixel-game",
+ "plushie",
+ "poster",
+ "product-shot",
+ "renaissance",
+ "render-3d",
+ "sketch-to-real",
+ "skin-enhancer",
+ "style-snap",
+ "ugc-shot",
+ "victory-card"
]
},
{
@@ -46,9 +163,48 @@
"gated": true,
"license": "FLUX Kommunity License",
"used_by": [
+ "billboard",
+ "breakdown",
+ "brick-toy",
+ "burning-sunset",
+ "cafe-60s",
"character",
+ "color-grade",
+ "comic-book",
+ "commercial-faces",
"edit",
- "product-shot"
+ "edit-text",
+ "figure-3d",
+ "fridge-ad",
+ "game-styles",
+ "giallo",
+ "giant-product",
+ "glitter-sticker",
+ "graffiti-ad",
+ "headshot",
+ "image-effects",
+ "j-magazine",
+ "j-poster",
+ "japanese-show",
+ "macro-product",
+ "macro-scene",
+ "mascot",
+ "micro-beasts",
+ "mural",
+ "outfit-vending",
+ "packshot",
+ "paint-app",
+ "pixel-game",
+ "plushie",
+ "poster",
+ "product-shot",
+ "renaissance",
+ "render-3d",
+ "sketch-to-real",
+ "skin-enhancer",
+ "style-snap",
+ "ugc-shot",
+ "victory-card"
]
}
]
diff --git a/packs/image.json b/packs/image.json
index 4eaec7f..96b8aab 100644
--- a/packs/image.json
+++ b/packs/image.json
@@ -2,6 +2,7 @@
"pack": "image",
"apps": [
"cinema-studio",
+ "meme",
"z-image"
],
"download_gb": 12.17,
@@ -18,6 +19,7 @@
"license": "Apache-2.0",
"used_by": [
"cinema-studio",
+ "meme",
"z-image"
]
},
@@ -31,6 +33,7 @@
"license": "Apache-2.0",
"used_by": [
"cinema-studio",
+ "meme",
"z-image"
]
},
@@ -44,6 +47,7 @@
"license": "Apache-2.0",
"used_by": [
"cinema-studio",
+ "meme",
"z-image"
]
}
diff --git a/packs/index.json b/packs/index.json
index 70f68b9..50255e7 100644
--- a/packs/index.json
+++ b/packs/index.json
@@ -18,6 +18,7 @@
"image": {
"apps": [
"cinema-studio",
+ "meme",
"z-image"
],
"download_gb": 12.17,
@@ -25,9 +26,48 @@
},
"image-flux3": {
"apps": [
+ "billboard",
+ "breakdown",
+ "brick-toy",
+ "burning-sunset",
+ "cafe-60s",
"character",
+ "color-grade",
+ "comic-book",
+ "commercial-faces",
"edit",
- "product-shot"
+ "edit-text",
+ "figure-3d",
+ "fridge-ad",
+ "game-styles",
+ "giallo",
+ "giant-product",
+ "glitter-sticker",
+ "graffiti-ad",
+ "headshot",
+ "image-effects",
+ "j-magazine",
+ "j-poster",
+ "japanese-show",
+ "macro-product",
+ "macro-scene",
+ "mascot",
+ "micro-beasts",
+ "mural",
+ "outfit-vending",
+ "packshot",
+ "paint-app",
+ "pixel-game",
+ "plushie",
+ "poster",
+ "product-shot",
+ "renaissance",
+ "render-3d",
+ "sketch-to-real",
+ "skin-enhancer",
+ "style-snap",
+ "ugc-shot",
+ "victory-card"
],
"download_gb": 11.03,
"needs_hf_token": true
@@ -99,5 +139,12 @@
],
"download_gb": 40.05,
"needs_hf_token": false
+ },
+ "video-wan-effects": {
+ "apps": [
+ "effects"
+ ],
+ "download_gb": 37.99,
+ "needs_hf_token": false
}
}
diff --git a/packs/video-wan-effects.json b/packs/video-wan-effects.json
new file mode 100644
index 0000000..9e2ce30
--- /dev/null
+++ b/packs/video-wan-effects.json
@@ -0,0 +1,491 @@
+{
+ "pack": "video-wan-effects",
+ "apps": [
+ "effects"
+ ],
+ "download_gb": 37.99,
+ "needs_hf_token": false,
+ "custom_nodes": [],
+ "models": [
+ {
+ "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": [
+ "effects"
+ ]
+ },
+ {
+ "repo": "Comfy-Org/Wan_2.1_ComfyUI_repackaged",
+ "file": "split_files/diffusion_models/wan2.1_i2v_480p_14B_fp8_scaled.safetensors",
+ "dir": "diffusion_models",
+ "gb": 16.4,
+ "name": "wan2.1_i2v_480p_14B_fp8_scaled.safetensors",
+ "gated": false,
+ "license": "Apache-2.0",
+ "used_by": [
+ "effects"
+ ]
+ },
+ {
+ "repo": "Remade-AI/360-Orbit",
+ "file": "360_Orbit.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "name": "360_Orbit.safetensors",
+ "gated": false,
+ "license": "Apache-2.0",
+ "used_by": [
+ "effects"
+ ]
+ },
+ {
+ "repo": "Remade-AI/Arc_shot",
+ "file": "Arc_shot.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "name": "Arc_shot.safetensors",
+ "gated": false,
+ "license": "Apache-2.0",
+ "used_by": [
+ "effects"
+ ]
+ },
+ {
+ "repo": "Remade-AI/Hero-run",
+ "file": "Hero_run.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "name": "Hero_run.safetensors",
+ "gated": false,
+ "license": "Apache-2.0",
+ "used_by": [
+ "effects"
+ ]
+ },
+ {
+ "repo": "joyfox/Wan2.1-BulletTime-LoRA",
+ "file": "Wan21_I2V_rotation_000003750.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "name": "Wan21_I2V_rotation_000003750.safetensors",
+ "gated": false,
+ "license": "Apache-2.0",
+ "used_by": [
+ "effects"
+ ]
+ },
+ {
+ "repo": "Remade-AI/angry-face",
+ "file": "angry_face_5_epochs.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "name": "angry_face_5_epochs.safetensors",
+ "gated": false,
+ "license": "Apache-2.0",
+ "used_by": [
+ "effects"
+ ]
+ },
+ {
+ "repo": "Remade-AI/Assassin",
+ "file": "assassin_45_epochs.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "name": "assassin_45_epochs.safetensors",
+ "gated": false,
+ "license": "Apache-2.0",
+ "used_by": [
+ "effects"
+ ]
+ },
+ {
+ "repo": "Remade-AI/Baby",
+ "file": "baby_50_epochs.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "name": "baby_50_epochs.safetensors",
+ "gated": false,
+ "license": "Apache-2.0",
+ "used_by": [
+ "effects"
+ ]
+ },
+ {
+ "repo": "Remade-AI/Bride",
+ "file": "bride_50_epochs.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "name": "bride_50_epochs.safetensors",
+ "gated": false,
+ "license": "Apache-2.0",
+ "used_by": [
+ "effects"
+ ]
+ },
+ {
+ "repo": "Remade-AI/Cakeify",
+ "file": "cakeify_16_epochs.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "name": "cakeify_16_epochs.safetensors",
+ "gated": false,
+ "license": "Apache-2.0",
+ "used_by": [
+ "effects"
+ ]
+ },
+ {
+ "repo": "Remade-AI/Car-chase",
+ "file": "car_chase.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "name": "car_chase.safetensors",
+ "gated": false,
+ "license": "Apache-2.0",
+ "used_by": [
+ "effects"
+ ]
+ },
+ {
+ "repo": "Remade-AI/Cartoon_Jaw_Drop",
+ "file": "cartoon_jaw_drop_50_epochs.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "name": "cartoon_jaw_drop_50_epochs.safetensors",
+ "gated": false,
+ "license": "Apache-2.0",
+ "used_by": [
+ "effects"
+ ]
+ },
+ {
+ "repo": "Remade-AI/Classy",
+ "file": "classy_45_epochs.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "name": "classy_45_epochs.safetensors",
+ "gated": false,
+ "license": "Apache-2.0",
+ "used_by": [
+ "effects"
+ ]
+ },
+ {
+ "repo": "Remade-AI/Crane-down",
+ "file": "crane_down.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "name": "crane_down.safetensors",
+ "gated": false,
+ "license": "Apache-2.0",
+ "used_by": [
+ "effects"
+ ]
+ },
+ {
+ "repo": "Remade-AI/Crane_over_the_head",
+ "file": "crane_overhead.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "name": "crane_overhead.safetensors",
+ "gated": false,
+ "license": "Apache-2.0",
+ "used_by": [
+ "effects"
+ ]
+ },
+ {
+ "repo": "Remade-AI/Crane_up",
+ "file": "crane_up.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "name": "crane_up.safetensors",
+ "gated": false,
+ "license": "Apache-2.0",
+ "used_by": [
+ "effects"
+ ]
+ },
+ {
+ "repo": "Remade-AI/Crash-zoom-in",
+ "file": "crash_zoom_in.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "name": "crash_zoom_in.safetensors",
+ "gated": false,
+ "license": "Apache-2.0",
+ "used_by": [
+ "effects"
+ ]
+ },
+ {
+ "repo": "Remade-AI/Crush",
+ "file": "crush_20_epochs.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "name": "crush_20_epochs.safetensors",
+ "gated": false,
+ "license": "Apache-2.0",
+ "used_by": [
+ "effects"
+ ]
+ },
+ {
+ "repo": "Remade-AI/crying",
+ "file": "crying_20_epochs.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "name": "crying_20_epochs.safetensors",
+ "gated": false,
+ "license": "Apache-2.0",
+ "used_by": [
+ "effects"
+ ]
+ },
+ {
+ "repo": "Remade-AI/Deflate",
+ "file": "deflate_20_epochs.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "name": "deflate_20_epochs.safetensors",
+ "gated": false,
+ "license": "Apache-2.0",
+ "used_by": [
+ "effects"
+ ]
+ },
+ {
+ "repo": "Remade-AI/Electrify",
+ "file": "electrify_50_epochs.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "name": "electrify_50_epochs.safetensors",
+ "gated": false,
+ "license": "Apache-2.0",
+ "used_by": [
+ "effects"
+ ]
+ },
+ {
+ "repo": "Remade-AI/Explode",
+ "file": "explode_30_epochs.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "name": "explode_30_epochs.safetensors",
+ "gated": false,
+ "license": "Apache-2.0",
+ "used_by": [
+ "effects"
+ ]
+ },
+ {
+ "repo": "joyfox/wan2.1_I2V480P_fenshengshu_lora",
+ "file": "fensheng_000003500.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "name": "fensheng_000003500.safetensors",
+ "gated": false,
+ "license": "Apache-2.0",
+ "used_by": [
+ "effects"
+ ]
+ },
+ {
+ "repo": "Remade-AI/Inflate",
+ "file": "inflate_20_epochs.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "name": "inflate_20_epochs.safetensors",
+ "gated": false,
+ "license": "Apache-2.0",
+ "used_by": [
+ "effects"
+ ]
+ },
+ {
+ "repo": "Remade-AI/Laughing",
+ "file": "laughing_15_epochs.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "name": "laughing_15_epochs.safetensors",
+ "gated": false,
+ "license": "Apache-2.0",
+ "used_by": [
+ "effects"
+ ]
+ },
+ {
+ "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": [
+ "effects"
+ ]
+ },
+ {
+ "repo": "Remade-AI/Mona-Lisa",
+ "file": "mona_lisa_45_epochs.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "name": "mona_lisa_45_epochs.safetensors",
+ "gated": false,
+ "license": "Apache-2.0",
+ "used_by": [
+ "effects"
+ ]
+ },
+ {
+ "repo": "joyfox/WAN2.1-I2V-480P-Falling_US_dollars",
+ "file": "money_000003000.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "name": "money_000003000.safetensors",
+ "gated": false,
+ "license": "Apache-2.0",
+ "used_by": [
+ "effects"
+ ]
+ },
+ {
+ "repo": "Remade-AI/Princess",
+ "file": "princess_45_epochs.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "name": "princess_45_epochs.safetensors",
+ "gated": false,
+ "license": "Apache-2.0",
+ "used_by": [
+ "effects"
+ ]
+ },
+ {
+ "repo": "Remade-AI/Puppy",
+ "file": "puppy_50_epochs.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "name": "puppy_50_epochs.safetensors",
+ "gated": false,
+ "license": "Apache-2.0",
+ "used_by": [
+ "effects"
+ ]
+ },
+ {
+ "repo": "Remade-AI/Robot-Face-Reveal",
+ "file": "robot_face_reveal_35_epochs.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "name": "robot_face_reveal_35_epochs.safetensors",
+ "gated": false,
+ "license": "Apache-2.0",
+ "used_by": [
+ "effects"
+ ]
+ },
+ {
+ "repo": "Remade-AI/Rotate",
+ "file": "rotate_20_epochs.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "name": "rotate_20_epochs.safetensors",
+ "gated": false,
+ "license": "Apache-2.0",
+ "used_by": [
+ "effects"
+ ]
+ },
+ {
+ "repo": "Remade-AI/Selfie-With-Younger-Self",
+ "file": "selfie_younger_self_15_epochs.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "name": "selfie_younger_self_15_epochs.safetensors",
+ "gated": false,
+ "license": "Apache-2.0",
+ "used_by": [
+ "effects"
+ ]
+ },
+ {
+ "repo": "Remade-AI/Squish",
+ "file": "squish_18.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "name": "squish_18.safetensors",
+ "gated": false,
+ "license": "Apache-2.0",
+ "used_by": [
+ "effects"
+ ]
+ },
+ {
+ "repo": "Remade-AI/VIP",
+ "file": "vip_50_epochs.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "name": "vip_50_epochs.safetensors",
+ "gated": false,
+ "license": "Apache-2.0",
+ "used_by": [
+ "effects"
+ ]
+ },
+ {
+ "repo": "lvfengchun/wan21_i2v_boiling_point",
+ "file": "wan21_penqi_000003500.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "name": "wan21_penqi_000003500.safetensors",
+ "gated": false,
+ "license": "Apache-2.0",
+ "used_by": [
+ "effects"
+ ]
+ },
+ {
+ "repo": "ostris/wan21_i2v_dolly_zoom_lora",
+ "file": "wan_21_i2v_dolly_zoom.safetensors",
+ "dir": "loras",
+ "gb": 0.36,
+ "name": "wan_21_i2v_dolly_zoom.safetensors",
+ "gated": false,
+ "license": "Apache-2.0",
+ "used_by": [
+ "effects"
+ ]
+ },
+ {
+ "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": [
+ "effects"
+ ]
+ },
+ {
+ "repo": "Comfy-Org/Wan_2.1_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": [
+ "effects"
+ ]
+ }
+ ]
+}
diff --git a/schema/app.schema.json b/schema/app.schema.json
index e322414..3aa57b6 100644
--- a/schema/app.schema.json
+++ b/schema/app.schema.json
@@ -88,7 +88,7 @@
"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."
+ "description": "Extra node fields written when this option is chosen, e.g. the LoRA file that goes with a style, or the prompt that goes with an effect LoRA."
}
}
},
@@ -99,7 +99,7 @@
"properties": {
"node": { "type": "string" },
"field": { "type": "string" },
- "value": {}
+ "value": { "description": "Written as is; a string with {input_id} placeholders is filled like a bind template." }
}
},
"input": {
@@ -117,6 +117,10 @@
"max": { "type": "number" },
"step": { "type": "number" },
"options": { "type": "array", "items": { "$ref": "#/$defs/option" } },
+ "gallery": {
+ "type": "boolean",
+ "description": "Select only. lab/publish.py keeps one example per option and the UI shows the options as cards with those examples (the effects picker)."
+ },
"limits": {
"type": "object",
"additionalProperties": false,
@@ -128,7 +132,7 @@
"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."
+ "description": "Where the value goes. May be empty when the input is only used inside a template, or when its options write the fields (sets)."
}
}
},
diff --git a/server/flags.ts b/server/flags.ts
new file mode 100644
index 0000000..55e883a
--- /dev/null
+++ b/server/flags.ts
@@ -0,0 +1,75 @@
+// "Mediocre" marks on the lab examples, set from the web UI and kept in lab/flags.json so whoever
+// runs the lab can read them and look for a better model, LoRA or prompt of the same kind.
+// key "<app>" the app's main example (web/examples/<app>/)
+// key "<app>/<input>/<option>" one option of a gallery select (the effects picker)
+// lab/publish.py drops the mark of an example it replaces: a new example starts unmarked.
+import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
+import { dirname } from "node:path";
+import type { App } from "./registry.ts";
+
+export type Mark = { at: string; note?: string };
+export type FlagsFile = { about: string; mediocre: Record<string, Mark> };
+
+const ABOUT = "Lab examples marked mediocre in the web UI. Keys: <app> for the app's example, <app>/<input>/<option> for one option " +
+ "of a gallery select. lab/publish.py removes the mark of an example it replaces.";
+
+export class Flags {
+ private marks: Record<string, Mark> = {};
+ private file: string;
+ private apps: App[];
+
+ constructor(file: string, apps: App[]) {
+ this.file = file;
+ this.apps = apps;
+ this.marks = Flags.read(file);
+ }
+
+ static read(file: string): Record<string, Mark> {
+ try {
+ if (!existsSync(file)) return {};
+ const parsed = JSON.parse(readFileSync(file, "utf-8")) as Partial<FlagsFile>;
+ return typeof parsed.mediocre === "object" && parsed.mediocre ? parsed.mediocre : {};
+ } catch {
+ return {};
+ }
+ }
+
+ /** Every mark, keyed as above. */
+ list(): Record<string, Mark> {
+ return { ...this.marks };
+ }
+
+ /** Throws when the key names no app, input or option of the catalog. */
+ check(key: string): void {
+ const [appId, inputId, value, ...rest] = key.split("/");
+ const app = this.apps.find((a) => a.id === appId);
+ if (!app || rest.length || (inputId !== undefined) !== (value !== undefined)) throw new Error(`unknown example "${key}"`);
+ if (inputId === undefined) return;
+ const input = app.inputs.find((i) => i.id === inputId && i.type === "select" && i.gallery);
+ if (!input) throw new Error(`${appId} has no gallery input "${inputId}"`);
+ if (!(input.options ?? []).some((o) => String(o.value) === value)) throw new Error(`${appId}/${inputId} has no option "${value}"`);
+ }
+
+ set(key: string, mediocre: boolean, note?: string): Record<string, Mark> {
+ this.check(key);
+ if (mediocre) this.marks[key] = { at: new Date().toISOString(), ...(note?.trim() ? { note: note.trim() } : {}) };
+ else delete this.marks[key];
+ this.save();
+ return this.list();
+ }
+
+ /** Forget the marks of examples that are gone (an app or option removed from the catalog). */
+ prune(): void {
+ let changed = false;
+ for (const key of Object.keys(this.marks)) {
+ try { this.check(key); } catch { delete this.marks[key]; changed = true; }
+ }
+ if (changed) this.save();
+ }
+
+ private save(): void {
+ mkdirSync(dirname(this.file), { recursive: true });
+ const sorted = Object.fromEntries(Object.entries(this.marks).sort(([a], [b]) => a.localeCompare(b)));
+ writeFileSync(this.file, JSON.stringify({ about: ABOUT, mediocre: sorted } satisfies FlagsFile, null, 2) + "\n");
+ }
+}
diff --git a/server/history.ts b/server/history.ts
new file mode 100644
index 0000000..7369ac1
--- /dev/null
+++ b/server/history.ts
@@ -0,0 +1,347 @@
+// The history: every run started from the web UI, kept on disk so results outlive the backend's
+// retention, a closed tab and a server restart.
+// out/history/<id>/meta.json what ran: app, values, preset, status, timings, outputs, error
+// out/history/<id>/input-<x>.<ext> the files it was given
+// out/history/<id>/out-<n>.<ext> what it made
+// A run is recorded before it is submitted, because submitting to a cold GPU can take minutes:
+// the UI shows it as "starting" right away instead of a spinner on a button.
+import { existsSync, mkdirSync, readdirSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
+import { extname, join } from "node:path";
+import { randomBytes } from "node:crypto";
+import type { ComfyEvent } from "@comfyorg/sdk";
+import { isFileInput, type App } from "./registry.ts";
+import type { FileValue, Values } from "./runner.ts";
+
+export type Status = "starting" | "queued" | "running" | "succeeded" | "failed" | "canceled" | "expired" | "lost";
+const TERMINAL = new Set<Status>(["succeeded", "failed", "canceled", "expired", "lost"]);
+const MEDIA = new Set(["image", "video", "audio"]);
+
+export type Entry = {
+ id: string;
+ app: string;
+ status: Status;
+ job: string | null;
+ created: string;
+ started: string | null;
+ finished: string | null;
+ /** execution time on the GPU (started → finished), when the backend reports both */
+ seconds: number | null;
+ /** wall time from pressing Generate to the result, cold starts and queueing included */
+ total: number | null;
+ values: Record<string, unknown>;
+ preset: string | null;
+ inputs: { id: string; type: string; file: string; name: string }[];
+ outputs: { file: string; type: string; name: string; node: string }[];
+ error: { message: string; class_type?: string | null; node?: string | null } | null;
+};
+
+/** The part of the SDK's Job the history uses (tests pass a fake). */
+export type JobLike = {
+ readonly id: string;
+ readonly status: string;
+ readonly outputs: readonly { name: string; type: string; nodeId: string; contentType: string; toBytes(): Promise<Uint8Array> }[];
+ readonly error: { message?: string; class_type?: string | null; node_id?: string | null } | null | undefined;
+ readonly startedAt: Date | null;
+ readonly completedAt: Date | null;
+ readonly progress?: { value: number; step: number | null; steps: number | null; currentNodeClass: string | null } | null;
+ readonly queuePosition?: number | null;
+ events(signal?: AbortSignal): AsyncIterable<ComfyEvent>;
+ wait(timeoutMs?: number, signal?: AbortSignal): Promise<unknown>;
+ cancel(signal?: AbortSignal): Promise<unknown>;
+};
+
+type Live = {
+ job?: JobLike;
+ cancelRequested?: boolean;
+ progress: { value: number; step: number | null; steps: number | null; node: string | null } | null;
+ queue: number | null;
+ preview: { bytes: Uint8Array; type: string; n: number } | null;
+};
+
+const ID = /^\d{8}-\d{9}-[0-9a-f]{4}$/;
+const EXT: Record<string, string> = {
+ "image/png": ".png", "image/jpeg": ".jpg", "image/webp": ".webp", "image/gif": ".gif",
+ "video/mp4": ".mp4", "video/webm": ".webm", "video/quicktime": ".mov",
+ "audio/mpeg": ".mp3", "audio/wav": ".wav", "audio/x-wav": ".wav", "audio/flac": ".flac", "audio/ogg": ".ogg", "audio/mp4": ".m4a",
+};
+
+function newId(now = new Date()): string {
+ const p = (n: number, w = 2) => String(n).padStart(w, "0");
+ const day = `${now.getUTCFullYear()}${p(now.getUTCMonth() + 1)}${p(now.getUTCDate())}`;
+ const time = `${p(now.getUTCHours())}${p(now.getUTCMinutes())}${p(now.getUTCSeconds())}${p(now.getUTCMilliseconds(), 3)}`;
+ return `${day}-${time}-${randomBytes(2).toString("hex")}`;
+}
+
+/** A short lowercase extension we are willing to put on disk. */
+function safeExt(name: string | undefined, type: string | undefined): string {
+ const fromName = extname(name ?? "").toLowerCase();
+ if (/^\.[a-z0-9]{1,5}$/.test(fromName)) return fromName;
+ return EXT[(type ?? "").split(";")[0].trim()] ?? ".bin";
+}
+
+function normStatus(s: string): Status {
+ if (s === "canceling") return "running";
+ return (["queued", "running", "succeeded", "failed", "canceled", "expired"] as string[]).includes(s) ? (s as Status) : "running";
+}
+
+const secondsBetween = (a: string | Date | null | undefined, b: string | Date | null | undefined) =>
+ a && b ? Math.max(0, Math.round((new Date(b).getTime() - new Date(a).getTime()) / 100) / 10) : null;
+
+export class History {
+ private live = new Map<string, Live>();
+ private removed = new Set<string>();
+
+ readonly dir: string;
+ private onContact: () => void;
+
+ constructor(dir: string, onContact: () => void = () => {}) {
+ this.dir = dir;
+ this.onContact = onContact;
+ mkdirSync(dir, { recursive: true });
+ }
+
+ /** Record a run before it is submitted. `values` are the resolved values (defaults filled, seed picked). */
+ start(app: App, values: Values, preset?: string): Entry {
+ const id = newId();
+ const folder = join(this.dir, id);
+ mkdirSync(folder);
+ const inputs: Entry["inputs"] = [];
+ const shown: Record<string, unknown> = {};
+ for (const input of app.inputs) {
+ const v = values[input.id];
+ if (v === undefined) continue;
+ if (isFileInput(input)) {
+ const f = v as FileValue;
+ const file = `input-${input.id}${safeExt(f.name, f.type)}`;
+ writeFileSync(join(folder, file), f.bytes);
+ inputs.push({ id: input.id, type: input.type, file, name: f.name || file });
+ } else {
+ shown[input.id] = v;
+ }
+ }
+ const entry: Entry = {
+ id, app: app.id, status: "starting", job: null, created: new Date().toISOString(), started: null, finished: null,
+ seconds: null, total: null, values: shown, preset: preset ?? null, inputs, outputs: [], error: null,
+ };
+ this.save(entry);
+ this.live.set(id, { progress: null, queue: null, preview: null });
+ return entry;
+ }
+
+ /** The submit failed (bad workflow, backend unreachable, missing models): keep the reason with the run. */
+ fail(entry: Entry, message: string, status: Status = "failed"): void {
+ entry.status = status;
+ entry.finished = new Date().toISOString();
+ entry.total = secondsBetween(entry.created, entry.finished);
+ entry.error = { message };
+ this.save(entry);
+ this.live.delete(entry.id);
+ }
+
+ /** Follow a submitted job to the end, then copy its outputs next to the record. */
+ async follow(entry: Entry, job: JobLike): Promise<Entry> {
+ if (this.removed.has(entry.id)) { // deleted while it was being submitted
+ await job.cancel().catch(() => {});
+ return entry;
+ }
+ const live = this.live.get(entry.id) ?? { progress: null, queue: null, preview: null };
+ this.live.set(entry.id, live);
+ live.job = job;
+ entry.job = job.id;
+ entry.status = normStatus(job.status);
+ this.save(entry);
+ if (live.cancelRequested) await job.cancel().catch(() => {});
+
+ const setStatus = (s: Status) => {
+ if (TERMINAL.has(s) || s === entry.status) return;
+ entry.status = s;
+ if (s === "running") entry.started ??= new Date().toISOString();
+ this.save(entry);
+ };
+ const stop = new AbortController();
+ // live progress from the event stream; the poll in wait() below stays the source of truth
+ const stream = (async () => {
+ try {
+ for await (const ev of job.events(stop.signal)) {
+ this.onContact();
+ if (ev.kind === "progress") {
+ live.progress = { value: Number(ev.value) || 0, step: ev.step, steps: ev.steps, node: ev.currentNodeClass };
+ setStatus("running");
+ } else if (ev.kind === "preview") {
+ live.preview = { bytes: ev.data, type: ev.contentType || "image/jpeg", n: (live.preview?.n ?? 0) + 1 };
+ } else if (ev.kind === "statusChange") {
+ live.queue = ev.queuePosition;
+ setStatus(normStatus(ev.status));
+ }
+ }
+ } catch {
+ /* streams drop; polling decides */
+ }
+ })();
+ // the handle's own state moves while wait() polls; mirror it for backends without events
+ const tick = setInterval(() => {
+ setStatus(normStatus(job.status));
+ if (job.queuePosition !== undefined) live.queue = job.queuePosition ?? live.queue;
+ const p = job.progress;
+ if (p && (!live.progress || p.value > live.progress.value)) {
+ live.progress = { value: p.value, step: p.step, steps: p.steps, node: p.currentNodeClass };
+ }
+ }, 1000);
+
+ let waitError: unknown = null;
+ try {
+ await job.wait(6 * 3600 * 1000);
+ this.onContact();
+ } catch (e) {
+ waitError = e;
+ } finally {
+ clearInterval(tick);
+ stop.abort();
+ await stream;
+ }
+
+ entry.started = job.startedAt?.toISOString() ?? entry.started;
+ entry.finished = (job.completedAt ?? new Date()).toISOString();
+ // backends that do not report timings: fall back to when this server saw it start running
+ entry.seconds = secondsBetween(job.startedAt, job.completedAt) ?? (entry.started ? secondsBetween(entry.started, entry.finished) : null);
+ entry.total = secondsBetween(entry.created, entry.finished);
+ if (this.removed.has(entry.id)) {
+ this.live.delete(entry.id);
+ return entry;
+ }
+ if (waitError) {
+ entry.status = "lost";
+ entry.error = { message: `lost track of the job: ${(waitError as Error).message}` };
+ } else {
+ entry.status = normStatus(job.status);
+ if (entry.status === "succeeded") {
+ const folder = join(this.dir, entry.id);
+ let n = 0;
+ for (const out of job.outputs) {
+ if (!MEDIA.has(out.type)) continue;
+ try {
+ const bytes = await out.toBytes();
+ const file = `out-${String(++n).padStart(2, "0")}${safeExt(out.name, out.contentType)}`;
+ writeFileSync(join(folder, file), bytes);
+ entry.outputs.push({ file, type: out.type, name: out.name, node: out.nodeId });
+ } catch (e) {
+ entry.error = { message: `could not download ${out.name}: ${(e as Error).message}` };
+ }
+ }
+ if (!entry.outputs.length && !entry.error) entry.error = { message: "the job finished without an image, video or audio output" };
+ } else {
+ const err = job.error;
+ entry.error = {
+ message: (err?.message || entry.status).trim(), class_type: err?.class_type ?? null, node: err?.node_id ?? null,
+ };
+ }
+ }
+ this.save(entry);
+ this.live.delete(entry.id);
+ return entry;
+ }
+
+ /**
+ * After a restart: recent runs that were still going get followed again (a job is rehydratable
+ * from its id). Runs that never got a job id, or are too old for the backend to still hold them,
+ * are marked lost without asking it: asking would start a GPU just to hear the job is gone.
+ */
+ resume(getJob: (id: string) => Promise<JobLike>, maxAgeMs = 60 * 60 * 1000): void {
+ for (const entry of this.entries()) {
+ if (TERMINAL.has(entry.status)) continue;
+ if (!entry.job) {
+ this.fail(entry, "the server stopped before this run reached the backend", "lost");
+ continue;
+ }
+ if (Date.now() - new Date(entry.started ?? entry.created).getTime() > maxAgeMs) {
+ this.fail(entry, "the server stopped while this run was going, too long ago to pick it up again", "lost");
+ continue;
+ }
+ this.live.set(entry.id, { progress: null, queue: null, preview: null });
+ getJob(entry.job)
+ .then((job) => this.follow(entry, job))
+ .catch((e) => this.fail(entry, `could not pick this run up again: ${(e as Error).message}`, "lost"));
+ }
+ }
+
+ async cancel(id: string): Promise<boolean> {
+ const entry = this.read(id);
+ if (!entry || TERMINAL.has(entry.status)) return false;
+ const live = this.live.get(id);
+ if (!live) return false;
+ live.cancelRequested = true;
+ if (live.job) await live.job.cancel().catch(() => {});
+ return true;
+ }
+
+ remove(id: string): boolean {
+ if (!ID.test(id) || !existsSync(join(this.dir, id))) return false;
+ const live = this.live.get(id);
+ if (live?.job) live.job.cancel().catch(() => {});
+ this.removed.add(id);
+ this.live.delete(id);
+ rmSync(join(this.dir, id), { recursive: true, force: true });
+ return true;
+ }
+
+ /** Absolute path of a file that belongs to a run, or null. */
+ file(id: string, name: string): string | null {
+ if (!ID.test(id) || !/^(input|out)-[a-z0-9_-]+\.[a-z0-9]{1,5}$/.test(name)) return null;
+ const path = join(this.dir, id, name);
+ return existsSync(path) ? path : null;
+ }
+
+ preview(id: string): { bytes: Uint8Array; type: string } | null {
+ return this.live.get(id)?.preview ?? null;
+ }
+
+ list(app?: string, limit = 300) {
+ return this.entries().filter((e) => !app || e.app === app).slice(0, limit).map((e) => this.view(e));
+ }
+
+ get(id: string) {
+ const e = this.read(id);
+ return e ? this.view(e) : null;
+ }
+
+ /** What the UI gets: the record plus URLs and live progress. */
+ view(e: Entry) {
+ const base = `/api/history/${e.id}`;
+ const live = this.live.get(e.id);
+ return {
+ ...e,
+ inputs: e.inputs.map((i) => ({ ...i, url: `${base}/files/${i.file}` })),
+ outputs: e.outputs.map((o) => ({ ...o, url: `${base}/files/${o.file}` })),
+ progress: live?.progress ?? null,
+ queue: live?.queue ?? null,
+ preview: live?.preview ? `${base}/preview?n=${live.preview.n}` : null,
+ };
+ }
+
+ private entries(): Entry[] {
+ if (!existsSync(this.dir)) return [];
+ return readdirSync(this.dir)
+ .filter((d) => ID.test(d))
+ .sort()
+ .reverse()
+ .map((d) => this.read(d))
+ .filter((e): e is Entry => e !== null);
+ }
+
+ private read(id: string): Entry | null {
+ if (!ID.test(id)) return null;
+ try {
+ return JSON.parse(readFileSync(join(this.dir, id, "meta.json"), "utf-8")) as Entry;
+ } catch {
+ return null;
+ }
+ }
+
+ private save(entry: Entry): void {
+ const folder = join(this.dir, entry.id);
+ if (!existsSync(folder)) return; // deleted while running
+ const tmp = join(folder, "meta.json.tmp");
+ writeFileSync(tmp, JSON.stringify(entry, null, 2) + "\n");
+ renameSync(tmp, join(folder, "meta.json"));
+ }
+}
diff --git a/server/registry.ts b/server/registry.ts
index e9627b6..ff3af60 100644
--- a/server/registry.ts
+++ b/server/registry.ts
@@ -19,6 +19,7 @@ export type Input = {
max?: number;
step?: number;
options?: Option[];
+ gallery?: boolean;
limits?: { max_mb?: number; seconds?: [number, number] };
bind?: Bind[];
};
@@ -96,21 +97,30 @@ function checkGraph(app: App, problems: Problem[], severity: Problem["severity"]
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 fileIds = new Set(app.inputs.filter(isFileInput).map((i) => i.id));
const usedInTemplates = new Set<string>();
+ const checkTemplate = (template: string, where: string) => {
+ for (const v of templateVars(template)) {
+ if (!ids.has(v)) say(`${where}: template uses {${v}}, which is not an input`);
+ else if (fileIds.has(v)) say(`${where}: template uses {${v}}, a file input`);
+ usedInTemplates.add(v);
+ }
+ };
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 (b.template) checkTemplate(b.template, `input "${input.id}"`);
if (isFileInput(input) && b.template) say(`input "${input.id}": file inputs cannot use templates`);
}
+ // string values an option writes may be templates too (an effect's prompt written around {subject})
+ for (const o of input.options ?? []) {
+ for (const s of o.sets ?? []) if (typeof s.value === "string") checkTemplate(s.value, `input "${input.id}" option "${o.label}"`);
+ }
}
+ for (const p of app.presets ?? []) for (const s of p.sets) if (typeof s.value === "string") checkTemplate(s.value, `preset "${p.id}"`);
for (const input of app.inputs) {
- if (!(input.bind?.length) && !usedInTemplates.has(input.id)) {
+ const writes = Boolean(input.bind?.length) || (input.options ?? []).some((o) => o.sets?.length);
+ if (!writes && !usedInTemplates.has(input.id)) {
say(`input "${input.id}" is not bound to any node and no template uses it`);
}
}
@@ -119,6 +129,13 @@ function checkGraph(app: App, problems: Problem[], severity: Problem["severity"]
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}`);
+ // a math expression that names a variable with no input fails only when it runs, after validation passed
+ for (const [id, n] of Object.entries(g)) {
+ if (n.class_type !== "ComfyMathExpression" || typeof n.inputs.expression !== "string") continue;
+ const used = new Set(n.inputs.expression.match(/\b[a-z]\b/g) ?? []);
+ const missing = [...used].filter((v) => !(`values.${v}` in n.inputs));
+ if (missing.length) say(`node "${id}" (ComfyMathExpression): "${n.inputs.expression}" uses ${missing.join(", ")} but has no input for it`);
+ }
// 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);
diff --git a/server/runner.ts b/server/runner.ts
index 0492286..03e93d3 100644
--- a/server/runner.ts
+++ b/server/runner.ts
@@ -75,6 +75,11 @@ export function renderTemplate(template: string, values: Values): string {
.replace(/,$/, "");
}
+/** A value in an option's or preset's `sets`: a string with {placeholders} is filled like a bind template. */
+export function setValue(value: unknown, values: Values): unknown {
+ return typeof value === "string" && /\{[a-z][a-z0-9_]*\}/.test(value) ? renderTemplate(value, values) : value;
+}
+
/**
* Apply resolved values and an optional preset to a workflow.
* `asset` turns a FileValue into whatever the workflow expects (an SDK asset handle).
@@ -93,14 +98,14 @@ export function applyInputs(
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)
+ // a select option can carry extra fields (the LoRA that goes with a style, an effect's prompt)
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);
+ for (const s of chosen?.sets ?? []) wf.setInput(s.node, s.field, setValue(s.value, values));
}
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);
+ for (const s of preset.sets) wf.setInput(s.node, s.field, setValue(s.value, values));
}
}
diff --git a/server/server.ts b/server/server.ts
index 96026ee..f8e1972 100644
--- a/server/server.ts
+++ b/server/server.ts
@@ -1,15 +1,27 @@
// 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
+// 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"
+// → 202 with the history entry; the run continues in the background
+// GET /api/history[?app=id] every run started here, newest first (out/history/)
+// GET /api/history/:id one run, with live progress while it is going
+// GET /api/history/:id/files/:file its inputs and outputs (byte ranges)
+// GET /api/history/:id/preview the latest live preview frame, when the backend sends them
+// POST /api/history/:id/cancel ask the backend to stop it
+// DELETE /api/history/:id forget it (and its files)
+// GET /api/gpu[?device=1] is the backend warm? (never wakes it; device=1 adds VRAM in use, only when warm)
+// POST /api/gpu/wake start the GPU container now, while you prepare inputs
+// GET /api/jobs/:id[/outputs/:oid] raw SDK job view (kept for scripts)
+// GET /api/flags lab examples marked "mediocre" from the UI (lab/flags.json)
+// POST /api/flags JSON { key, mediocre, note? }: mark or unmark one example
// Everything else is served from web/ when it exists (with byte ranges, so videos seek everywhere).
// web/examples/ holds one example per app, written by lab/publish.py; /api/apps carries it along.
import { createServer, type IncomingMessage, type ServerResponse } from "node:http";
import { createReadStream, existsSync, readFileSync, statSync } from "node:fs";
import { extname, join, normalize } from "node:path";
import { loadRegistry, repoRoot, isFileInput, type App } from "./registry.ts";
-import { explainSubmitError, InputError, Runner, type Values } from "./runner.ts";
+import { explainSubmitError, InputError, resolveValues, Runner, type Values } from "./runner.ts";
+import { History } from "./history.ts";
+import { Flags } from "./flags.ts";
const root = repoRoot();
const { apps, problems } = loadRegistry(root);
@@ -26,10 +38,21 @@ let runner: Runner | null = null;
const getRunner = () => (runner ??= new Runner());
const draftsAllowed = process.env.FREEFIELD_DRAFTS === "1";
+// the backend scales to zero 10 minutes after its last request (infra/modal_app.py scaledown_window).
+// lastContact only moves on real work (a run, a wake): status checks must not keep the GPU alive.
+const WARM_MS = 9 * 60 * 1000;
+let lastContact = 0;
+let waking: { since: number; error?: string } | null = null;
+const contact = () => { lastContact = Date.now(); };
+const history = new History(join(root, "out", "history"), contact);
+const flags = new Flags(join(root, "lab", "flags.json"), apps);
+
const MIME: Record<string, string> = {
- ".html": "text/html; charset=utf-8", ".js": "text/javascript", ".css": "text/css", ".json": "application/json",
+ ".html": "text/html; charset=utf-8", ".js": "text/javascript; charset=utf-8", ".css": "text/css; charset=utf-8",
+ ".json": "application/json", ".txt": "text/plain; charset=utf-8", ".woff2": "font/woff2",
".svg": "image/svg+xml", ".png": "image/png", ".webp": "image/webp", ".jpg": "image/jpeg", ".jpeg": "image/jpeg",
- ".gif": "image/gif", ".mp4": "video/mp4", ".webm": "video/webm", ".mp3": "audio/mpeg",
+ ".gif": "image/gif", ".mp4": "video/mp4", ".webm": "video/webm", ".mov": "video/quicktime",
+ ".mp3": "audio/mpeg", ".wav": "audio/wav", ".flac": "audio/flac", ".ogg": "audio/ogg", ".m4a": "audio/mp4",
};
// one example per app (lab/publish.py); read on every catalog request so a new publish shows up without a restart
@@ -42,10 +65,12 @@ function loadExamples(): Record<string, unknown> {
}
}
+const runnable = (a: App) => Boolean(a.workflowPath) && (a.status === "ready" || draftsAllowed);
+
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),
+ runnable: runnable(a),
higgsfield_feature: a.higgsfield_feature ?? null,
inputs: a.inputs.map(({ bind: _bind, options, ...rest }) => ({
...rest, ...(options ? { options: options.map(({ sets: _sets, ...o }) => o) } : {}),
@@ -54,7 +79,7 @@ function publicApp(a: App) {
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),
+ gated: Boolean(m.gated), optional: Boolean(m.optional), phase: m.phase,
})),
vram: vram.has(a.id) ? {
whole_gb: vram.get(a.id)!.whole_gb, largest_phase_gb: vram.get(a.id)!.largest_phase_gb,
@@ -66,10 +91,31 @@ function publicApp(a: App) {
}
function send(res: ServerResponse, status: number, body: unknown) {
- res.writeHead(status, { "content-type": "application/json; charset=utf-8" });
+ res.writeHead(status, { "content-type": "application/json; charset=utf-8", "cache-control": "no-store" });
res.end(JSON.stringify(body));
}
+/** A file from disk, honouring Range so <video> can seek. */
+function sendFile(req: IncomingMessage, res: ServerResponse, file: string, cache = "no-cache") {
+ const size = statSync(file).size;
+ const type = MIME[extname(file).toLowerCase()] ?? "application/octet-stream";
+ const range = /^bytes=(\d*)-(\d*)$/.exec(req.headers.range ?? "");
+ if (range && (range[1] || range[2])) {
+ const start = range[1] ? Number(range[1]) : Math.max(0, size - Number(range[2]));
+ const end = range[1] && range[2] ? Math.min(Number(range[2]), size - 1) : size - 1;
+ if (start > end || start >= size) {
+ res.writeHead(416, { "content-range": `bytes */${size}` });
+ return res.end();
+ }
+ res.writeHead(206, { "content-type": type, "content-length": end - start + 1, "content-range": `bytes ${start}-${end}/${size}`,
+ "accept-ranges": "bytes", "cache-control": cache });
+ return createReadStream(file, { start, end }).pipe(res);
+ }
+ res.writeHead(200, { "content-type": type, "content-length": size, "accept-ranges": "bytes", "cache-control": cache });
+ if (req.method === "HEAD") return res.end();
+ return createReadStream(file).pipe(res);
+}
+
async function toRequest(req: IncomingMessage): Promise<Request> {
const chunks: Buffer[] = [];
for await (const c of req) chunks.push(c as Buffer);
@@ -107,38 +153,132 @@ async function jobView(id: string) {
};
}
+/** Submit in the background; the entry tells the UI how it goes. */
+function startRun(app: App, values: Values, preset?: string) {
+ const entry = history.start(app, values, preset);
+ void (async () => {
+ try {
+ const job = await getRunner().submit(app, values, preset);
+ contact();
+ await history.follow(entry, job);
+ } catch (e) {
+ const explained = explainSubmitError(app, e);
+ const message = explained ?? (e as Error).message ?? String(e);
+ console.error(`[${app.id}] ${message}`);
+ history.fail(entry, message);
+ }
+ })();
+ return history.view(entry);
+}
+
+let gpuCache: { at: number; body: unknown } | null = null;
+async function gpuStatus(withDevice = false) {
+ const configured = Boolean(process.env.COMFY_BASE_URL);
+ const host = configured ? new URL(process.env.COMFY_BASE_URL!).host : null;
+ const warm = Date.now() - lastContact < WARM_MS;
+ const base = { configured, host, warm, last_contact: lastContact ? new Date(lastContact).toISOString() : null,
+ waking: waking ? { seconds: Math.round((Date.now() - waking.since) / 1000), error: waking.error ?? null } : null,
+ running: history.list(undefined, 50).filter((e) => !["succeeded", "failed", "canceled", "expired", "lost"].includes(e.status)).length };
+ // only on request and only while warm: looking never starts a GPU, and the background poll never touches it
+ if (!withDevice || !warm || !configured) return { ...base, device: null };
+ if (gpuCache && Date.now() - gpuCache.at < 5000) return { ...base, device: gpuCache.body };
+ let device: unknown = null;
+ try {
+ const r = getRunner();
+ const res = await fetch(`${r.baseUrl}/freefield/status`, {
+ headers: r.token ? { authorization: `Bearer ${r.token}` } : {}, signal: AbortSignal.timeout(4000),
+ });
+ if (res.ok) {
+ const s = (await res.json()) as { app?: string; comfyui?: { devices?: { name?: string; vram_total?: number; vram_free?: number }[] } };
+ const d = s.comfyui?.devices?.[0];
+ device = { app: s.app ?? null, name: d?.name ?? null,
+ vram_total_gb: d?.vram_total ? +(d.vram_total / 2 ** 30).toFixed(1) : null,
+ vram_used_gb: d?.vram_total && d.vram_free !== undefined ? +((d.vram_total - d.vram_free) / 2 ** 30).toFixed(1) : null };
+ }
+ } catch { /* status is best effort */ }
+ gpuCache = { at: Date.now(), body: device };
+ return { ...base, device };
+}
+
+function wake() {
+ if (waking && !waking.error) return;
+ const r = getRunner(); // throws without COMFY_BASE_URL: the caller answers 400
+ waking = { since: Date.now() };
+ const started = waking;
+ fetch(`${r.baseUrl}/health`, { signal: AbortSignal.timeout(15 * 60 * 1000) })
+ .then((res) => {
+ if (!res.ok) throw new Error(`/health answered ${res.status}`);
+ contact();
+ if (waking === started) waking = null;
+ })
+ .catch((e) => { if (waking === started) waking = { ...started, error: (e as Error).message }; });
+}
+
const server = createServer(async (req, res) => {
try {
const url = new URL(req.url ?? "/", "http://local");
- const parts = url.pathname.split("/").filter(Boolean);
+ const parts = url.pathname.split("/").filter(Boolean).map(decodeURIComponent);
if (parts[0] === "api") {
- if (req.method === "GET" && parts[1] === "apps" && parts.length === 2) {
+ const [, area, id, sub, arg] = parts;
+ if (req.method === "GET" && area === "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));
const examples = loadExamples();
- return send(res, 200, { apps: sorted.map((a) => ({ ...publicApp(a), example: examples[a.id] ?? null })) });
+ return send(res, 200, { apps: sorted.map((a) => ({ ...publicApp(a), example: examples[a.id] ?? null })), drafts: draftsAllowed });
}
- if (req.method === "POST" && parts[1] === "apps" && parts[3] === "run") {
- const app = byId.get(parts[2]);
+ if (req.method === "POST" && area === "apps" && sub === "run") {
+ const app = byId.get(id);
if (!app) return send(res, 404, { error: "unknown app" });
+ if (!app.workflowPath) throw new InputError(`${app.id} has no workflow yet`);
+ if (!runnable(app)) throw new InputError(`${app.id} is a draft; start the server with FREEFIELD_DRAFTS=1 to run it anyway`);
const { values, preset } = await readValues(app, await toRequest(req));
- try {
- const job = await getRunner().submit(app, values, preset);
- return send(res, 202, { id: job.id, status: job.status });
- } catch (e) {
- const explained = explainSubmitError(app, e);
- if (!explained) throw e;
- console.error(`[${app.id}] ${explained}`);
- return send(res, 422, { error: explained });
+ return send(res, 202, startRun(app, resolveValues(app, values), preset));
+ }
+ if (area === "history") {
+ if (req.method === "GET" && !id) return send(res, 200, { entries: history.list(url.searchParams.get("app") || undefined) });
+ if (req.method === "GET" && id && !sub) {
+ const e = history.get(id);
+ return e ? send(res, 200, e) : send(res, 404, { error: "unknown run" });
+ }
+ if ((req.method === "GET" || req.method === "HEAD") && sub === "files" && arg) {
+ const file = history.file(id, arg);
+ return file ? sendFile(req, res, file, "private, max-age=31536000, immutable") : send(res, 404, { error: "not found" });
}
+ if (req.method === "GET" && sub === "preview") {
+ const p = history.preview(id);
+ if (!p) return send(res, 404, { error: "no preview" });
+ res.writeHead(200, { "content-type": p.type, "content-length": p.bytes.byteLength, "cache-control": "no-store" });
+ return res.end(p.bytes);
+ }
+ if (req.method === "POST" && sub === "cancel") return send(res, 200, { canceled: await history.cancel(id) });
+ if (req.method === "DELETE" && id && !sub) return send(res, history.remove(id) ? 200 : 404, { removed: id });
}
- if (req.method === "GET" && parts[1] === "jobs" && parts.length === 3) {
- return send(res, 200, await jobView(parts[2]));
+ if (area === "gpu") {
+ if (req.method === "GET" && !id) return send(res, 200, await gpuStatus(url.searchParams.get("device") === "1"));
+ if (req.method === "POST" && id === "wake") {
+ try { wake(); } catch (e) { throw new InputError((e as Error).message); }
+ return send(res, 202, await gpuStatus());
+ }
}
- 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 (area === "flags" && parts.length === 2) {
+ if (req.method === "GET") return send(res, 200, { mediocre: flags.list() });
+ if (req.method === "POST") {
+ const body = await (await toRequest(req)).json().catch(() => null) as { key?: unknown; mediocre?: unknown; note?: unknown } | null;
+ if (!body || typeof body.key !== "string" || typeof body.mediocre !== "boolean") throw new InputError("expected JSON { key, mediocre, note? }");
+ try {
+ return send(res, 200, { mediocre: flags.set(body.key, body.mediocre, typeof body.note === "string" ? body.note : undefined) });
+ } catch (e) {
+ throw new InputError((e as Error).message);
+ }
+ }
+ }
+ if (req.method === "GET" && area === "jobs" && parts.length === 3) {
+ return send(res, 200, await jobView(id));
+ }
+ if (req.method === "GET" && area === "jobs" && sub === "outputs" && arg) {
+ const job = await getRunner().jobs().get(id);
+ const out = job.outputs.find((o) => o.id === arg);
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 });
@@ -148,25 +288,9 @@ const server = createServer(async (req, res) => {
}
// static web/
const webRoot = join(root, "web");
- const rel = normalize(url.pathname === "/" ? "index.html" : url.pathname.slice(1)).replace(/^(\.\.[/\\])+/, "");
+ const rel = normalize(url.pathname === "/" ? "index.html" : decodeURIComponent(url.pathname.slice(1))).replace(/^(\.\.[/\\])+/, "");
const file = join(webRoot, rel);
- if (file.startsWith(webRoot) && existsSync(file) && statSync(file).isFile()) {
- const size = statSync(file).size;
- const type = MIME[extname(file).toLowerCase()] ?? "application/octet-stream";
- const range = /^bytes=(\d*)-(\d*)$/.exec(req.headers.range ?? "");
- if (range && (range[1] || range[2])) {
- const start = range[1] ? Number(range[1]) : Math.max(0, size - Number(range[2]));
- const end = range[1] && range[2] ? Math.min(Number(range[2]), size - 1) : size - 1;
- if (start > end || start >= size) {
- res.writeHead(416, { "content-range": `bytes */${size}` });
- return res.end();
- }
- res.writeHead(206, { "content-type": type, "content-length": end - start + 1, "content-range": `bytes ${start}-${end}/${size}`, "accept-ranges": "bytes" });
- return createReadStream(file, { start, end }).pipe(res);
- }
- res.writeHead(200, { "content-type": type, "content-length": size, "accept-ranges": "bytes" });
- return createReadStream(file).pipe(res);
- }
+ if (file.startsWith(webRoot) && existsSync(file) && statSync(file).isFile()) return sendFile(req, res, file);
return send(res, 404, { error: "not found" });
} catch (e) {
const status = e instanceof InputError ? 400 : 500;
@@ -175,5 +299,8 @@ const server = createServer(async (req, res) => {
}
});
+// runs that were still going when the server stopped are followed again
+history.resume(async (jobId) => getRunner().jobs().get(jobId));
+
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/flags.test.ts b/test/flags.test.ts
new file mode 100644
index 0000000..1c12f77
--- /dev/null
+++ b/test/flags.test.ts
@@ -0,0 +1,38 @@
+import { test } from "node:test";
+import assert from "node:assert/strict";
+import { mkdtempSync, readFileSync, rmSync } from "node:fs";
+import { tmpdir } from "node:os";
+import { join } from "node:path";
+import { loadRegistry } from "../server/registry.ts";
+import { Flags } from "../server/flags.ts";
+
+const { apps } = loadRegistry();
+
+test("mediocre marks: an app's example and a gallery option, kept in lab/flags.json", () => {
+ const dir = mkdtempSync(join(tmpdir(), "ff-flags-"));
+ const file = join(dir, "flags.json");
+ try {
+ const flags = new Flags(file, apps);
+ assert.deepEqual(flags.list(), {});
+ flags.set("video", true);
+ flags.set("effects/effect/crush", true, "the press barely dents it");
+ assert.deepEqual(Object.keys(flags.list()).sort(), ["effects/effect/crush", "video"]);
+ assert.equal(flags.list()["effects/effect/crush"].note, "the press barely dents it");
+
+ const saved = JSON.parse(readFileSync(file, "utf-8"));
+ assert.ok(saved.about.includes("lab/publish.py"), "the file says who clears the marks");
+ assert.deepEqual(Object.keys(saved.mediocre), ["effects/effect/crush", "video"], "sorted on disk");
+
+ const again = new Flags(file, apps); // a server restart reads them back
+ assert.equal(again.list().video.at, flags.list().video.at);
+ again.set("video", false);
+ assert.deepEqual(Object.keys(again.list()), ["effects/effect/crush"]);
+
+ assert.throws(() => flags.set("no-such-app", true), /unknown example/);
+ assert.throws(() => flags.set("effects/effect/painting", true), /no option/, "an option that left the app");
+ assert.throws(() => flags.set("effects/aspect/portrait", true), /no gallery input/, "only gallery selects have examples per option");
+ assert.throws(() => flags.set("effects/effect", true), /unknown example/, "half a key");
+ } finally {
+ rmSync(dir, { recursive: true, force: true });
+ }
+});
diff --git a/test/history.test.ts b/test/history.test.ts
new file mode 100644
index 0000000..a82cce2
--- /dev/null
+++ b/test/history.test.ts
@@ -0,0 +1,149 @@
+import { test } from "node:test";
+import assert from "node:assert/strict";
+import { existsSync, mkdtempSync, readFileSync, rmSync } from "node:fs";
+import { tmpdir } from "node:os";
+import { join } from "node:path";
+import type { ComfyEvent } from "@comfyorg/sdk";
+import { loadRegistry } from "../server/registry.ts";
+import { resolveValues } from "../server/runner.ts";
+import { History, type JobLike } from "../server/history.ts";
+
+const { apps } = loadRegistry();
+const byId = (id: string) => apps.find((a) => a.id === id)!;
+const PNG = new Uint8Array([0x89, 0x50, 0x4e, 0x47, 1, 2, 3]);
+
+/** A job that runs through queued → running → its end state when wait() is called. */
+function fakeJob(end: "succeeded" | "failed", events: ComfyEvent[] = []): JobLike & { canceled: boolean } {
+ let status = "queued";
+ const started = new Date();
+ return {
+ id: "job-1",
+ canceled: false,
+ get status() { return status; },
+ get outputs() {
+ return status === "succeeded"
+ ? [{ name: "ComfyUI_00001_.png", type: "image", nodeId: "9", contentType: "image/png", toBytes: async () => PNG },
+ { name: "latent.bin", type: "latent", nodeId: "3", contentType: "application/octet-stream", toBytes: async () => new Uint8Array() }]
+ : [];
+ },
+ get error() { return status === "failed" ? { message: "CUDA out of memory", class_type: "KSampler", node_id: "3" } : null; },
+ get startedAt() { return status === "queued" ? null : started; },
+ get completedAt() { return status === "succeeded" || status === "failed" ? new Date(started.getTime() + 2500) : null; },
+ async *events() { for (const e of events) yield e; },
+ async wait() { status = "running"; await new Promise((r) => setTimeout(r, 20)); status = end; },
+ async cancel() { this.canceled = true; status = "canceled"; },
+ };
+}
+
+function tempHistory() {
+ const dir = mkdtempSync(join(tmpdir(), "ff-history-"));
+ return { dir, history: new History(dir), done: () => rmSync(dir, { recursive: true, force: true }) };
+}
+
+test("a run is recorded before it is submitted, with its inputs and the seed that was picked", () => {
+ const { dir, history, done } = tempHistory();
+ try {
+ const app = byId("edit");
+ const values = resolveValues(app, { image: { bytes: PNG, name: "me.PNG", type: "image/png" }, instruction: "add a hat" });
+ const entry = history.start(app, values);
+ assert.equal(entry.status, "starting");
+ assert.equal(entry.values.instruction, "add a hat");
+ assert.equal(typeof entry.values.seed, "number", "the resolved seed is kept, so the run can be repeated");
+ assert.equal(entry.values.image, undefined, "files are not copied into the values");
+ assert.deepEqual(entry.inputs.map((i) => i.file), ["input-image.png"]);
+ assert.deepEqual([...readFileSync(join(dir, entry.id, "input-image.png"))], [...PNG]);
+ assert.equal(history.list("edit")[0].inputs[0].url, `/api/history/${entry.id}/files/input-image.png`);
+ } finally { done(); }
+});
+
+test("following a job stores its media outputs and timings", async () => {
+ const { dir, history, done } = tempHistory();
+ try {
+ const app = byId("z-image");
+ const entry = history.start(app, resolveValues(app, { prompt: "a fox" }));
+ const progress: ComfyEvent = { kind: "progress", value: 0.5, message: null, nodesDone: 1, nodesTotal: 3, currentNode: "3",
+ currentNodeClass: "KSampler", step: 4, steps: 8 };
+ const done1 = await history.follow(entry, fakeJob("succeeded", [progress]));
+ assert.equal(done1.status, "succeeded");
+ assert.equal(done1.job, "job-1");
+ assert.deepEqual(done1.outputs.map((o) => [o.file, o.type]), [["out-01.png", "image"]], "latents are skipped");
+ assert.ok(existsSync(join(dir, entry.id, "out-01.png")));
+ assert.equal(done1.seconds, 2.5);
+ assert.equal(history.get(entry.id)!.progress, null, "live progress is dropped once the run ends");
+ assert.equal(JSON.parse(readFileSync(join(dir, entry.id, "meta.json"), "utf-8")).status, "succeeded");
+ } finally { done(); }
+});
+
+test("a failed job keeps the node and the message", async () => {
+ const { history, done } = tempHistory();
+ try {
+ const app = byId("z-image");
+ const entry = await history.follow(history.start(app, resolveValues(app, { prompt: "x" })), fakeJob("failed"));
+ assert.equal(entry.status, "failed");
+ assert.deepEqual(entry.error, { message: "CUDA out of memory", class_type: "KSampler", node: "3" });
+ } finally { done(); }
+});
+
+test("a submit that never reached the backend is marked failed with the reason", () => {
+ const { history, done } = tempHistory();
+ try {
+ const app = byId("z-image");
+ const entry = history.start(app, resolveValues(app, { prompt: "x" }));
+ history.fail(entry, "Set COMFY_BASE_URL to the gateway URL");
+ assert.equal(history.get(entry.id)!.status, "failed");
+ assert.equal(history.get(entry.id)!.error!.message, "Set COMFY_BASE_URL to the gateway URL");
+ } finally { done(); }
+});
+
+test("deleting a run that is still being submitted cancels its job once it exists", async () => {
+ const { dir, history, done } = tempHistory();
+ try {
+ const app = byId("z-image");
+ const entry = history.start(app, resolveValues(app, { prompt: "x" }));
+ assert.ok(history.remove(entry.id));
+ assert.ok(!existsSync(join(dir, entry.id)));
+ const job = fakeJob("succeeded");
+ await history.follow(entry, job);
+ assert.ok(job.canceled);
+ assert.equal(history.list().length, 0);
+ } finally { done(); }
+});
+
+test("runs that were going when the server stopped are lost or followed again", async () => {
+ const { dir, history, done } = tempHistory();
+ try {
+ const app = byId("z-image");
+ const orphan = history.start(app, resolveValues(app, { prompt: "never submitted" }));
+ const pending = history.start(app, resolveValues(app, { prompt: "submitted" }));
+ const asFile = JSON.parse(readFileSync(join(dir, pending.id, "meta.json"), "utf-8"));
+ asFile.job = "job-1"; asFile.status = "running";
+ const { writeFileSync } = await import("node:fs");
+ writeFileSync(join(dir, pending.id, "meta.json"), JSON.stringify(asFile));
+
+ const stale = history.start(app, resolveValues(app, { prompt: "submitted yesterday" }));
+ const staleFile = JSON.parse(readFileSync(join(dir, stale.id, "meta.json"), "utf-8"));
+ staleFile.job = "job-old"; staleFile.status = "running"; staleFile.created = new Date(Date.now() - 864e5).toISOString();
+ writeFileSync(join(dir, stale.id, "meta.json"), JSON.stringify(staleFile));
+
+ const restarted = new History(dir);
+ const asked: string[] = [];
+ restarted.resume(async (id) => { asked.push(id); return fakeJob("succeeded"); });
+ await new Promise((r) => setTimeout(r, 100));
+ assert.equal(restarted.get(orphan.id)!.status, "lost");
+ assert.equal(restarted.get(pending.id)!.status, "succeeded");
+ assert.equal(restarted.get(stale.id)!.status, "lost");
+ assert.deepEqual(asked, ["job-1"], "an old run is not looked up (that could start a GPU for nothing)");
+ } finally { done(); }
+});
+
+test("file names are checked before touching the disk", () => {
+ const { history, done } = tempHistory();
+ try {
+ const app = byId("z-image");
+ const entry = history.start(app, resolveValues(app, { prompt: "x" }));
+ assert.equal(history.file(entry.id, "../meta.json"), null);
+ assert.equal(history.file(entry.id, "meta.json"), null);
+ assert.equal(history.file("../../etc", "out-01.png"), null);
+ assert.equal(history.remove("../x"), false);
+ } finally { done(); }
+});
diff --git a/test/runner.test.ts b/test/runner.test.ts
index 7b017fe..a2f06bc 100644
--- a/test/runner.test.ts
+++ b/test/runner.test.ts
@@ -66,6 +66,42 @@ test("a select option writes its extra fields (style → LoRA file)", () => {
assert.throws(() => resolveValues(app, { prompt: "a fox", style: "not a style" }), InputError);
});
+test("an option's string values are templates: the effect's prompt is written around the subject", () => {
+ const app = byId("effects");
+ const file = { bytes: new Uint8Array([1]), name: "teddy.png" };
+ const values = resolveValues(app, { image: file, effect: "squish", subject: "a plush teddy bear", aspect: "square", seed: 1 });
+ const wf = recorder();
+ applyInputs(app, values, wf, () => null);
+ assert.equal(wf.sets["ff_effect.lora_name"], "squish_18.safetensors");
+ const text = wf.sets["6.text"] as string;
+ assert.match(text, /^In the video, a plush teddy bear is presented/);
+ assert.match(text, /further showing the sq41sh squish effect\.$/, "an empty {details} leaves nothing behind");
+ assert.ok(!text.includes("{"), "no placeholder left behind");
+ assert.equal(wf.sets["50.width"], 624);
+ assert.equal(wf.sets["50.height"], 624);
+ assert.equal(wf.sets["ff_lora_fast.strength_model"], undefined, "the fast LoRA stays off without the preset");
+
+ const extra = recorder();
+ applyInputs(app, resolveValues(app, { image: file, effect: "squish", subject: "a teddy", details: "on a pink rug", seed: 1 }), extra, () => null, "fast");
+ assert.match(extra.sets["6.text"] as string, /squish effect\. on a pink rug$/);
+ assert.equal(extra.sets["ff_lora_fast.strength_model"], 1.0);
+ assert.equal(extra.sets["3.steps"], 6);
+});
+
+test("every effect writes its own LoRA and a prompt with its trigger words", () => {
+ const app = byId("effects");
+ const effect = app.inputs.find((i) => i.id === "effect")!;
+ const files = new Set<unknown>();
+ for (const o of effect.options!) {
+ const lora = o.sets!.find((s) => s.field === "lora_name")!.value;
+ const prompt = o.sets!.find((s) => s.node === "6")!.value as string;
+ files.add(lora);
+ assert.ok(app.models.some((m) => m.file.endsWith(String(lora))), `${o.value}: ${String(lora)} is not in models`);
+ assert.match(prompt, /\{subject\}/, `${o.value} uses the subject`);
+ }
+ assert.equal(files.size, effect.options!.length, "one LoRA per effect");
+});
+
test("validation errors name the node and, for a missing model file, the pack to download", () => {
const app = byId("edit");
// the shape ComfyUI returns (captured from a real /prompt rejection), relayed by comfy-api-proxy
diff --git a/tools/build_apps.py b/tools/build_apps.py
index 9e75b40..462413e 100644
--- a/tools/build_apps.py
+++ b/tools/build_apps.py
@@ -150,6 +150,7 @@ def ltx_v2v_local(api: Api, lora_file: str) -> None:
CAMERAMAN = "LTX2.3-22B_IC-LoRA-Cameraman_v2_14000.safetensors"
+EFFECT_LORA = "robot_face_reveal_35_epochs.safetensors" # Remade-AI's Robot Face Reveal: the effects app's default option
def ltx_cameraman(api: Api) -> None:
@@ -275,6 +276,20 @@ def recipes(templates: Path, ltx: Path, info: dict, reshoot: Path | None = None)
"wan2.2_i2v_lightx2v_4steps_lora_v1_low_noise.safetensors", 0.0, nid="ff_lora_low")
out["camera-moves"] = cm
+ ef = tpl("image_to_video_wan.json")
+ # Wan 2.1 I2V 14B 480p, the model Remade-AI trained its effect LoRAs on, in fp8 so the 14B
+ # model fits a 24 GB card by phases. The effect LoRA goes right after the loader (each effect
+ # option in app.json swaps the file and writes its prompt); lightx2v's step-distill LoRA follows
+ # at strength 0 (a no-op) for the "fast" preset. Flow shift 5, as the effect LoRA cards say.
+ swap_files(ef, {"wan2.1_i2v_480p_14B_fp16.safetensors": "wan2.1_i2v_480p_14B_fp8_scaled.safetensors"})
+ add_lora_after(ef, find(ef, "UNETLoader"), EFFECT_LORA, 1.0, nid="ff_effect")
+ add_lora_after(ef, "ff_effect", "lightx2v_I2V_14B_480p_cfg_step_distill_rank64_bf16.safetensors", 0.0, nid="ff_lora_fast")
+ put(ef, find(ef, "ModelSamplingSD3"), "shift", 5.0)
+ i2v = find(ef, "WanImageToVideo")
+ for field, value in (("width", 480), ("height", 832), ("length", 81)): # the app's defaults: 9:16, 5 s at 16 fps
+ put(ef, i2v, field, value)
+ out["effects"] = ef
+
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;
@@ -287,6 +302,10 @@ def recipes(templates: Path, ltx: Path, info: dict, reshoot: Path | None = None)
# 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")
+ # the pose offset (b - c) * (a - 1) reads b and c from subgraph inputs the conversion cannot see;
+ # for the first segment it is 0, so the frame range starts at 0 and the expression goes
+ put(rc, "213:177", "batch_index", 0)
+ drop(rc, "213:184", "213:183")
out["recast"] = rc
out["relight"] = tpl("image_qwen_image_edit_2509_relight.json") # Qwen Image Edit 2509 + Relight + Lightning LoRAs, as shipped
diff --git a/tools/comfy_validate.py b/tools/comfy_validate.py
index 9b1381e..931b4fb 100644
--- a/tools/comfy_validate.py
+++ b/tools/comfy_validate.py
@@ -170,9 +170,9 @@ def app_variants(app_dir: Path) -> list[tuple[str, dict]]:
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"]
+ api[s["node"]]["inputs"][s["field"]] = render(s["value"]) if isinstance(s["value"], str) else s["value"]
for s in (preset or {}).get("sets", []):
- api[s["node"]]["inputs"][s["field"]] = s["value"]
+ api[s["node"]]["inputs"][s["field"]] = render(s["value"]) if isinstance(s["value"], str) else s["value"]
return api
# no preset is a valid choice in the UI too, so check it alongside every preset
diff --git a/tools/object_info.json b/tools/object_info.json
index 7013279..d3509bb 100644
--- a/tools/object_info.json
+++ b/tools/object_info.json
@@ -1 +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}}
+{"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},"WanImageToVideo":{"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",{}],"ref_pad_image":["IMAGE",{"tooltip":"Fills the padding frames of the image conditioning with this image instead of gray, anchoring identity without pinning frames (SVI-style anti-drift padding, used by models such as ID-V2V)."}]}},"input_order":{"required":["positive","negative","vae","width","height","length","batch_size"],"optional":["clip_vision_output","start_image","ref_pad_image"]},"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":"WanImageToVideo","display_name":null,"description":"","python_module":"comfy_extras.nodes_wan","category":"model/conditioning/wan","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/template_apps.py b/tools/template_apps.py
new file mode 100644
index 0000000..1e3414a
--- /dev/null
+++ b/tools/template_apps.py
@@ -0,0 +1,412 @@
+#!/usr/bin/env python3
+"""Template apps: one app per Higgsfield app that is a fixed prompt over a pipeline Freefield already runs.
+
+ python tools/template_apps.py # writes apps/<id>/app.json + workflow.api.json and the tpl-* lab cases
+ python tools/template_apps.py --check # only checks the table (ids, lengths, placeholders)
+ python tools/template_apps.py --readme # prints the Markdown table for README.md
+ python tools/template_apps.py --lab # prints the lab command that makes every template's example
+
+Each entry below is a Higgsfield app (its name in `feature`) rebuilt as a prompt template on one of
+three bases: FLUX 3 Image Klein's edit pipeline (apps/edit, one reference image; the same workflow
+behind edit, character and product-shot) or Z-Image Turbo (apps/z-image, text to image). The app
+folder gets a copy of the base workflow (built by tools/build_apps.py) and a manifest whose "details"
+input carries the prompt as a bind template; selects feed {placeholders} in that prompt. The base
+app's models and credits are copied as they are.
+
+lab/cases.json gets one "tpl-<id>" showcase case per app (the section after the effects cases is
+regenerated in place), on the synthetic references the lab already makes, plus the few new
+references listed in REFS.
+"""
+from __future__ import annotations
+
+import argparse
+import json
+import re
+import sys
+from pathlib import Path
+
+ROOT = Path(__file__).resolve().parent.parent
+
+# the pipelines a template can sit on: node ids for the image, the prompt and the settings
+BASES = {
+ "edit": {"app": "edit", "pack": "image-flux3", "image": ("11", "image"), "prompt": ("4", "text"), "keep": ("steps", "seed"), "output": {"node": "9", "type": "image"}},
+ "z-image": {"app": "z-image", "pack": "image", "image": None, "prompt": ("57:27", "text"), "keep": ("width", "height", "steps", "seed"), "output": {"node": "9", "type": "image"}},
+}
+
+# new synthetic references the template cases need (the rest come from the effects section)
+REFS = {
+ "ref-tpl-sketch": ("A rough pencil sketch on white paper of a cat sitting on a windowsill next to a potted plant, loose lines, no color", 1024, 1024,
+ "Reference sketch for Sketch to Real."),
+ "ref-tpl-sign": ("Photo of a small bakery storefront with a wooden sign above the door that reads OPEN in bold white letters, daylight, photorealistic", 1280, 768,
+ "Reference with legible text for Edit Text."),
+}
+PERSON, MAN, WOMAN, PRODUCT, SNEAKER, SCENE, LAKE = "ref-face-a", "ref-fx-man-b", "ref-fx-woman-a", "ref-product", "ref-fx-sneaker", "ref-fx-cafe", "ref-fx-lake"
+
+KEEP_PRODUCT = " Keep the product identical: shape, label, text and colors."
+KEEP_FACE = " Keep the face, hairstyle and build identical."
+
+
+def sel(id_, label, options, default=None, help_=None):
+ """A select whose value is a prompt fragment; label → value pairs."""
+ opts = [{"value": v, "label": lb} for lb, v in options]
+ d = {"id": id_, "type": "select", "label": label, "default": default if default is not None else opts[0]["value"], "options": opts}
+ if help_:
+ d["help"] = help_
+ return d
+
+
+def txt(id_, label, default="", required=False, help_=None):
+ d = {"id": id_, "type": "text", "label": label, "default": default}
+ if required:
+ d["required"] = True
+ if help_:
+ d["help"] = help_
+ return d
+
+
+# (id, name, Higgsfield app, web category, base, image label, summary, prompt, extra inputs, lab reference, lab values, what to look for)
+T = []
+
+
+def A(id_, name, feature, cat, base, image_label, summary, prompt, inputs=(), ref=None, values=None, note=""):
+ T.append(dict(id=id_, name=name, feature=feature, cat=cat, base=base, image_label=image_label, summary=summary, prompt=prompt,
+ inputs=list(inputs), ref=ref, values=values or {}, note=note))
+
+
+# ---------------------------------------------------------------- ads & products (apps/edit pipeline, a product photo)
+A("poster", "Poster", "Poster", "ads", "edit", "Product photo",
+ "Turns a product photo into a printed advertising poster with your headline (FLUX 3 Image Klein).",
+ "A printed advertising poster for the product from <ref_image_0>: the product large in the center, a bold headline reading \"{headline}\" at the top, "
+ "a clean typographic layout, studio lighting, vivid colors." + KEEP_PRODUCT,
+ [txt("headline", "Headline", "NEW SEASON", required=True)], PRODUCT, {"headline": "NOIR"},
+ "A poster layout with the bottle intact and the headline legible.")
+A("packshot", "Packshot", "Packshot", "ads", "edit", "Product photo",
+ "The closing frame of an ad: your product centered on a clean gradient with room for a tagline.",
+ "The closing packshot of a commercial: the product from <ref_image_0> centered on a smooth {backdrop} gradient background, a soft shadow under it, "
+ "generous empty space above it." + KEEP_PRODUCT,
+ [sel("backdrop", "Backdrop", [("Dark charcoal", "dark charcoal"), ("Clean white", "clean white"), ("Deep blue", "deep blue"), ("Warm beige", "warm beige")])],
+ PRODUCT, {}, "Centered bottle, clean gradient, nothing else in frame.")
+A("macro-scene", "Macro Scene", "Macroshot Scene", "ads", "edit", "Product photo",
+ "An extreme macro close-up of your product in a natural setting: stone, leaves, sand or ice.",
+ "Extreme macro close-up of the product from <ref_image_0> {setting}, shallow depth of field, tiny water droplets, crisp texture." + KEEP_PRODUCT,
+ [sel("setting", "Setting", [("Wet black stone", "on wet black stone with mist"), ("Green leaves", "among fresh green leaves"), ("Sand at golden hour", "on sand at golden hour"),
+ ("Ice and frost", "on ice with frost crystals")])],
+ PRODUCT, {}, "Macro look with droplets; the label still readable.")
+A("macro-product", "Macro Product", "Macroshot Product", "ads", "edit", "Product photo",
+ "A macro photograph of one detail of your product: texture, edges and label filling the frame.",
+ "Extreme macro photograph of a detail of the product from <ref_image_0>: its texture, edges and label fill the frame, 100mm macro lens, soft diffused light." + KEEP_PRODUCT,
+ [], PRODUCT, {}, "A tight detail of the bottle, not the whole bottle.")
+A("giant-product", "Giant Product", "Giant Product", "ads", "edit", "Product photo",
+ "Your product as a giant monument over a city skyline, people tiny at its base.",
+ "The product from <ref_image_0> as a giant monument standing over a city skyline {time}, people and cars tiny at its base, wide-angle shot, realistic scale and lighting." + KEEP_PRODUCT,
+ [sel("time", "Time of day", [("Sunset", "at sunset"), ("Night, city lights", "at night with the city lights on"), ("Foggy morning", "on a foggy morning")])],
+ PRODUCT, {}, "Convincing scale: the bottle towers over buildings.")
+A("billboard", "Billboard", "Billboard Ad", "ads", "edit", "Your photo",
+ "Your photo on a giant lit billboard over a city street.",
+ "The photo from <ref_image_0> displayed on a giant billboard {where}, the billboard lit up, pedestrians and traffic below, realistic.",
+ [sel("where", "Where", [("Skyscraper at night", "on a skyscraper at night"), ("Highway at dusk", "over a busy highway at dusk"), ("Rainy city square", "in a rainy city square")])],
+ PERSON, {}, "The portrait appears on the billboard, not as the whole image.")
+A("graffiti-ad", "Graffiti Ad", "Graffiti Ad", "ads", "edit", "Product photo",
+ "Your product as a spray-paint graffiti mural on a brick wall.",
+ "The product from <ref_image_0> painted as a large spray-paint graffiti mural on a brick wall in the street, paint drips and stencil edges, daylight. "
+ "Keep its shape, label and colors recognizable.",
+ [], SNEAKER, {}, "A mural of the sneaker with graffiti texture.")
+A("fridge-ad", "Fridge Ad", "Fridge Ad", "ads", "edit", "Product photo",
+ "Your product inside an illuminated display fridge, condensation on the glass.",
+ "The product from <ref_image_0> standing inside an illuminated glass-door display fridge in a shop, cold light, condensation on the glass, rows of shelves." + KEEP_PRODUCT,
+ [], PRODUCT, {}, "Fridge interior with the bottle on a shelf.")
+A("ugc-shot", "UGC Shot", "Marketing (UGC)", "ads", "edit", "Product photo",
+ "A casual phone photo of a hand holding your product, like a social media post.",
+ "A casual phone photo of a hand holding the product from <ref_image_0> {where}, natural light, slightly tilted framing, like a social media post." + KEEP_PRODUCT,
+ [sel("where", "Where", [("Bright kitchen", "in a bright kitchen"), ("Cafe table", "at a cafe table"), ("Outdoors in a park", "outdoors in a park")])],
+ PRODUCT, {}, "A hand holding the bottle; snapshot look, not studio.")
+
+# ---------------------------------------------------------------- portraits & looks (a photo of a person)
+A("headshot", "Studio Headshot", "AI Headshot Generator", "portraits", "edit", "Your selfie",
+ "A professional studio headshot from one selfie: backdrop and outfit of your choice.",
+ "A professional studio headshot of the same person as in <ref_image_0>, {backdrop}, wearing {outfit}, soft three-point lighting, sharp focus on the eyes, "
+ "shoulders-up framing." + KEEP_FACE,
+ [sel("backdrop", "Backdrop", [("Light grey", "plain light grey backdrop"), ("Dark charcoal", "dark charcoal backdrop"), ("Office, blurred", "in a bright office with blurred windows"),
+ ("Outdoor bokeh", "outdoors with golden-hour bokeh")]),
+ sel("outfit", "Outfit", [("Navy blazer", "a navy blazer over a white shirt"), ("Black turtleneck", "a black turtleneck"), ("Linen shirt", "a light linen shirt"),
+ ("As in the photo", "the same clothes as in the photo")])],
+ WOMAN, {}, "Same face, studio light, blazer; shoulders-up.")
+A("commercial-faces", "Commercial Faces", "Commercial Faces", "portraits", "edit", "Your photo",
+ "Campaign portraits of you: skincare, corporate, sportswear or editorial.",
+ "A commercial campaign portrait of the same person as in <ref_image_0> for {use}, professional lighting, editorial composition, magazine print quality." + KEEP_FACE,
+ [sel("use", "Campaign", [("Skincare advert", "a skincare advert, clean beauty lighting"), ("Corporate brochure", "a bank's corporate brochure"),
+ ("Sportswear", "a sportswear campaign, dynamic pose"), ("Fashion editorial", "a fashion editorial, dramatic side light")])],
+ MAN, {}, "Campaign look with his face unchanged.")
+A("style-snap", "Style Snap", "Style Snap", "portraits", "edit", "Your photo",
+ "You in a complete new outfit: streetwear, business, gala, athleisure, 70s or monochrome.",
+ "The same person as in <ref_image_0> wearing a complete {style} outfit, full-length shot in a matching setting, natural pose." + KEEP_FACE,
+ [sel("style", "Style", [("Streetwear", "streetwear"), ("Business formal", "business formal"), ("Evening gala", "evening gala"), ("Athleisure", "sporty athleisure"),
+ ("Vintage 70s", "vintage 1970s"), ("Minimal monochrome", "minimalist monochrome")])],
+ WOMAN, {"style": "streetwear"}, "Full-length, new outfit, same face.")
+A("skin-enhancer", "Skin Enhancer", "Skin Enhancer", "portraits", "edit", "Your photo",
+ "A beauty-editor retouch: even tone, natural pores kept, no plastic smoothing.",
+ "Retouch the photo from <ref_image_0> like a beauty editor: even skin tone, natural pores and fine texture kept, blemishes reduced, no plastic smoothing. "
+ "Everything else stays exactly the same.",
+ [], MAN, {}, "Subtle: compare with the input; pores still visible.")
+A("outfit-vending", "Outfit Vending", "Outfit Vending Machine", "portraits", "edit", "Your photo",
+ "The clothes you are wearing, displayed item by item inside a lit vending machine.",
+ "The clothes and accessories worn in <ref_image_0> displayed as separate items inside an illuminated glass vending machine at night, each in its own slot with a "
+ "price tag, neon glow.",
+ [], "ref-character", {}, "Red jacket, jeans and sneakers as vending items.")
+A("glitter-sticker", "Glitter Sticker", "Glitter Sticker", "portraits", "edit", "Your photo",
+ "You as a glossy glitter sticker with a white die-cut border.",
+ "The person from <ref_image_0> as a glossy glitter sticker: simplified cute illustration, sparkling holographic texture, thick white die-cut border, "
+ "on a plain white background.",
+ [], WOMAN, {}, "Sticker look: white border, holographic sparkle.")
+
+# ---------------------------------------------------------------- toys & games
+A("game-styles", "Game Styles", "Game Dump", "play", "edit", "Your photo",
+ "You as a character in 12 kinds of video game, from 16-bit pixel art to voxel worlds.",
+ "The same person as in <ref_image_0> as a character in {style}, keep the face recognizable.",
+ [sel("style", "Game style", [("16-bit platformer", "a 16-bit pixel art platformer"), ("Low-poly 90s console", "a low-poly 1990s console game"), ("Cel-shaded action", "a cel-shaded action game"),
+ ("Isometric RPG", "an isometric role-playing game"), ("Voxel builder", "a voxel block-building game"), ("Claymation adventure", "a claymation adventure game"),
+ ("Fighting game select screen", "a 2D fighting game character select screen"), ("Visual novel", "a visual novel portrait"),
+ ("Neon cyberpunk shooter", "a neon cyberpunk shooter"), ("Cozy farming sim", "a cozy farming simulator"), ("Kart racer", "a kart racing game"),
+ ("Survival horror", "a survival horror game, no gore")])],
+ MAN, {"style": "a cel-shaded action game"}, "Cel-shaded render with his features.")
+A("plushie", "Plushie", "Plushies", "play", "edit", "Your photo",
+ "The subject of your photo remade as a soft plush toy.",
+ "The subject of <ref_image_0> remade as a soft plush toy: fleece fabric, stitched seams, embroidered eyes, sitting on a child's bed, soft daylight.",
+ [], "ref-fx-duck", {}, "A plush duck with seams and embroidered eyes.")
+A("render-3d", "3D Render", "3D Render", "play", "edit", "Your photo",
+ "A stylized 3D render of your photo: clay-like materials, soft studio light.",
+ "The subject of <ref_image_0> as a stylized 3D render: smooth clay-like materials, big expressive proportions, soft studio lighting, subtle subsurface scattering, "
+ "clean gradient background.",
+ [], WOMAN, {}, "3D look, recognizable features.")
+A("figure-3d", "3D Figure", "3D Figure", "play", "edit", "Your photo",
+ "Your photo as a collectible figure in a blister pack on a shelf.",
+ "The subject of <ref_image_0> as a collectible 3D figure in a clear blister pack with a printed cardboard backing, on a shelf, product photography lighting.",
+ [], "ref-character", {}, "Figure in packaging, same outfit.")
+A("pixel-game", "Pixel Game", "Pixel Game", "play", "edit", "Your photo",
+ "Your scene redrawn as 16-bit pixel art with a game HUD.",
+ "The scene from <ref_image_0> redrawn as 16-bit pixel art from a retro video game, limited palette, visible pixels, a side-view game HUD at the top.",
+ [], SCENE, {}, "Visible pixels, HUD at the top.")
+A("brick-toy", "Brick Toy", "Brick Cube", "play", "edit", "Your photo",
+ "The subject of your photo rebuilt from interlocking plastic bricks.",
+ "The subject of <ref_image_0> rebuilt as a toy made of interlocking plastic bricks, blocky shapes, studs visible, on a white table.",
+ [], "ref-fx-toycar", {}, "A brick-built red car with studs.")
+A("sketch-to-real", "Sketch to Real", "Sketch-to-Real", "play", "edit", "Your sketch",
+ "Turns a sketch into a photorealistic photo of the same scene.",
+ "Turn the sketch from <ref_image_0> into a photorealistic photograph of the same scene: same composition and subjects, real materials, natural light.",
+ [], "ref-tpl-sketch", {}, "A real cat on a real windowsill, same layout as the sketch.")
+A("paint-app", "Paint App", "Paint App", "play", "edit", "Your photo",
+ "Your photo redrawn in a 1990s computer paint program.",
+ "The photo from <ref_image_0> redrawn as a crude drawing made in a 1990s computer paint program: aliased lines, flat fill colors, a spray-can texture, "
+ "white canvas with the program's toolbar at the edge.",
+ [], WOMAN, {}, "Crude flat drawing with a toolbar.")
+A("mural", "Street Mural", "Signboard", "play", "edit", "Your photo",
+ "You hand-painted on a large street mural.",
+ "The person from <ref_image_0> hand-painted on a large street mural on the side of a building, visible brush strokes, weathered paint, pedestrians passing below.",
+ [], MAN, {}, "Painted wall with his face, street below.")
+A("micro-beasts", "Micro-Beasts", "Surrounded by Animals", "play", "edit", "Your photo",
+ "You surrounded by tiny cute animals.",
+ "The person from <ref_image_0> surrounded by tiny cute animals: {animals} climbing on their shoulders and hands, sharp detail, soft daylight." + KEEP_FACE,
+ [sel("animals", "Animals", [("Hamsters and kittens", "hamsters and kittens"), ("Ducklings and bunnies", "ducklings and bunnies"), ("Tiny puppies", "tiny puppies"), ("Baby otters", "baby otters")])],
+ WOMAN, {}, "Small animals on her shoulders; same face.")
+A("meme", "Meme Generator", "Meme Generator", "play", "z-image", None,
+ "A meme image from a scene and two captions (Z-Image Turbo).",
+ "A meme image: {scene}. Bold white capital letters in a thick Impact-style font with a black outline read \"{top}\" at the top and \"{bottom}\" at the bottom of the image.",
+ [{"id": "scene", "type": "textarea", "label": "Scene", "required": True, "default": "a cat staring at a laptop screen with a worried face"},
+ txt("top", "Top text", "WHEN THE BUILD", required=True), txt("bottom", "Bottom text", "PASSES ON FRIDAY", required=True)],
+ None, {"scene": "a golden retriever sitting at a desk in front of three monitors, looking proud", "top": "WHEN THE TESTS", "bottom": "PASS FIRST TRY"},
+ "Legible captions top and bottom.")
+
+# ---------------------------------------------------------------- templates (looks and scenes over a photo)
+A("j-magazine", "J-Magazine", "J-Magazine", "templates", "edit", "Your photo",
+ "You on the cover of a Japanese fashion magazine.",
+ "The person from <ref_image_0> on the cover of a Japanese fashion magazine: bold vertical Japanese headlines, a masthead at the top, colorful text blocks, glossy print look." + KEEP_FACE,
+ [], WOMAN, {}, "Magazine cover layout with her face.")
+A("cafe-60s", "60s Cafe", "60s Cafe", "templates", "edit", "Your photo",
+ "You in a 1960s cafe: period clothes, chrome counter, film grain.",
+ "The person from <ref_image_0> sitting in a 1960s cafe: period clothes and hairstyle, chrome counter, pastel colors, Kodachrome film grain, warm light." + KEEP_FACE,
+ [], MAN, {}, "Period look, same face.")
+A("victory-card", "Victory Card", "Victory Card", "templates", "edit", "Your photo",
+ "Your face on a playing card in a winning poker hand.",
+ "The person from <ref_image_0> as the face of a king or queen playing card in a winning poker hand, ornate card design, gold foil, five cards fanned on green felt.",
+ [], WOMAN, {}, "Her face on the court card.")
+A("j-poster", "J-Poster", "J-Poster", "templates", "edit", "Your photo",
+ "A Japanese-style graphic poster of you.",
+ "A Japanese-style poster featuring the person from <ref_image_0>: bold red and black graphic design, vertical typography, rising-sun rays, print texture." + KEEP_FACE,
+ [], MAN, {}, "Bold graphic poster with his face.")
+A("mascot", "Mascot", "Mascot", "templates", "edit", "Your photo",
+ "You in a football club mascot costume on the pitch.",
+ "The person from <ref_image_0> in a full football club mascot costume: an oversized foam head of a {animal} held under one arm, team colors, standing on a stadium pitch, "
+ "the crowd behind." + KEEP_FACE,
+ [sel("animal", "Mascot", [("Lion", "lion"), ("Eagle", "eagle"), ("Bulldog", "bulldog"), ("Bear", "bear")])],
+ MAN, {}, "Mascot suit, foam head under the arm, his face visible.")
+A("burning-sunset", "Burning Sunset", "Burning Sunset", "templates", "edit", "Your photo",
+ "Your scene under a blazing sunset sky.",
+ "The scene from <ref_image_0> under a blazing sunset: the sky on fire with orange and crimson clouds, long shadows, warm light on everything, composition unchanged.",
+ [], LAKE, {}, "Same lake, fiery sky.")
+A("comic-book", "Comic Book", "Comic Book", "templates", "edit", "Your photo",
+ "Your photo as a comic book panel: ink lines, halftone, a caption box.",
+ "The photo from <ref_image_0> as a comic book panel: bold ink outlines, halftone dots, flat colors, an action caption box, dynamic framing.",
+ [], SCENE, {}, "Inked panel with halftone.")
+A("giallo", "Giallo Horror", "Giallo Horror", "templates", "edit", "Your photo",
+ "A 1970s Italian giallo film still: red and blue gels, deep shadows, no blood.",
+ "The person from <ref_image_0> in a 1970s Italian giallo film still: saturated red and blue gel lighting, deep shadows, a gloved hand at the edge of the frame, "
+ "film grain. No blood, no wounds." + KEEP_FACE,
+ [], WOMAN, {}, "Gel lighting and grain; nothing gory.")
+A("renaissance", "Renaissance", "Renaissance", "templates", "edit", "Your photo",
+ "You as a Renaissance oil painting in a gilded museum frame.",
+ "The person from <ref_image_0> as a Renaissance oil painting: chiaroscuro light, period clothing, cracked varnish, in an ornate gilded frame on a museum wall." + KEEP_FACE,
+ [], MAN, {}, "Oil painting in a frame, same face.")
+A("japanese-show", "Japanese Show", "Japanese Show", "templates", "edit", "Your photo",
+ "You on a retro Japanese TV variety show, 4-panel screen.",
+ "The person from <ref_image_0> on a retro Japanese TV variety show: a 4-panel screen layout, bright studio set, colorful caption text overlays, 1990s broadcast look." + KEEP_FACE,
+ [], WOMAN, {}, "Four panels, TV captions.")
+A("breakdown", "Breakdown", "Breakdown", "templates", "edit", "Your photo",
+ "The subject of your photo taken apart into labeled components, knolling style.",
+ "The subject of <ref_image_0> taken apart into its components, laid out neatly on a grid with small labels, knolling photography, top-down, white background.",
+ [], SNEAKER, {}, "Sole, laces, upper laid out on a grid.")
+A("edit-text", "Edit Text", "Edit Text", "templates", "edit", "Image with text",
+ "Replaces the text written in an image, keeping the font and perspective.",
+ "Replace the text \"{old}\" with \"{new}\" in <ref_image_0>, keeping the same font, color, size and perspective; nothing else changes.",
+ [txt("old", "Text to replace", required=True), txt("new", "New text", required=True)],
+ "ref-tpl-sign", {"old": "OPEN", "new": "CLOSED"}, "The sign now reads CLOSED in the same style.")
+A("image-effects", "Image Effects", "Image Effects", "templates", "edit", "Your photo",
+ "Ten effects for a photo: glitch, double exposure, neon, sketch, watercolor and more.",
+ "Apply a {effect} effect to the photo from <ref_image_0>; keep the composition.",
+ [sel("effect", "Effect", [("Glitch", "glitch distortion with RGB split"), ("Double exposure", "double exposure with a forest"), ("Neon outline", "neon outline glow"),
+ ("Pencil sketch", "pencil sketch"), ("Watercolor", "watercolor painting"), ("Pop art", "pop art screen print"), ("Vintage film", "vintage faded film"),
+ ("Infrared", "infrared false-color"), ("Anaglyph 3D", "anaglyph 3D"), ("Thermal camera", "thermal camera")])],
+ SCENE, {"effect": "glitch distortion with RGB split"}, "RGB split and glitch bands over the cafe.")
+A("color-grade", "Color Grade", "Color Grading", "templates", "edit", "Your photo",
+ "Six color grades for a photo: teal and orange, vintage film, noir, pastel, B&W, golden hour.",
+ "Color grade the photo from <ref_image_0> with a {look} look; keep every detail and the composition.",
+ [sel("look", "Look", [("Teal and orange", "teal and orange blockbuster"), ("Warm vintage film", "warm vintage film"), ("Cold noir", "cold desaturated noir"),
+ ("Pastel", "soft pastel"), ("High-contrast B&W", "high-contrast black and white"), ("Golden hour", "golden hour glow")])],
+ SCENE, {"look": "teal and orange blockbuster"}, "Only the colors change.")
+
+
+def check() -> None:
+ ids = [t["id"] for t in T]
+ assert len(ids) == len(set(ids)), "duplicate ids"
+ store = (ROOT / "web" / "js" / "catalog.js").read_text(encoding="utf-8")
+ missing = [i for i in ids if f'"{i}"' not in store]
+ assert not missing, f"not in web/js/catalog.js CATEGORIES: {missing}"
+ existing = {p.name for p in (ROOT / "apps").iterdir() if p.is_dir()}
+ for t in T:
+ assert re.fullmatch(r"[a-z0-9]+(-[a-z0-9]+)*", t["id"]), t["id"]
+ assert t["id"] not in existing or (ROOT / "apps" / t["id"] / "app.json").exists() and "tools/template_apps.py" in (ROOT / "apps" / t["id"] / "app.json").read_text(encoding="utf-8"), f"{t['id']} is a hand-made app"
+ assert len(t["name"]) <= 40 and len(t["summary"]) <= 160, t["id"]
+ assert t["base"] in BASES, t["id"]
+ used = set(re.findall(r"\{([a-z][a-z0-9_]*)\}", t["prompt"]))
+ have = {i["id"] for i in t["inputs"]}
+ assert used <= have, (t["id"], used - have)
+ assert have <= used, (t["id"], have - used)
+ for i in t["inputs"]:
+ assert i["id"] not in ("image", "details", "steps", "seed", "width", "height"), (t["id"], i["id"])
+ if t["base"] == "z-image":
+ assert t["ref"] is None and t["image_label"] is None
+ else:
+ assert t["ref"], t["id"]
+ for k in t["values"]:
+ assert k in have, (t["id"], k)
+
+
+def manifest(t: dict) -> dict:
+ base = BASES[t["base"]]
+ src = json.loads((ROOT / "apps" / base["app"] / "app.json").read_text(encoding="utf-8"))
+ keep = {i["id"]: i for i in src["inputs"] if i["id"] in base["keep"]}
+ inputs = []
+ if base["image"]:
+ inputs.append({"id": "image", "type": "image", "label": t["image_label"], "required": True, "limits": {"max_mb": 20},
+ "bind": [{"node": base["image"][0], "field": base["image"][1]}]})
+ inputs += t["inputs"]
+ inputs.append({"id": "details", "type": "textarea", "label": "Extra direction", "help": "Added at the end of the app's prompt.",
+ "bind": [{"node": base["prompt"][0], "field": base["prompt"][1], "template": t["prompt"] + " {details}"}]})
+ inputs += [keep[k] for k in base["keep"]]
+ test = {"image": "test/portrait.png"} if base["image"] else {}
+ test.update(t["values"])
+ return {
+ "$schema": "../../schema/app.schema.json",
+ "id": t["id"], "name": t["name"], "section": "image",
+ "summary": t["summary"],
+ "higgsfield_feature": t["feature"],
+ "pack": base["pack"], "status": "ready", "workflow": "workflow.api.json",
+ "source": {**src.get("source", {}), "notes": f"Template app written by tools/template_apps.py: the workflow is apps/{base['app']}'s "
+ f"(built by tools/build_apps.py) and the prompt below is fixed; \"Extra direction\" is appended to it."},
+ "inputs": inputs,
+ "outputs": [{**base["output"], "label": "Result"}],
+ "models": src["models"],
+ "credits": src.get("credits", []),
+ "test": test,
+ }
+
+
+def cases() -> list[str]:
+ j = lambda o: json.dumps(o, ensure_ascii=False) # noqa: E731
+ lines = []
+ for rid, (prompt, w, h, note) in REFS.items():
+ lines.append(f' {{"id": "{rid}", "app": "z-image", "values": {j({"prompt": prompt, "width": w, "height": h})},\n "note": {j(note)}}},')
+ lines.append("")
+ for t in T:
+ vals = ({"image": f"@case:{t['ref']}"} if t["ref"] else {}) | t["values"]
+ note = j(f"{t['feature']}. {t['note']}")
+ lines.append(f' {{"id": "tpl-{t["id"]}", "showcase": true, "app": "{t["id"]}", "values": {j(vals)},\n'
+ f' "note": {note}}},')
+ lines[-1] = lines[-1].rstrip(",")
+ return lines
+
+
+def write_cases() -> int:
+ path = ROOT / "lab" / "cases.json"
+ text = path.read_text(encoding="utf-8")
+ marker = "\n ]\n}\n"
+ assert text.endswith(marker), repr(text[-40:])
+ start = text.find(' {"id": "ref-tpl-')
+ if start >= 0: # the template section is the last one: replace it
+ body = text[:start].rstrip()
+ assert body.endswith(","), body[-60:]
+ body = body[:-1]
+ else:
+ body = text[: -len(marker)]
+ new = body + ",\n\n" + "\n".join(cases()) + marker
+ data = json.loads(new)
+ path.write_text(new, encoding="utf-8")
+ return len(data["cases"])
+
+
+def readme() -> str:
+ rows = ["| App | Rebuilds | Base | Inputs |", "|---|---|---|---|"]
+ for t in T:
+ extra = ", ".join(i["label"].lower() for i in t["inputs"])
+ rows.append(f"| `{t['id']}` | {t['feature']} | `{BASES[t['base']]['app']}` | {t['image_label'].lower() + (', ' if extra else '') if t['image_label'] else ''}{extra} |")
+ return "\n".join(rows)
+
+
+def main(argv=None) -> int:
+ ap = argparse.ArgumentParser(description=__doc__.splitlines()[0])
+ ap.add_argument("--check", action="store_true")
+ ap.add_argument("--readme", action="store_true")
+ ap.add_argument("--lab", action="store_true")
+ a = ap.parse_args(argv)
+ check()
+ if a.readme:
+ print(readme())
+ return 0
+ if a.lab:
+ print("modal run --detach lab/lab_modal.py --only " + ",".join(f"tpl-{t['id']}" for t in T) + " --shards 2")
+ return 0
+ if a.check:
+ print(f"{len(T)} template apps ok")
+ return 0
+ for t in T:
+ d = ROOT / "apps" / t["id"]
+ d.mkdir(parents=True, exist_ok=True)
+ (d / "app.json").write_text(json.dumps(manifest(t), indent=2, ensure_ascii=False) + "\n", encoding="utf-8")
+ wf = (ROOT / "apps" / BASES[t["base"]]["app"] / "workflow.api.json").read_text(encoding="utf-8")
+ (d / "workflow.api.json").write_text(wf, encoding="utf-8")
+ print(f"apps/: {len(T)} template apps written")
+ print(f"lab/cases.json: {write_cases()} cases")
+ return 0
+
+
+if __name__ == "__main__":
+ sys.exit(main())
diff --git a/web/app.css b/web/app.css
new file mode 100644
index 0000000..4fc2d88
--- /dev/null
+++ b/web/app.css
@@ -0,0 +1,577 @@
+/* Freefield web UI. Dark studio: near-black canvas, dark rounded cards, one lime accent,
+ wide uppercase display type. Fonts are self-hosted (web/fonts, SIL OFL). */
+@font-face { font-family: "Archivo Variable"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
+ src: url(fonts/archivo.woff2) format("woff2-variations"); }
+@font-face { font-family: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
+ src: url(fonts/inter.woff2) format("woff2-variations"); }
+
+:root {
+ --bg: #09090a; --bg-2: #0f0f11; --panel: #151517; --panel-2: #1b1b1e; --panel-3: #232327;
+ --line: #222226; --line-2: #2e2e33; --ink: #f4f4f2; --dim: #9b9ba3; --faint: #66666e;
+ --accent: #e8ff5a; --accent-ink: #11140a; --accent-soft: rgba(232, 255, 90, .12);
+ --violet: #b49cff; --pink: #ff5c9d; --bad: #ff6b5e; --ok: #8fe07c; --warn: #ffc65c;
+ --r-sm: 8px; --r: 12px; --r-lg: 16px; --r-xl: 22px;
+ --top: 56px;
+ --font: "Inter Variable", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
+ --display: "Archivo Variable", "Archivo", "Inter Variable", system-ui, sans-serif;
+ --ease: cubic-bezier(.2, .7, .2, 1);
+ color-scheme: dark;
+}
+* { box-sizing: border-box; }
+html { background: var(--bg); }
+body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.45 var(--font); -webkit-font-smoothing: antialiased; min-height: 100vh; }
+[hidden] { display: none !important; }
+a { color: inherit; text-decoration: none; }
+button { font: inherit; color: inherit; }
+img, video { display: block; max-width: 100%; }
+:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
+::selection { background: var(--accent); color: var(--accent-ink); }
+.display { font-family: var(--display); font-weight: 800; font-stretch: 118%; text-transform: uppercase; letter-spacing: -.01em; line-height: .95; }
+.dim { color: var(--dim); } .faint { color: var(--faint); }
+.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
+svg.i { width: 1em; height: 1em; flex: none; }
+::-webkit-scrollbar { width: 10px; height: 10px; }
+::-webkit-scrollbar-thumb { background: #2a2a2f; border-radius: 10px; border: 2px solid var(--bg); }
+::-webkit-scrollbar-track { background: transparent; }
+
+/* ------------------------------------------------------------------ top bar */
+.topbar { position: sticky; top: 0; z-index: 40; height: var(--top); display: flex; align-items: center; gap: 18px;
+ padding: 0 18px; background: rgba(9, 9, 10, .86); backdrop-filter: blur(14px); border-bottom: 1px solid #161618; }
+.logo { display: flex; align-items: center; gap: 9px; font-weight: 700; letter-spacing: -.02em; font-size: 16px; flex: none; }
+.logo .mark { width: 26px; height: 26px; }
+.nav-main { display: flex; align-items: center; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
+.nav-main::-webkit-scrollbar { display: none; }
+.nav-main a { display: flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 9px; color: #c9c9cf; font-weight: 500; font-size: 13.5px; white-space: nowrap; }
+.nav-main a:hover { color: var(--ink); background: #141416; }
+.nav-main a[aria-current="page"] { color: var(--accent); }
+.nav-main .sep { width: 1px; height: 18px; background: var(--line-2); margin: 0 6px; flex: none; }
+.tag { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 5px; font-size: 10.5px; font-weight: 700;
+ letter-spacing: .02em; background: var(--accent); color: var(--accent-ink); white-space: nowrap; }
+.tag.violet { background: var(--violet); color: #160f2b; }
+.tag.pink { background: var(--pink); color: #2b0716; }
+.tag.ghost { background: transparent; color: var(--dim); box-shadow: inset 0 0 0 1px var(--line-2); }
+.tag.dark { background: rgba(0, 0, 0, .55); color: var(--ink); backdrop-filter: blur(6px); }
+.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }
+.icon-btn.menu-btn { display: none; }
+.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 0; background: transparent; color: #c9c9cf; cursor: pointer; font-size: 17px; }
+.icon-btn:hover { background: #18181b; color: var(--ink); }
+.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 10px; border: 0;
+ background: var(--panel-2); color: var(--ink); font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .15s, transform .1s; }
+.btn:hover { background: var(--panel-3); }
+.btn:active { transform: translateY(1px); }
+.btn.lime { background: var(--accent); color: var(--accent-ink); }
+.btn.lime:hover { background: #f1ff8a; }
+.btn.white { background: #f4f4f2; color: #0b0b0c; }
+.btn.white:hover { background: #fff; }
+.btn.ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
+.btn.ghost:hover { background: #141416; }
+.btn.small { height: 30px; padding: 0 11px; font-size: 13px; border-radius: 9px; }
+.btn.danger:hover { color: var(--bad); }
+.btn:disabled { opacity: .45; cursor: not-allowed; }
+.gpu { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2);
+ background: #111113; color: #d4d4d8; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
+.gpu:hover { border-color: #3a3a40; }
+.gpu .dot { width: 8px; height: 8px; border-radius: 50%; background: #5b5b63; flex: none; }
+.gpu.warm .dot { background: var(--accent); box-shadow: 0 0 0 4px rgba(232, 255, 90, .14); }
+.gpu.waking .dot { background: var(--warn); animation: pulse 1.1s infinite; }
+.gpu.error .dot, .gpu.off .dot { background: var(--bad); }
+@keyframes pulse { 50% { opacity: .35; } }
+
+/* ------------------------------------------------------------------ shared bits */
+.view { min-height: calc(100vh - var(--top)); }
+.page { padding: 26px 22px 80px; max-width: 1480px; margin: 0 auto; }
+.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 38px 0 14px; }
+.sec-head h2 { margin: 0; font-size: 26px; }
+.sec-head p { margin: 6px 0 0; color: var(--dim); font-size: 13px; }
+.more { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); font-weight: 600; font-size: 13px; white-space: nowrap; }
+.more:hover { color: var(--accent); }
+.pill-link { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 999px; background: var(--panel-2); font-weight: 600; font-size: 13px; }
+.pill-link:hover { background: var(--panel-3); }
+.pills { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
+.pills::-webkit-scrollbar { display: none; }
+.pills button { flex: none; height: 32px; padding: 0 14px; border-radius: 9px; border: 0; background: transparent; color: #bdbdc4; font-weight: 600; font-size: 13px; cursor: pointer; }
+.pills button:hover { color: var(--ink); background: #141416; }
+.pills button[aria-pressed="true"] { background: var(--panel-3); color: var(--ink); }
+.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: #111113; border: 1px solid #1c1c1f; width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
+.tabs button { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 9px; border: 0; background: transparent;
+ color: #aeaeb6; font-weight: 600; font-size: 12.5px; cursor: pointer; white-space: nowrap; }
+.tabs button:hover { color: var(--ink); }
+.tabs button[aria-selected="true"] { background: #232327; color: var(--ink); }
+.empty { color: var(--dim); text-align: center; padding: 40px 16px; }
+img.alpha, .alpha img { background: repeating-conic-gradient(#202024 0% 25%, #141416 0% 50%) 50% / 16px 16px; }
+.wave { background: radial-gradient(120% 140% at 50% 120%, #1d2210, #0d0d0f 70%); }
+.kbd { font: 600 11px var(--font); padding: 1px 5px; border-radius: 5px; background: #1f1f23; color: var(--dim); }
+pre.code { margin: 0; padding: 12px 14px; border-radius: 10px; background: #0d0d0f; border: 1px solid var(--line); overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #d6d6dc; }
+.toast-host { position: fixed; left: 50%; top: calc(var(--top) + 12px); transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; pointer-events: none; justify-items: center; }
+.toast { pointer-events: auto; background: #1d1d20; border: 1px solid var(--line-2); color: var(--ink); padding: 10px 14px; border-radius: 12px; font-size: 13px;
+ box-shadow: 0 12px 40px rgba(0, 0, 0, .5); max-width: min(560px, calc(100vw - 32px)); white-space: pre-wrap; animation: rise .25s var(--ease); }
+.toast.err { border-color: rgba(255, 107, 94, .5); }
+@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
+
+/* media tiles: a card that plays its loop on hover or when visible */
+.media { position: relative; overflow: hidden; background: #0d0d0f; }
+.media > img, .media > video { width: 100%; height: 100%; object-fit: cover; }
+.media > img.contain { object-fit: contain; }
+.media .badges { position: absolute; left: 10px; bottom: 10px; display: flex; gap: 5px; flex-wrap: wrap; }
+.media .badges.top { top: 10px; bottom: auto; }
+.media .typeicon { position: absolute; right: 10px; top: 10px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px;
+ background: rgba(0, 0, 0, .5); backdrop-filter: blur(6px); color: #fff; font-size: 13px; }
+
+/* masonry: columns built in JS so the newest item stays first in reading order */
+.masonry { display: flex; gap: 12px; align-items: flex-start; }
+.masonry > .col { flex: 1 1 0; min-width: 0; display: grid; gap: 12px; }
+
+/* ------------------------------------------------------------------ explore */
+.hero-wrap { position: relative; margin: 0 -22px; }
+.hero-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 31%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
+ padding: 0 22px; scroll-padding: 0 22px; scrollbar-width: none; }
+.hero-row::-webkit-scrollbar { display: none; }
+.hero-card { position: relative; scroll-snap-align: start; aspect-ratio: 16 / 11; border-radius: var(--r-xl); overflow: hidden; background: #111; cursor: pointer; isolation: isolate; }
+.hero-card .media { position: absolute; inset: 0; }
+.hero-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .78)); z-index: 1; pointer-events: none; }
+.hero-card .txt { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; }
+.hero-card h3 { margin: 8px 0 6px; font-size: clamp(20px, 1.9vw, 28px); }
+.hero-card p { margin: 0; color: #d0d0d6; font-size: 13px; max-width: 46ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
+.hero-card .media > video, .hero-card .media > img { transition: transform .6s var(--ease); }
+.hero-card:hover .media > video, .hero-card:hover .media > img { transform: scale(1.03); }
+.hero-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
+ background: rgba(20, 20, 22, .82); color: #fff; display: grid; place-items: center; font-size: 18px; backdrop-filter: blur(8px); }
+.hero-nav.prev { left: 30px; } .hero-nav.next { right: 30px; }
+.hero-nav:hover { background: #2a2a2e; }
+.promo { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(0, 2fr); gap: 14px; margin-top: 14px; }
+.promo-lead { border-radius: var(--r-xl); padding: 26px; background: radial-gradient(140% 100% at 0% 0%, #1f2a06 0%, #121314 55%); border: 1px solid #1e1f1a;
+ display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 280px; }
+.promo-lead h2 { margin: 0; font-size: clamp(28px, 3vw, 42px); }
+.promo-lead h2 em { font-style: normal; color: var(--accent); }
+.promo-lead p { margin: 0; color: #bdbdc4; max-width: 42ch; }
+.promo-lead .row { display: flex; gap: 8px; flex-wrap: wrap; }
+.tiles6 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
+.tile6 { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: var(--r-lg); background: var(--panel); border: 1px solid #1d1d20; cursor: pointer;
+ transition: border-color .15s, background .15s; min-height: 132px; }
+.tile6:hover { border-color: #34343a; background: #18181b; }
+.tile6 .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: #202024; color: var(--accent); font-size: 19px; }
+.tile6 .t { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
+.tile6 p { margin: 0; color: var(--dim); font-size: 13px; }
+.m-item { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--panel); cursor: pointer; }
+.m-item .media > img, .m-item .media > video { height: auto; }
+.m-item .media.audio { aspect-ratio: 4 / 3; display: grid; place-items: center; }
+.m-item .media.audio > img { height: auto; object-fit: contain; padding: 0 12px; }
+.m-item .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 10px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .75));
+ display: flex; align-items: center; justify-content: space-between; gap: 8px; opacity: 0; transition: opacity .2s; font-size: 13px; font-weight: 600; }
+.m-item:hover .cap, .m-item:focus-visible .cap { opacity: 1; }
+.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
+.how > div { padding: 18px; border-radius: var(--r-lg); background: var(--panel); border: 1px solid #1d1d20; }
+.how h3 { margin: 10px 0 6px; font-size: 15px; }
+.how p { margin: 0; color: var(--dim); font-size: 13px; }
+.how .n { font-family: var(--display); font-weight: 800; font-stretch: 118%; color: var(--accent); font-size: 22px; }
+
+/* ------------------------------------------------------------------ apps page */
+.apps-head { display: grid; gap: 14px; padding-top: 8px; }
+.apps-head .ic { width: 34px; height: 34px; color: var(--ink); font-size: 26px; }
+.apps-head h1 { margin: 0; font-size: clamp(32px, 4.4vw, 58px); }
+.apps-head h1 em { font-style: normal; color: var(--accent); }
+.apps-head p { margin: 0; color: var(--dim); }
+.apps-bar { display: flex; gap: 10px; align-items: center; margin-top: 8px; flex-wrap: wrap; min-width: 0; }
+.apps-bar .pills { flex: 1 1 320px; min-width: 0; }
+.search { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 10px; background: var(--panel); border: 1px solid #1f1f22; width: min(260px, 100%); flex: none; color: var(--dim); }
+.search input { border: 0; background: transparent; color: var(--ink); font: inherit; width: 100%; outline: none; }
+.app-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 14px; }
+.app-card { display: flex; flex-direction: column; gap: 10px; padding: 8px 8px 12px; border-radius: var(--r-lg); background: var(--panel); border: 1px solid #1c1c1f; cursor: pointer;
+ transition: border-color .15s, background .15s; min-width: 0; }
+.app-card:hover { border-color: #33333a; background: #18181b; }
+.app-card .media { aspect-ratio: 1 / 1; border-radius: 11px; }
+.app-card .media.audio > img { object-fit: contain; padding: 0 10px; }
+.app-card .media .placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: #3a3a40; font-size: 40px; }
+.app-card h3 { margin: 0 4px; font-size: 14px; font-weight: 700; }
+.app-card p { margin: 0 4px; color: var(--dim); font-size: 12.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 35px; }
+.app-card .btn { margin: auto 4px 0; height: 32px; border-radius: 9px; font-size: 12.5px; }
+
+/* ------------------------------------------------------------------ workspace */
+.ws { display: grid; min-height: calc(100vh - var(--top)); }
+.ws.l-sidebar { grid-template-columns: 340px minmax(0, 1fr); }
+.ws-main { min-width: 0; padding: 14px 20px 40px; display: flex; flex-direction: column; gap: 14px; }
+.ws.l-composer .ws-main { padding-bottom: 230px; }
+.ws-top { display: flex; align-items: center; gap: 10px; justify-content: space-between; flex-wrap: wrap; }
+.ws-top .right { display: flex; gap: 6px; align-items: center; }
+.feed-empty { flex: 1; display: grid; place-items: center; text-align: center; padding: 40px 16px 20px; position: relative; isolation: isolate; min-height: 46vh; }
+.feed-empty::before { content: ""; position: absolute; left: 50%; top: 48%; width: min(720px, 90vw); height: 360px; transform: translate(-50%, -50%); z-index: -1;
+ background: radial-gradient(closest-side, rgba(70, 140, 130, .22), rgba(70, 140, 130, 0)); filter: blur(10px); }
+.feed-empty .glass { width: 74px; height: 74px; margin: 0 auto 22px; border-radius: 22px; display: grid; place-items: center;
+ background: linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .03)); border: 1px solid rgba(255, 255, 255, .14);
+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 20px 50px rgba(0, 0, 0, .5); backdrop-filter: blur(10px); }
+.feed-empty .glass svg { width: 40px; height: 40px; }
+.feed-empty h2 { margin: 0; font-size: clamp(30px, 4vw, 52px); }
+.feed-empty h2 span { display: block; color: #7d7d86; }
+.feed-empty p { margin: 14px auto 0; color: var(--dim); max-width: 52ch; }
+.feed-empty .ex { margin: 26px auto 0; display: inline-flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; border-radius: 14px; background: rgba(21, 21, 23, .8);
+ border: 1px solid var(--line); cursor: pointer; text-align: left; }
+.feed-empty .ex:hover { border-color: #3a3a40; }
+.feed-empty .ex .media { width: 54px; height: 54px; border-radius: 9px; flex: none; }
+.feed-empty .ex b { display: block; font-size: 13px; }
+.feed-empty .ex small { color: var(--dim); font-size: 12px; }
+.feed { min-width: 0; }
+.feed.dense .masonry > .col, .feed.dense .masonry { gap: 8px; }
+
+/* result card */
+.rcard { position: relative; border-radius: var(--r); overflow: hidden; background: var(--panel); cursor: pointer; min-height: 60px; }
+.rcard .media > img, .rcard .media > video { height: auto; }
+.rcard .media.audio { aspect-ratio: 16 / 9; display: grid; place-items: center; }
+.rcard .media.audio > img { height: auto; object-fit: contain; padding: 0 14px; }
+.rcard .ov { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 8px; opacity: 0; transition: opacity .15s;
+ background: linear-gradient(180deg, rgba(0, 0, 0, .55), transparent 30%, transparent 62%, rgba(0, 0, 0, .7)); }
+.rcard:hover .ov, .rcard:focus-within .ov { opacity: 1; }
+.rcard .ov .row { display: flex; gap: 6px; align-items: center; justify-content: space-between; }
+.rcard .ov .acts { display: flex; gap: 4px; }
+.rcard .ov .meta { font-size: 12px; color: #e3e3e8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
+.mini { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; border: 0; background: rgba(15, 15, 17, .75); color: #fff; cursor: pointer;
+ backdrop-filter: blur(8px); font-size: 14px; }
+.mini:hover { background: rgba(40, 40, 44, .9); }
+.mini.lime { background: var(--accent); color: var(--accent-ink); }
+.rcard.pending { aspect-ratio: 1 / 1; background: #121214; cursor: default; }
+.rcard.pending.video { aspect-ratio: 16 / 9; }
+.rcard.pending .shimmer { position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .05) 50%, transparent 70%) #121214;
+ background-size: 220% 100%; animation: shimmer 1.6s linear infinite; }
+.rcard.pending > img.preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.8); opacity: .85; }
+@keyframes shimmer { to { background-position: -120% 0; } }
+.rcard.pending .state { position: absolute; left: 12px; right: 12px; bottom: 12px; display: grid; gap: 8px; z-index: 2; }
+.rcard.pending .state b { font-size: 13px; }
+.rcard.pending .state small { color: var(--dim); font-size: 12px; }
+.bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .1); overflow: hidden; }
+.bar > i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 4px; transition: width .4s var(--ease); }
+.bar.indet > i { width: 35%; animation: indet 1.3s ease-in-out infinite; }
+@keyframes indet { from { transform: translateX(-100%); } to { transform: translateX(290%); } }
+.rcard.pending .stop { position: absolute; right: 8px; top: 8px; z-index: 2; }
+.rcard.failed { background: #1a1112; border: 1px solid rgba(255, 107, 94, .25); padding: 14px; display: grid; gap: 10px; cursor: default; }
+.rcard.failed b { color: var(--bad); font-size: 13px; }
+.rcard.failed pre { margin: 0; white-space: pre-wrap; font: 12px/1.45 ui-monospace, Menlo, Consolas, monospace; color: #e6c8c5; max-height: 180px; overflow: auto; }
+.rcard.failed .row { display: flex; gap: 6px; }
+
+/* composer: the floating prompt bar */
+.composer { position: fixed; z-index: 30; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(940px, calc(100% - 32px));
+ background: rgba(24, 24, 27, .92); border: 1px solid #2c2c31; border-radius: 22px; padding: 12px; box-shadow: 0 24px 80px rgba(0, 0, 0, .65), inset 0 1px 0 rgba(255, 255, 255, .04);
+ backdrop-filter: blur(18px); display: grid; gap: 10px; }
+.composer.drag { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), 0 24px 80px rgba(0, 0, 0, .65); }
+.cmp-top { display: flex; gap: 10px; align-items: flex-start; padding: 2px 4px 0; }
+.cmp-attach { display: flex; gap: 8px; flex: none; }
+.att { position: relative; width: 56px; height: 56px; border-radius: 11px; overflow: hidden; background: #0f0f11; border: 1px solid #333; flex: none; }
+.att img, .att video { width: 100%; height: 100%; object-fit: cover; }
+.att .x { position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .7); color: #fff; font-size: 11px;
+ display: grid; place-items: center; cursor: pointer; padding: 0; }
+.att .lbl { position: absolute; left: 0; right: 0; bottom: 0; font-size: 9.5px; font-weight: 700; text-align: center; background: rgba(0, 0, 0, .6); padding: 1px 2px;
+ white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
+.att.need { border: 1px dashed #55555c; display: grid; place-items: center; color: #8a8a93; cursor: pointer; background: transparent; font-size: 20px; }
+.att.need:hover { border-color: var(--accent); color: var(--accent); }
+.att.need.missing { border-color: var(--bad); color: var(--bad); animation: shake .35s; }
+@keyframes shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
+.cmp-prompt { flex: 1; min-width: 0; resize: none; border: 0; outline: none; background: transparent; color: var(--ink); font: 15px/1.5 var(--font); padding: 6px 2px;
+ min-height: 48px; max-height: 220px; }
+.cmp-prompt::placeholder { color: #75757e; }
+.cmp-prompt.missing::placeholder { color: var(--bad); }
+.cmp-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
+.cmp-row .grow { flex: 1; }
+.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 11px; border-radius: 11px; border: 0; background: #26262a; color: #e4e4e8;
+ font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; max-width: 260px; }
+.chip:hover { background: #2f2f34; }
+.chip .k { color: #8f8f98; font-weight: 500; }
+.chip .v { overflow: hidden; text-overflow: ellipsis; }
+.chip.square { width: 34px; padding: 0; justify-content: center; font-size: 16px; }
+.chip.model { padding-left: 4px; }
+.chip.model .thumb { width: 26px; height: 26px; border-radius: 8px; overflow: hidden; background: #111; flex: none; }
+.chip.model .thumb img, .chip.model .thumb video { width: 100%; height: 100%; object-fit: cover; }
+.chip.on { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px rgba(232, 255, 90, .35); }
+.chip.filled .k { color: var(--accent); }
+.count { display: inline-flex; align-items: center; height: 34px; border-radius: 11px; background: #26262a; padding: 0 4px; gap: 2px; font-weight: 700; font-size: 13px; }
+.count button { width: 26px; height: 26px; border-radius: 8px; border: 0; background: transparent; color: #c8c8ce; cursor: pointer; font-size: 15px; }
+.count button:hover:not(:disabled) { background: #333338; color: #fff; }
+.count button:disabled { opacity: .35; cursor: default; }
+.count span { min-width: 30px; text-align: center; }
+.count span small { color: var(--faint); font-weight: 600; }
+.generate { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 22px; border-radius: 14px; border: 0; cursor: pointer; background: var(--accent);
+ color: var(--accent-ink); font-family: var(--display); font-weight: 800; font-stretch: 112%; font-size: 15px; letter-spacing: .01em; text-transform: uppercase;
+ transition: background .15s, transform .1s, box-shadow .15s; white-space: nowrap; }
+.generate:hover { background: #f1ff8a; box-shadow: 0 0 0 4px var(--accent-soft); }
+.generate:active { transform: translateY(1px); }
+.generate .cost { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font); font-stretch: 100%; font-weight: 700; font-size: 13px; text-transform: none; opacity: .8; }
+.generate:disabled { background: #34342f; color: #8c8c80; cursor: not-allowed; box-shadow: none; }
+.generate.wide { width: 100%; justify-content: center; height: 50px; }
+.cmp-hint { font-size: 12px; color: var(--dim); padding: 0 6px; }
+.cmp-hint.err { color: var(--bad); }
+
+/* popovers (selects, sliders, seed, model switcher) */
+.pop { position: fixed; z-index: 70; min-width: 220px; max-width: min(380px, calc(100vw - 24px)); max-height: min(440px, calc(100vh - 100px)); overflow: auto;
+ background: #1b1b1e; border: 1px solid #2f2f35; border-radius: 14px; padding: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); animation: rise .14s var(--ease); }
+.pop h4 { margin: 6px 8px 8px; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
+.pop .opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 9px; border: 0; background: transparent; color: #e4e4e8;
+ text-align: left; cursor: pointer; font-size: 13.5px; }
+.pop .opt:hover, .pop .opt:focus-visible { background: #27272b; }
+.pop .opt .chk { margin-left: auto; color: var(--accent); visibility: hidden; }
+.pop .opt[aria-selected="true"] .chk { visibility: visible; }
+.pop .opt .thumb { width: 40px; height: 40px; border-radius: 9px; overflow: hidden; background: #111; flex: none; }
+.pop .opt .thumb img, .pop .opt .thumb video { width: 100%; height: 100%; object-fit: cover; }
+.pop .opt .two { display: grid; min-width: 0; }
+.pop .opt .two small { color: var(--dim); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
+.pop .pad { padding: 8px 10px 10px; display: grid; gap: 10px; }
+.pop textarea, .pop input[type="number"], .pop input[type="text"] { width: 100%; background: #111113; border: 1px solid #2e2e33; color: var(--ink); border-radius: 10px; padding: 8px 10px; font: inherit; }
+.pop textarea { min-height: 120px; resize: vertical; }
+.pop .row { display: flex; gap: 6px; align-items: center; }
+.pop .help { color: var(--dim); font-size: 12px; margin: 0; }
+
+/* ranges and switches */
+.range { display: grid; gap: 6px; }
+.range .top { display: flex; justify-content: space-between; font-size: 13px; }
+.range .top b { font-weight: 700; color: var(--ink); }
+input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: pointer; margin: 0; }
+input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--accent) var(--p, 50%), #333338 var(--p, 50%)); }
+input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: #333338; }
+input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--accent); }
+input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; margin-top: -6px; box-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
+input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: #fff; }
+.switch { position: relative; width: 38px; height: 22px; flex: none; }
+.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
+.switch i { position: absolute; inset: 0; border-radius: 999px; background: #38383e; transition: background .15s; pointer-events: none; }
+.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s var(--ease); }
+.switch input:checked + i { background: var(--accent); }
+.switch input:checked + i::after { transform: translateX(16px); background: #11140a; }
+.switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
+
+/* sidebar layout (video and tools) */
+.side { position: sticky; top: var(--top); height: calc(100vh - var(--top)); display: flex; flex-direction: column; border-right: 1px solid #18181b; background: #0c0c0d; min-width: 0; }
+.side-tabs { display: flex; gap: 2px; padding: 12px 14px 0; border-bottom: 1px solid #18181b; overflow-x: auto; scrollbar-width: none; flex: none; }
+.side-tabs::-webkit-scrollbar { display: none; }
+.side-tabs button { flex: none; height: 36px; padding: 0 8px; border: 0; background: transparent; color: #9a9aa2; font-weight: 600; font-size: 13px; cursor: pointer;
+ border-bottom: 2px solid transparent; margin-bottom: -1px; }
+.side-tabs button:hover { color: var(--ink); }
+.side-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
+.side-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
+.side-scroll > * { flex: none; min-width: 0; }
+.model-card { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 8.5; background: #141416; cursor: pointer; isolation: isolate; flex: none; }
+.model-card .media { position: absolute; inset: 0; }
+.model-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, .72)); z-index: 1; pointer-events: none; }
+.model-card .txt { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2; }
+.model-card .txt h3 { margin: 0; font-size: 20px; color: var(--accent); }
+.model-card .txt p { margin: 3px 0 0; font-size: 12px; color: #d8d8de; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
+.model-card .change { position: absolute; top: 10px; right: 10px; z-index: 2; height: 28px; padding: 0 10px; border-radius: 8px; border: 0; background: rgba(15, 15, 17, .72);
+ color: #fff; font-weight: 600; font-size: 12px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; backdrop-filter: blur(8px); }
+.model-card .change:hover { background: rgba(40, 40, 44, .9); }
+.drop { position: relative; display: grid; place-items: center; align-content: center; text-align: center; gap: 6px; min-height: 132px; padding: 18px; border-radius: 14px; background: #151517;
+ border: 1px dashed #2e2e33; cursor: pointer; transition: border-color .15s, background .15s; }
+.drop:hover, .drop.over { border-color: var(--accent); background: #17180f; }
+.drop.missing { border-color: var(--bad); animation: shake .35s; }
+.drop .ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: #222226; color: #e4e4e8; font-size: 17px; }
+.drop b { font-size: 13.5px; }
+.drop small { color: var(--dim); font-size: 12px; }
+.drop.has { padding: 0; min-height: 0; border-style: solid; border-color: #26262a; overflow: hidden; display: block; }
+.drop.has img, .drop.has video { width: 100%; max-height: 240px; object-fit: contain; background: #0b0b0c; }
+.drop.has audio { width: calc(100% - 16px); margin: 10px 8px; }
+.drop .bar2 { position: absolute; top: 8px; right: 8px; display: flex; gap: 4px; }
+.drop .fname { position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px); font-size: 11.5px; padding: 3px 7px; border-radius: 6px; background: rgba(0, 0, 0, .6);
+ white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
+.field { display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: #151517; border: 1px solid #1d1d20; }
+.field > .lbl { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 600; color: #e4e4e8; }
+.field > .lbl small { color: var(--faint); font-weight: 500; }
+.field textarea { width: 100%; min-height: 96px; resize: vertical; border: 0; outline: none; background: transparent; color: var(--ink); font: 14px/1.5 var(--font); padding: 0; }
+.field textarea.short { min-height: 56px; }
+.field textarea::placeholder { color: #6e6e77; }
+.field textarea.missing::placeholder { color: var(--bad); }
+.field input[type="text"], .field input[type="number"] { width: 100%; background: #0f0f11; border: 1px solid #2a2a2f; color: var(--ink); border-radius: 10px; padding: 8px 10px; font: inherit; }
+.field .help { margin: 0; color: var(--dim); font-size: 12px; }
+.seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 3px; border-radius: 11px; background: #0f0f11; }
+.seg button { flex: 1 1 auto; min-width: 0; min-height: 30px; padding: 6px 10px; border: 0; border-radius: 8px; background: transparent; color: #a9a9b1; font-weight: 600; font-size: 12.5px; cursor: pointer; line-height: 1.25; }
+.seg button:hover { color: var(--ink); }
+.seg button[aria-pressed="true"] { background: #2a2a2f; color: var(--ink); }
+.selrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; height: 40px; padding: 0 12px; border-radius: 11px; border: 0;
+ background: #0f0f11; color: var(--ink); cursor: pointer; font-size: 13.5px; }
+.selrow:hover { background: #18181b; }
+.selrow .v { display: flex; align-items: center; gap: 6px; color: #d8d8de; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
+.togrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
+.togrow .t { display: grid; }
+.togrow .t small { color: var(--dim); font-size: 12px; }
+details.adv { border-radius: 14px; background: #151517; border: 1px solid #1d1d20; }
+details.adv > summary { list-style: none; cursor: pointer; padding: 12px; font-weight: 600; font-size: 13px; display: flex; align-items: center; justify-content: space-between; }
+details.adv > summary::-webkit-details-marker { display: none; }
+details.adv[open] > summary .i-chev { transform: rotate(180deg); }
+details.adv > .in { padding: 0 12px 12px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
+details.adv > .in > .field { background: #111113; }
+.side-foot { flex: none; padding: 12px 14px 14px; border-top: 1px solid #18181b; display: grid; gap: 8px; background: #0c0c0d; }
+.side-foot .row { display: flex; gap: 8px; align-items: center; }
+.side-foot .row .generate { flex: 1; min-width: 0; justify-content: center; padding: 0 14px; }
+.side-note { margin: 0; font-size: 12px; color: var(--dim); text-align: center; }
+.side-note.err { color: var(--bad); text-align: left; white-space: pre-wrap; }
+
+/* workspace hero (empty history) */
+.ws-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: center; padding: 22px; border-radius: var(--r-xl);
+ background: radial-gradient(120% 140% at 0% 0%, #1a1d12 0%, #111113 60%); border: 1px solid #1d1e1a; }
+.ws-hero h1 { margin: 0; font-size: clamp(28px, 3.2vw, 46px); }
+.ws-hero p { margin: 12px 0 0; color: #c2c2c9; max-width: 50ch; }
+.ws-hero .row { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
+.ws-hero .flow { display: flex; gap: 10px; align-items: center; justify-content: flex-end; min-width: 0; }
+.ws-hero .flow .ins { display: grid; gap: 8px; flex: none; width: 26%; }
+.ws-hero .flow .ins .media { border-radius: 10px; aspect-ratio: 1 / 1; }
+.ws-hero .flow .arrow { color: var(--accent); font-size: 20px; flex: none; }
+.ws-hero .flow .out { flex: 1; min-width: 0; border-radius: 14px; overflow: hidden; }
+.ws-hero .flow .out .media { aspect-ratio: 16 / 10; }
+.ws-hero .flow .out .media.audio { display: grid; place-items: center; }
+.ws-hero .flow .out .media.audio > img { height: auto; object-fit: contain; padding: 0 12px; }
+
+/* how it works */
+.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
+.card { padding: 16px; border-radius: var(--r-lg); background: var(--panel); border: 1px solid #1d1d20; display: grid; gap: 10px; align-content: start; }
+.card h3 { margin: 0; font-size: 14px; display: flex; align-items: center; gap: 8px; }
+.card p { margin: 0; color: var(--dim); font-size: 13px; }
+table.models { width: 100%; border-collapse: collapse; font-size: 12.5px; }
+table.models td { padding: 7px 4px; border-top: 1px solid var(--line); vertical-align: top; }
+table.models td:first-child { overflow-wrap: anywhere; }
+table.models td.r { text-align: right; white-space: nowrap; color: var(--dim); }
+.vbar { position: relative; height: 10px; border-radius: 6px; background: #222226; overflow: visible; }
+.vbar > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: linear-gradient(90deg, #6b8a1f, var(--accent)); }
+.vbar > i.whole { background: rgba(255, 255, 255, .14); }
+.vbar > b { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--pink); border-radius: 2px; }
+.vbar > u { position: absolute; top: -6px; bottom: -6px; width: 1px; background: #55555c; }
+.fit { font-size: 12px; font-weight: 700; }
+.fit.ok { color: var(--ok); } .fit.tight { color: var(--warn); } .fit.big { color: var(--violet); }
+
+/* library and examples */
+.ex-big { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 16px; padding: 16px; border-radius: var(--r-xl); background: var(--panel); border: 1px solid #1d1d20; }
+.ex-big .stage { border-radius: 14px; overflow: hidden; background: #0b0b0c; display: grid; place-items: center; min-height: 240px; }
+.ex-big .stage img, .ex-big .stage video { width: 100%; max-height: 70vh; object-fit: contain; }
+.ex-big .stage audio { width: 90%; }
+.ex-big .stage .audio-box { width: 92%; display: grid; gap: 12px; padding: 20px 0; }
+.ex-big .side2 { display: grid; gap: 14px; align-content: start; }
+.ins-row { display: flex; gap: 8px; flex-wrap: wrap; }
+.ins-row figure { margin: 0; width: 92px; display: grid; gap: 4px; }
+.ins-row .media { width: 92px; height: 92px; border-radius: 10px; }
+.ins-row figcaption { font-size: 11.5px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
+dl.vals { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: 13px; }
+dl.vals dt { color: var(--dim); }
+dl.vals dd { margin: 0; overflow-wrap: anywhere; }
+.statline { display: flex; gap: 6px; flex-wrap: wrap; }
+.statline span { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border-radius: 8px; background: #1f1f23; color: #cfcfd6; font-size: 12px; font-weight: 600; }
+
+/* vram map */
+.vtable { display: grid; gap: 6px; }
+.vrow { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr) 140px; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--panel); border: 1px solid #1c1c1f; cursor: pointer; }
+.vrow:hover { border-color: #33333a; }
+.vrow .nm { display: grid; } .vrow .nm small { color: var(--dim); font-size: 12px; }
+.vscale { position: relative; height: 18px; margin: 0 0 4px; font-size: 11px; color: var(--faint); }
+.vscale span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
+.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--dim); }
+.legend i { display: inline-block; width: 18px; height: 8px; border-radius: 4px; vertical-align: middle; margin-right: 6px; }
+
+/* ------------------------------------------------------------------ viewer modal and compare */
+.modal { position: fixed; inset: 0; z-index: 80; background: rgba(5, 5, 6, .9); backdrop-filter: blur(10px); display: grid; grid-template-columns: minmax(0, 1fr) 380px;
+ animation: fade .18s ease; }
+@keyframes fade { from { opacity: 0; } }
+.modal .stage { position: relative; display: grid; place-items: center; padding: 56px 64px; min-width: 0; min-height: 0; }
+.modal .stage img, .modal .stage video { max-width: 100%; max-height: calc(100vh - 112px); object-fit: contain; border-radius: 12px; }
+.modal .stage .audio-box { width: min(720px, 100%); display: grid; gap: 14px; }
+.modal .stage .audio-box img { width: 100%; border-radius: 12px; }
+.modal .stage .audio-box audio { width: 100%; }
+.modal .close { position: absolute; top: 14px; left: 14px; }
+.modal .navb { position: absolute; top: 50%; transform: translateY(-50%); }
+.modal .navb.prev { left: 14px; } .modal .navb.next { right: 14px; }
+.modal .round { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #1d1d20; color: #fff; display: grid; place-items: center; cursor: pointer; font-size: 18px; }
+.modal .round:hover { background: #2c2c30; }
+.modal aside { background: #111113; border-left: 1px solid #1e1e21; padding: 18px; overflow-y: auto; display: grid; gap: 16px; align-content: start; }
+.modal aside .approw { display: flex; align-items: center; gap: 10px; }
+.modal aside .approw .media { width: 38px; height: 38px; border-radius: 10px; flex: none; }
+.modal aside .approw b { display: block; }
+.modal aside .approw small { color: var(--dim); font-size: 12px; }
+.modal aside .prompt { padding: 12px; border-radius: 12px; background: #18181b; border: 1px solid #222226; font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
+.modal aside .acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
+.modal aside .acts .btn { width: 100%; }
+.modal aside .acts .btn.lime { grid-column: 1 / -1; height: 42px; }
+.cmpx { position: fixed; inset: 0; z-index: 85; background: #070708; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; animation: fade .18s ease; }
+.cmpx header { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid #18181b; }
+.cmpx header h2 { margin: 0; font-size: 18px; }
+.cmpx header .grow { flex: 1; }
+.cmpx .panes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px; min-height: 0; }
+.cmpx .pane { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 8px; min-height: 0; border-radius: 16px; background: #0f0f11; border: 1px solid #1c1c1f; padding: 10px; }
+.cmpx .pane .lab { display: flex; align-items: center; gap: 8px; }
+.cmpx .pane .lab input { background: transparent; border: 0; color: var(--ink); font: 700 14px var(--font); width: 100%; outline: none; }
+.cmpx .pane .lab input:focus { box-shadow: 0 1px 0 var(--accent); }
+.cmpx .pane .box { display: grid; place-items: center; min-height: 0; overflow: hidden; border-radius: 10px; background: #0a0a0b; }
+.cmpx .pane .box img, .cmpx .pane .box video { max-width: 100%; max-height: 100%; object-fit: contain; }
+.cmpx .pane .box audio { width: 90%; }
+.cmpx .pane .info { font-size: 12px; color: var(--dim); display: flex; gap: 12px; flex-wrap: wrap; }
+.cmpx .pane .drop { min-height: 100%; height: 100%; width: 100%; }
+.cmpx .wipe { position: relative; margin: 10px; border-radius: 16px; overflow: hidden; background: #0a0a0b; min-height: 0; touch-action: none; cursor: ew-resize; user-select: none; }
+.cmpx .wipe img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
+.cmpx .wipe .handle { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--accent); pointer-events: none; }
+.cmpx .wipe .handle::after { content: "⇆"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%;
+ background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; }
+.cmpx .wipe .tagl, .cmpx .wipe .tagr { position: absolute; top: 12px; padding: 4px 9px; border-radius: 7px; background: rgba(0, 0, 0, .6); font-size: 12px; font-weight: 700; }
+.cmpx .wipe .tagl { left: 12px; } .cmpx .wipe .tagr { right: 12px; }
+.cmpx footer { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid #18181b; }
+.cmpx footer input[type="range"] { flex: 1; }
+.cmpx footer .t { font-variant-numeric: tabular-nums; font-size: 12.5px; color: var(--dim); min-width: 92px; text-align: right; }
+
+/* ------------------------------------------------------------------ responsive */
+@media (max-width: 1180px) {
+ .promo { grid-template-columns: 1fr; }
+ .ws.l-sidebar { grid-template-columns: 300px minmax(0, 1fr); }
+ .hero-row { grid-auto-columns: minmax(300px, 44%); }
+}
+@media (max-width: 900px) {
+ .nav-main .opt-hide { display: none; }
+ .modal { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; overflow-y: auto; }
+ .modal .stage { padding: 56px 12px 12px; }
+ .modal .stage img, .modal .stage video { max-height: 60vh; }
+ .modal aside { border-left: 0; border-top: 1px solid #1e1e21; }
+ .ws-hero { grid-template-columns: 1fr; }
+ .ws-hero .flow { justify-content: flex-start; }
+ .ex-big { grid-template-columns: 1fr; }
+ .vrow { grid-template-columns: 1fr; gap: 8px; }
+}
+@media (max-width: 760px) {
+ :root { --top: 52px; }
+ .topbar { gap: 8px; padding: 0 10px; }
+ .logo .word { display: none; }
+ .nav-right .cta, .nav-right .gpu .lbl-long { display: none; }
+ .nav-main { display: none; }
+ .icon-btn.menu-btn { display: inline-grid; }
+ .ws-top .right { display: none; }
+ .search { width: 100%; }
+ .page { padding: 18px 16px 80px; }
+ .hero-wrap { margin: 0 -16px; }
+ .hero-row { grid-auto-columns: 84%; padding: 0 16px; scroll-padding: 0 16px; }
+ .hero-nav { display: none; }
+ .tiles6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
+ .how { grid-template-columns: 1fr; }
+ .ws.l-sidebar { grid-template-columns: 1fr; }
+ .side { position: static; height: auto; border-right: 0; border-bottom: 1px solid #18181b; }
+ .side-scroll { overflow: visible; }
+ .ws-main { padding: 12px 16px 30px; }
+ .ws.l-composer .ws-main { padding-bottom: 260px; }
+ .composer { bottom: 10px; width: calc(100% - 20px); border-radius: 18px; padding: 10px; }
+ .generate { height: 42px; padding: 0 16px; }
+ .cmp-row .grow { display: none; }
+ .cmp-row .generate { margin-left: auto; }
+ .cmpx .panes { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
+ .app-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
+}
+@media (prefers-reduced-motion: reduce) {
+ *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
+}
+
+/* gallery selects (the effects): a picker of cards and a wall on Explore, each card playing its lab example */
+.pop.wide { max-width: min(640px, calc(100vw - 24px)); max-height: min(560px, calc(100vh - 100px)); }
+.fx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; padding: 2px 6px 8px; }
+.fx-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
+.fx-tile { display: grid; gap: 6px; padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; min-width: 0; }
+.fx-tile .media { aspect-ratio: 3 / 4; border-radius: var(--r); background: var(--panel-3); outline: 2px solid transparent; outline-offset: 2px;
+ transition: outline-color .15s var(--ease); }
+.fx-tile .media .placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: #3a3a40; font-size: 26px; }
+.fx-tile .lbl { font-size: 12.5px; font-weight: 600; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
+.fx-tile:hover .lbl, .fx-tile:focus-visible .lbl, .fx-tile[aria-pressed="true"] .lbl { color: var(--ink); }
+.fx-tile:hover .media { outline-color: var(--line-2); }
+.fx-tile[aria-pressed="true"] .media { outline-color: var(--accent); }
+.fx-wall .fx-tile .media { border-radius: var(--r-lg); }
+.fx-wall .fx-tile .lbl { font-size: 13.5px; color: var(--ink); }
+.fx-cell { position: relative; min-width: 0; }
+.fx-cell > .fx-tile { width: 100%; }
+.fx-cell > .flag, .m-item > .flag { position: absolute; top: 6px; right: 6px; z-index: 2; opacity: 0; transition: opacity .15s var(--ease); }
+.fx-cell:hover > .flag, .fx-cell:focus-within > .flag, .m-item:hover > .flag, .m-item:focus-within > .flag, .flag[aria-pressed="true"] { opacity: 1; }
+.mini.flag[aria-pressed="true"] { background: var(--pink); color: #2b0716; }
+.btn.flag[aria-pressed="true"] { background: var(--pink); color: #2b0716; border-color: transparent; }
+.fx-now { border-radius: var(--r); overflow: hidden; }
+.fx-now .media { aspect-ratio: 4 / 3; }
diff --git a/web/fonts/OFL.txt b/web/fonts/OFL.txt
new file mode 100644
index 0000000..1e283a3
--- /dev/null
+++ b/web/fonts/OFL.txt
@@ -0,0 +1,190 @@
+Archivo (web/fonts/archivo.woff2)
+Copyright 2020 The Archivo Project Authors (https://github.com/Omnibus-Type/Archivo) Archivo-Italic[wdth,wght].ttf: Copyright 2020 The Archivo Project Authors (https://github.com/Omnibus-Type/Archivo)
+
+This Font Software is licensed under the SIL Open Font License, Version 1.1.
+This license is copied below, and is also available with a FAQ at:
+http://scripts.sil.org/OFL
+
+
+-----------------------------------------------------------
+SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
+-----------------------------------------------------------
+
+PREAMBLE
+The goals of the Open Font License (OFL) are to stimulate worldwide
+development of collaborative font projects, to support the font creation
+efforts of academic and linguistic communities, and to provide a free and
+open framework in which fonts may be shared and improved in partnership
+with others.
+
+The OFL allows the licensed fonts to be used, studied, modified and
+redistributed freely as long as they are not sold by themselves. The
+fonts, including any derivative works, can be bundled, embedded,
+redistributed and/or sold with any software provided that any reserved
+names are not used by derivative works. The fonts and derivatives,
+however, cannot be released under any other type of license. The
+requirement for fonts to remain under this license does not apply
+to any document created using the fonts or their derivatives.
+
+DEFINITIONS
+"Font Software" refers to the set of files released by the Copyright
+Holder(s) under this license and clearly marked as such. This may
+include source files, build scripts and documentation.
+
+"Reserved Font Name" refers to any names specified as such after the
+copyright statement(s).
+
+"Original Version" refers to the collection of Font Software components as
+distributed by the Copyright Holder(s).
+
+"Modified Version" refers to any derivative made by adding to, deleting,
+or substituting -- in part or in whole -- any of the components of the
+Original Version, by changing formats or by porting the Font Software to a
+new environment.
+
+"Author" refers to any designer, engineer, programmer, technical
+writer or other person who contributed to the Font Software.
+
+PERMISSION & CONDITIONS
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of the Font Software, to use, study, copy, merge, embed, modify,
+redistribute, and sell modified and unmodified copies of the Font
+Software, subject to the following conditions:
+
+1) Neither the Font Software nor any of its individual components,
+in Original or Modified Versions, may be sold by itself.
+
+2) Original or Modified Versions of the Font Software may be bundled,
+redistributed and/or sold with any software, provided that each copy
+contains the above copyright notice and this license. These can be
+included either as stand-alone text files, human-readable headers or
+in the appropriate machine-readable metadata fields within text or
+binary files as long as those fields can be easily viewed by the user.
+
+3) No Modified Version of the Font Software may use the Reserved Font
+Name(s) unless explicit written permission is granted by the corresponding
+Copyright Holder. This restriction only applies to the primary font name as
+presented to the users.
+
+4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
+Software shall not be used to promote, endorse or advertise any
+Modified Version, except to acknowledge the contribution(s) of the
+Copyright Holder(s) and the Author(s) or with their explicit written
+permission.
+
+5) The Font Software, modified or unmodified, in part or in whole,
+must be distributed entirely under this license, and must not be
+distributed under any other license. The requirement for fonts to
+remain under this license does not apply to any document created
+using the Font Software.
+
+TERMINATION
+This license becomes null and void if any of the above conditions are
+not met.
+
+DISCLAIMER
+THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
+OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
+COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
+DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
+OTHER DEALINGS IN THE FONT SOFTWARE.
+
+-----
+Inter (web/fonts/inter.woff2)
+Copyright 2016 The Inter Project Authors (https://github.com/rsms/inter) Inter-Italic[opsz,wght].ttf: Copyright 2016 The Inter Project Authors (https://github.com/rsms/inter)
+
+This Font Software is licensed under the SIL Open Font License, Version 1.1.
+This license is copied below, and is also available with a FAQ at:
+http://scripts.sil.org/OFL
+
+
+-----------------------------------------------------------
+SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
+-----------------------------------------------------------
+
+PREAMBLE
+The goals of the Open Font License (OFL) are to stimulate worldwide
+development of collaborative font projects, to support the font creation
+efforts of academic and linguistic communities, and to provide a free and
+open framework in which fonts may be shared and improved in partnership
+with others.
+
+The OFL allows the licensed fonts to be used, studied, modified and
+redistributed freely as long as they are not sold by themselves. The
+fonts, including any derivative works, can be bundled, embedded,
+redistributed and/or sold with any software provided that any reserved
+names are not used by derivative works. The fonts and derivatives,
+however, cannot be released under any other type of license. The
+requirement for fonts to remain under this license does not apply
+to any document created using the fonts or their derivatives.
+
+DEFINITIONS
+"Font Software" refers to the set of files released by the Copyright
+Holder(s) under this license and clearly marked as such. This may
+include source files, build scripts and documentation.
+
+"Reserved Font Name" refers to any names specified as such after the
+copyright statement(s).
+
+"Original Version" refers to the collection of Font Software components as
+distributed by the Copyright Holder(s).
+
+"Modified Version" refers to any derivative made by adding to, deleting,
+or substituting -- in part or in whole -- any of the components of the
+Original Version, by changing formats or by porting the Font Software to a
+new environment.
+
+"Author" refers to any designer, engineer, programmer, technical
+writer or other person who contributed to the Font Software.
+
+PERMISSION & CONDITIONS
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of the Font Software, to use, study, copy, merge, embed, modify,
+redistribute, and sell modified and unmodified copies of the Font
+Software, subject to the following conditions:
+
+1) Neither the Font Software nor any of its individual components,
+in Original or Modified Versions, may be sold by itself.
+
+2) Original or Modified Versions of the Font Software may be bundled,
+redistributed and/or sold with any software, provided that each copy
+contains the above copyright notice and this license. These can be
+included either as stand-alone text files, human-readable headers or
+in the appropriate machine-readable metadata fields within text or
+binary files as long as those fields can be easily viewed by the user.
+
+3) No Modified Version of the Font Software may use the Reserved Font
+Name(s) unless explicit written permission is granted by the corresponding
+Copyright Holder. This restriction only applies to the primary font name as
+presented to the users.
+
+4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
+Software shall not be used to promote, endorse or advertise any
+Modified Version, except to acknowledge the contribution(s) of the
+Copyright Holder(s) and the Author(s) or with their explicit written
+permission.
+
+5) The Font Software, modified or unmodified, in part or in whole,
+must be distributed entirely under this license, and must not be
+distributed under any other license. The requirement for fonts to
+remain under this license does not apply to any document created
+using the Font Software.
+
+TERMINATION
+This license becomes null and void if any of the above conditions are
+not met.
+
+DISCLAIMER
+THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
+OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
+COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
+DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
+OTHER DEALINGS IN THE FONT SOFTWARE.
diff --git a/web/fonts/archivo.woff2 b/web/fonts/archivo.woff2
new file mode 100644
index 0000000..e2448d0
Binary files /dev/null and b/web/fonts/archivo.woff2 differ
diff --git a/web/fonts/inter.woff2 b/web/fonts/inter.woff2
new file mode 100644
index 0000000..d15208d
Binary files /dev/null and b/web/fonts/inter.woff2 differ
diff --git a/web/index.html b/web/index.html
index 3256ead..5dbd3f8 100644
--- a/web/index.html
+++ b/web/index.html
@@ -2,302 +2,19 @@
<html lang="en">
<head>
<meta charset="utf-8">
-<meta name="viewport" content="width=device-width, initial-scale=1">
+<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
+<meta name="color-scheme" content="dark">
+<meta name="theme-color" content="#09090a">
<title>Freefield</title>
-<style>
- /* Menu + auto-generated forms + gallery. Everything on screen comes from /api/apps (the app.json files)
- and web/examples/index.json (one lab result per app, written by lab/publish.py). */
- :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); }
- nav button.gallery-tab { border-color: var(--accent); }
- main { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; min-height: calc(100vh - 70px); }
- @media (max-width: 760px) { main { grid-template-columns: 1fr; } }
- [hidden] { display: none !important; }
- #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: 8px; color: var(--ink); cursor: pointer;
- display: grid; grid-template-columns: 72px 1fr; gap: 10px; align-items: start; }
- .item.nothumb { grid-template-columns: 1fr; padding: 10px 12px; }
- .item[aria-current="true"] { border-color: var(--accent); }
- .item .txt { display: grid; gap: 2px; min-width: 0; }
- .item small { color: var(--dim); }
- .thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 7px; background: #000; display: block; }
- .thumb.audio { object-fit: contain; background: #0b0f14; }
- img.alpha { background: repeating-conic-gradient(#232a33 0% 25%, #151a20 0% 50%) 50% / 16px 16px; } /* transparency shows as a checkerboard */
- .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; }
- button.ghost { background: none; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; cursor: pointer; font: inherit; }
- #status { color: var(--dim); min-height: 1.5em; }
- #status.err { color: var(--bad); white-space: pre-wrap; }
- #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); }
- /* example: what the app made in the lab, from which inputs, with which settings */
- .example { max-width: 860px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 12px; display: grid; gap: 10px; }
- .example h3 { margin: 0; font-size: 15px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
- .example h3 small { font-weight: 400; color: var(--dim); }
- .flow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 2fr); gap: 12px; align-items: center; }
- .flow.solo { grid-template-columns: 1fr; }
- @media (max-width: 760px) { .flow { grid-template-columns: 1fr; } .flow .arrow { transform: rotate(90deg); justify-self: center; } }
- .ins { display: grid; gap: 8px; }
- figure { margin: 0; display: grid; gap: 4px; }
- figure img, figure video { width: 100%; border-radius: 8px; background: #000; display: block; }
- figure audio { width: 100%; }
- figcaption { font-size: 12px; color: var(--dim); }
- .arrow { color: var(--accent); font-size: 22px; }
- dl.vals { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; font-size: 13px; }
- dl.vals dt { color: var(--dim); } dl.vals dd { margin: 0; overflow-wrap: anywhere; }
- /* gallery */
- #gallery { padding: 16px max(16px, env(safe-area-inset-right)) 40px max(16px, env(safe-area-inset-left)); display: grid; gap: 14px; align-content: start; }
- #gallery .lead { margin: 0; color: var(--dim); }
- .tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
- .tile { text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 0; overflow: hidden; color: var(--ink); cursor: pointer; display: grid; font: inherit; }
- .tile:hover { border-color: var(--accent); }
- .tile .media { aspect-ratio: 16 / 10; background: #000; display: grid; place-items: center; overflow: hidden; }
- .tile .media img, .tile .media video { width: 100%; height: 100%; object-fit: cover; display: block; }
- .tile .media img.audio { object-fit: contain; padding: 12px; }
- .tile .meta { padding: 10px 12px; display: grid; gap: 4px; }
- .tile .from { display: flex; gap: 6px; align-items: center; color: var(--dim); font-size: 12px; }
- .tile .from img { width: 34px; height: 34px; object-fit: cover; border-radius: 5px; }
- .chips { display: flex; gap: 6px; flex-wrap: wrap; }
- .chips span { font-size: 12px; color: var(--dim); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
- :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
-</style>
+<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect x='1' y='1' width='30' height='30' rx='9' fill='%23e8ff5a'/%3E%3Cpath d='M8 11.5h16M8 16.5h9M8 21.5h12' stroke='%2311140a' stroke-width='3' stroke-linecap='round'/%3E%3Ccircle cx='22.5' cy='16.5' r='1.9' fill='%2311140a'/%3E%3C/svg%3E">
+<link rel="preload" href="fonts/archivo.woff2" as="font" type="font/woff2" crossorigin>
+<link rel="preload" href="fonts/inter.woff2" as="font" type="font/woff2" crossorigin>
+<link rel="stylesheet" href="app.css">
+<!-- Freefield web UI: everything on screen comes from /api/apps (the app.json files), web/examples
+ (one lab result per app) and /api/history (runs started here, kept in out/history). -->
+<script type="module" src="js/main.js"></script>
</head>
<body>
-<header>
- <h1>Freefield</h1>
- <p>Open-source Higgsfield on ComfyUI. Every app is one folder.</p>
- <nav id="sections"></nav>
-</header>
-<main id="main">
- <div id="menu" aria-label="Apps"></div>
- <section id="app" aria-live="polite"><p class="badge">Pick an app</p></section>
-</main>
-<section id="gallery" aria-label="Gallery" hidden></section>
-<script>
-let apps = [], section = "all", current = null, view = "apps";
-
-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 && v !== false) 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");
- const shown = apps.filter(a => a.example).length;
- nav.replaceChildren(
- ...names.map(n => el("button", { "aria-pressed": String(view === "apps" && n === section), onclick: () => { section = n; show("apps"); } }, n)),
- el("button", { class: "gallery-tab", "aria-pressed": String(view === "gallery"), onclick: () => show("gallery") }, `gallery${shown ? ` · ${shown}` : ""}`));
-}
-
-function show(v) {
- view = v;
- document.getElementById("main").hidden = v !== "apps";
- document.getElementById("gallery").hidden = v !== "gallery";
- drawSections();
- if (v === "apps") drawMenu(); else drawGallery();
-}
-
-// 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(" · "))) : "");
-}
-
-// a still or a muted loop for a card; videos play while hovered (menu) or visible (gallery)
-function preview(ex, cls) {
- if (!ex || !(ex.card || ex.poster)) return null;
- if (ex.type === "video" && ex.card) {
- const v = el("video", { class: cls, src: ex.card, poster: ex.poster, loop: "", playsinline: "", preload: "none" });
- v.muted = true;
- return v;
- }
- const src = ex.card || ex.poster;
- const extra = ex.type === "audio" ? " audio" : ex.type === "image" && /\.png$/i.test(src) ? " alpha" : "";
- return el("img", { class: `${cls}${extra}`, src, alt: "", loading: "lazy" });
-}
-const hoverPlay = (node, media) => {
- if (media?.tagName !== "VIDEO") return;
- node.onmouseenter = () => media.play().catch(() => {});
- node.onmouseleave = () => media.pause();
-};
-
-function drawMenu() {
- const list = apps.filter(a => section === "all" || a.section === section);
- document.getElementById("menu").replaceChildren(...list.map(a => {
- const media = preview(a.example, "thumb");
- const item = el("button", { class: `item${media ? "" : " nothumb"}`, "aria-current": String(current?.id === a.id), onclick: () => open(a) },
- media || "", el("span", { class: "txt" }, el("span", { class: "badge" }, `${a.section} · ${a.status}`), el("strong", {}, a.name), el("small", {}, a.summary), fit(a)));
- hoverPlay(item, media);
- return item;
- }));
-}
-
-function media(type, src, poster) {
- if (!src) return poster ? el("img", { src: poster, alt: "" }) : el("span", { class: "badge" }, "missing");
- if (type === "video") return el("video", { src, poster, controls: "", loop: "", playsinline: "", preload: "metadata" });
- if (type === "audio") return el("div", {}, poster ? el("img", { src: poster, alt: "" }) : "", el("audio", { src, controls: "", preload: "none" }));
- return el("img", { src, alt: "", class: /\.png$/i.test(src) ? "alpha" : null });
-}
-
-function exampleBlock(a, form) {
- const ex = a.example;
- if (!ex) return "";
- const labels = Object.fromEntries(a.inputs.map(i => [i.id, i]));
- const ins = (ex.inputs || []).map(i => el("figure", {},
- i.type === "image" || !i.full ? (i.src ? el("img", { src: i.src, alt: "", class: i.type === "image" && /\.png$/i.test(i.src) ? "alpha" : null }) : el("span", { class: "badge" }, String(i.from ?? "upload")))
- : media(i.type, i.full, i.src),
- el("figcaption", {}, i.label)));
- const stats = [ex.seconds != null ? `${Math.round(ex.seconds)} s` : "", ex.gpu ? `on ${ex.gpu.split(",")[0]}` : "",
- ex.peak_vram_gb != null ? `peak ${ex.peak_vram_gb} GB` : ""].filter(Boolean).join(" · ");
- const values = Object.entries(ex.values || {}).filter(([k]) => labels[k] && !["image", "video", "audio"].includes(labels[k].type));
- const use = el("button", { class: "ghost", type: "button", onclick: () => {
- for (const [k, v] of values) {
- const f = form.elements[k]; if (!f) continue;
- if (f.type === "checkbox") f.checked = v === true || v === "true"; else { f.value = String(v); f.dispatchEvent(new Event("input")); }
- }
- } }, "Use these settings");
- return el("section", { class: "example" },
- el("h3", {}, "Example", el("small", {}, [stats, ex.run ? `lab run ${ex.run}` : ""].filter(Boolean).join(" · "))),
- el("div", { class: `flow${ins.length ? "" : " solo"}` }, ins.length ? el("div", { class: "ins" }, ...ins) : "", ins.length ? el("span", { class: "arrow" }, "→") : "",
- el("figure", {}, media(ex.type, ex.full, ex.type === "audio" ? ex.card : ex.poster))),
- values.length ? el("dl", { class: "vals" }, ...values.flatMap(([k, v]) => {
- const opt = (labels[k].options || []).find(o => String(o.value) === String(v));
- return [el("dt", {}, labels[k].label), el("dd", {}, opt ? opt.label : String(v))];
- })) : "",
- values.length ? use : "");
-}
-
-function drawGallery() {
- const withEx = apps.filter(a => a.example);
- const without = apps.filter(a => !a.example && !a.id.startsWith("smoke"));
- const g = document.getElementById("gallery");
- if (!withEx.length) {
- g.replaceChildren(el("h2", {}, "Gallery"), el("p", { class: "lead" }, "No examples yet. Run one case per app on Modal, then come back:"),
- el("pre", {}, "modal run lab/lab_modal.py --showcase"));
- return;
- }
- const run = withEx.find(a => a.example.run)?.example;
- const tiles = withEx.map(a => {
- const m = preview(a.example, "") || el("span", { class: "badge" }, a.example.type);
- const tile = el("button", { class: "tile", onclick: () => { show("apps"); open(a); } },
- el("div", { class: "media" }, m),
- el("div", { class: "meta" }, el("span", { class: "badge" }, `${a.section} · ${a.higgsfield_feature || a.name}`), el("strong", {}, a.name),
- (a.example.inputs || []).some(i => i.src) ? el("span", { class: "from" }, "from",
- ...(a.example.inputs || []).filter(i => i.src).map(i => el("img", { src: i.src, alt: i.label, title: i.label }))) : ""));
- return tile;
- });
- g.replaceChildren(
- el("h2", {}, "Gallery"),
- el("p", { class: "lead" }, `${withEx.length} of ${withEx.length + without.length} apps, each from its showcase case${run?.run ? ` in lab run ${run.run}` : ""}${run?.gpu ? ` on ${run.gpu.split(",")[0]}` : ""}. Click one to open the app.`),
- el("div", { class: "tiles" }, ...tiles),
- without.length ? el("div", { class: "chips" }, el("span", {}, "no example yet:"), ...without.map(a => el("span", {}, a.name))) : "");
- // play the loops that are on screen, pause the rest
- const io = new IntersectionObserver(es => es.forEach(e => e.isIntersecting ? e.target.play().catch(() => {}) : e.target.pause()), { threshold: 0.4 });
- g.querySelectorAll(".tile video").forEach(v => io.observe(v));
-}
-
-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), exampleBlock(a, form), 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>
+<noscript>Freefield needs JavaScript.</noscript>
</body>
</html>
diff --git a/web/js/catalog.js b/web/js/catalog.js
new file mode 100644
index 0000000..aa3ac62
--- /dev/null
+++ b/web/js/catalog.js
@@ -0,0 +1,149 @@
+// The app catalog (/api/apps) and the ways the UI groups it: studios, categories, taglines.
+// Everything about an app's form comes from its app.json; this file only decides where it shows up.
+import { api, store } from "./util.js";
+import { lang } from "./i18n.js";
+
+export let apps = [];
+export const byId = new Map();
+export let draftsAllowed = false;
+
+const DEV = new URLSearchParams(location.search).has("dev"); // ?dev shows the smoke-test apps
+
+export async function loadCatalog() {
+ const d = await api("/api/apps");
+ draftsAllowed = Boolean(d.drafts);
+ apps = d.apps.filter((a) => DEV || !a.id.startsWith("smoke"));
+ byId.clear();
+ for (const a of apps) byId.set(a.id, a);
+ return apps;
+}
+
+/** Apps grouped like a store: a card can only sit in one row. */
+export const CATEGORIES = [
+ { id: "create", apps: ["z-image", "cinema-studio", "styles", "video-t2v", "video", "music", "sfx"] },
+ { id: "identity", apps: ["character", "speak", "talking", "recast", "motion-transfer"] },
+ { id: "camera", apps: ["camera-moves", "camera-copy", "reshoot", "transitions"] },
+ { id: "style", apps: ["relight", "style-reference", "upscale", "upscale-video", "smooth", "remove-bg"] },
+ { id: "vfx", apps: ["effects", "edit", "vfx-clean-plate", "vfx-day-to-night", "vfx-water"] },
+ { id: "ads", apps: ["product-shot", "poster", "packshot", "macro-scene", "macro-product", "giant-product", "billboard", "graffiti-ad", "fridge-ad", "ugc-shot"] },
+ { id: "portraits", apps: ["headshot", "commercial-faces", "style-snap", "skin-enhancer", "outfit-vending", "glitter-sticker"] },
+ { id: "play", apps: ["game-styles", "plushie", "render-3d", "figure-3d", "pixel-game", "brick-toy", "sketch-to-real", "paint-app", "mural", "micro-beasts", "meme"] },
+ { id: "templates", apps: ["j-magazine", "cafe-60s", "victory-card", "j-poster", "mascot", "burning-sunset", "comic-book", "giallo", "renaissance", "japanese-show", "breakdown", "edit-text", "image-effects", "color-grade"] },
+];
+export function categoryOf(id) {
+ return CATEGORIES.find((c) => c.apps.includes(id))?.id ?? "more";
+}
+
+/** The video studio's three tabs, like a camera crew: shoot, fix, move. */
+export const VIDEO_TABS = [
+ { id: "create", apps: ["video", "effects", "video-t2v", "speak", "talking", "transitions", "camera-moves"] },
+ { id: "edit", apps: ["recast", "vfx-clean-plate", "vfx-day-to-night", "vfx-water", "upscale-video", "smooth", "reshoot"] },
+ { id: "motion", apps: ["motion-transfer", "camera-copy"] },
+];
+export const videoTabOf = (id) => VIDEO_TABS.find((tab) => tab.apps.includes(id))?.id ?? null;
+
+/** Shown in the top bar next to the studios, like a store's front window. */
+export const FEATURED = [{ id: "recast", tag: "featured" }, { id: "speak", tag: "new" }, { id: "relight", tag: null }];
+
+/** Big cards on the Explore page, in this order when they have an example. */
+export const HERO = ["effects", "recast", "motion-transfer", "speak", "camera-moves", "talking", "transitions", "vfx-day-to-night", "video-t2v", "relight", "styles"];
+
+/** Prompt-first apps get the floating composer; upload-first apps get the sidebar. */
+export function layoutOf(app) {
+ const hasText = app.inputs.some((i) => i.type === "textarea");
+ return (app.section === "image" || app.section === "audio") && hasText ? "composer" : "sidebar";
+}
+
+/** The apps a model switcher offers next to this one: the same kind of app in the same category. */
+export function familyOf(app) {
+ const layout = layoutOf(app);
+ if (layout === "composer") return apps.filter((a) => layoutOf(a) === "composer" && a.section === app.section && categoryOf(a.id) === categoryOf(app.id));
+ if (app.section === "video" || videoTabOf(app.id)) {
+ const tab = videoTabOf(app.id);
+ return apps.filter((a) => videoTabOf(a.id) === tab);
+ }
+ return apps.filter((a) => layoutOf(a) === "sidebar" && !videoTabOf(a.id));
+}
+
+/** Which studio (top-bar entry) an app belongs to. */
+export function studioOf(app) {
+ if (videoTabOf(app.id) || app.section === "video") return "video";
+ if (app.section === "audio") return "audio";
+ if (layoutOf(app) === "composer") return "image";
+ return "apps";
+}
+
+const DEFAULT_APP = { image: "z-image", video: "video", audio: "music" };
+export function lastAppFor(studio) {
+ const id = store.get(`last.${studio}`);
+ if (id && byId.has(id)) return id;
+ const fallback = DEFAULT_APP[studio];
+ if (byId.has(fallback)) return fallback;
+ return apps.find((a) => studioOf(a) === studio)?.id ?? apps[0]?.id;
+}
+export function rememberApp(app) {
+ store.set(`last.${studioOf(app)}`, app.id);
+}
+
+const TAGLINES = {
+ "z-image": ["Words to picture in seconds", "De palabras a imagen en segundos"],
+ "cinema-studio": ["Shoot it on any camera", "Fílmalo con cualquier cámara"],
+ styles: ["Nine looks, one prompt", "Nueve estilos, un prompt"],
+ "style-reference": ["Paint like your reference", "Pinta como tu referencia"],
+ character: ["Same face, any scene", "La misma cara, cualquier escena"],
+ edit: ["Edit with words", "Edita con palabras"],
+ "product-shot": ["Your product, anywhere", "Tu producto, en cualquier lugar"],
+ relight: ["Move the light", "Mueve la luz"],
+ "remove-bg": ["Cut out anything", "Recorta lo que sea"],
+ upscale: ["More pixels, more detail", "Más píxeles, más detalle"],
+ video: ["Bring a still to life", "Dale vida a una foto"],
+ "video-t2v": ["Type a shot, get a clip", "Escribe una toma, obtén un clip"],
+ "camera-moves": ["Direct the camera", "Dirige la cámara"],
+ effects: ["35 effects from one photo", "35 efectos desde una foto"],
+ "camera-copy": ["Copy any camera move", "Copia cualquier movimiento de cámara"],
+ recast: ["Recast anyone in your clip", "Cambia al protagonista de tu clip"],
+ "motion-transfer": ["Borrow the moves", "Toma prestado el movimiento"],
+ speak: ["Make a portrait talk", "Haz hablar un retrato"],
+ talking: ["Lip-sync to your voice", "Sincroniza labios con tu voz"],
+ transitions: ["From this frame to that one", "De este cuadro a aquel"],
+ reshoot: ["Reshoot from a new angle", "Vuelve a filmar desde otro ángulo"],
+ "upscale-video": ["Sharpen every frame", "Nitidez en cada cuadro"],
+ smooth: ["Silky slow motion", "Cámara lenta fluida"],
+ "vfx-clean-plate": ["Empty the street", "Vacía la calle"],
+ "vfx-day-to-night": ["Day becomes night", "El día se vuelve noche"],
+ "vfx-water": ["Add water to any shot", "Agrega agua a cualquier toma"],
+ music: ["Write a song", "Compón una canción"],
+ sfx: ["Sound for every scene", "Sonido para cada escena"],
+};
+export function tagline(app) {
+ const pair = TAGLINES[app.id];
+ return pair ? pair[lang === "es" ? 1 : 0] : app.name;
+}
+
+/** Icon name per app for chips and tiles. */
+export function iconOf(app) {
+ const byIdIcon = { relight: "sun", "remove-bg": "scissors", "product-shot": "box", character: "user", speak: "user", talking: "user",
+ recast: "user", "motion-transfer": "hand", "camera-moves": "camera", "camera-copy": "camera", reshoot: "camera", music: "audio", sfx: "audio", effects: "spark" };
+ return byIdIcon[app.id] || (app.section === "video" ? "video" : app.section === "audio" ? "audio" : "image");
+}
+
+/** The prompt of a set of values: the first required textarea, else the first textarea. */
+export function promptInput(app) {
+ const texts = app.inputs.filter((i) => i.type === "textarea");
+ return texts.find((i) => i.required) || texts[0] || null;
+}
+
+/** Seconds the lab example took, as an estimate for the Generate button. */
+export function estimate(app) {
+ const s = app.example?.seconds;
+ return s ? { seconds: s, gpu: (app.example.gpu || "").split(",")[0] || "GPU" } : null;
+}
+
+/** "fits whole" → [label key, css class] */
+export function fitOf(app) {
+ const v = app.vram?.verdict;
+ if (!v) return null;
+ const map = { "fits whole": ["fit.whole", "ok"], "fits by phases": ["fit.phases", "ok"], "tight (by phases)": ["fit.tight", "tight"],
+ "needs Modal": ["fit.big", "big"], "no models": ["fit.none", ""] };
+ return map[v] || [v, ""];
+}
diff --git a/web/js/compare.js b/web/js/compare.js
new file mode 100644
index 0000000..635c8c2
--- /dev/null
+++ b/web/js/compare.js
@@ -0,0 +1,185 @@
+// Compare a Freefield result with another one: a file from Higgsfield (or anywhere), or another
+// generation. Images side by side or as a wipe; videos side by side with one transport, kept in sync.
+// Dropped files stay in the browser (object URLs); nothing is uploaded.
+import { el, icon, fmtSeconds } from "./util.js";
+import { t } from "./i18n.js";
+import { byId } from "./catalog.js";
+import { feed } from "./feed.js";
+import { entryItem } from "./media.js";
+
+function mediaEl(side) {
+ if (side.type === "video") {
+ const v = el("video", { src: side.url, playsinline: true, loop: true, preload: "auto", muted: true });
+ v.muted = true;
+ return v;
+ }
+ if (side.type === "audio") return el("audio", { src: side.url, controls: true, preload: "metadata" });
+ return el("img", { src: side.url, alt: side.label });
+}
+
+function kindOfFile(file) {
+ if (file.type.startsWith("video/")) return "video";
+ if (file.type.startsWith("audio/")) return "audio";
+ return "image";
+}
+
+async function sizeOf(url) {
+ try {
+ const r = await fetch(url, { method: "HEAD" });
+ const n = Number(r.headers.get("content-length"));
+ return n > 0 ? n : null;
+ } catch { return null; }
+}
+const mb = (n) => (n ? `${(n / 1e6).toFixed(n > 1e7 ? 0 : 1)} MB` : "");
+
+export function openCompare(item) {
+ const app = byId.get(item.app);
+ const left = { label: `Freefield · ${app?.name ?? item.app}`, type: item.type, url: item.full, size: null };
+ let right = null;
+ let mode = "side";
+ const root = el("div", { class: "cmpx", role: "dialog", "aria-modal": "true" });
+ const urls = [];
+ const close = () => {
+ root.remove();
+ urls.forEach((u) => URL.revokeObjectURL(u));
+ document.removeEventListener("keydown", onKey, true);
+ clearInterval(sync);
+ document.body.style.overflow = "";
+ };
+ const onKey = (e) => { if (e.key === "Escape" && !e.target.closest?.("input")) { e.stopPropagation(); close(); } };
+ let sync = null;
+
+ const setRightFile = (file) => {
+ const url = URL.createObjectURL(file);
+ urls.push(url);
+ right = { label: store.lastLabel || "Higgsfield", type: kindOfFile(file), url, size: file.size, name: file.name };
+ draw();
+ };
+ const store = { lastLabel: null };
+
+ function pane(side, which) {
+ if (!side) {
+ const input = el("input", { type: "file", accept: "image/*,video/*,audio/*", hidden: true });
+ input.addEventListener("change", () => input.files[0] && setRightFile(input.files[0]));
+ const zone = el("div", { class: "drop", role: "button", tabindex: "0", onclick: () => input.click(),
+ onkeydown: (e) => { if (e.key === "Enter") input.click(); } },
+ el("span", { class: "ic" }, icon("upload")), el("b", {}, t("cmp.drop")), el("small", {}, t("cmp.local")), input);
+ zone.addEventListener("dragover", (e) => { e.preventDefault(); zone.classList.add("over"); });
+ zone.addEventListener("dragleave", () => zone.classList.remove("over"));
+ zone.addEventListener("drop", (e) => { e.preventDefault(); const f = e.dataTransfer.files[0]; if (f) setRightFile(f); });
+ const mine = feed.list().filter((e) => e.status === "succeeded" && e.outputs[0]?.type === left.type && e.outputs[0]?.url !== left.url).slice(0, 12);
+ return el("div", { class: "pane" },
+ el("div", { class: "lab" }, el("b", {}, t("cmp.other"))),
+ el("div", { class: "box" }, zone),
+ mine.length ? el("div", { style: { display: "grid", gap: "6px" } }, el("small", { class: "dim" }, t("cmp.pick")),
+ el("div", { style: { display: "flex", gap: "6px", overflowX: "auto" } }, ...mine.map((e) => {
+ const it = entryItem(e);
+ return el("button", { type: "button", style: { flex: "none", width: "64px", height: "64px", borderRadius: "10px", overflow: "hidden", border: "1px solid #2a2a2f", padding: 0, background: "#000", cursor: "pointer" },
+ title: byId.get(e.app)?.name ?? e.app,
+ onclick: () => { right = { label: `Freefield · ${byId.get(e.app)?.name ?? e.app}`, type: it.type, url: it.full, size: null }; draw(); } },
+ it.type === "video" ? el("video", { src: `${it.full}#t=0.1`, muted: true, preload: "metadata", style: { width: "100%", height: "100%", objectFit: "cover" } })
+ : el("img", { src: it.full, alt: "", style: { width: "100%", height: "100%", objectFit: "cover" } }));
+ }))) : el("div"));
+ }
+ const m = mediaEl(side);
+ const info = el("div", { class: "info" });
+ const label = el("input", { value: side.label, "aria-label": "label" });
+ label.addEventListener("input", () => { side.label = label.value; if (which === "right") store.lastLabel = label.value; });
+ const fill = async () => {
+ const bits = [];
+ if (m.tagName === "IMG" && m.naturalWidth) bits.push(`${m.naturalWidth}×${m.naturalHeight}`);
+ if (m.tagName === "VIDEO" && m.videoWidth) bits.push(`${m.videoWidth}×${m.videoHeight}`, fmtSeconds(m.duration));
+ if (m.tagName === "AUDIO" && m.duration) bits.push(fmtSeconds(m.duration));
+ side.size ??= await sizeOf(side.url);
+ if (side.size) bits.push(mb(side.size));
+ info.replaceChildren(...bits.map((b) => el("span", {}, b)));
+ };
+ m.addEventListener(m.tagName === "IMG" ? "load" : "loadedmetadata", fill);
+ return el("div", { class: "pane" },
+ el("div", { class: "lab" }, label, which === "right" ? el("button", { class: "mini", type: "button", title: t("cmp.clear"), "aria-label": t("cmp.clear"),
+ onclick: () => { right = null; draw(); } }, icon("x")) : null),
+ el("div", { class: "box" }, m), info);
+ }
+
+ function wipe() {
+ let x = 50;
+ const a = el("img", { src: left.url, alt: left.label });
+ const b = el("img", { src: right.url, alt: right.label });
+ const handle = el("div", { class: "handle" });
+ const box = el("div", { class: "wipe" }, b, a, handle, el("span", { class: "tagl" }, left.label), el("span", { class: "tagr" }, right.label));
+ const paint = () => { a.style.clipPath = `inset(0 ${100 - x}% 0 0)`; handle.style.left = `${x}%`; };
+ const move = (e) => { const r = box.getBoundingClientRect(); x = Math.min(100, Math.max(0, ((e.clientX - r.left) / r.width) * 100)); paint(); };
+ box.addEventListener("pointerdown", (e) => { box.setPointerCapture(e.pointerId); move(e); });
+ box.addEventListener("pointermove", (e) => { if (box.hasPointerCapture(e.pointerId)) move(e); });
+ box.tabIndex = 0;
+ box.addEventListener("keydown", (e) => { if (e.key === "ArrowLeft") { x = Math.max(0, x - 2); paint(); } if (e.key === "ArrowRight") { x = Math.min(100, x + 2); paint(); } });
+ paint();
+ return box;
+ }
+
+ function transport(videos) {
+ const [va, vb] = videos;
+ const play = el("button", { class: "btn small lime", type: "button" }, icon("play"), t("cmp.both"));
+ const seek = el("input", { type: "range", min: 0, max: 1000, value: 0, "aria-label": "seek" });
+ const time = el("span", { class: "t" }, "0.0 s");
+ const dur = () => Math.max(va.duration || 0, vb.duration || 0);
+ const setPlaying = (on) => play.replaceChildren(icon(on ? "pause" : "play"), t("cmp.both"));
+ play.onclick = () => {
+ if (va.paused) {
+ vb.currentTime = Math.min(va.currentTime, vb.duration || 0);
+ Promise.all([va.play(), vb.play()]).catch(() => {});
+ setPlaying(true);
+ } else { va.pause(); vb.pause(); setPlaying(false); }
+ };
+ seek.addEventListener("input", () => {
+ const s = (seek.value / 1000) * dur();
+ for (const v of videos) v.currentTime = Math.min(s, v.duration || 0);
+ });
+ va.addEventListener("timeupdate", () => {
+ const d = dur();
+ if (d) seek.value = String(Math.round((va.currentTime / d) * 1000));
+ time.textContent = `${va.currentTime.toFixed(1)} / ${d.toFixed(1)} s`;
+ });
+ const mute = (v, which) => {
+ const b = el("button", { class: "btn small ghost", type: "button", title: which }, icon("mute"), which);
+ b.onclick = () => { v.muted = !v.muted; b.replaceChildren(icon(v.muted ? "mute" : "volume"), which); };
+ return b;
+ };
+ clearInterval(sync);
+ sync = setInterval(() => { // keep the right clip on the left clip's clock
+ if (!va.paused && !vb.paused && vb.duration && va.currentTime < vb.duration && Math.abs(va.currentTime - vb.currentTime) > 0.12) vb.currentTime = va.currentTime;
+ }, 400);
+ return el("footer", {}, play, seek, time, mute(va, "A"), mute(vb, "B"));
+ }
+
+ function draw() {
+ clearInterval(sync);
+ const bothImages = right && left.type === "image" && right.type === "image";
+ if (!bothImages && mode === "wipe") mode = "side";
+ const header = el("header", {},
+ el("h2", { class: "display" }, t("cmp.title")),
+ bothImages ? el("div", { class: "tabs" }, ...[["side", t("cmp.side")], ["wipe", t("cmp.wipe")]].map(([id, label]) =>
+ el("button", { type: "button", "aria-selected": String(mode === id), onclick: () => { mode = id; draw(); } }, label))) : null,
+ el("span", { class: "grow" }),
+ right ? el("button", { class: "btn small ghost", type: "button", onclick: () => { const r = right; right = { ...left }; Object.assign(left, r); draw(); } }, icon("swap"), t("cmp.swap")) : null,
+ el("button", { class: "icon-btn", type: "button", title: t("act.close"), "aria-label": t("act.close"), onclick: close }, icon("x")));
+ let body, footer = null;
+ if (mode === "wipe" && bothImages) body = wipe();
+ else {
+ const pa = pane(left, "left"), pb = pane(right, "right");
+ body = el("div", { class: "panes" }, pa, pb);
+ const vids = [pa, pb].map((p) => p.querySelector("video")).filter(Boolean);
+ if (vids.length === 2) footer = transport(vids);
+ else if (vids.length === 1) { vids[0].controls = true; }
+ }
+ root.replaceChildren(header, body, footer || el("div"));
+ }
+
+ root.addEventListener("dragover", (e) => e.preventDefault());
+ root.addEventListener("drop", (e) => { e.preventDefault(); const f = e.dataTransfer.files[0]; if (f) setRightFile(f); });
+ draw();
+ document.body.append(root);
+ document.body.style.overflow = "hidden";
+ document.addEventListener("keydown", onKey, true);
+ return close;
+}
diff --git a/web/js/feed.js b/web/js/feed.js
new file mode 100644
index 0000000..4aaca9d
--- /dev/null
+++ b/web/js/feed.js
@@ -0,0 +1,219 @@
+// The history feed: runs started here (out/history on the server), polled while any is going,
+// drawn as result cards that keep their place (and their playing video) while others update.
+import { api, el, icon, fmtSeconds, masonry, toast, live } from "./util.js";
+import { t, ago } from "./i18n.js";
+import { byId, promptInput } from "./catalog.js";
+import { entryItem, thumb, downloadName } from "./media.js";
+
+const TERMINAL = new Set(["succeeded", "failed", "canceled", "expired", "lost"]);
+export const isDone = (e) => TERMINAL.has(e.status);
+
+/** Set by main.js so cards can call into the workspace and the viewer without import cycles. */
+export const hooks = { open: null, recreate: null, retry: null, compare: null };
+
+class Feed {
+ constructor() {
+ this.entries = new Map();
+ this.listeners = new Set();
+ this.timer = null;
+ this.loaded = new Set(); // scopes fetched at least once: an app id, or "*" for everything
+ }
+ isLoaded(app) { return this.loaded.has("*") || this.loaded.has(app ?? "*"); }
+ async load(app) {
+ const { entries } = await api(`/api/history${app ? `?app=${encodeURIComponent(app)}` : ""}`);
+ const seen = new Set(entries.map((e) => e.id));
+ for (const [id, e] of this.entries) if ((!app || e.app === app) && !seen.has(id)) this.entries.delete(id);
+ for (const e of entries) this.entries.set(e.id, e);
+ this.loaded.add(app ?? "*");
+ this.emit();
+ this.schedule();
+ }
+ on(fn) { this.listeners.add(fn); return () => this.listeners.delete(fn); }
+ emit() { for (const fn of this.listeners) fn(); }
+ list(app) {
+ return [...this.entries.values()].filter((e) => !app || e.app === app).sort((a, b) => (a.id < b.id ? 1 : -1));
+ }
+ get(id) { return this.entries.get(id); }
+ active() { return [...this.entries.values()].filter((e) => !isDone(e)); }
+ schedule() {
+ if (this.timer || !this.active().length) return;
+ this.timer = setTimeout(() => this.poll(), 1200);
+ }
+ async poll() {
+ this.timer = null;
+ await Promise.all(this.active().map((e) => api(`/api/history/${e.id}`)
+ .then((fresh) => this.entries.set(e.id, fresh))
+ .catch((err) => { if (err.status === 404) this.entries.delete(e.id); })));
+ this.emit();
+ this.schedule();
+ }
+ async run(appId, formData) {
+ const entry = await api(`/api/apps/${appId}/run`, { method: "POST", body: formData });
+ this.entries.set(entry.id, entry);
+ this.emit();
+ this.schedule();
+ return entry;
+ }
+ async remove(id) {
+ await api(`/api/history/${id}`, { method: "DELETE" });
+ this.entries.delete(id);
+ this.emit();
+ }
+ async cancel(id) {
+ await api(`/api/history/${id}/cancel`, { method: "POST" });
+ this.poll();
+ }
+}
+export const feed = new Feed();
+
+export function statusText(e) {
+ if (e.status === "starting") return live.gpuWarm ? t("status.submitting") : t("status.starting");
+ if (e.status === "queued") return e.queue ? t("status.queued.n", { n: e.queue }) : t("status.queued");
+ if (e.status === "running") {
+ const p = e.progress;
+ let s = t("status.running");
+ if (p?.step && p?.steps) s += ` · ${t("status.step", { a: p.step, b: p.steps })}`;
+ else if (p?.value > 0) s += ` · ${Math.round(p.value * 100)}%`;
+ return s;
+ }
+ return t(`status.${e.status}`);
+}
+
+/** The shape a placeholder should have: from width/height or an "a:b" aspect value. */
+function aspectOf(e) {
+ const v = e.values || {};
+ if (Number(v.width) > 0 && Number(v.height) > 0) return `${v.width} / ${v.height}`;
+ const m = /(\d+(?:\.\d+)?)\s*[:x/]\s*(\d+(?:\.\d+)?)/.exec(String(v.aspect ?? v.size ?? ""));
+ return m ? `${m[1]} / ${m[2]}` : null;
+}
+
+/** A button that asks once more before deleting. */
+export function deleteButton(onDelete, cls = "mini", withLabel = cls !== "mini") {
+ let armed = null;
+ const idle = () => [icon("trash"), withLabel ? t("act.delete") : null];
+ const b = el("button", { class: cls, type: "button", title: t("act.delete"), "aria-label": t("act.delete") }, idle());
+ b.addEventListener("click", async (ev) => {
+ ev.stopPropagation();
+ if (!armed) {
+ b.replaceChildren(icon("check"), withLabel ? t("act.sure") : "");
+ b.title = t("act.sure");
+ b.style.color = "var(--bad)";
+ armed = setTimeout(() => { armed = null; b.replaceChildren(...idle().filter(Boolean)); b.title = t("act.delete"); b.style.color = ""; }, 2600);
+ return;
+ }
+ clearTimeout(armed);
+ try { await onDelete(); toast(t("toast.deleted")); } catch (err) { toast(err.message, { error: true }); }
+ });
+ return b;
+}
+
+function pendingCard(e) {
+ const app = byId.get(e.app);
+ const item = entryItem(e);
+ const bar = el("i");
+ const barBox = el("div", { class: "bar indet" }, bar);
+ const title = el("b");
+ const prev = el("img", { class: "preview", alt: "", hidden: true });
+ const node = el("div", { class: `rcard pending ${item.type}` },
+ el("div", { class: "shimmer" }), prev,
+ el("button", { class: "mini stop", type: "button", title: t("act.cancel"), "aria-label": t("act.cancel"),
+ onclick: (ev) => { ev.stopPropagation(); feed.cancel(e.id).catch((err) => toast(err.message, { error: true })); } }, icon("stop")),
+ el("div", { class: "state" }, title, barBox,
+ el("small", {}, `${app?.name ?? e.app} · `, el("span", { dataset: { since: e.created } }, fmtSeconds((Date.now() - Date.parse(e.created)) / 1000)))));
+ const ar = aspectOf(e);
+ if (ar) node.style.aspectRatio = ar;
+ const update = (fresh) => {
+ title.textContent = statusText(fresh);
+ const p = fresh.progress?.value;
+ barBox.classList.toggle("indet", !(p > 0));
+ bar.style.width = p > 0 ? `${Math.round(p * 100)}%` : "";
+ if (fresh.preview && prev.dataset.src !== fresh.preview) {
+ prev.src = fresh.preview;
+ prev.dataset.src = fresh.preview;
+ prev.hidden = false;
+ }
+ };
+ update(e);
+ return { node, update };
+}
+
+function failedCard(e) {
+ const app = byId.get(e.app);
+ const item = entryItem(e);
+ const node = el("div", { class: "rcard failed" },
+ el("b", {}, `${t(`status.${e.status}`)} · ${app?.name ?? e.app}`),
+ el("pre", {}, e.error?.class_type ? `${e.error.class_type}${e.error.node ? ` (node ${e.error.node})` : ""}: ${e.error.message}` : (e.error?.message || "")),
+ el("div", { class: "row" },
+ app ? el("button", { class: "btn small lime", type: "button", onclick: () => hooks.retry?.(item) }, icon("redo"), t("act.retry")) : null,
+ app ? el("button", { class: "btn small ghost", type: "button", onclick: () => hooks.recreate?.(item) }, t("act.recreate")) : null,
+ deleteButton(() => feed.remove(e.id), "btn small ghost danger")));
+ return { node };
+}
+
+function doneCard(e, list) {
+ const app = byId.get(e.app);
+ const item = entryItem(e);
+ const media = thumb(item, { play: "visible" });
+ const prompt = app && promptInput(app) ? String(e.values?.[promptInput(app).id] ?? "") : "";
+ const stop = (fn) => (ev) => { ev.stopPropagation(); fn(); };
+ const open = () => hooks.open?.(list().map(entryItem), e.id);
+ const dl = el("a", { class: "mini", href: item.full, download: downloadName(item, item.full), title: t("act.download"), "aria-label": t("act.download"),
+ onclick: (ev) => ev.stopPropagation() }, icon("download"));
+ const node = el("div", { class: "rcard", tabindex: "0", role: "button", "aria-label": `${app?.name ?? e.app} · ${ago(e.created)}`,
+ onclick: open, onkeydown: (ev) => { if (ev.key === "Enter") open(); } },
+ media,
+ el("div", { class: "ov" },
+ el("div", { class: "row" }, el("span", { class: "tag dark" }, app?.name ?? e.app),
+ el("div", { class: "acts" }, dl,
+ el("button", { class: "mini", type: "button", title: t("act.compare"), "aria-label": t("act.compare"), onclick: stop(() => hooks.compare?.(item)) }, icon("compare")),
+ deleteButton(() => feed.remove(e.id)))),
+ el("div", { class: "row" }, el("span", { class: "meta" }, prompt || `${ago(e.created)}${e.seconds ? ` · ${fmtSeconds(e.seconds)}` : ""}`),
+ app ? el("button", { class: "mini lime", type: "button", title: t("act.recreate"), "aria-label": t("act.recreate"), onclick: stop(() => hooks.recreate?.(item)) }, icon("redo")) : null)));
+ return { node };
+}
+
+/**
+ * Draw the feed for one app (or all) into host and keep it current.
+ * empty(): what to show when there is nothing yet. Returns a cleanup function.
+ */
+export function feedView(host, { app = null, empty = null, dense = false } = {}) {
+ const grid = el("div", { class: `feed${dense ? " dense" : ""}` });
+ const cards = new Map();
+ let lastOrder = null;
+ const list = () => feed.list(app).filter((e) => e.status === "succeeded" && e.outputs.length);
+ const kindOf = (e) => (!isDone(e) ? "pending" : e.status === "succeeded" && e.outputs.length ? "done" : "failed");
+ const render = () => {
+ const entries = feed.list(app);
+ if (!entries.length && !feed.isLoaded(app)) return; // first load still on its way: no flash of the empty state
+ if (!entries.length) {
+ if (lastOrder !== "") host.replaceChildren(empty ? empty() : el("div", { class: "empty" }, t("ws.empty.hist")));
+ lastOrder = "";
+ cards.clear();
+ return;
+ }
+ if (!grid.isConnected || grid.parentNode !== host) host.replaceChildren(grid);
+ let changed = false;
+ const seen = new Set();
+ const nodes = entries.map((e) => {
+ seen.add(e.id);
+ const kind = kindOf(e);
+ const c = cards.get(e.id);
+ if (c && c.kind === kind) { c.update?.(e); return c.node; }
+ const made = kind === "pending" ? pendingCard(e) : kind === "done" ? doneCard(e, list) : failedCard(e);
+ cards.set(e.id, { ...made, kind });
+ changed = true;
+ return made.node;
+ });
+ for (const id of [...cards.keys()]) if (!seen.has(id)) { cards.delete(id); changed = true; }
+ const order = entries.map((e) => e.id).join(",");
+ if (changed || order !== lastOrder) masonry(grid, nodes, { min: dense ? 190 : 270, gap: dense ? 8 : 12 });
+ lastOrder = order;
+ };
+ const off = feed.on(render);
+ render();
+ feed.load(app).catch((err) => toast(err.message, { error: true }));
+ const tick = setInterval(() => {
+ for (const n of host.querySelectorAll("[data-since]")) n.textContent = fmtSeconds((Date.now() - Date.parse(n.dataset.since)) / 1000);
+ }, 1000);
+ return () => { off(); clearInterval(tick); grid._ro?.disconnect(); };
+}
diff --git a/web/js/flags.js b/web/js/flags.js
new file mode 100644
index 0000000..598dd24
--- /dev/null
+++ b/web/js/flags.js
@@ -0,0 +1,59 @@
+// "Mediocre" marks on the lab examples (/api/flags → lab/flags.json): a toggle on each example so the
+// person reviewing the app can say which results are not good enough; whoever runs the lab reads the file
+// and looks for a better model, LoRA or prompt of the same kind. Keys: "<app>" for the app's example,
+// "<app>/<input>/<option>" for one option of a gallery select (the effects picker).
+import { api, el, icon, toast } from "./util.js";
+import { t } from "./i18n.js";
+
+let marks = {};
+const subs = new Set();
+const emit = () => { for (const fn of subs) fn(marks); };
+
+export const flags = {
+ key: (appId, inputId = null, value = null) => (inputId === null ? appId : `${appId}/${inputId}/${value}`),
+ is: (key) => Boolean(marks[key]),
+ keys: () => Object.keys(marks),
+ count: () => Object.keys(marks).length,
+ async load() {
+ try { marks = (await api("/api/flags")).mediocre || {}; } catch { marks = {}; }
+ emit();
+ },
+ async set(key, mediocre) {
+ const d = await api("/api/flags", { method: "POST", headers: { "content-type": "application/json" }, body: JSON.stringify({ key, mediocre }) });
+ marks = d.mediocre || {};
+ emit();
+ },
+ on(fn) { subs.add(fn); return () => subs.delete(fn); },
+};
+
+// every button on the page follows the store, so the wall, the picker and the viewer agree
+flags.on(() => {
+ for (const b of document.querySelectorAll("[data-flag-key]")) paint(b);
+});
+
+function paint(b) {
+ const on = flags.is(b.dataset.flagKey);
+ b.setAttribute("aria-pressed", String(on));
+ b.title = on ? t("flag.unmark") : t("flag.mark");
+ b.setAttribute("aria-label", b.title);
+ if (b.dataset.flagLabel) b.lastChild.textContent = on ? t("flag.marked") : t("flag.mediocre");
+}
+
+/** The toggle. mini: an icon in a card's corner; otherwise a labelled button for a details panel. */
+export function flagButton(key, { mini = false } = {}) {
+ const b = el("button", { class: mini ? "mini flag" : "btn ghost flag", type: "button", "data-flag-key": key, ...(mini ? {} : { "data-flag-label": "1" }) },
+ icon("thumbdown"), mini ? null : el("span", {}, ""));
+ paint(b);
+ b.addEventListener("click", async (ev) => {
+ ev.stopPropagation();
+ ev.preventDefault();
+ const next = !flags.is(key);
+ try {
+ await flags.set(key, next);
+ toast(next ? t("flag.saved") : t("flag.cleared"));
+ } catch (e) {
+ toast(e.message, { error: true });
+ }
+ });
+ return b;
+}
diff --git a/web/js/i18n.js b/web/js/i18n.js
new file mode 100644
index 0000000..cedfac3
--- /dev/null
+++ b/web/js/i18n.js
@@ -0,0 +1,187 @@
+// UI strings in English and Spanish. App names and summaries come from each app.json (English);
+// taglines for the bigger headings live in catalog.js. The language follows the browser until
+// the viewer picks one with the globe button.
+import { store } from "./util.js";
+
+const en = {
+ "nav.explore": "Explore", "nav.image": "Image", "nav.video": "Video", "nav.audio": "Audio", "nav.apps": "Apps", "nav.library": "Library",
+ "nav.vram": "VRAM map", "nav.create": "Create", "nav.lang": "Language",
+ "tag.featured": "Featured", "tag.new": "New", "tag.draft": "Draft", "tag.top": "Top",
+ "gpu.none": "No backend", "gpu.asleep": "GPU asleep", "gpu.waking": "Waking GPU · {s}s", "gpu.ready": "GPU ready", "gpu.failed": "Wake failed",
+ "gpu.pop.none": "Put the URL that `modal deploy infra/modal_app.py` printed in .env as COMFY_BASE_URL, then restart `npm run serve`.",
+ "gpu.pop.asleep": "The backend scales to zero when idle. Wake it now and it will be ready by the time you press Generate (a cold start takes a minute or two).",
+ "gpu.pop.wake": "Wake the GPU", "gpu.pop.waking": "Starting the container. Runs submitted now wait for it.",
+ "gpu.pop.ready": "Warm: runs start right away. It goes back to sleep 10 minutes after the last request.",
+ "gpu.pop.vram": "VRAM in use", "gpu.pop.loaded": "Loaded app", "gpu.pop.running": "{n} running", "gpu.pop.backend": "Backend",
+ "explore.lead.a": "An open studio for", "explore.lead.b": "images, video and sound",
+ "explore.lead.text": "Every app is a ComfyUI workflow with open weights, running on your own GPU. Nothing leaves your backend.",
+ "explore.start": "Start creating", "explore.browse": "Browse apps", "explore.apps": "{n} apps",
+ "tile.image.t": "Image studio", "tile.image.d": "Text to image, styles, references and edits.",
+ "tile.video.t": "Video studio", "tile.video.d": "Animate stills, recast actors, move the camera.",
+ "tile.audio.t": "Audio", "tile.audio.d": "Songs with lyrics and sound effects for any scene.",
+ "tile.apps.t": "Apps", "tile.apps.d": "Every workflow as a one-click app.",
+ "tile.library.t": "Library", "tile.library.d": "Your generations and the lab's examples, side by side.",
+ "tile.vram.t": "VRAM map", "tile.vram.d": "What fits on a 24 GB card, phase by phase.",
+ "explore.made": "Made with Freefield", "explore.made.sub": "One example per app, straight from the lab run.", "explore.seeall": "See all apps",
+ "explore.gallery.sub": "Pick one and try it with your own photo.",
+ "explore.how": "How it works",
+ "how.1.t": "A workflow is an app", "how.1.d": "Each folder in apps/ holds a ComfyUI API workflow and an app.json that turns its inputs into the form you fill in.",
+ "how.2.t": "Open weights only", "how.2.d": "Models download from Hugging Face into your own volume. Every app lists its models and their licenses.",
+ "how.3.t": "Your GPU, on demand", "how.3.d": "ComfyUI runs on Modal and scales to zero. Switching apps clears the VRAM, so nothing from the last app lingers.",
+ "explore.noex": "No examples yet. Run the lab once, then reload:",
+ "apps.title.a": "Welcome to", "apps.title.b": "Freefield apps",
+ "apps.sub": "One-click effects built from open ComfyUI workflows: recast a clip, relight a photo, make a portrait talk.",
+ "apps.search": "Search", "apps.all": "All", "apps.try": "Try it", "apps.seeall": "See all", "apps.none": "No app matches “{q}”.",
+ "cat.create.t": "Create", "cat.create.d": "From a prompt or a single image.",
+ "cat.style.t": "Enhance & style", "cat.style.d": "Light, resolution, motion and looks.",
+ "cat.identity.t": "Face & identity", "cat.identity.d": "Keep a character, swap one in, make it talk.",
+ "cat.camera.t": "Camera & motion", "cat.camera.d": "Direct a move, copy one, reshoot from a new angle.",
+ "cat.vfx.t": "VFX & editing", "cat.vfx.d": "Change what is in the shot.",
+ "cat.ads.t": "Ads & products", "cat.ads.d": "Product photography without a studio: packshots, posters, billboards.",
+ "cat.portraits.t": "Portraits & looks", "cat.portraits.d": "Headshots, campaigns and outfits from one selfie.",
+ "cat.play.t": "Toys & games", "cat.play.d": "Your photo as a plushie, a figure, pixel art, a meme.",
+ "cat.templates.t": "Templates", "cat.templates.d": "One-click looks: magazine covers, paintings, comics, color grades.",
+ "cat.more.t": "More", "cat.more.d": "",
+ "vtab.create": "Create video", "vtab.edit": "Edit video", "vtab.motion": "Motion control",
+ "ws.history": "History", "ws.library": "Library", "ws.how": "How it works",
+ "ws.create.title": "Start creating with", "ws.prompt.ph": "Describe the scene you imagine", "ws.prompt.opt": "{label} (optional): the app's prompt is already set", "ws.add": "Add {what}",
+ "ws.generate": "Generate", "ws.est": "GPU time of the lab example ({gpu})", "ws.count": "Generations",
+ "ws.seed": "Seed", "ws.seed.random": "Random", "ws.seed.reuse": "Use last", "ws.seed.help": "Same seed and same settings give the same result.",
+ "ws.preset": "Preset", "ws.preset.none": "None", "ws.advanced": "Advanced", "ws.change": "Change",
+ "ws.drop.image": "Add an image", "ws.drop.video": "Add a video", "ws.drop.audio": "Add audio",
+ "ws.drop.hint": "Click, drop or paste", "ws.drop.mb": "up to {mb} MB", "ws.drop.seconds": "{a}–{b} s",
+ "ws.replace": "Replace", "ws.remove": "Remove", "ws.need": "Add {label} first", "ws.needtext": "Write {label} first",
+ "ws.draft": "Draft: add FREEFIELD_DRAFTS=1 to .env and restart the server to run it.", "ws.noworkflow": "This app has no workflow yet.",
+ "ws.example": "Example from the lab", "ws.useex": "Load this example", "ws.related": "More like this",
+ "ws.empty.hist": "Nothing generated with this app yet.", "ws.dense": "Smaller tiles", "ws.optional": "optional", "ws.eg": "e.g. {x}",
+ "status.starting": "Waking the GPU…", "status.submitting": "Sending…", "status.queued": "In queue", "status.queued.n": "In queue · #{n}", "status.running": "Generating",
+ "status.step": "step {a}/{b}", "status.failed": "Failed", "status.canceled": "Canceled", "status.lost": "Lost", "status.expired": "Expired",
+ "status.elapsed": "{s} so far",
+ "act.open": "Open", "act.download": "Download", "act.compare": "Compare", "act.recreate": "Recreate", "act.delete": "Delete", "act.cancel": "Cancel",
+ "act.retry": "Try again", "act.copy": "Copy prompt", "act.reuse": "Reuse prompt", "act.sure": "Sure?", "act.close": "Close", "act.prev": "Previous", "act.next": "Next",
+ "toast.started": "{app} started", "toast.copied": "Copied", "toast.loaded": "Loaded into {app}", "toast.deleted": "Deleted",
+ "how.pipeline": "Pipeline", "how.pipeline.d": "apps/{id}/workflow.api.json runs on your ComfyUI backend; app.json maps each field of the form to a node input.",
+ "how.models": "Open-weight models", "how.total": "{gb} GB to download", "how.gated": "accept the license on Hugging Face", "how.optional": "optional",
+ "how.vram": "VRAM", "how.whole": "All models at once", "how.phase": "Largest phase", "how.measured": "Measured peak in the lab",
+ "fit.whole": "Fits 24 GB", "fit.phases": "Fits 24 GB by phases", "fit.tight": "Tight on 24 GB", "fit.big": "Needs 48 GB", "fit.none": "No models",
+ "how.cli": "From the terminal", "how.credits": "Credits", "how.notes": "Notes", "how.equiv": "Higgsfield counterpart", "how.pack": "Model pack",
+ "how.download": "Download it once:",
+ "lib.title": "Library", "lib.sub": "Everything generated here is saved in out/history/ on this computer.", "lib.mine": "My generations", "lib.lab": "Lab examples",
+ "lib.empty": "Nothing here yet. Pick an app and press Generate.", "lib.allapps": "All apps", "lib.allex": "All examples",
+ "lib.flagged": "Mediocre · {n}", "lib.noflag": "Nothing marked mediocre. The thumbs-down on an example marks it.",
+ "flag.mediocre": "Mediocre", "flag.marked": "Marked mediocre", "flag.mark": "Mark this example as mediocre: the lab will look for a better model, LoRA or prompt of the same kind",
+ "flag.unmark": "Marked mediocre. Click to undo", "flag.saved": "Saved in lab/flags.json", "flag.cleared": "Mark removed",
+ "vram.title": "VRAM map", "vram.sub": "How much GPU memory each app needs. Models load phase by phase (encode → denoise → decode), so the largest phase decides whether a 24 GB card is enough.",
+ "vram.whole": "all models", "vram.phase": "largest phase", "vram.measured": "measured peak (lab)", "vram.live": "Live: {name} · {used} of {total} GB in use",
+ "view.inputs": "Inputs", "view.settings": "Settings", "view.prompt": "Prompt", "view.gpu": "{s} on the GPU", "view.total": "{s} total", "view.example": "Lab example",
+ "view.seed": "Seed {n}", "view.peak": "peak {gb} GB",
+ "cmp.title": "Compare", "cmp.side": "Side by side", "cmp.wipe": "Wipe", "cmp.drop": "Drop the result to compare (from Higgsfield or anywhere else)",
+ "cmp.pick": "or pick one of your generations", "cmp.other": "Other", "cmp.local": "It stays on this computer; nothing is uploaded.", "cmp.both": "Play both",
+ "cmp.swap": "Swap sides", "cmp.clear": "Clear",
+ "ago.now": "just now", "ago.min": "{n} min ago", "ago.h": "{n} h ago",
+};
+
+const es = {
+ "nav.explore": "Explorar", "nav.image": "Imagen", "nav.video": "Video", "nav.audio": "Audio", "nav.apps": "Apps", "nav.library": "Biblioteca",
+ "nav.vram": "Mapa de VRAM", "nav.create": "Crear", "nav.lang": "Idioma",
+ "tag.featured": "Destacado", "tag.new": "Nuevo", "tag.draft": "Borrador", "tag.top": "Top",
+ "gpu.none": "Sin backend", "gpu.asleep": "GPU dormida", "gpu.waking": "Despertando GPU · {s}s", "gpu.ready": "GPU lista", "gpu.failed": "No despertó",
+ "gpu.pop.none": "Pon en .env, como COMFY_BASE_URL, la URL que imprimió `modal deploy infra/modal_app.py` y reinicia `npm run serve`.",
+ "gpu.pop.asleep": "El backend escala a cero cuando no se usa. Despiértalo ahora y estará listo cuando presiones Generar (un arranque en frío tarda uno o dos minutos).",
+ "gpu.pop.wake": "Despertar la GPU", "gpu.pop.waking": "Arrancando el contenedor. Lo que envíes ahora lo espera.",
+ "gpu.pop.ready": "Caliente: las corridas empiezan de inmediato. Vuelve a dormir 10 minutos después de la última petición.",
+ "gpu.pop.vram": "VRAM en uso", "gpu.pop.loaded": "App cargada", "gpu.pop.running": "{n} en curso", "gpu.pop.backend": "Backend",
+ "explore.lead.a": "Un estudio abierto para", "explore.lead.b": "imagen, video y sonido",
+ "explore.lead.text": "Cada app es un workflow de ComfyUI con pesos abiertos, en tu propia GPU. Nada sale de tu backend.",
+ "explore.start": "Empieza a crear", "explore.browse": "Ver las apps", "explore.apps": "{n} apps",
+ "tile.image.t": "Estudio de imagen", "tile.image.d": "Texto a imagen, estilos, referencias y ediciones.",
+ "tile.video.t": "Estudio de video", "tile.video.d": "Anima fotos, cambia actores, mueve la cámara.",
+ "tile.audio.t": "Audio", "tile.audio.d": "Canciones con letra y efectos de sonido para cualquier escena.",
+ "tile.apps.t": "Apps", "tile.apps.d": "Cada workflow como una app de un clic.",
+ "tile.library.t": "Biblioteca", "tile.library.d": "Tus generaciones y los ejemplos del lab, lado a lado.",
+ "tile.vram.t": "Mapa de VRAM", "tile.vram.d": "Qué cabe en una tarjeta de 24 GB, fase por fase.",
+ "explore.made": "Hecho con Freefield", "explore.made.sub": "Un ejemplo por app, directo de la corrida del lab.", "explore.seeall": "Ver todas las apps",
+ "explore.gallery.sub": "Elige uno y pruébalo con tu propia foto.",
+ "explore.how": "Cómo funciona",
+ "how.1.t": "Un workflow es una app", "how.1.d": "Cada carpeta en apps/ tiene un workflow de ComfyUI y un app.json que convierte sus entradas en el formulario que llenas.",
+ "how.2.t": "Solo pesos abiertos", "how.2.d": "Los modelos se descargan de Hugging Face a tu propio volumen. Cada app lista sus modelos y sus licencias.",
+ "how.3.t": "Tu GPU, bajo demanda", "how.3.d": "ComfyUI corre en Modal y escala a cero. Al cambiar de app se libera la VRAM, así no queda nada de la anterior.",
+ "explore.noex": "Aún no hay ejemplos. Corre el lab una vez y recarga:",
+ "apps.title.a": "Bienvenido a las", "apps.title.b": "apps de Freefield",
+ "apps.sub": "Efectos de un clic hechos con workflows abiertos de ComfyUI: cambia al actor de un clip, reilumina una foto, haz hablar un retrato.",
+ "apps.search": "Buscar", "apps.all": "Todas", "apps.try": "Pruébala", "apps.seeall": "Ver todo", "apps.none": "Ninguna app coincide con “{q}”.",
+ "cat.create.t": "Crear", "cat.create.d": "Desde un prompt o una sola imagen.",
+ "cat.style.t": "Mejora y estilo", "cat.style.d": "Luz, resolución, movimiento y estilo.",
+ "cat.identity.t": "Rostro e identidad", "cat.identity.d": "Mantén un personaje, pon otro en su lugar, hazlo hablar.",
+ "cat.camera.t": "Cámara y movimiento", "cat.camera.d": "Dirige un movimiento, cópialo, vuelve a filmar desde otro ángulo.",
+ "cat.vfx.t": "VFX y edición", "cat.vfx.d": "Cambia lo que hay en la toma.",
+ "cat.ads.t": "Anuncios y productos", "cat.ads.d": "Fotografía de producto sin estudio: packshots, pósters, espectaculares.",
+ "cat.portraits.t": "Retratos y looks", "cat.portraits.d": "Headshots, campañas y outfits desde una selfie.",
+ "cat.play.t": "Juguetes y juegos", "cat.play.d": "Tu foto como peluche, figura, pixel art o meme.",
+ "cat.templates.t": "Plantillas", "cat.templates.d": "Looks de un clic: portadas, pinturas, cómics, color grading.",
+ "cat.more.t": "Más", "cat.more.d": "",
+ "vtab.create": "Crear video", "vtab.edit": "Editar video", "vtab.motion": "Control de movimiento",
+ "ws.history": "Historial", "ws.library": "Biblioteca", "ws.how": "Cómo funciona",
+ "ws.create.title": "Empieza a crear con", "ws.prompt.ph": "Describe la escena que imaginas", "ws.prompt.opt": "{label} (opcional): el prompt de la app ya está puesto", "ws.add": "Agregar {what}",
+ "ws.generate": "Generar", "ws.est": "Tiempo de GPU del ejemplo del lab ({gpu})", "ws.count": "Generaciones",
+ "ws.seed": "Semilla", "ws.seed.random": "Aleatoria", "ws.seed.reuse": "Usar la última", "ws.seed.help": "Misma semilla y mismos ajustes dan el mismo resultado.",
+ "ws.preset": "Preset", "ws.preset.none": "Ninguno", "ws.advanced": "Avanzado", "ws.change": "Cambiar",
+ "ws.drop.image": "Agrega una imagen", "ws.drop.video": "Agrega un video", "ws.drop.audio": "Agrega un audio",
+ "ws.drop.hint": "Haz clic, suelta o pega", "ws.drop.mb": "hasta {mb} MB", "ws.drop.seconds": "{a}–{b} s",
+ "ws.replace": "Reemplazar", "ws.remove": "Quitar", "ws.need": "Primero agrega {label}", "ws.needtext": "Primero escribe {label}",
+ "ws.draft": "Borrador: agrega FREEFIELD_DRAFTS=1 a .env y reinicia el servidor para correrla.", "ws.noworkflow": "Esta app aún no tiene workflow.",
+ "ws.example": "Ejemplo del lab", "ws.useex": "Cargar este ejemplo", "ws.related": "Más como esta",
+ "ws.empty.hist": "Aún no has generado nada con esta app.", "ws.dense": "Mosaicos chicos", "ws.optional": "opcional", "ws.eg": "p. ej. {x}",
+ "status.starting": "Despertando la GPU…", "status.submitting": "Enviando…", "status.queued": "En cola", "status.queued.n": "En cola · #{n}", "status.running": "Generando",
+ "status.step": "paso {a}/{b}", "status.failed": "Falló", "status.canceled": "Cancelado", "status.lost": "Perdido", "status.expired": "Expirado",
+ "status.elapsed": "{s} hasta ahora",
+ "act.open": "Abrir", "act.download": "Descargar", "act.compare": "Comparar", "act.recreate": "Recrear", "act.delete": "Borrar", "act.cancel": "Cancelar",
+ "act.retry": "Reintentar", "act.copy": "Copiar prompt", "act.reuse": "Reusar prompt", "act.sure": "¿Seguro?", "act.close": "Cerrar", "act.prev": "Anterior", "act.next": "Siguiente",
+ "toast.started": "{app} en marcha", "toast.copied": "Copiado", "toast.loaded": "Cargado en {app}", "toast.deleted": "Borrado",
+ "how.pipeline": "Pipeline", "how.pipeline.d": "apps/{id}/workflow.api.json corre en tu backend de ComfyUI; app.json conecta cada campo del formulario con la entrada de un nodo.",
+ "how.models": "Modelos de pesos abiertos", "how.total": "{gb} GB por descargar", "how.gated": "acepta la licencia en Hugging Face", "how.optional": "opcional",
+ "how.vram": "VRAM", "how.whole": "Todos los modelos juntos", "how.phase": "Fase más grande", "how.measured": "Pico medido en el lab",
+ "fit.whole": "Cabe en 24 GB", "fit.phases": "Cabe en 24 GB por fases", "fit.tight": "Justo en 24 GB", "fit.big": "Necesita 48 GB", "fit.none": "Sin modelos",
+ "how.cli": "Desde la terminal", "how.credits": "Créditos", "how.notes": "Notas", "how.equiv": "Equivalente en Higgsfield", "how.pack": "Paquete de modelos",
+ "how.download": "Descárgalo una vez:",
+ "lib.title": "Biblioteca", "lib.sub": "Todo lo que generas aquí se guarda en out/history/ en esta computadora.", "lib.mine": "Mis generaciones", "lib.lab": "Ejemplos del lab",
+ "lib.empty": "Aún no hay nada. Elige una app y presiona Generar.", "lib.allapps": "Todas las apps", "lib.allex": "Todos los ejemplos",
+ "lib.flagged": "Mediocres · {n}", "lib.noflag": "Nada marcado como mediocre. El pulgar abajo en un ejemplo lo marca.",
+ "flag.mediocre": "Mediocre", "flag.marked": "Marcado mediocre", "flag.mark": "Marcar este ejemplo como mediocre: el lab buscará un modelo, LoRA o prompt mejor del mismo tipo",
+ "flag.unmark": "Marcado como mediocre. Clic para quitar la marca", "flag.saved": "Guardado en lab/flags.json", "flag.cleared": "Marca quitada",
+ "vram.title": "Mapa de VRAM", "vram.sub": "Cuánta memoria de GPU necesita cada app. Los modelos se cargan por fases (codificar → difundir → decodificar), así que la fase más grande decide si basta una tarjeta de 24 GB.",
+ "vram.whole": "todos los modelos", "vram.phase": "fase más grande", "vram.measured": "pico medido (lab)", "vram.live": "En vivo: {name} · {used} de {total} GB en uso",
+ "view.inputs": "Entradas", "view.settings": "Ajustes", "view.prompt": "Prompt", "view.gpu": "{s} en la GPU", "view.total": "{s} en total", "view.example": "Ejemplo del lab",
+ "view.seed": "Semilla {n}", "view.peak": "pico {gb} GB",
+ "cmp.title": "Comparar", "cmp.side": "Lado a lado", "cmp.wipe": "Cortina", "cmp.drop": "Suelta el resultado a comparar (de Higgsfield o de donde sea)",
+ "cmp.pick": "o elige una de tus generaciones", "cmp.other": "Otro", "cmp.local": "Se queda en esta computadora; no se sube nada.", "cmp.both": "Reproducir ambos",
+ "cmp.swap": "Intercambiar lados", "cmp.clear": "Quitar",
+ "ago.now": "justo ahora", "ago.min": "hace {n} min", "ago.h": "hace {n} h",
+};
+
+const DICT = { en, es };
+export const LANGS = [["en", "English"], ["es", "Español"]];
+export let lang = store.get("lang") || ((navigator.language || "en").toLowerCase().startsWith("es") ? "es" : "en");
+document.documentElement.lang = lang;
+
+/** t("ws.need", { label: "Image" }) */
+export function t(key, vars) {
+ const s = DICT[lang]?.[key] ?? en[key] ?? key;
+ return vars ? s.replace(/\{(\w+)\}/g, (_, k) => (vars[k] ?? "")) : s;
+}
+
+export function setLang(next) {
+ if (!DICT[next] || next === lang) return;
+ lang = next;
+ store.set("lang", next);
+ document.documentElement.lang = next;
+}
+
+export function ago(iso) {
+ if (!iso) return "";
+ const s = (Date.now() - new Date(iso).getTime()) / 1000;
+ if (s < 60) return t("ago.now");
+ if (s < 3600) return t("ago.min", { n: Math.floor(s / 60) });
+ if (s < 86400) return t("ago.h", { n: Math.floor(s / 3600) });
+ return new Date(iso).toLocaleDateString(lang, { month: "short", day: "numeric", hour: "2-digit", minute: "2-digit" });
+}
diff --git a/web/js/main.js b/web/js/main.js
new file mode 100644
index 0000000..f4c9843
--- /dev/null
+++ b/web/js/main.js
@@ -0,0 +1,91 @@
+// Boot and routing. Each route builds a view ({ node, dispose, active }) into <main>.
+// #/ Explore #/apps the app store #/app/<id> an app's workspace
+// #/image #/video #/audio the studios (open the last app used there)
+// #/library history and lab examples #/vram the VRAM map
+import { el, closePopover, toast } from "./util.js";
+import { t } from "./i18n.js";
+import { loadCatalog, byId, lastAppFor, studioOf, FEATURED } from "./catalog.js";
+import { topbar, gpuState, pollGpu } from "./nav.js";
+import { exploreView, appsView, libraryView, vramView } from "./views.js";
+import { workspaceView, recreate } from "./workspace.js";
+import { hooks, feed } from "./feed.js";
+import { openViewer } from "./viewer.js";
+import { openCompare } from "./compare.js";
+import { flags } from "./flags.js";
+
+const main = el("main", { id: "main", class: "view" });
+let bar = null;
+let current = null;
+
+function route() {
+ const hash = location.hash || "#/";
+ const m = /^#\/app\/([\w-]+)/.exec(hash);
+ if (m) {
+ const view = workspaceView(m[1]);
+ const app = view.app;
+ const featured = app && FEATURED.some((f) => f.id === app.id);
+ return { ...view, active: app ? (featured ? app.id : studioOf(app)) : "apps" };
+ }
+ const studio = /^#\/(image|video|audio)$/.exec(hash);
+ if (studio) {
+ location.replace(`#/app/${lastAppFor(studio[1])}`);
+ return null;
+ }
+ if (hash.startsWith("#/apps")) return appsView();
+ if (hash.startsWith("#/library")) return libraryView();
+ if (hash.startsWith("#/vram")) return vramView(gpuState.data?.device ? gpuState.data : null);
+ return exploreView();
+}
+
+function render({ keepScroll = false } = {}) {
+ closePopover();
+ const view = route();
+ if (!view) return; // redirected
+ current?.dispose?.();
+ current = view;
+ main.replaceChildren(view.node);
+ bar?.update(view.active);
+ if (!keepScroll) window.scrollTo(0, 0);
+ const app = view.app;
+ document.title = app ? `${app.name} · Freefield` : "Freefield";
+}
+
+function buildBar() {
+ const next = topbar({ onLang: () => { buildBar(); render({ keepScroll: true }); } });
+ if (bar) bar.node.replaceWith(next.node); else document.body.prepend(next.node);
+ bar = next;
+}
+
+hooks.open = (items, key) => openViewer(items, key);
+hooks.recreate = (item) => recreate(item);
+hooks.retry = (item) => recreate(item, { run: true });
+hooks.compare = (item) => openCompare(item);
+hooks.rerender = () => render({ keepScroll: true });
+
+// a run starting or ending changes what the GPU pill should say
+let activeRuns = 0;
+feed.on(() => {
+ const n = feed.active().length;
+ if (n !== activeRuns) { activeRuns = n; pollGpu(); }
+});
+
+async function boot() {
+ document.body.append(main);
+ try {
+ await loadCatalog();
+ await flags.load();
+ } catch (err) {
+ main.replaceChildren(el("div", { class: "page" }, el("div", { class: "empty" }, `${err.message}. Is \`npm run serve\` running?`)));
+ return;
+ }
+ buildBar();
+ window.addEventListener("hashchange", () => render());
+ render();
+}
+
+window.addEventListener("unhandledrejection", (e) => {
+ if (e.reason?.name === "AbortError") return;
+ toast(String(e.reason?.message || e.reason), { error: true });
+});
+boot();
+export { byId, t };
diff --git a/web/js/media.js b/web/js/media.js
new file mode 100644
index 0000000..0086865
--- /dev/null
+++ b/web/js/media.js
@@ -0,0 +1,151 @@
+// One shape for everything the UI shows as a result, whether it came from the lab (an example)
+// or from a run started here (a history entry), plus the elements that display them.
+import { el, icon, extOf } from "./util.js";
+import { byId } from "./catalog.js";
+import { flagButton } from "./flags.js";
+
+/** A lab example (web/examples/index.json via /api/apps) as a result item. */
+export function exampleItem(app) {
+ const ex = app?.example;
+ if (!ex) return null;
+ const labels = Object.fromEntries(app.inputs.map((i) => [i.id, i]));
+ return {
+ kind: "example", key: `ex:${app.id}`, app: app.id, type: ex.type, card: ex.card || ex.full, poster: ex.poster, full: ex.full,
+ outputs: [{ type: ex.type, url: ex.full, poster: ex.poster }],
+ inputs: (ex.inputs || []).filter((i) => i.src || i.full).map((i) => ({
+ id: i.id, label: labels[i.id]?.label || i.label || i.id, type: i.type || labels[i.id]?.type,
+ thumb: i.src || null, file: i.full || i.src, play: i.type === "video" || i.type === "audio" ? i.full : null,
+ })),
+ values: ex.values || {}, seed: ex.seed ?? null, seconds: ex.seconds ?? null, total: null, gpu: ex.gpu || null,
+ peak: ex.peak_vram_gb ?? null, created: null, status: "succeeded",
+ };
+}
+
+/** A history entry (/api/history) as a result item. */
+export function entryItem(e) {
+ const app = byId.get(e.app);
+ const labels = Object.fromEntries((app?.inputs || []).map((i) => [i.id, i]));
+ const first = e.outputs[0];
+ return {
+ kind: "history", key: e.id, id: e.id, app: e.app, status: e.status,
+ type: first?.type || app?.outputs?.[0]?.type || "image",
+ card: first?.url || null, poster: null, full: first?.url || null,
+ outputs: e.outputs.map((o) => ({ type: o.type, url: o.url, name: o.name })),
+ inputs: e.inputs.map((i) => ({ id: i.id, label: labels[i.id]?.label || i.id, type: i.type, thumb: i.type === "image" ? i.url : null, file: i.url,
+ play: i.type === "image" ? null : i.url, name: i.name })),
+ values: e.values || {}, seed: e.values?.seed ?? null, preset: e.preset, seconds: e.seconds, total: e.total, created: e.created,
+ started: e.started, error: e.error, progress: e.progress, queue: e.queue, preview: e.preview, gpu: null, peak: null,
+ };
+}
+
+// videos in grids play while on screen and pause when scrolled away
+const visible = new IntersectionObserver((entries) => {
+ for (const en of entries) {
+ const v = en.target;
+ if (en.isIntersecting) v.play().catch(() => {});
+ else v.pause();
+ }
+}, { threshold: 0.35 });
+
+export function playWhenVisible(video) { visible.observe(video); return video; }
+export function hoverPlay(node, video) {
+ if (!video) return;
+ node.addEventListener("mouseenter", () => video.play().catch(() => {}));
+ node.addEventListener("mouseleave", () => { video.pause(); });
+ node.addEventListener("focusin", () => video.play().catch(() => {}));
+ node.addEventListener("focusout", () => video.pause());
+}
+
+function loopVideo(src, poster, preload = "none") {
+ const v = el("video", { src, poster: poster || null, loop: true, playsinline: true, preload, muted: true, disablepictureinpicture: true });
+ v.muted = true;
+ return v;
+}
+
+/**
+ * The picture of an item for a card: an image, a muted loop or a waveform.
+ * play: "hover" (the caller wires it with hoverPlay), "visible" (plays while on screen) or "none".
+ */
+export function thumb(item, { play = "visible", useFull = false, cls = "" } = {}) {
+ const box = el("div", { class: `media ${cls}`.trim() });
+ if (!item) return box;
+ const src = useFull ? item.full || item.card : item.card || item.full;
+ if (item.type === "video" && src) {
+ const isHistory = item.kind === "history";
+ const v = loopVideo(isHistory ? `${src}#t=0.1` : src, item.poster, isHistory ? "metadata" : "none");
+ box.append(v);
+ box._video = v;
+ if (play === "visible") playWhenVisible(v);
+ } else if (item.type === "audio") {
+ box.classList.add("audio", "wave");
+ if (item.card && extOf(item.card) === "png") box.append(el("img", { src: item.card, alt: "", loading: "lazy" }));
+ else if (item.full) box.append(waveform(item.full));
+ box.append(el("span", { class: "typeicon" }, icon("audio")));
+ } else if (src) {
+ box.append(el("img", { src, alt: "", loading: "lazy", decoding: "async", class: extOf(src) === "png" ? "alpha" : null }));
+ }
+ return box;
+}
+
+/** A gallery option's lab example (web/examples/<app>/options/...): a muted loop with its poster, or a still. */
+export function optionThumb(shot, { play = "visible" } = {}) {
+ return thumb({ kind: "example", type: shot.type, card: shot.card, poster: shot.poster, full: null }, { play });
+}
+
+/**
+ * One option of a gallery select as a card: its example (or a placeholder) and its label.
+ * flagKey: the example's key in lab/flags.json; with one, the card gets the "mediocre" toggle in its corner.
+ */
+export function optionTile(opt, shot, { selected = false, play = "hover", onPick, flagKey = null } = {}) {
+ const media = shot ? optionThumb(shot, { play }) : el("div", { class: "media" }, el("span", { class: "placeholder" }, icon("spark")));
+ const tile = el("button", { class: "fx-tile", type: "button", "aria-pressed": String(selected), onclick: onPick }, media, el("span", { class: "lbl" }, opt.label));
+ if (play === "hover") hoverPlay(tile, media._video);
+ if (!flagKey || !shot) return tile;
+ return el("div", { class: "fx-cell" }, tile, flagButton(flagKey, { mini: true }));
+}
+
+/** A playable, full-size element for the viewer and the library. */
+export function fullMedia(type, src, { poster, autoplay = true } = {}) {
+ if (!src) return el("div", { class: "empty" }, "—");
+ if (type === "video") {
+ const v = el("video", { src, poster: poster || null, controls: true, loop: true, playsinline: true, preload: "auto", autoplay: autoplay || null });
+ return v;
+ }
+ if (type === "audio") {
+ return el("div", { class: "audio-box" }, el("div", { class: "media audio wave", style: { borderRadius: "12px", aspectRatio: "4 / 1" } }, waveform(src)),
+ el("audio", { src, controls: true, preload: "metadata", autoplay: autoplay || null }));
+ }
+ return el("img", { src, alt: "", class: extOf(src) === "png" ? "alpha" : null });
+}
+
+/** A waveform drawn from the audio file itself (decoded lazily, once it is on screen). */
+export function waveform(url) {
+ const canvas = el("canvas", { width: 640, height: 160, style: { width: "100%", height: "auto", display: "block" } });
+ const io = new IntersectionObserver(async (entries) => {
+ if (!entries.some((e) => e.isIntersecting)) return;
+ io.disconnect();
+ try {
+ const buf = await (await fetch(url)).arrayBuffer();
+ const ctx = new (window.OfflineAudioContext || window.webkitOfflineAudioContext)(1, 1, 44100);
+ const audio = await ctx.decodeAudioData(buf);
+ const data = audio.getChannelData(0);
+ const g = canvas.getContext("2d");
+ const bars = 96, step = Math.floor(data.length / bars), w = canvas.width / bars;
+ g.fillStyle = "#e8ff5a";
+ for (let b = 0; b < bars; b++) {
+ let peak = 0;
+ for (let i = b * step; i < (b + 1) * step; i += 64) peak = Math.max(peak, Math.abs(data[i] || 0));
+ const h = Math.max(3, Math.sqrt(peak) * canvas.height * 0.9);
+ g.fillRect(b * w + 1.5, (canvas.height - h) / 2, w - 3, h);
+ }
+ } catch { /* leave it blank */ }
+ });
+ io.observe(canvas);
+ return canvas;
+}
+
+/** File name for a download link. */
+export function downloadName(item, url) {
+ const ext = extOf(url) || (item.type === "video" ? "mp4" : item.type === "audio" ? "mp3" : "png");
+ return `freefield-${item.app}-${item.kind === "history" ? item.id : "example"}.${ext}`;
+}
diff --git a/web/js/nav.js b/web/js/nav.js
new file mode 100644
index 0000000..58c0427
--- /dev/null
+++ b/web/js/nav.js
@@ -0,0 +1,119 @@
+// The top bar: studios, featured apps, the VRAM map, language, and the GPU pill that tells
+// whether the backend is warm (and wakes it on request; looking never starts it).
+import { el, icon, logoMark, api, popover, closePopover, toast, live } from "./util.js";
+import { t, lang, LANGS, setLang } from "./i18n.js";
+import { byId, FEATURED } from "./catalog.js";
+
+export const gpuState = { data: null, listeners: new Set() };
+let pollTimer = null;
+
+async function pollGpu() {
+ clearTimeout(pollTimer);
+ try {
+ gpuState.data = await api("/api/gpu");
+ } catch {
+ gpuState.data = null;
+ }
+ live.gpuWarm = Boolean(gpuState.data?.warm);
+ for (const fn of gpuState.listeners) fn(gpuState.data);
+ const busy = gpuState.data?.waking || gpuState.data?.running;
+ pollTimer = setTimeout(pollGpu, busy ? 3000 : 15000);
+}
+
+function gpuPill() {
+ const dot = el("span", { class: "dot" });
+ const label = el("span", {});
+ const pill = el("button", { class: "gpu", type: "button", "aria-haspopup": "dialog" }, dot, label);
+ const draw = (g) => {
+ pill.className = "gpu";
+ if (!g) { label.textContent = "…"; return; }
+ if (!g.configured) { pill.classList.add("off"); label.textContent = t("gpu.none"); }
+ else if (g.waking?.error) { pill.classList.add("error"); label.textContent = t("gpu.failed"); }
+ else if (g.waking) { pill.classList.add("waking"); label.textContent = t("gpu.waking", { s: g.waking.seconds }); }
+ else if (g.warm) { pill.classList.add("warm"); label.textContent = t("gpu.ready"); }
+ else label.textContent = t("gpu.asleep");
+ };
+ gpuState.listeners.add(draw);
+ draw(gpuState.data);
+ pill.onclick = async () => {
+ // VRAM in use is asked for only now, and the server only asks a backend that is already warm
+ if (gpuState.data?.warm) {
+ try { gpuState.data = await api("/api/gpu?device=1"); draw(gpuState.data); } catch { /* keep what we had */ }
+ }
+ const g = gpuState.data;
+ const wake = el("button", { class: "btn lime small", type: "button", onclick: async () => {
+ try { gpuState.data = await api("/api/gpu/wake", { method: "POST" }); draw(gpuState.data); pollGpu(); closePopover(); }
+ catch (err) { toast(err.message, { error: true }); }
+ } }, icon("bolt"), t("gpu.pop.wake"));
+ const lines = [];
+ if (!g?.configured) lines.push(el("p", { class: "help" }, t("gpu.pop.none")));
+ else {
+ lines.push(el("p", { class: "help" }, `${t("gpu.pop.backend")}: ${g.host}`));
+ if (g.waking?.error) lines.push(el("p", { class: "help", style: { color: "var(--bad)" } }, g.waking.error), wake);
+ else if (g.waking) lines.push(el("p", { class: "help" }, t("gpu.pop.waking")));
+ else if (g.warm) {
+ lines.push(el("p", { class: "help" }, t("gpu.pop.ready")));
+ if (g.device?.vram_total_gb) {
+ lines.push(el("div", { style: { display: "grid", gap: "6px" } },
+ el("div", { style: { display: "flex", justifyContent: "space-between", fontSize: "12.5px" } }, el("span", { class: "dim" }, `${t("gpu.pop.vram")} · ${g.device.name || "GPU"}`),
+ el("b", {}, `${g.device.vram_used_gb} / ${g.device.vram_total_gb} GB`)),
+ el("div", { class: "vbar" }, el("i", { style: { width: `${(g.device.vram_used_gb / g.device.vram_total_gb) * 100}%` } }))));
+ }
+ if (g.device?.app) lines.push(el("p", { class: "help" }, `${t("gpu.pop.loaded")}: ${byId.get(g.device.app)?.name ?? g.device.app}`));
+ } else lines.push(el("p", { class: "help" }, t("gpu.pop.asleep")), wake);
+ if (g.running) lines.push(el("p", { class: "help" }, t("gpu.pop.running", { n: g.running })));
+ }
+ popover(pill, el("div", { class: "pad", style: { width: "300px" } }, ...lines), { align: "end" });
+ };
+ return pill;
+}
+
+/** Build the bar once; update() marks the current page. */
+export function topbar({ onLang }) {
+ gpuState.listeners.clear(); // a rebuilt bar (language change) replaces the old pill
+ const items = [
+ ["explore", "#/", "compass"], ["image", "#/image", "image"], ["video", "#/video", "video"], ["audio", "#/audio", "audio"],
+ ["apps", "#/apps", "layers"], ["library", "#/library", "film"],
+ ];
+ const links = new Map();
+ const nav = el("nav", { class: "nav-main", "aria-label": "Freefield" });
+ for (const [key, hash] of items) {
+ const a = el("a", { href: hash }, t(`nav.${key}`));
+ links.set(key, a);
+ nav.append(a);
+ }
+ nav.append(el("span", { class: "sep opt-hide" }));
+ for (const f of FEATURED) {
+ const app = byId.get(f.id);
+ if (!app) continue;
+ const a = el("a", { href: `#/app/${app.id}`, class: "opt-hide" }, app.name, f.tag ? el("span", { class: `tag${f.tag === "new" ? "" : " violet"}` }, t(`tag.${f.tag}`)) : null);
+ links.set(app.id, a);
+ nav.append(a);
+ }
+ const vram = el("a", { class: "icon-btn", href: "#/vram", title: t("nav.vram"), "aria-label": t("nav.vram") }, icon("chip"));
+ links.set("vram", vram);
+ const langBtn = el("button", { class: "icon-btn", type: "button", title: t("nav.lang"), "aria-label": t("nav.lang") }, icon("globe"));
+ langBtn.onclick = () => popover(langBtn, el("div", {}, ...LANGS.map(([code, name]) => el("button", { class: "opt", type: "button", "aria-selected": String(code === lang),
+ onclick: () => { closePopover(); setLang(code); onLang(); } }, name, el("span", { class: "chk" }, icon("check"))))), { align: "end" });
+ // phones: the same links in a menu
+ const menuBtn = el("button", { class: "icon-btn menu-btn", type: "button", "aria-label": "Menu" }, icon("menu"));
+ menuBtn.onclick = () => popover(menuBtn, el("div", {}, ...[...items.map(([key, hash, ic]) => [t(`nav.${key}`), hash, ic]),
+ ...FEATURED.filter((f) => byId.has(f.id)).map((f) => [byId.get(f.id).name, `#/app/${f.id}`, "spark"]), [t("nav.vram"), "#/vram", "chip"]]
+ .map(([label, hash, ic]) => el("a", { class: "opt", href: hash, onclick: closePopover }, icon(ic), label))));
+ const bar = el("header", { class: "topbar" },
+ menuBtn,
+ el("a", { class: "logo", href: "#/", "aria-label": "Freefield" }, logoMark(), el("span", { class: "word" }, "freefield")),
+ nav,
+ el("div", { class: "nav-right" }, vram, langBtn, gpuPill(), el("a", { class: "btn lime small cta", href: "#/image" }, icon("spark"), t("nav.create"))));
+ if (!pollTimer) pollGpu();
+ return {
+ node: bar,
+ update(active) {
+ for (const [key, a] of links) {
+ if (key === active) a.setAttribute("aria-current", "page");
+ else a.removeAttribute("aria-current");
+ }
+ },
+ };
+}
+export { pollGpu };
diff --git a/web/js/util.js b/web/js/util.js
new file mode 100644
index 0000000..75710d8
--- /dev/null
+++ b/web/js/util.js
@@ -0,0 +1,222 @@
+// Small helpers shared by every view: DOM building, icons, the JSON API, per-viewer storage,
+// toasts and popovers. No framework; each view builds its DOM and gives back a cleanup function.
+
+/** el("button", { class: "btn", onclick }, "text", child) */
+export function el(tag, attrs = {}, ...kids) {
+ const e = tag === "svg" || attrs?.svg ? document.createElementNS("http://www.w3.org/2000/svg", tag) : document.createElement(tag);
+ for (const [k, v] of Object.entries(attrs || {})) {
+ if (v === undefined || v === null || v === false || k === "svg") continue;
+ if (k === "class") e.setAttribute("class", v);
+ else if (k === "style" && typeof v === "object") Object.assign(e.style, v);
+ else if (k === "dataset") Object.assign(e.dataset, v);
+ else if (k.startsWith("on") && typeof v === "function") e.addEventListener(k.slice(2), v);
+ else if (k === "value" && "value" in e) e.value = v;
+ else if (k === "checked" || k === "muted" || k === "disabled" && "disabled" in e) e[k] = Boolean(v);
+ else e.setAttribute(k, v === true ? "" : v);
+ }
+ for (const k of kids.flat(Infinity)) {
+ if (k === null || k === undefined || k === false || k === "") continue;
+ e.append(k?.nodeType ? k : document.createTextNode(String(k)));
+ }
+ return e;
+}
+
+// 24×24 stroke icons drawn for Freefield
+const P = {
+ plus: "M12 5v14M5 12h14",
+ chevR: "M9 6l6 6-6 6", chevL: "M15 6l-6 6 6 6", chevD: "M6 9l6 6 6-6",
+ image: "M5 4h14a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2z|M21 15l-5-5-9 9|C9 9.5 1.6",
+ video: "M4 6h10a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z|M16 10.5l5-3v9l-5-3",
+ audio: "M9 18V6l11-2v12|C6 18 3|C17 16 3",
+ download: "M12 4v11|M7 10l5 5 5-5|M5 20h14",
+ trash: "M4 7h16|M10 11v6|M14 11v6|M6 7l1 13h10l1-13|M9 7V4h6v3",
+ compare: "M12 3v18|M4 5h16a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1z|M7 12l-2 0|M19 12l-2 0",
+ play: "F M8 5.5v13l11-6.5z",
+ pause: "M8 5v14|M16 5v14",
+ x: "M6 6l12 12|M18 6L6 18",
+ search: "C11 11 7|M20 20l-4-4",
+ globe: "C12 12 9|M3 12h18|M12 3c2.5 2.6 3.7 5.6 3.7 9s-1.2 6.4-3.7 9c-2.5-2.6-3.7-5.6-3.7-9S9.5 5.6 12 3z",
+ code: "M8 8l-4 4 4 4|M16 8l4 4-4 4|M13.5 5l-3 14",
+ dice: "M6 4h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2z|D 8.5 8.5|D 15.5 8.5|D 12 12|D 8.5 15.5|D 15.5 15.5",
+ sliders: "M4 7h9|M17 7h3|M4 17h3|M11 17h9|C15 7 2|C9 17 2",
+ copy: "M9 9h10a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1V10a1 1 0 0 1 1-1z|M16 9V5a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h3",
+ redo: "M4 12a8 8 0 1 0 2.4-5.7|M4 4v5h5",
+ upload: "M12 16V4|M7 9l5-5 5 5|M5 20h14",
+ grid: "M4 4h7v7H4z|M13 4h7v7h-7z|M4 13h7v7H4z|M13 13h7v7h-7z",
+ rows: "M4 5h16v6H4z|M4 13h16v6H4z",
+ clock: "C12 12 9|M12 7v5l3 2",
+ chip: "M7 7h10v10H7z|M10 3v4|M14 3v4|M10 17v4|M14 17v4|M3 10h4|M3 14h4|M17 10h4|M17 14h4",
+ swap: "M7 7h12l-3-3|M17 17H5l3 3",
+ wand: "M5 19L15 9|M13 7l4 4|M18 3v3|M16.5 4.5h3|M20 9v2|M19 10h2",
+ ext: "M14 4h6v6|M20 4l-9 9|M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5",
+ layers: "M12 3l9 5-9 5-9-5z|M3 13l9 5 9-5",
+ info: "C12 12 9|M12 11v5|D 12 8",
+ check: "M5 12.5l4.5 4.5L19 7.5",
+ stop: "F M7 7h10v10H7z",
+ bolt: "F M13 2L4.5 13.5H11L10 22l8.5-11.5H12z",
+ film: "M4 4h16v16H4z|M8 4v16|M16 4v16|M4 9h4|M4 15h4|M16 9h4|M16 15h4",
+ compass: "C12 12 9|F M15.5 8.5l-2 5-5 2 2-5z",
+ spark: "F M12 2.5l1.9 6.1 6.1 1.9-6.1 1.9L12 18.5l-1.9-6.1L4 10.5l6.1-1.9z|F M19 15l.9 2.1 2.1.9-2.1.9-.9 2.1-.9-2.1L16 18l2.1-.9z",
+ volume: "M4 9v6h4l5 4V5L8 9z|M16.5 8.5a5 5 0 0 1 0 7",
+ mute: "M4 9v6h4l5 4V5L8 9z|M17 9l5 6|M22 9l-5 6",
+ camera: "M4 8h3l2-3h6l2 3h3v11H4z|C12 13 3.5",
+ user: "C12 8 4|M4 21c1.5-4 4.5-6 8-6s6.5 2 8 6",
+ hand: "M8 13V6a1.5 1.5 0 0 1 3 0v6|M11 11V4.5a1.5 1.5 0 0 1 3 0V11|M14 11V6a1.5 1.5 0 0 1 3 0v8c0 4-2.5 7-6 7-2.5 0-4-1.2-5.2-3L3.6 14a1.5 1.5 0 0 1 2.4-1.8L8 15",
+ scissors: "C6 7 2.5|C6 17 2.5|M8 8.5L20 18|M8 15.5L20 6",
+ box: "M12 3l8 4.5v9L12 21l-8-4.5v-9z|M12 12l8-4.5|M12 12v9|M12 12L4 7.5",
+ sun: "C12 12 4|M12 2v2|M12 20v2|M4.9 4.9l1.4 1.4|M17.7 17.7l1.4 1.4|M2 12h2|M20 12h2|M4.9 19.1l1.4-1.4|M17.7 6.3l1.4-1.4",
+ menu: "M4 7h16|M4 12h16|M4 17h16",
+ thumbdown: "M17 4v10|M7 13.5l3 6.5c1.6 0 2.5-1 2.5-2.5V15h5.3c1 0 1.8-1 1.6-2L18.3 5.3c-.1-.8-.8-1.3-1.6-1.3H7z",
+};
+
+/** icon("image") → an inline SVG (stroke = currentColor). Path syntax: "|" separates parts; C cx cy r = circle; D x y = dot; "F " = filled path. */
+export function icon(name, cls = "") {
+ const svg = el("svg", { svg: true, class: `i i-${name} ${cls}`.trim(), viewBox: "0 0 24 24", fill: "none", stroke: "currentColor",
+ "stroke-width": "1.8", "stroke-linecap": "round", "stroke-linejoin": "round", "aria-hidden": "true" });
+ for (const part of (P[name] || "").split("|")) {
+ const circle = /^([CD])\s*([\d.]+)\s+([\d.]+)(?:\s+([\d.]+))?$/.exec(part.trim());
+ if (circle?.[1] === "C") {
+ svg.append(el("circle", { svg: true, cx: circle[2], cy: circle[3], r: circle[4] }));
+ } else if (circle?.[1] === "D") {
+ svg.append(el("circle", { svg: true, cx: circle[2], cy: circle[3], r: "1.1", fill: "currentColor", stroke: "none" }));
+ } else if (part.startsWith("F ")) {
+ svg.append(el("path", { svg: true, d: part.slice(2), fill: "currentColor", stroke: "none" }));
+ } else if (part) {
+ svg.append(el("path", { svg: true, d: part }));
+ }
+ }
+ return svg;
+}
+
+/** The Freefield mark: three rows of a field, the middle one free. */
+export function logoMark() {
+ const svg = el("svg", { svg: true, class: "mark", viewBox: "0 0 32 32", "aria-hidden": "true" });
+ svg.append(
+ el("rect", { svg: true, x: "1", y: "1", width: "30", height: "30", rx: "9", fill: "#e8ff5a" }),
+ el("path", { svg: true, d: "M8 11.5h16", stroke: "#11140a", "stroke-width": "3", "stroke-linecap": "round" }),
+ el("path", { svg: true, d: "M8 16.5h9", stroke: "#11140a", "stroke-width": "3", "stroke-linecap": "round" }),
+ el("circle", { svg: true, cx: "22.5", cy: "16.5", r: "1.9", fill: "#11140a" }),
+ el("path", { svg: true, d: "M8 21.5h12", stroke: "#11140a", "stroke-width": "3", "stroke-linecap": "round" }),
+ );
+ return svg;
+}
+
+/** Small bits of live state shared between modules (the GPU pill writes, cards read). */
+export const live = { gpuWarm: false };
+
+export class ApiError extends Error {
+ constructor(message, status) { super(message); this.status = status; }
+}
+
+/** fetch → JSON; a non-2xx answer throws with the server's message. */
+export async function api(path, opts = {}) {
+ const res = await fetch(path, opts);
+ let body = null;
+ try { body = await res.json(); } catch { /* empty body */ }
+ if (!res.ok) throw new ApiError(body?.error || `${res.status} ${res.statusText}`, res.status);
+ return body;
+}
+
+/** Per-viewer conveniences (language, drafts, last app). Storage can be missing or throw: never rely on it. */
+export const store = {
+ get(key, fallback = null) {
+ try { const v = localStorage.getItem(`ff.${key}`); return v === null ? fallback : JSON.parse(v); } catch { return fallback; }
+ },
+ set(key, value) {
+ try { localStorage.setItem(`ff.${key}`, JSON.stringify(value)); } catch { /* private mode */ }
+ },
+};
+
+export function fmtSeconds(s) {
+ if (s === null || s === undefined || !Number.isFinite(Number(s))) return "";
+ s = Number(s);
+ if (s < 10) return `${s.toFixed(1).replace(/\.0$/, "")} s`;
+ if (s < 90) return `${Math.round(s)} s`;
+ const m = Math.floor(s / 60), r = Math.round(s % 60);
+ return `${m} min${r ? ` ${String(r).padStart(2, "0")} s` : ""}`;
+}
+
+/** Rough duration for buttons: "18 s", "~6 min". */
+export function fmtShort(s) {
+ if (!Number.isFinite(Number(s))) return "";
+ s = Number(s);
+ return s < 90 ? `${Math.round(s)} s` : `~${Math.round(s / 60)} min`;
+}
+
+export const clamp = (v, lo, hi) => Math.min(hi, Math.max(lo, v));
+export const isMedia = (type) => type === "image" || type === "video" || type === "audio";
+export const extOf = (url) => (/\.([a-z0-9]+)(?:\?|#|$)/i.exec(url || "")?.[1] || "").toLowerCase();
+
+/** A short-lived message at the bottom of the screen. */
+export function toast(message, { error = false, ms = 4200 } = {}) {
+ let host = document.querySelector(".toast-host");
+ if (!host) document.body.append(host = el("div", { class: "toast-host", role: "status", "aria-live": "polite" }));
+ const t = el("div", { class: `toast${error ? " err" : ""}` }, message);
+ host.append(t);
+ setTimeout(() => t.remove(), error ? Math.max(ms, 8000) : ms);
+}
+
+let openPop = null;
+/** A popover anchored to a button; opens upwards when there is no room below. Returns a close function. */
+export function popover(anchor, content, { onClose, align = "start", width, cls = "" } = {}) {
+ closePopover();
+ const pop = el("div", { class: `pop ${cls}`.trim(), role: "dialog" }, content);
+ if (width) pop.style.width = `${width}px`;
+ document.body.append(pop);
+ const place = () => {
+ const r = anchor.getBoundingClientRect();
+ const pw = pop.offsetWidth, ph = pop.offsetHeight;
+ let left = align === "end" ? r.right - pw : r.left;
+ left = clamp(left, 12, window.innerWidth - pw - 12);
+ const below = window.innerHeight - r.bottom, above = r.top;
+ const top = below >= ph + 12 || below > above ? r.bottom + 8 : r.top - ph - 8;
+ pop.style.left = `${left}px`;
+ pop.style.top = `${clamp(top, 12, window.innerHeight - ph - 12)}px`;
+ };
+ place();
+ const away = (e) => { if (!pop.contains(e.target) && !anchor.contains(e.target)) close(); };
+ const key = (e) => { if (e.key === "Escape") { close(); anchor.focus?.(); } };
+ const close = () => {
+ if (!pop.isConnected) return;
+ pop.remove();
+ document.removeEventListener("pointerdown", away, true);
+ document.removeEventListener("keydown", key, true);
+ window.removeEventListener("resize", close);
+ if (openPop === close) openPop = null;
+ onClose?.();
+ };
+ setTimeout(() => {
+ document.addEventListener("pointerdown", away, true);
+ document.addEventListener("keydown", key, true);
+ window.addEventListener("resize", close);
+ });
+ openPop = close;
+ pop.querySelector("[autofocus], input, textarea, .opt[aria-selected='true'], .opt")?.focus?.({ preventScroll: true });
+ return close;
+}
+export function closePopover() { openPop?.(); }
+
+/** Debounce for resize and typing. */
+export function debounce(fn, ms = 150) {
+ let t;
+ return (...a) => { clearTimeout(t); t = setTimeout(() => fn(...a), ms); };
+}
+
+/** Build columns that keep reading order (row by row) and re-flow when the width changes. */
+export function masonry(container, items, { min = 260, gap = 12 } = {}) {
+ container.classList.add("masonry");
+ const flow = () => {
+ const w = container.clientWidth || container.parentElement?.clientWidth || window.innerWidth;
+ const n = Math.max(1, Math.floor((w + gap) / (min + gap)));
+ if (container._n === n && container._items === items) return;
+ container._n = n; container._items = items;
+ const cols = Array.from({ length: n }, () => el("div", { class: "col" }));
+ items.forEach((it, i) => cols[i % n].append(it));
+ container.replaceChildren(...cols);
+ };
+ flow();
+ container._ro?.disconnect();
+ container._ro = new ResizeObserver(debounce(flow, 80));
+ container._ro.observe(container);
+ return () => container._ro?.disconnect();
+}
diff --git a/web/js/viewer.js b/web/js/viewer.js
new file mode 100644
index 0000000..3e943c2
--- /dev/null
+++ b/web/js/viewer.js
@@ -0,0 +1,96 @@
+// The viewer: one result large, with what made it (prompt, settings, inputs, timings) and what
+// to do next (recreate, download, compare, delete). Arrow keys move through the list it came from.
+import { el, icon, fmtSeconds, toast } from "./util.js";
+import { t, ago } from "./i18n.js";
+import { byId, promptInput } from "./catalog.js";
+import { fullMedia, thumb, downloadName } from "./media.js";
+import { hooks, feed, deleteButton } from "./feed.js";
+import { flags, flagButton } from "./flags.js";
+
+function optionLabel(inp, v) {
+ const o = (inp.options || []).find((x) => String(x.value) === String(v));
+ return o ? o.label : String(v ?? "");
+}
+
+export function openViewer(items, startKey) {
+ if (!items.length) return;
+ let i = Math.max(0, items.findIndex((x) => x.key === startKey || x.id === startKey));
+ let out = 0;
+ const stage = el("div", { class: "stage" });
+ const aside = el("aside");
+ const modal = el("div", { class: "modal", role: "dialog", "aria-modal": "true" }, stage, aside);
+ const prevFocus = document.activeElement;
+ const close = () => {
+ modal.remove();
+ document.removeEventListener("keydown", onKey, true);
+ document.body.style.overflow = "";
+ prevFocus?.focus?.({ preventScroll: true });
+ };
+ const go = (d) => { i = (i + d + items.length) % items.length; out = 0; draw(); };
+ const onKey = (e) => {
+ if (e.target.closest?.("input, textarea")) return;
+ if (e.key === "Escape") { e.stopPropagation(); close(); }
+ else if (e.key === "ArrowRight" && items.length > 1) go(1);
+ else if (e.key === "ArrowLeft" && items.length > 1) go(-1);
+ };
+ modal.addEventListener("click", (e) => { if (e.target === stage) close(); });
+
+ function draw() {
+ const item = items[i];
+ const app = byId.get(item.app);
+ const output = item.outputs[out] || { type: item.type, url: item.full };
+ stage.replaceChildren(...[
+ el("button", { class: "round close", type: "button", title: t("act.close"), "aria-label": t("act.close"), onclick: close }, icon("x")),
+ items.length > 1 ? el("button", { class: "round navb prev", type: "button", "aria-label": t("act.prev"), onclick: () => go(-1) }, icon("chevL")) : null,
+ fullMedia(output.type, output.url, { poster: item.poster }),
+ items.length > 1 ? el("button", { class: "round navb next", type: "button", "aria-label": t("act.next"), onclick: () => go(1) }, icon("chevR")) : null,
+ item.outputs.length > 1 ? el("div", { class: "tabs", style: { position: "absolute", bottom: "14px", left: "50%", transform: "translateX(-50%)" } },
+ ...item.outputs.map((o, k) => el("button", { type: "button", "aria-selected": String(k === out), onclick: () => { out = k; draw(); } }, `${k + 1}`))) : null].filter(Boolean));
+
+ const pi = app ? promptInput(app) : null;
+ const prompt = pi ? String(item.values?.[pi.id] ?? "") : "";
+ const labels = Object.fromEntries((app?.inputs || []).map((x) => [x.id, x]));
+ const settings = Object.entries(item.values || {}).filter(([k, v]) => labels[k] && labels[k] !== pi && labels[k].type !== "seed" && v !== "" && v !== null && v !== undefined);
+ const stats = [
+ item.seconds ? [icon("clock"), t("view.gpu", { s: fmtSeconds(item.seconds) })] : null,
+ item.total && (!item.seconds || item.total - item.seconds > 2) ? [item.seconds ? null : icon("clock"), t("view.total", { s: fmtSeconds(item.total) })] : null,
+ item.gpu ? [icon("chip"), item.gpu.split(",")[0]] : null,
+ item.peak ? [t("view.peak", { gb: item.peak })] : null,
+ item.seed !== null && item.seed !== undefined ? [icon("dice"), String(item.seed)] : null,
+ ].filter(Boolean);
+ const url = output.url;
+ aside.replaceChildren(...[
+ el("div", { class: "approw" }, app ? thumb({ ...item, kind: "example", card: app.example?.card || item.card, poster: app.example?.poster, type: app.example?.type || item.type }, { play: "none" }) : null,
+ el("div", {}, el("b", {}, app?.name ?? item.app), el("small", {}, item.kind === "example" ? t("view.example") : ago(item.created)))),
+ prompt ? el("div", { style: { display: "grid", gap: "6px" } },
+ el("div", { style: { display: "flex", justifyContent: "space-between", alignItems: "center" } }, el("small", { class: "dim" }, t("view.prompt")),
+ el("button", { class: "btn small ghost", type: "button", onclick: () => navigator.clipboard?.writeText(prompt).then(() => toast(t("toast.copied"))) }, icon("copy"), t("act.copy"))),
+ el("div", { class: "prompt" }, prompt)) : null,
+ stats.length ? el("div", { class: "statline" }, ...stats.map((s) => el("span", {}, ...s))) : null,
+ settings.length ? el("div", { style: { display: "grid", gap: "8px" } }, el("small", { class: "dim" }, t("view.settings")),
+ el("dl", { class: "vals" }, ...settings.flatMap(([k, v]) => [el("dt", {}, labels[k].label),
+ el("dd", {}, labels[k].type === "select" ? optionLabel(labels[k], v) : labels[k].type === "toggle" ? (v === true || v === "true" ? "✓" : "—") : String(v))]))) : null,
+ item.inputs.length ? el("div", { style: { display: "grid", gap: "8px" } }, el("small", { class: "dim" }, t("view.inputs")),
+ el("div", { class: "ins-row" }, ...item.inputs.map((x) => el("figure", {},
+ el("a", { class: "media", href: x.file, target: "_blank", rel: "noopener", title: x.label },
+ x.thumb ? el("img", { src: x.thumb, alt: x.label }) : el("span", { class: "typeicon", style: { position: "static", margin: "33px auto" } }, icon(x.type || "image"))),
+ el("figcaption", {}, x.label))))) : null,
+ el("div", { class: "acts" },
+ app ? el("button", { class: "btn lime", type: "button", onclick: () => { close(); hooks.recreate?.(item); } }, icon("redo"), t("act.recreate")) : null,
+ url ? el("a", { class: "btn ghost", href: url, download: downloadName(item, url) }, icon("download"), t("act.download")) : null,
+ el("button", { class: "btn ghost", type: "button", onclick: () => { close(); hooks.compare?.({ ...item, full: url, type: output.type }); } }, icon("compare"), t("act.compare")),
+ item.kind === "example" && app ? flagButton(flags.key(app.id)) : null,
+ item.kind === "history" ? deleteButton(async () => {
+ await feed.remove(item.id);
+ items.splice(i, 1);
+ if (!items.length) close(); else { i = Math.min(i, items.length - 1); draw(); }
+ }, "btn ghost danger") : app ? el("a", { class: "btn ghost", href: `#/app/${app.id}`, onclick: close }, icon("ext"), t("act.open")) : null)].filter(Boolean));
+ }
+
+ draw();
+ document.body.append(modal);
+ document.body.style.overflow = "hidden";
+ document.addEventListener("keydown", onKey, true);
+ modal.querySelector(".close")?.focus({ preventScroll: true });
+ return close;
+}
diff --git a/web/js/views.js b/web/js/views.js
new file mode 100644
index 0000000..7383e0a
--- /dev/null
+++ b/web/js/views.js
@@ -0,0 +1,232 @@
+// The pages that are not a workspace: Explore (home), Apps (the store), Library and the VRAM map.
+import { el, icon, masonry } from "./util.js";
+import { t } from "./i18n.js";
+import { apps, byId, CATEGORIES, HERO, tagline, iconOf, fitOf, categoryOf, studioOf } from "./catalog.js";
+import { exampleItem, thumb, hoverPlay, optionTile } from "./media.js";
+import { feed, feedView, hooks } from "./feed.js";
+import { pickOption } from "./workspace.js";
+import { flags, flagButton } from "./flags.js";
+
+const go = (hash) => () => { location.hash = hash; };
+const appTag = (a) => (a.status === "draft" ? el("span", { class: "tag dark" }, t("tag.draft")) : null);
+
+function exampleTile(a, list) {
+ const item = exampleItem(a);
+ const node = el("div", { class: "m-item", role: "button", tabindex: "0", "aria-label": a.name },
+ thumb(item, { play: "visible" }),
+ flagButton(flags.key(a.id), { mini: true }),
+ el("div", { class: "cap" }, el("span", {}, a.name), el("span", { class: "tag dark" }, t(`nav.${studioOf(a) === "apps" ? "apps" : studioOf(a)}`))));
+ const open = () => hooks.open?.(list.map(exampleItem), item.key);
+ node.addEventListener("click", open);
+ node.addEventListener("keydown", (e) => { if (e.key === "Enter") open(); });
+ return node;
+}
+
+// ------------------------------------------------------------------ Explore
+export function exploreView() {
+ const withEx = apps.filter((a) => a.example);
+ const hero = HERO.map((id) => byId.get(id)).filter((a) => a?.example);
+ for (const a of withEx) if (hero.length < 6 && !hero.includes(a) && a.example.type === "video") hero.push(a);
+
+ const row = el("div", { class: "hero-row" }, ...hero.map((a) => {
+ const item = exampleItem(a);
+ const card = el("div", { class: "hero-card", role: "link", tabindex: "0", onclick: go(`#/app/${a.id}`), onkeydown: (e) => { if (e.key === "Enter") location.hash = `#/app/${a.id}`; } },
+ thumb(item, { play: "visible", useFull: item.type === "video" }),
+ el("div", { class: "txt" },
+ el("div", { style: { display: "flex", gap: "6px" } }, el("span", { class: "tag" }, a.name), appTag(a)),
+ el("h3", { class: "display" }, tagline(a)),
+ el("p", {}, a.summary)));
+ return card;
+ }));
+ const scroll = (d) => () => row.scrollBy({ left: d * row.clientWidth * 0.66, behavior: "smooth" });
+ const prevBtn = el("button", { class: "hero-nav prev", type: "button", "aria-label": t("act.prev"), onclick: scroll(-1), hidden: true }, icon("chevL"));
+ const nextBtn = el("button", { class: "hero-nav next", type: "button", "aria-label": t("act.next"), onclick: scroll(1) }, icon("chevR"));
+ const arrows = () => {
+ prevBtn.hidden = row.scrollLeft < 8;
+ nextBtn.hidden = row.scrollLeft + row.clientWidth > row.scrollWidth - 8;
+ };
+ row.addEventListener("scroll", arrows, { passive: true });
+ requestAnimationFrame(arrows);
+
+ const count = (studio) => apps.filter((a) => studioOf(a) === studio).length;
+ const tiles = [
+ ["image", "image", "#/image", count("image")], ["video", "video", "#/video", count("video")], ["audio", "audio", "#/audio", count("audio")],
+ ["apps", "layers", "#/apps", apps.length], ["library", "film", "#/library", null], ["vram", "chip", "#/vram", null],
+ ].map(([key, ic, hash, n]) => el("a", { class: "tile6", href: hash },
+ el("span", { class: "ic" }, icon(ic)),
+ el("span", { class: "t" }, t(`tile.${key}.t`), n ? el("span", { class: "tag ghost" }, t("explore.apps", { n })) : null),
+ el("p", {}, t(`tile.${key}.d`))));
+
+ const grid = el("div");
+ if (withEx.length) masonry(grid, withEx.map((a) => exampleTile(a, withEx)), { min: 250 });
+
+ // apps with a gallery select (the effects) get a wall of their options, each playing its lab example
+ const walls = apps.flatMap((a) => a.inputs.filter((i) => i.gallery && Object.keys(a.example?.options?.[i.id] || {}).length).map((inp) => {
+ const shots = a.example.options[inp.id];
+ return [
+ el("div", { class: "sec-head" },
+ el("div", {}, el("h2", { class: "display" }, a.name), el("p", {}, t("explore.gallery.sub"))),
+ el("a", { class: "pill-link", href: `#/app/${a.id}` }, t("apps.try"), icon("chevR"))),
+ el("div", { class: "fx-wall" }, ...(inp.options || []).filter((o) => shots[String(o.value)]).map((o) =>
+ optionTile(o, shots[String(o.value)], { play: "visible", onPick: () => pickOption(a, inp.id, o.value), flagKey: flags.key(a.id, inp.id, o.value) }))),
+ ];
+ })).flat();
+
+ const node = el("div", { class: "page" },
+ hero.length ? el("div", { class: "hero-wrap" }, row, prevBtn, nextBtn) : null,
+ el("section", { class: "promo" },
+ el("div", { class: "promo-lead" },
+ el("h2", { class: "display" }, t("explore.lead.a"), " ", el("em", {}, t("explore.lead.b"))),
+ el("p", {}, t("explore.lead.text")),
+ el("div", { class: "row" },
+ el("a", { class: "btn lime", href: "#/image" }, icon("spark"), t("explore.start")),
+ el("a", { class: "btn ghost", href: "#/apps" }, t("explore.browse")))),
+ el("div", { class: "tiles6" }, ...tiles)),
+ ...walls,
+ el("div", { class: "sec-head" },
+ el("div", {}, el("h2", { class: "display" }, t("explore.made")), el("p", {}, t("explore.made.sub"))),
+ el("a", { class: "pill-link", href: "#/apps" }, t("explore.seeall"), icon("ext"))),
+ withEx.length ? grid : el("div", { class: "empty" }, t("explore.noex"), el("pre", { class: "code", style: { display: "inline-block", marginTop: "10px" } }, "modal run --detach lab/lab_modal.py --showcase")),
+ el("div", { class: "sec-head" }, el("h2", { class: "display" }, t("explore.how"))),
+ el("div", { class: "how" }, ...[1, 2, 3].map((n) => el("div", {}, el("span", { class: "n" }, `0${n}`), el("h3", {}, t(`how.${n}.t`)), el("p", {}, t(`how.${n}.d`))))));
+ return { node, active: "explore", dispose: () => grid._ro?.disconnect() };
+}
+
+// ------------------------------------------------------------------ Apps
+let appsCat = "all";
+let appsQuery = "";
+
+function appCard(a) {
+ const item = exampleItem(a);
+ const media = item ? thumb(item, { play: "hover" }) : el("div", { class: "media" }, el("span", { class: "placeholder" }, icon(iconOf(a))));
+ const fit = fitOf(a);
+ media.append(el("div", { class: "badges" },
+ a.status === "draft" ? el("span", { class: "tag dark" }, t("tag.draft")) : null,
+ fit && fit[1] === "big" ? el("span", { class: "tag violet" }, "48 GB") : null));
+ const card = el("a", { class: "app-card", href: `#/app/${a.id}` }, media,
+ el("h3", {}, a.name), el("p", {}, a.summary),
+ el("span", { class: "btn white small" }, icon("play"), t("apps.try")));
+ hoverPlay(card, media._video);
+ return card;
+}
+
+export function appsView() {
+ const body = el("div");
+ const search = el("input", { type: "search", placeholder: t("apps.search"), value: appsQuery, "aria-label": t("apps.search") });
+ const pills = el("div", { class: "pills", role: "group" });
+ const cats = [...CATEGORIES.map((c) => c.id), ...(apps.some((a) => categoryOf(a.id) === "more") ? ["more"] : [])];
+ const draw = () => {
+ pills.replaceChildren(...["all", ...cats].map((c) => el("button", { type: "button", "aria-pressed": String(appsCat === c),
+ onclick: () => { appsCat = c; draw(); } }, c === "all" ? t("apps.all") : t(`cat.${c}.t`))));
+ const q = appsQuery.trim().toLowerCase();
+ const match = (a) => !q || [a.name, a.summary, a.higgsfield_feature, a.id].filter(Boolean).join(" ").toLowerCase().includes(q);
+ const sections = (appsCat === "all" ? cats : [appsCat]).map((c) => {
+ const list = (c === "more" ? apps.filter((a) => categoryOf(a.id) === "more") : (CATEGORIES.find((x) => x.id === c)?.apps || []).map((id) => byId.get(id)).filter(Boolean)).filter(match);
+ if (!list.length) return null;
+ return el("section", {},
+ el("div", { class: "sec-head" },
+ el("div", {}, el("h2", { class: "display" }, t(`cat.${c}.t`)), t(`cat.${c}.d`) ? el("p", {}, t(`cat.${c}.d`)) : null),
+ appsCat === "all" ? el("button", { class: "more", type: "button", style: { background: "none", border: 0, cursor: "pointer" }, onclick: () => { appsCat = c; draw(); window.scrollTo({ top: 0 }); } },
+ t("apps.seeall"), icon("chevR")) : null),
+ el("div", { class: "app-row" }, ...list.map(appCard)));
+ }).filter(Boolean);
+ body.replaceChildren(...(sections.length ? sections : [el("div", { class: "empty" }, t("apps.none", { q: appsQuery }))]));
+ };
+ search.addEventListener("input", () => { appsQuery = search.value; draw(); });
+ draw();
+ const node = el("div", { class: "page" },
+ el("header", { class: "apps-head" },
+ el("span", { class: "ic" }, icon("grid")),
+ el("h1", { class: "display" }, t("apps.title.a"), " ", el("em", {}, t("apps.title.b"))),
+ el("p", {}, t("apps.sub")),
+ el("div", { class: "apps-bar" }, el("label", { class: "search" }, icon("search"), search), pills)),
+ body);
+ return { node, active: "apps" };
+}
+
+// ------------------------------------------------------------------ Library
+let libTab = "mine";
+let libApp = "";
+let libFlagged = false; // the lab tab: only the examples marked mediocre
+
+/** The gallery options marked mediocre, as a wall (the lab tab's filter). */
+function flaggedOptions() {
+ return apps.flatMap((a) => a.inputs.filter((i) => i.gallery && a.example?.options?.[i.id]).flatMap((inp) => {
+ const shots = a.example.options[inp.id];
+ const list = (inp.options || []).filter((o) => shots[String(o.value)] && flags.is(flags.key(a.id, inp.id, o.value)));
+ return list.length ? [el("div", { class: "sec-head" }, el("div", {}, el("h3", { class: "display" }, `${a.name} · ${inp.label}`))),
+ el("div", { class: "fx-wall" }, ...list.map((o) => optionTile(o, shots[String(o.value)], { play: "visible", onPick: () => pickOption(a, inp.id, o.value), flagKey: flags.key(a.id, inp.id, o.value) })))] : [];
+ }));
+}
+
+export function libraryView() {
+ const tabs = el("div", { class: "tabs", role: "tablist" });
+ const filter = el("div", { class: "pills" });
+ const body = el("div", { style: { display: "flex", flexDirection: "column", minHeight: "40vh" } });
+ let disposeFeed = null;
+ const draw = () => {
+ tabs.replaceChildren(...[["mine", "clock"], ["lab", "film"]].map(([id, ic]) => el("button", { type: "button", role: "tab", "aria-selected": String(libTab === id),
+ onclick: () => { libTab = id; draw(); } }, icon(ic), t(`lib.${id}`))));
+ disposeFeed?.();
+ disposeFeed = null;
+ if (libTab === "mine") {
+ const used = [...new Set(feed.list().map((e) => e.app))].map((id) => byId.get(id)).filter(Boolean);
+ filter.replaceChildren(...(used.length > 1 ? [["", t("lib.allapps")], ...used.map((a) => [a.id, a.name])] : []).map(([id, label]) =>
+ el("button", { type: "button", "aria-pressed": String(libApp === id), onclick: () => { libApp = id; draw(); } }, label)));
+ disposeFeed = feedView(body, { app: libApp || null, empty: () => el("div", { class: "empty" }, t("lib.empty"), " ", el("a", { class: "more", href: "#/image" }, t("explore.start"), icon("chevR"))) });
+ } else {
+ const n = flags.count();
+ filter.replaceChildren(...(n || libFlagged ? [[false, t("lib.allex")], [true, t("lib.flagged", { n })]].map(([on, label]) =>
+ el("button", { type: "button", "aria-pressed": String(libFlagged === on), onclick: () => { libFlagged = on; draw(); } }, label)) : []));
+ const withEx = apps.filter((a) => a.example && (!libFlagged || flags.is(flags.key(a.id))));
+ const grid = el("div");
+ masonry(grid, withEx.map((a) => exampleTile(a, withEx)), { min: 250 });
+ const walls = libFlagged ? flaggedOptions() : [];
+ body.replaceChildren(...(withEx.length || walls.length ? [grid, ...walls] : [el("div", { class: "empty" }, t(libFlagged ? "lib.noflag" : "explore.noex"))]));
+ }
+ };
+ draw();
+ const offFlags = flags.on(() => { if (libTab === "lab") draw(); });
+ // the app filter appears once two apps have history; entries of apps outside the catalog (the smoke apps without ?dev) do not count
+ const usedApps = () => new Set(feed.list().map((e) => e.app).filter((id) => byId.has(id))).size;
+ const off = feed.on(() => { if (libTab === "mine" && filter.childElementCount === 0 && usedApps() > 1) draw(); });
+ feed.load().catch(() => {});
+ const node = el("div", { class: "page" },
+ el("div", { class: "sec-head", style: { marginTop: "6px" } }, el("div", {}, el("h2", { class: "display", style: { fontSize: "34px" } }, t("lib.title")), el("p", {}, t("lib.sub")))),
+ el("div", { style: { display: "flex", gap: "10px", alignItems: "center", flexWrap: "wrap", marginBottom: "14px" } }, tabs, filter),
+ body);
+ return { node, active: "library", dispose: () => { disposeFeed?.(); off(); offFlags(); } };
+}
+
+// ------------------------------------------------------------------ VRAM map
+export function vramView(gpu) {
+ const list = apps.filter((a) => a.vram).sort((a, b) => b.vram.largest_phase_gb - a.vram.largest_phase_gb);
+ const max = Math.max(48, ...list.map((a) => Math.max(a.vram.whole_gb, a.example?.peak_vram_gb || 0))) * 1.04;
+ const pct = (gb) => `${Math.min(100, (gb / max) * 100)}%`;
+ const rows = list.map((a) => {
+ const fit = fitOf(a);
+ const peak = a.example?.peak_vram_gb;
+ return el("a", { class: "vrow", href: `#/app/${a.id}` },
+ el("div", { class: "nm" }, el("b", {}, a.name), el("small", {}, `${a.pack} · ${a.vram.whole_gb} GB`)),
+ el("div", { class: "vbar", title: `${t("vram.whole")} ${a.vram.whole_gb} GB · ${t("vram.phase")} ${a.vram.largest_phase_gb} GB${peak ? ` · ${t("vram.measured")} ${peak} GB` : ""}` },
+ el("i", { class: "whole", style: { width: pct(a.vram.whole_gb) } }),
+ el("i", { style: { width: pct(a.vram.largest_phase_gb) } }),
+ peak ? el("b", { style: { left: pct(peak) } }) : null,
+ el("u", { style: { left: pct(24) } }), el("u", { style: { left: pct(48) } })),
+ el("span", { class: `fit ${fit?.[1] || ""}` }, fit ? t(fit[0]) : ""));
+ });
+ const live = gpu?.device?.vram_total_gb ? el("div", { class: "card", style: { marginBottom: "14px" } },
+ el("h3", {}, icon("bolt"), t("vram.live", { name: gpu.device.name || "GPU", used: gpu.device.vram_used_gb, total: gpu.device.vram_total_gb })),
+ el("div", { class: "vbar" }, el("i", { style: { width: `${(gpu.device.vram_used_gb / gpu.device.vram_total_gb) * 100}%` } }))) : null;
+ const node = el("div", { class: "page" },
+ el("div", { class: "sec-head", style: { marginTop: "6px" } }, el("div", {}, el("h2", { class: "display", style: { fontSize: "34px" } }, t("vram.title")), el("p", { style: { maxWidth: "80ch" } }, t("vram.sub")))),
+ live,
+ el("div", { class: "legend", style: { margin: "0 0 12px" } },
+ el("span", {}, el("i", { style: { background: "rgba(255,255,255,.14)" } }), t("vram.whole")),
+ el("span", {}, el("i", { style: { background: "var(--accent)" } }), t("vram.phase")),
+ el("span", {}, el("i", { style: { background: "var(--pink)", width: "3px" } }), t("vram.measured"))),
+ el("div", { class: "vrow", style: { background: "transparent", border: 0, cursor: "default", padding: "0 12px" } }, el("span"),
+ el("div", { class: "vscale" }, el("span", { style: { left: pct(24) } }, "24 GB"), el("span", { style: { left: pct(48) } }, "48 GB")), el("span")),
+ el("div", { class: "vtable" }, ...rows));
+ return { node, active: "vram" };
+}
diff --git a/web/js/workspace.js b/web/js/workspace.js
new file mode 100644
index 0000000..caf6ff4
--- /dev/null
+++ b/web/js/workspace.js
@@ -0,0 +1,762 @@
+// An app's workspace. Two layouts, both built from app.json alone:
+// composer: prompt-first apps (image, audio): results fill the page, a floating prompt bar sits at the bottom
+// sidebar: upload-first apps (video, tools): controls in a left column, results and examples on the right
+import { el, icon, store, toast, popover, closePopover, fmtSeconds, fmtShort, isMedia, extOf, masonry } from "./util.js";
+import { t } from "./i18n.js";
+import {
+ byId, layoutOf, familyOf, VIDEO_TABS, videoTabOf, tagline, iconOf, promptInput, estimate, fitOf, rememberApp, categoryOf, CATEGORIES, apps,
+} from "./catalog.js";
+import { exampleItem, thumb, hoverPlay, fullMedia, playWhenVisible, optionTile, optionThumb } from "./media.js";
+import { flags, flagButton } from "./flags.js";
+import { feed, feedView, hooks } from "./feed.js";
+
+// ------------------------------------------------------------------ form state (per app, kept while the page is open)
+const forms = new Map();
+
+function validValue(inp, v) {
+ if (v === undefined || v === null) return false;
+ if (inp.type === "select") return (inp.options || []).some((o) => String(o.value) === String(v));
+ if (inp.type === "slider" || inp.type === "number") return Number.isFinite(Number(v)) && (inp.min === undefined || v >= inp.min) && (inp.max === undefined || v <= inp.max);
+ return true;
+}
+
+export function formFor(app) {
+ let f = forms.get(app.id);
+ if (f) return f;
+ const saved = store.get(`values.${app.id}`) || {};
+ const values = {};
+ for (const inp of app.inputs) {
+ if (isMedia(inp.type)) continue;
+ const fallback = inp.type === "textarea" || inp.type === "text" ? "" : inp.type === "seed" ? -1 : inp.default ?? "";
+ values[inp.id] = validValue(inp, saved[inp.id]) ? saved[inp.id] : fallback;
+ }
+ f = { values, files: {}, preset: (app.presets || []).some((p) => p.id === saved.__preset) ? saved.__preset : "", count: 1 };
+ forms.set(app.id, f);
+ return f;
+}
+function persist(app) {
+ const f = formFor(app);
+ store.set(`values.${app.id}`, { ...f.values, __preset: f.preset });
+}
+
+const ACCEPT = { image: "image/*", video: "video/*", audio: "audio/*" };
+function fileMatches(type, file) {
+ if (file.type) return file.type.startsWith(`${type}/`);
+ const ext = extOf(file.name);
+ return { image: ["png", "jpg", "jpeg", "webp", "gif"], video: ["mp4", "mov", "webm", "mkv"], audio: ["mp3", "wav", "flac", "ogg", "m4a"] }[type]?.includes(ext);
+}
+
+function setFile(app, inp, file) {
+ if (!fileMatches(inp.type, file)) {
+ toast(`${inp.label}: ${file.name}?`, { error: true });
+ return false;
+ }
+ const maxMb = inp.limits?.max_mb;
+ if (maxMb && file.size > maxMb * 1e6) {
+ toast(`${inp.label}: ${t("ws.drop.mb", { mb: maxMb })}`, { error: true });
+ return false;
+ }
+ const f = formFor(app);
+ if (f.files[inp.id]) URL.revokeObjectURL(f.files[inp.id].url);
+ f.files[inp.id] = { file, url: URL.createObjectURL(file) };
+ return true;
+}
+function clearFile(app, id) {
+ const f = formFor(app);
+ if (f.files[id]) URL.revokeObjectURL(f.files[id].url);
+ delete f.files[id];
+}
+
+/** Put dropped or pasted files into the first matching slots. */
+function assignFiles(app, files) {
+ const slots = app.inputs.filter((i) => isMedia(i.type));
+ const f = formFor(app);
+ let used = 0;
+ for (const file of files) {
+ const free = slots.find((s) => fileMatches(s.type, file) && !f.files[s.id]) || slots.find((s) => fileMatches(s.type, file));
+ if (free && setFile(app, free, file)) used++;
+ }
+ return used;
+}
+
+async function fileFromUrl(url, name) {
+ const res = await fetch(url);
+ if (!res.ok) throw new Error(`${res.status} ${url}`);
+ const blob = await res.blob();
+ return new File([blob], name, { type: blob.type || res.headers.get("content-type") || "" });
+}
+
+// ------------------------------------------------------------------ submitting
+function missingInputs(app) {
+ const f = formFor(app);
+ const out = [];
+ for (const inp of app.inputs) {
+ if (isMedia(inp.type)) { if (inp.required && !f.files[inp.id]) out.push(inp); continue; }
+ if (inp.required && inp.type === "textarea" && !String(f.values[inp.id] ?? "").trim() && !inp.default) out.push(inp);
+ }
+ return out;
+}
+
+function buildForm(app, { randomSeed = false } = {}) {
+ const f = formFor(app);
+ const fd = new FormData();
+ for (const inp of app.inputs) {
+ if (isMedia(inp.type)) { const x = f.files[inp.id]; if (x) fd.append(inp.id, x.file, x.file.name); continue; }
+ const v = f.values[inp.id];
+ if (inp.type === "toggle") { fd.append(inp.id, v ? "true" : "false"); continue; }
+ if (inp.type === "seed" && (randomSeed || v === -1 || v === "-1" || v === "" || v === null)) continue;
+ if (v === "" || v === null || v === undefined) continue;
+ fd.append(inp.id, String(v));
+ }
+ if (f.preset) fd.append("preset", f.preset);
+ return fd;
+}
+
+/** Validate, then submit `count` runs. Returns false when something is missing (and shows what). */
+async function submit(app, ui) {
+ const missing = missingInputs(app);
+ ui.clearMissing?.();
+ if (missing.length) {
+ for (const inp of missing) ui.markMissing?.(inp.id);
+ const first = missing[0];
+ toast(isMedia(first.type) ? t("ws.need", { label: first.label }) : t("ws.needtext", { label: first.label }), { error: true });
+ return false;
+ }
+ const f = formFor(app);
+ const n = Math.max(1, Math.min(4, f.count || 1));
+ persist(app);
+ try {
+ for (let k = 0; k < n; k++) await feed.run(app.id, buildForm(app, { randomSeed: n > 1 }));
+ toast(t("toast.started", { app: app.name }));
+ return true;
+ } catch (err) {
+ toast(err.message, { error: true });
+ return false;
+ }
+}
+
+/** Open an app with one option already chosen (a card on the Explore page's effects wall). */
+export function pickOption(app, inputId, value) {
+ formFor(app).values[inputId] = value;
+ persist(app);
+ if (location.hash !== `#/app/${app.id}`) location.hash = `#/app/${app.id}`;
+ else hooks.rerender?.();
+}
+
+/** Load a result's settings and input files into its app's form (and optionally run it again). */
+export async function recreate(item, { run = false } = {}) {
+ const app = byId.get(item.app);
+ if (!app) return;
+ const f = formFor(app);
+ for (const inp of app.inputs) {
+ if (isMedia(inp.type)) continue;
+ if (item.values?.[inp.id] !== undefined) f.values[inp.id] = item.values[inp.id];
+ if (inp.type === "seed" && item.seed !== null && item.seed !== undefined) f.values[inp.id] = item.seed;
+ }
+ f.preset = item.preset || "";
+ try {
+ await Promise.all(item.inputs.map(async (i) => {
+ const inp = app.inputs.find((x) => x.id === i.id);
+ if (!inp || !i.file) return;
+ const name = i.name || `${i.id}.${extOf(i.file) || "bin"}`;
+ setFile(app, inp, await fileFromUrl(i.file, name));
+ }));
+ } catch (err) {
+ toast(err.message, { error: true });
+ }
+ persist(app);
+ if (run) wsTab = "history";
+ if (location.hash !== `#/app/${app.id}`) location.hash = `#/app/${app.id}`;
+ else hooks.rerender?.();
+ if (run) await submit(app, {});
+ else toast(t("toast.loaded", { app: app.name }));
+}
+
+// ------------------------------------------------------------------ small parts
+function appThumb(a) {
+ const ex = a.example;
+ if (!ex) return el("span", { style: { display: "grid", placeItems: "center", width: "100%", height: "100%", color: "#55555c" } }, icon(iconOf(a)));
+ const src = ex.type === "video" ? ex.poster : ex.card || ex.full;
+ return el("img", { src, alt: "", loading: "lazy", class: ex.type === "audio" ? "contain" : null, style: ex.type === "audio" ? { objectFit: "contain" } : null });
+}
+
+function switcher(app) {
+ const family = familyOf(app);
+ return el("div", {},
+ el("h4", {}, t("ws.change")),
+ ...family.map((a) => el("button", { class: "opt", type: "button", "aria-selected": String(a.id === app.id),
+ onclick: () => { closePopover(); location.hash = `#/app/${a.id}`; } },
+ el("span", { class: "thumb" }, appThumb(a)),
+ el("span", { class: "two" }, el("b", {}, a.name), el("small", {}, a.summary)),
+ el("span", { class: "chk" }, icon("check")))),
+ el("a", { class: "opt", href: "#/apps", onclick: closePopover }, icon("layers"), t("explore.seeall")));
+}
+
+function optionLabel(inp, v) {
+ const o = (inp.options || []).find((x) => String(x.value) === String(v));
+ return o ? o.label : String(v ?? "");
+}
+
+/** A select marked "gallery" (the effects picker): cards with each option's lab example, and the chosen one playing. */
+function galleryField(app, inp, f, set, help) {
+ const shots = app.example?.options?.[inp.id] || {};
+ const val = el("span", { class: "v" }, optionLabel(inp, f.values[inp.id]));
+ const now = el("div", { class: "fx-now" });
+ const drawNow = () => {
+ const shot = shots[String(f.values[inp.id])];
+ now.hidden = !shot;
+ now.replaceChildren(...(shot ? [optionThumb(shot, { play: "visible" })] : []));
+ };
+ drawNow();
+ const row = el("button", { class: "selrow", type: "button", "aria-haspopup": "dialog", "aria-label": inp.label }, val, icon("chevD"));
+ row.onclick = () => popover(row, el("div", {}, el("h4", {}, inp.label), el("div", { class: "fx-grid" }, ...(inp.options || []).map((o) =>
+ optionTile(o, shots[String(o.value)], { selected: String(o.value) === String(f.values[inp.id]), flagKey: flags.key(app.id, inp.id, o.value),
+ onPick: () => { set(o.value); val.textContent = o.label; drawNow(); closePopover(); } })))), { width: 640, cls: "wide" });
+ return el("div", { class: "field" }, el("span", { class: "lbl" }, inp.label), row, now, help);
+}
+
+function rangeInput(inp, value, onChange) {
+ const out = el("b", {}, String(value));
+ const r = el("input", { type: "range", min: inp.min ?? 0, max: inp.max ?? 100, step: inp.step ?? 1, value: value, "aria-label": inp.label });
+ const paint = () => r.style.setProperty("--p", `${((r.value - r.min) / (r.max - r.min || 1)) * 100}%`);
+ paint();
+ r.addEventListener("input", () => { out.textContent = r.value; paint(); onChange(Number(r.value)); });
+ return el("div", { class: "range" }, el("div", { class: "top" }, el("span", {}, inp.label), out), r);
+}
+
+function seedEditor(app, inp, f, onChange) {
+ const box = el("input", { type: "number", min: inp.min ?? 0, placeholder: t("ws.seed.random"), value: f.values[inp.id] === -1 ? "" : f.values[inp.id] ?? "" });
+ box.addEventListener("input", () => { f.values[inp.id] = box.value === "" ? -1 : Math.trunc(Number(box.value)); onChange(); });
+ const last = feed.list(app.id).find((e) => e.values?.[inp.id] !== undefined);
+ return el("div", { class: "pad" },
+ el("div", { class: "row" }, box,
+ el("button", { class: "btn small ghost", type: "button", title: t("ws.seed.random"), onclick: () => { box.value = ""; f.values[inp.id] = -1; onChange(); } }, icon("dice"))),
+ last ? el("button", { class: "btn small ghost", type: "button", onclick: () => { box.value = last.values[inp.id]; f.values[inp.id] = last.values[inp.id]; onChange(); } },
+ `${t("ws.seed.reuse")} · ${last.values[inp.id]}`) : null,
+ el("p", { class: "help" }, t("ws.seed.help")));
+}
+
+function genButton(app, onClick, { wide = false } = {}) {
+ const est = estimate(app);
+ const b = el("button", { class: `generate${wide ? " wide" : ""}`, type: "button", disabled: !app.runnable,
+ title: !app.runnable ? (app.status === "draft" ? t("ws.draft") : t("ws.noworkflow")) : est ? t("ws.est", { gpu: est.gpu }) : null },
+ t("ws.generate"), est ? el("span", { class: "cost" }, icon("spark"), fmtShort(est.seconds)) : el("span", { class: "cost" }, icon("spark")));
+ b.addEventListener("click", async () => {
+ if (b.dataset.busy) return;
+ b.dataset.busy = "1";
+ try { await onClick(); } finally { delete b.dataset.busy; }
+ });
+ return b;
+}
+
+function countControl(f) {
+ const label = el("span", {});
+ const minus = el("button", { type: "button", "aria-label": "−" }, "−");
+ const plus = el("button", { type: "button", "aria-label": "+" }, "+");
+ const draw = () => {
+ label.replaceChildren(String(f.count), el("small", {}, "/4"));
+ minus.disabled = f.count <= 1;
+ plus.disabled = f.count >= 4;
+ };
+ minus.onclick = () => { f.count = Math.max(1, f.count - 1); draw(); };
+ plus.onclick = () => { f.count = Math.min(4, f.count + 1); draw(); };
+ draw();
+ return el("div", { class: "count", title: t("ws.count") }, minus, label, plus);
+}
+
+// ------------------------------------------------------------------ composer layout
+function composerBar(app, rerenderBar) {
+ const f = formFor(app);
+ const pi = promptInput(app);
+ const mediaInputs = app.inputs.filter((i) => isMedia(i.type));
+ const pickers = Object.fromEntries(mediaInputs.map((inp) => {
+ const input = el("input", { type: "file", accept: ACCEPT[inp.type], hidden: true });
+ input.addEventListener("change", () => { if (input.files[0] && setFile(app, inp, input.files[0])) rerenderBar(); input.value = ""; });
+ return [inp.id, input];
+ }));
+ const pick = (inp) => pickers[inp.id].click();
+ const hint = el("div", { class: "cmp-hint", hidden: true });
+
+ const prompt = pi ? el("textarea", { class: "cmp-prompt", rows: "2", "aria-label": pi.label,
+ // an optional prompt (a template app's "Extra direction") says so instead of asking for a scene
+ placeholder: pi.default ? t("ws.eg", { x: pi.default }) : pi.required ? t("ws.prompt.ph") : t("ws.prompt.opt", { label: pi.label }), value: f.values[pi.id] ?? "" }) : null;
+ const grow = () => { if (!prompt) return; prompt.style.height = "auto"; prompt.style.height = `${Math.min(220, prompt.scrollHeight)}px`; };
+ if (prompt) {
+ prompt.addEventListener("input", () => { f.values[pi.id] = prompt.value; grow(); prompt.classList.remove("missing"); persistSoon(); });
+ prompt.addEventListener("keydown", (e) => { if (e.key === "Enter" && (e.metaKey || e.ctrlKey)) { e.preventDefault(); go(); } });
+ requestAnimationFrame(grow);
+ }
+
+ const attach = el("div", { class: "cmp-attach" }, ...mediaInputs.map((inp) => {
+ const x = f.files[inp.id];
+ if (!x) {
+ return el("button", { class: "att need", type: "button", title: `${t("ws.add", { what: inp.label })}${inp.required ? "" : ` (${t("ws.optional")})`}`,
+ "aria-label": t("ws.add", { what: inp.label }), dataset: { slot: inp.id }, onclick: () => pick(inp) }, icon(inp.type === "image" ? "image" : inp.type));
+ }
+ const m = inp.type === "image" ? el("img", { src: x.url, alt: "" }) : inp.type === "video" ? el("video", { src: `${x.url}#t=0.1`, muted: true, preload: "metadata" }) : el("span", { style: { display: "grid", placeItems: "center", height: "100%" } }, icon("audio"));
+ return el("div", { class: "att", title: x.file.name },
+ m, el("span", { class: "lbl" }, inp.label),
+ el("button", { class: "x", type: "button", "aria-label": t("ws.remove"), onclick: () => { clearFile(app, inp.id); rerenderBar(); } }, icon("x")));
+ }));
+
+ const chips = [];
+ if (mediaInputs.length) {
+ chips.push(el("button", { class: "chip square", type: "button", title: t("ws.add", { what: mediaInputs[0].label }), "aria-label": t("ws.add", { what: mediaInputs[0].label }),
+ onclick: (ev) => {
+ const empty = mediaInputs.filter((i) => !f.files[i.id]);
+ if (mediaInputs.length === 1 || empty.length === 1) return pick(empty[0] || mediaInputs[0]);
+ popover(ev.currentTarget, el("div", {}, ...mediaInputs.map((inp) => el("button", { class: "opt", type: "button", onclick: () => { closePopover(); pick(inp); } },
+ icon(inp.type === "image" ? "image" : inp.type), inp.label))));
+ } }, icon("plus")));
+ }
+ const model = el("button", { class: "chip model", type: "button", "aria-haspopup": "dialog",
+ onclick: (ev) => popover(ev.currentTarget, switcher(app), { width: 360 }) },
+ el("span", { class: "thumb" }, appThumb(app)), el("span", { class: "v" }, app.name), icon("chevD"));
+ chips.push(model);
+
+ for (const inp of app.inputs) {
+ if (isMedia(inp.type) || inp === pi) continue;
+ chips.push(chipFor(app, inp, f));
+ }
+ if (app.presets?.length) {
+ const presetChip = el("button", { class: `chip${f.preset ? " filled" : ""}`, type: "button" }, el("span", { class: "k" }, t("ws.preset")),
+ el("span", { class: "v" }, f.preset ? app.presets.find((p) => p.id === f.preset)?.label : t("ws.preset.none")));
+ presetChip.onclick = (ev) => popover(ev.currentTarget, el("div", {}, el("h4", {}, t("ws.preset")),
+ ...[{ id: "", label: t("ws.preset.none") }, ...app.presets].map((p) => el("button", { class: "opt", type: "button", "aria-selected": String(f.preset === p.id),
+ onclick: () => { f.preset = p.id; persist(app); closePopover(); rerenderBar(); } }, p.label, el("span", { class: "chk" }, icon("check"))))));
+ chips.push(presetChip);
+ }
+
+ const ui = {
+ clearMissing: () => { prompt?.classList.remove("missing"); attach.querySelectorAll(".missing").forEach((n) => n.classList.remove("missing")); },
+ markMissing: (id) => {
+ if (pi && id === pi.id) { prompt.classList.add("missing"); prompt.focus(); }
+ attach.querySelector(`[data-slot="${id}"]`)?.classList.add("missing");
+ },
+ };
+ const go = async () => { if (await submit(app, ui) && wsTab !== "history") { wsTab = "history"; hooks.rerender?.(); } };
+ const gen = genButton(app, go);
+ if (!app.runnable) { hint.hidden = false; hint.textContent = app.status === "draft" ? t("ws.draft") : t("ws.noworkflow"); }
+
+ const bar = el("div", { class: "composer" },
+ hint,
+ el("div", { class: "cmp-top" }, attach, prompt || el("div", { class: "cmp-prompt dim", style: { paddingTop: "16px" } }, app.summary)),
+ el("div", { class: "cmp-row" }, ...chips, el("span", { class: "grow" }), countControl(f), gen),
+ ...Object.values(pickers));
+ return bar;
+}
+
+let persistTimer = null;
+function persistSoon() {
+ clearTimeout(persistTimer);
+ persistTimer = setTimeout(() => { for (const id of forms.keys()) { const a = byId.get(id); if (a) persist(a); } }, 400);
+}
+
+function chipFor(app, inp, f) {
+ const set = (v) => { f.values[inp.id] = v; persistSoon(); };
+ if (inp.type === "toggle") {
+ const b = el("button", { class: `chip${f.values[inp.id] ? " on" : ""}`, type: "button", "aria-pressed": String(Boolean(f.values[inp.id])), title: inp.help || inp.label },
+ icon(/enhance|reprompt/.test(inp.id) ? "wand" : "check"), inp.label);
+ b.onclick = () => { set(!f.values[inp.id]); b.classList.toggle("on", Boolean(f.values[inp.id])); b.setAttribute("aria-pressed", String(Boolean(f.values[inp.id]))); };
+ return b;
+ }
+ const v = el("span", { class: "v" });
+ const b = el("button", { class: "chip", type: "button", "aria-haspopup": "dialog", title: inp.help || inp.label },
+ inp.type === "seed" ? icon("dice") : el("span", { class: "k" }, inp.label), v);
+ const draw = () => {
+ const val = f.values[inp.id];
+ if (inp.type === "select") v.textContent = optionLabel(inp, val);
+ else if (inp.type === "seed") v.textContent = val === -1 || val === "" ? t("ws.seed.random") : String(val);
+ else if (inp.type === "textarea" || inp.type === "text") { v.textContent = String(val || "").trim() ? "✓" : "—"; b.classList.toggle("filled", Boolean(String(val || "").trim())); }
+ else v.textContent = String(val);
+ };
+ draw();
+ b.onclick = (ev) => {
+ let content;
+ if (inp.type === "select") {
+ content = el("div", {}, el("h4", {}, inp.label), ...(inp.options || []).map((o) => el("button", { class: "opt", type: "button",
+ "aria-selected": String(String(o.value) === String(f.values[inp.id])), onclick: () => { set(o.value); draw(); closePopover(); } },
+ o.label, el("span", { class: "chk" }, icon("check")))));
+ } else if (inp.type === "slider") {
+ content = el("div", { class: "pad" }, rangeInput(inp, f.values[inp.id], (n) => { set(n); draw(); }), inp.help ? el("p", { class: "help" }, inp.help) : null);
+ } else if (inp.type === "seed") {
+ content = seedEditor(app, inp, f, () => { persistSoon(); draw(); });
+ } else if (inp.type === "textarea") {
+ const ta = el("textarea", { placeholder: inp.default ? t("ws.eg", { x: inp.default }) : inp.label, value: f.values[inp.id] ?? "" });
+ ta.addEventListener("input", () => { set(ta.value); draw(); });
+ content = el("div", { class: "pad" }, el("b", {}, inp.label), ta, inp.help ? el("p", { class: "help" }, inp.help) : null);
+ } else {
+ const box = el("input", { type: inp.type === "number" ? "number" : "text", min: inp.min, max: inp.max, step: inp.step, value: f.values[inp.id] ?? "",
+ placeholder: inp.default !== undefined ? String(inp.default) : "" });
+ box.addEventListener("input", () => { set(inp.type === "number" ? (box.value === "" ? "" : Number(box.value)) : box.value); draw(); });
+ content = el("div", { class: "pad" }, el("b", {}, inp.label), box, inp.help ? el("p", { class: "help" }, inp.help) : null);
+ }
+ popover(ev.currentTarget, content, { width: inp.type === "textarea" ? 360 : undefined });
+ };
+ return b;
+}
+
+// ------------------------------------------------------------------ sidebar layout
+function dropzone(app, inp, rerender) {
+ const f = formFor(app);
+ const x = f.files[inp.id];
+ const input = el("input", { type: "file", accept: ACCEPT[inp.type], hidden: true });
+ input.addEventListener("change", () => { if (input.files[0] && setFile(app, inp, input.files[0])) rerender(); input.value = ""; });
+ const limits = [inp.limits?.max_mb ? t("ws.drop.mb", { mb: inp.limits.max_mb }) : "", inp.limits?.seconds ? t("ws.drop.seconds", { a: inp.limits.seconds[0], b: inp.limits.seconds[1] }) : ""].filter(Boolean).join(" · ");
+ let zone;
+ if (!x) {
+ zone = el("div", { class: "drop", role: "button", tabindex: "0", dataset: { slot: inp.id }, "aria-label": t("ws.add", { what: inp.label }),
+ onclick: () => input.click(), onkeydown: (e) => { if (e.key === "Enter" || e.key === " ") { e.preventDefault(); input.click(); } } },
+ el("span", { class: "ic" }, icon(inp.type === "image" ? "image" : inp.type === "video" ? "video" : "audio")),
+ el("b", {}, inp.label, inp.required ? "" : el("span", { class: "faint", style: { fontWeight: 500 } }, ` · ${t("ws.optional")}`)),
+ el("small", {}, inp.help || t(`ws.drop.${inp.type}`)),
+ el("small", { class: "faint" }, [t("ws.drop.hint"), limits].filter(Boolean).join(" · ")),
+ input);
+ } else {
+ const media = inp.type === "image" ? el("img", { src: x.url, alt: "" })
+ : inp.type === "video" ? el("video", { src: x.url, muted: true, loop: true, playsinline: true, autoplay: true, preload: "auto" })
+ : el("audio", { src: x.url, controls: true, preload: "metadata" });
+ if (inp.type === "video") media.muted = true;
+ const warn = el("span", { class: "fname" }, x.file.name);
+ if (inp.type === "video" && inp.limits?.seconds) {
+ media.addEventListener("loadedmetadata", () => {
+ const [a, b] = inp.limits.seconds;
+ if (media.duration < a || media.duration > b) { warn.textContent = `${x.file.name} · ${media.duration.toFixed(1)} s (${a}–${b} s)`; warn.style.color = "var(--warn)"; }
+ });
+ }
+ zone = el("div", { class: "drop has", dataset: { slot: inp.id } }, media, warn,
+ el("div", { class: "bar2" },
+ el("button", { class: "mini", type: "button", title: t("ws.replace"), "aria-label": t("ws.replace"), onclick: () => input.click() }, icon("swap")),
+ el("button", { class: "mini", type: "button", title: t("ws.remove"), "aria-label": t("ws.remove"), onclick: () => { clearFile(app, inp.id); rerender(); } }, icon("x"))),
+ input);
+ }
+ zone.addEventListener("dragover", (e) => { e.preventDefault(); zone.classList.add("over"); });
+ zone.addEventListener("dragleave", () => zone.classList.remove("over"));
+ zone.addEventListener("drop", (e) => {
+ e.preventDefault();
+ e.stopPropagation();
+ zone.classList.remove("over");
+ const file = e.dataTransfer.files[0];
+ if (file && setFile(app, inp, file)) rerender();
+ });
+ return zone;
+}
+
+function sideField(app, inp, f, ui) {
+ const set = (v) => { f.values[inp.id] = v; persistSoon(); };
+ const help = inp.help ? el("p", { class: "help" }, inp.help) : null;
+ if (inp.type === "textarea") {
+ const ta = el("textarea", { class: inp.required ? "" : "short", placeholder: inp.default ? t("ws.eg", { x: inp.default }) : inp.label, value: f.values[inp.id] ?? "", "aria-label": inp.label });
+ ta.addEventListener("input", () => { set(ta.value); ta.classList.remove("missing"); });
+ ui.refs[inp.id] = ta;
+ return el("label", { class: "field" }, el("span", { class: "lbl" }, inp.label, inp.required ? null : el("small", {}, t("ws.optional"))), ta, help);
+ }
+ if (inp.type === "select" && inp.gallery) return galleryField(app, inp, f, set, help);
+ if (inp.type === "select") {
+ const opts = inp.options || [];
+ const short = opts.length <= 4 && opts.every((o) => String(o.label).length <= 12);
+ if (short) {
+ const seg = el("div", { class: "seg", role: "group", "aria-label": inp.label });
+ const draw = () => seg.replaceChildren(...opts.map((o) => el("button", { type: "button", "aria-pressed": String(String(o.value) === String(f.values[inp.id])),
+ onclick: () => { set(o.value); draw(); } }, o.label)));
+ draw();
+ return el("div", { class: "field" }, el("span", { class: "lbl" }, inp.label), seg, help);
+ }
+ const val = el("span", { class: "v" }, optionLabel(inp, f.values[inp.id]));
+ const row = el("button", { class: "selrow", type: "button", "aria-haspopup": "dialog", "aria-label": inp.label }, val, icon("chevD"));
+ row.onclick = () => popover(row, el("div", {}, el("h4", {}, inp.label), ...opts.map((o) => el("button", { class: "opt", type: "button",
+ "aria-selected": String(String(o.value) === String(f.values[inp.id])), onclick: () => { set(o.value); val.textContent = o.label; closePopover(); } },
+ o.label, el("span", { class: "chk" }, icon("check"))))), { width: Math.max(260, row.offsetWidth) });
+ return el("div", { class: "field" }, el("span", { class: "lbl" }, inp.label), row, help);
+ }
+ if (inp.type === "slider") return el("div", { class: "field" }, rangeInput(inp, f.values[inp.id], set), help);
+ if (inp.type === "toggle") {
+ const box = el("input", { type: "checkbox", checked: Boolean(f.values[inp.id]), "aria-label": inp.label });
+ box.addEventListener("change", () => set(box.checked));
+ return el("label", { class: "field" }, el("span", { class: "togrow" }, el("span", { class: "t" }, el("b", { style: { fontSize: "13px" } }, inp.label),
+ inp.help ? el("small", {}, inp.help) : null), el("span", { class: "switch" }, box, el("i"))));
+ }
+ if (inp.type === "seed") {
+ const box = el("input", { type: "number", min: inp.min ?? 0, placeholder: t("ws.seed.random"), value: f.values[inp.id] === -1 ? "" : f.values[inp.id] ?? "", "aria-label": inp.label });
+ box.addEventListener("input", () => set(box.value === "" ? -1 : Math.trunc(Number(box.value))));
+ return el("label", { class: "field" }, el("span", { class: "lbl" }, inp.label || t("ws.seed"),
+ el("button", { class: "mini", type: "button", title: t("ws.seed.random"), style: { width: "26px", height: "26px" }, onclick: (e) => { e.preventDefault(); box.value = ""; set(-1); } }, icon("dice"))),
+ box, el("p", { class: "help" }, t("ws.seed.help")));
+ }
+ const box = el("input", { type: inp.type === "number" ? "number" : "text", min: inp.min, max: inp.max, step: inp.step, value: f.values[inp.id] ?? "",
+ placeholder: inp.default !== undefined ? String(inp.default) : "", "aria-label": inp.label });
+ box.addEventListener("input", () => set(inp.type === "number" ? (box.value === "" ? "" : Number(box.value)) : box.value));
+ return el("label", { class: "field" }, el("span", { class: "lbl" }, inp.label, inp.required ? null : el("small", {}, t("ws.optional"))), box, help);
+}
+
+const isAdvanced = (inp) => inp.type === "seed" || /negative/.test(inp.id);
+
+function presetField(app, f) {
+ const opts = [{ id: "", label: t("ws.preset.none") }, ...app.presets];
+ const seg = el("div", { class: "seg", role: "group", "aria-label": t("ws.preset") });
+ const draw = () => seg.replaceChildren(...opts.map((p) => el("button", { type: "button", "aria-pressed": String(p.id === f.preset),
+ onclick: () => { f.preset = p.id; persist(app); draw(); } }, p.label)));
+ draw();
+ return el("div", { class: "field" }, el("span", { class: "lbl" }, t("ws.preset")), seg);
+}
+
+function sidebarPanel(app, rerenderSide) {
+ const f = formFor(app);
+ const ui = { refs: {} };
+ const tab = videoTabOf(app.id);
+ const tabs = tab ? el("div", { class: "side-tabs", role: "tablist" }, ...VIDEO_TABS.map((vt) => el("button", { type: "button", role: "tab",
+ "aria-selected": String(vt.id === tab),
+ onclick: () => {
+ if (vt.id === tab) return;
+ const last = store.get(`last.vtab.${vt.id}`);
+ const target = vt.apps.includes(last) && byId.has(last) ? last : vt.apps.find((id) => byId.has(id));
+ if (target) location.hash = `#/app/${target}`;
+ } }, t(`vtab.${vt.id}`)))) : null;
+
+ const card = el("div", { class: "model-card", role: "button", tabindex: "0", "aria-label": `${t("ws.change")}: ${app.name}` });
+ const ex = exampleItem(app);
+ const cardMedia = thumb(ex, { play: "visible" });
+ card.append(cardMedia, el("div", { class: "txt" }, el("h3", { class: "display" }, app.name), el("p", {}, tagline(app))));
+ const change = el("button", { class: "change", type: "button" }, icon("swap"), t("ws.change"));
+ const openSwitch = (ev) => { ev.stopPropagation(); popover(change, switcher(app), { width: 340 }); };
+ change.onclick = openSwitch;
+ card.onclick = openSwitch;
+ card.onkeydown = (e) => { if (e.key === "Enter") openSwitch(e); };
+ card.append(change);
+
+ const main = [], adv = [];
+ for (const inp of app.inputs) {
+ if (isMedia(inp.type)) main.push(dropzone(app, inp, rerenderSide));
+ else (isAdvanced(inp) ? adv : main).push(sideField(app, inp, f, ui));
+ }
+ if (app.presets?.length) adv.unshift(presetField(app, f));
+ const advanced = adv.length ? el("details", { class: "adv" }, el("summary", {}, t("ws.advanced"), icon("chevD", "i-chev")), el("div", { class: "in" }, ...adv)) : null;
+
+ const scroll = el("div", { class: "side-scroll" }, card, ...main, advanced);
+ const note = el("p", { class: "side-note" }, !app.runnable ? (app.status === "draft" ? t("ws.draft") : t("ws.noworkflow")) : "");
+ ui.clearMissing = () => { scroll.querySelectorAll(".missing").forEach((n) => n.classList.remove("missing")); };
+ ui.markMissing = (id) => {
+ const n = ui.refs[id] || scroll.querySelector(`[data-slot="${id}"]`);
+ if (!n) return;
+ n.classList.add("missing");
+ n.scrollIntoView({ block: "center", behavior: "smooth" });
+ };
+ const go = async () => { if (await submit(app, ui) && wsTab !== "history") { wsTab = "history"; hooks.rerender?.(); } };
+ const foot = el("div", { class: "side-foot" }, el("div", { class: "row" }, countControl(f), genButton(app, go)), note);
+ const side = el("aside", { class: "side", "aria-label": app.name }, tabs, scroll, foot);
+ side.addEventListener("dragover", (e) => e.preventDefault());
+ side.addEventListener("drop", (e) => { e.preventDefault(); if (assignFiles(app, e.dataTransfer.files)) rerenderSide(); });
+ return side;
+}
+
+// ------------------------------------------------------------------ main area: history, library, how it works
+let wsTab = "history";
+let dense = store.get("dense", false);
+
+function relatedExamples(app) {
+ const cat = categoryOf(app.id);
+ const same = (CATEGORIES.find((c) => c.id === cat)?.apps || []).filter((id) => id !== app.id).map((id) => byId.get(id)).filter((a) => a?.example);
+ const rest = apps.filter((a) => a.example && a.id !== app.id && !same.includes(a) && a.section === app.section);
+ return [...same, ...rest].slice(0, 12);
+}
+
+function exampleTiles(list, { onPick } = {}) {
+ return list.map((a) => {
+ const item = exampleItem(a);
+ const m = thumb(item, { play: "visible" });
+ const node = el("div", { class: "m-item", role: "button", tabindex: "0", onclick: () => onPick?.(a), onkeydown: (e) => { if (e.key === "Enter") onPick?.(a); } },
+ m, el("div", { class: "cap" }, el("span", {}, a.name), icon("chevR")));
+ return node;
+ });
+}
+
+function heroFlow(app) {
+ const item = exampleItem(app);
+ if (!item) return null;
+ const ins = item.inputs.slice(0, 2).map((i) => el("div", { class: "media" }, i.thumb ? el("img", { src: i.thumb, alt: i.label, title: i.label }) : el("span", { class: "typeicon" }, icon(i.type || "image"))));
+ return el("div", { class: "flow" },
+ ins.length ? el("div", { class: "ins" }, ...ins) : null,
+ ins.length ? el("span", { class: "arrow" }, icon("chevR")) : null,
+ el("div", { class: "out" }, thumb(item, { play: "visible", useFull: item.type === "video" })));
+}
+
+function emptyFor(app, layout) {
+ const item = exampleItem(app);
+ const load = () => item && recreate(item);
+ if (layout === "composer") {
+ return el("div", { class: "feed-empty" }, el("div", {},
+ el("div", { class: "glass" }, icon(iconOf(app))),
+ el("h2", { class: "display" }, t("ws.create.title"), el("span", {}, app.name)),
+ el("p", {}, app.summary),
+ item ? el("button", { class: "ex", type: "button", onclick: load }, thumb(item, { play: "visible" }),
+ el("span", {}, el("b", {}, t("ws.example")), el("small", {}, t("ws.useex")))) : null));
+ }
+ const related = relatedExamples(app);
+ const grid = el("div");
+ if (related.length) masonry(grid, exampleTiles(related, { onPick: (a) => { location.hash = `#/app/${a.id}`; } }), { min: 230 });
+ return el("div", { style: { display: "grid", gap: "8px" } },
+ el("section", { class: "ws-hero" },
+ el("div", {}, el("h1", { class: "display" }, tagline(app)), el("p", {}, app.summary),
+ el("div", { class: "row" },
+ item ? el("button", { class: "btn lime", type: "button", onclick: load }, icon("redo"), t("ws.useex")) : null,
+ el("button", { class: "btn ghost", type: "button", onclick: () => { wsTab = "how"; hooks.rerender?.(); } }, icon("info"), t("ws.how")))),
+ heroFlow(app)),
+ related.length ? el("div", { class: "sec-head" }, el("div", {}, el("h2", { class: "display" }, t("ws.related")))) : null,
+ grid);
+}
+
+function valueRows(app, values) {
+ const labels = Object.fromEntries(app.inputs.map((i) => [i.id, i]));
+ const pi = promptInput(app);
+ return Object.entries(values || {}).filter(([k, v]) => labels[k] && labels[k] !== pi && labels[k].type !== "seed" && v !== "" && v !== null && v !== undefined)
+ .flatMap(([k, v]) => [el("dt", {}, labels[k].label), el("dd", {}, labels[k].type === "select" ? optionLabel(labels[k], v) : labels[k].type === "toggle" ? (v === true || v === "true" ? "✓" : "—") : String(v))]);
+}
+
+function libraryTab(app) {
+ const item = exampleItem(app);
+ const wrap = el("div", { style: { display: "grid", gap: "8px" } });
+ if (item) {
+ const pi = promptInput(app);
+ const prompt = pi ? item.values?.[pi.id] : null;
+ wrap.append(el("section", { class: "ex-big" },
+ el("div", { class: "stage" }, fullMedia(item.type, item.full, { poster: item.poster, autoplay: false })),
+ el("div", { class: "side2" },
+ el("div", {}, el("span", { class: "tag ghost" }, t("ws.example")), el("h2", { class: "display", style: { margin: "10px 0 0", fontSize: "26px" } }, app.name)),
+ prompt ? el("div", { class: "prompt", style: { padding: "12px", borderRadius: "12px", background: "#1b1b1e", fontSize: "13.5px" } }, prompt) : null,
+ item.inputs.length ? el("div", { class: "ins-row" }, ...item.inputs.map((i) => el("figure", {},
+ el("div", { class: "media" }, i.thumb ? el("img", { src: i.thumb, alt: "" }) : el("span", { class: "typeicon" }, icon(i.type || "image"))), el("figcaption", {}, i.label)))) : null,
+ el("dl", { class: "vals" }, ...valueRows(app, item.values)),
+ el("div", { class: "statline" },
+ item.seconds ? el("span", {}, icon("clock"), fmtSeconds(item.seconds)) : null,
+ item.gpu ? el("span", {}, icon("chip"), item.gpu.split(",")[0]) : null,
+ item.peak ? el("span", {}, t("view.peak", { gb: item.peak })) : null,
+ item.seed !== null && item.seed !== undefined ? el("span", {}, icon("dice"), item.seed) : null),
+ el("div", { class: "row", style: { display: "flex", gap: "8px", flexWrap: "wrap" } },
+ el("button", { class: "btn lime", type: "button", onclick: () => recreate(item) }, icon("redo"), t("ws.useex")),
+ el("button", { class: "btn ghost", type: "button", onclick: () => hooks.compare?.(item) }, icon("compare"), t("act.compare")),
+ flagButton(flags.key(app.id))))));
+ }
+ const related = relatedExamples(app);
+ if (related.length) {
+ const grid = el("div");
+ masonry(grid, exampleTiles(related, { onPick: (a) => { location.hash = `#/app/${a.id}`; } }), { min: 230 });
+ wrap.append(el("div", { class: "sec-head" }, el("h2", { class: "display" }, t("ws.related"))), grid);
+ }
+ if (!item && !related.length) wrap.append(el("div", { class: "empty" }, t("explore.noex")));
+ return wrap;
+}
+
+function vramBars(app) {
+ const v = app.vram;
+ if (!v) return null;
+ const peak = app.example?.peak_vram_gb ?? null;
+ const max = Math.max(48, v.whole_gb, peak || 0) * 1.05;
+ const pct = (gb) => `${Math.min(100, (gb / max) * 100)}%`;
+ const ticks = [24, 48].map((g) => el("u", { style: { left: pct(g) }, title: `${g} GB` }));
+ const row = (label, gb, cls) => el("div", { style: { display: "grid", gap: "6px" } },
+ el("div", { style: { display: "flex", justifyContent: "space-between", fontSize: "12.5px" } }, el("span", { class: "dim" }, label), el("b", {}, `${gb} GB`)),
+ el("div", { class: "vbar" }, el("i", { class: cls, style: { width: pct(gb) } }), ...ticks));
+ const fit = fitOf(app);
+ return el("div", { class: "card" }, el("h3", {}, icon("chip"), t("how.vram"), fit ? el("span", { class: `fit ${fit[1]}`, style: { marginLeft: "auto" } }, t(fit[0])) : null),
+ row(t("how.whole"), v.whole_gb, "whole"), row(t("how.phase"), v.largest_phase_gb, ""),
+ peak ? row(`${t("how.measured")} (${(app.example.gpu || "").split(",")[0]})`, peak, "whole") : null,
+ el("div", { class: "vscale" }, el("span", { style: { left: pct(24) } }, "24 GB"), el("span", { style: { left: pct(48) } }, "48 GB")));
+}
+
+function cliLine(app) {
+ const parts = ["npm run app --", app.id];
+ for (const inp of app.inputs) {
+ if (isMedia(inp.type)) { if (inp.required) parts.push(`--file ${inp.id}=my-${inp.type}.${inp.type === "image" ? "jpg" : inp.type === "video" ? "mp4" : "mp3"}`); continue; }
+ if (inp.required && inp.type === "textarea") parts.push(`--set ${inp.id}="${String(inp.default || "…").slice(0, 40)}"`);
+ }
+ return parts.join(" ");
+}
+
+function howTab(app) {
+ const total = app.models.filter((m) => !m.optional).reduce((s, m) => s + m.gb, 0);
+ return el("div", { class: "how-grid" },
+ el("div", { class: "card" }, el("h3", {}, icon("layers"), t("how.pipeline")), el("p", {}, t("how.pipeline.d", { id: app.id })),
+ el("div", { class: "statline" }, el("span", {}, `${t("how.pack")}: ${app.pack}`), el("span", {}, app.status === "ready" ? "ready" : t("tag.draft")),
+ app.higgsfield_feature ? el("span", {}, `${t("how.equiv")}: ${app.higgsfield_feature}`) : null),
+ el("p", {}, t("how.download")), el("pre", { class: "code" }, `modal run infra/modal_app.py::download --pack ${app.pack}`),
+ el("p", {}, t("how.cli")), el("pre", { class: "code" }, cliLine(app))),
+ app.models.length ? el("div", { class: "card" }, el("h3", {}, icon("box"), t("how.models"), el("span", { class: "dim", style: { marginLeft: "auto", fontWeight: 500 } }, t("how.total", { gb: total.toFixed(1) }))),
+ el("table", { class: "models" }, el("tbody", {}, ...app.models.map((m) => el("tr", {},
+ el("td", {}, el("div", {}, m.name), el("small", { class: "dim" }, [m.repo, m.license, m.gated ? t("how.gated") : "", m.optional ? t("how.optional") : ""].filter(Boolean).join(" · "))),
+ el("td", { class: "r" }, `${m.gb} GB`)))))) : null,
+ vramBars(app),
+ app.notes || app.credits?.length ? el("div", { class: "card" },
+ app.notes ? el("h3", {}, icon("info"), t("how.notes")) : null, app.notes ? el("p", {}, app.notes) : null,
+ app.credits?.length ? el("h3", {}, t("how.credits")) : null, app.credits?.length ? el("p", {}, app.credits.join(" · ")) : null) : null);
+}
+
+function mainArea(app, layout, disposers) {
+ const body = el("div", { class: "ws-body", style: { display: "flex", flexDirection: "column", flex: "1", minHeight: "0" } });
+ const tabs = el("div", { class: "tabs", role: "tablist" });
+ const denseBtn = el("button", { class: "icon-btn", type: "button", title: t("ws.dense"), "aria-label": t("ws.dense"), "aria-pressed": String(dense) });
+ let disposeBody = null;
+ const draw = () => {
+ tabs.replaceChildren(...[["history", "clock"], ["library", "film"], ["how", "info"]].map(([id, ic]) => el("button", { type: "button", role: "tab",
+ "aria-selected": String(wsTab === id), onclick: () => { wsTab = id; draw(); } }, icon(ic), t(`ws.${id}`))));
+ denseBtn.replaceChildren(icon(dense ? "rows" : "grid"));
+ denseBtn.hidden = wsTab !== "history";
+ disposeBody?.();
+ disposeBody = null;
+ if (wsTab === "history") disposeBody = feedView(body, { app: app.id, empty: () => emptyFor(app, layout), dense });
+ else body.replaceChildren(wsTab === "library" ? libraryTab(app) : howTab(app));
+ };
+ denseBtn.onclick = () => { dense = !dense; store.set("dense", dense); denseBtn.setAttribute("aria-pressed", String(dense)); draw(); };
+ draw();
+ disposers.push(() => disposeBody?.());
+ return el("section", { class: "ws-main" }, el("div", { class: "ws-top" }, tabs, el("div", { class: "right" }, denseBtn)), body);
+}
+
+// ------------------------------------------------------------------ the view
+export function workspaceView(appId) {
+ const app = byId.get(appId);
+ if (!app) return { node: el("div", { class: "page" }, el("div", { class: "empty" }, `${appId}?`)), active: "apps" };
+ rememberApp(app);
+ const vt = videoTabOf(app.id);
+ if (vt) store.set(`last.vtab.${vt}`, app.id);
+ const layout = layoutOf(app);
+ const disposers = [];
+ const root = el("div", { class: `ws l-${layout}` });
+
+ if (layout === "composer") {
+ let bar = null;
+ const drawBar = () => { const next = composerBar(app, drawBar); bar ? bar.replaceWith(next) : null; bar = next; if (!bar.isConnected) root.append(bar); };
+ root.append(mainArea(app, layout, disposers));
+ drawBar();
+ // drop files anywhere on the page
+ const over = (e) => { if ([...(e.dataTransfer?.types || [])].includes("Files")) { e.preventDefault(); bar.classList.add("drag"); } };
+ const leave = (e) => { if (!e.relatedTarget) bar.classList.remove("drag"); };
+ const drop = (e) => { if (!e.dataTransfer?.files?.length) return; e.preventDefault(); bar.classList.remove("drag"); if (assignFiles(app, e.dataTransfer.files)) drawBar(); };
+ window.addEventListener("dragover", over);
+ window.addEventListener("dragleave", leave);
+ window.addEventListener("drop", drop);
+ disposers.push(() => { window.removeEventListener("dragover", over); window.removeEventListener("dragleave", leave); window.removeEventListener("drop", drop); });
+ disposers.push(() => bar?.remove());
+ const paste = (e) => { const files = [...(e.clipboardData?.files || [])]; if (files.length && assignFiles(app, files)) { e.preventDefault(); drawBar(); } };
+ document.addEventListener("paste", paste);
+ disposers.push(() => document.removeEventListener("paste", paste));
+ } else {
+ let side = null;
+ const drawSide = () => {
+ const scrollTop = side?.querySelector(".side-scroll")?.scrollTop || 0;
+ const next = sidebarPanel(app, drawSide);
+ if (side) side.replaceWith(next); else root.prepend(next);
+ side = next;
+ side.querySelector(".side-scroll").scrollTop = scrollTop;
+ };
+ root.append(mainArea(app, layout, disposers));
+ drawSide();
+ const paste = (e) => { const files = [...(e.clipboardData?.files || [])]; if (files.length && assignFiles(app, files)) { e.preventDefault(); drawSide(); } };
+ document.addEventListener("paste", paste);
+ disposers.push(() => document.removeEventListener("paste", paste));
+ }
+ return { node: root, dispose: () => disposers.forEach((d) => d()), app };
+}
+
+/** For the viewer's "Recreate" and the feed's "Try again". */
+export function setTab(tab) { wsTab = tab; }
+export { submit as submitApp, hoverPlay, playWhenVisible };