Skip to content

armgit / fuobe

Public Imported from GitHub
0

The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.

Open models for every round-3 capability

Claude1a43ad00fd90
diff --git a/scripts/comfy/library.spec.mjs b/scripts/comfy/library.spec.mjs
index 2a9ed39a..7916640a 100644
--- a/scripts/comfy/library.spec.mjs
+++ b/scripts/comfy/library.spec.mjs
@@ -2213,12 +2213,13 @@ export const SPEC = [
steps: [b('75:62', 'steps')], loraStrength: [b('75:400', 'strength_model')],
},
outputs: [{ node: '9', kind: 'image' }],
+ defaults: { promptPrefix: 'TRYON' },
vramGb: 10,
license: 'Apache-2.0 (FLUX.2 [klein] 4B, try-on LoRA by xocialize); segformer_b2_clothes MIT; ComfyUI-RMBG code GPL-3.0',
autoDownloads: ['ClothesSegment (ComfyUI-RMBG) downloads segformer_b2_clothes (0.11 GB) into models/RMBG/segformer_clothes on first run'],
notes:
'Reference order is load-bearing (LoRA card): image = person, image2 = top, image3 = bottom; for a dress the provider passes image2 again as image3. The LoRA was trained on clothing-agnostic inputs, ' +
- 'so ClothesSegment greys the old outfit out first. Trigger word TRYON (keep it at the start of the prompt). Output size = the person image (~1 MP).',
+ 'so ClothesSegment greys the old outfit out first. Trigger word TRYON (defaults.promptPrefix: the provider puts it at the start of the prompt). Output size = the person image (~1 MP).',
},
// ---- Cinema Studio grid and Soul Cast -------------------------------------------
@@ -2232,10 +2233,15 @@ export const SPEC = [
seed: [b('24', 'seed')], steps: [b('24', 'steps')],
},
outputs: [{ node: '26', kind: 'image', role: 'sheet' }, { node: '28', kind: 'image', role: 'tiles' }],
+ defaults: {
+ gridPrompt:
+ 'A {columns}x{rows} grid contact sheet of {count} film stills from the same scene, edge to edge with thin black gutters, consistent characters, wardrobe, lighting and colour grade in every panel, varied shot sizes and angles:',
+ },
limits: { maxWidth: 2048, maxHeight: 2048, dimensionMultiple: 16 },
vramGb: 14,
license: 'Apache-2.0 (Z-Image Turbo)',
notes:
+ 'gridPrompt defaults to a contact-sheet sentence for the chosen columns x rows ({columns}, {rows}, {count} are filled by the provider). ' +
'Higgsfield "full grid from a single prompt": one generation, then KJNodes ImageGridtoBatch cuts the sheet into columns x rows tiles (row-major). gridPrompt is chosen by the app per size/type ' +
'(freeform, zooms, shots); next/prev shots continue from a tile with storyboard-qwen-edit-2509-next-scene. Outputs: the sheet first, then the tiles.',
},
diff --git a/src/lib/catalog/index.ts b/src/lib/catalog/index.ts
index 73b2142e..4d754bd4 100644
--- a/src/lib/catalog/index.ts
+++ b/src/lib/catalog/index.ts
@@ -62,9 +62,23 @@ const APP_OPEN_OVERRIDES: Record<string, Preset["open"]> = {
"app-face-swap": { modelId: "oss-reactor", op: "face-swap" },
// Qwen-Image-Edit with the Relight LoRA beats a plain edit prompt for lighting changes.
"app-relight": { modelId: "oss-qwen-relight", op: "edit" },
+ // FLUX.2 [klein] + the try-on LoRA was trained for exactly this (the provider adds the TRYON trigger word).
+ "app-virtual-try-on": {
+ modelId: "oss-tryon-klein",
+ op: "edit",
+ promptTemplate:
+ "A full-body photo of a person. Replace the outfit with the garment shown in the reference image, with its fabric, colour, pattern, logo and fit. The final image is a full body shot. {prompt}",
+ },
};
-export const APPS: Preset[] = RAW_APPS.map((a) => (APP_OPEN_OVERRIDES[a.id] ? { ...a, open: APP_OPEN_OVERRIDES[a.id] } : a)).map(withOssLoras);
+/** What the open version does differently, shown on the app page next to an override above. */
+const APP_OPEN_PARITY: Record<string, string> = {
+ "app-virtual-try-on": "The open version uses FLUX.2 [klein] 4B with a try-on LoRA and masks the old outfit out first (10 GB GPU, Apache-2.0)",
+};
+
+export const APPS: Preset[] = RAW_APPS.map((a) =>
+ APP_OPEN_OVERRIDES[a.id] ? { ...a, open: APP_OPEN_OVERRIDES[a.id], parity: a.parity ?? APP_OPEN_PARITY[a.id] } : a,
+).map(withOssLoras);
export const MOTIONS: Preset[] = RAW_MOTIONS.map(withOssLoras).map(withFunCamera);
export const EFFECTS: Preset[] = RAW_EFFECTS.map(withOssLoras);
export const PRESETS: Preset[] = [...APPS, ...MOTIONS, ...EFFECTS];
diff --git a/src/lib/catalog/models.ts b/src/lib/catalog/models.ts
index 262b3f3e..1172b930 100644
--- a/src/lib/catalog/models.ts
+++ b/src/lib/catalog/models.ts
@@ -650,6 +650,386 @@ const open: ModelDef[] = [
routes: [comfy("color-match", "palette-transfer-video")],
options: { sliders: [{ param: "strength", label: "Strength", min: 0, max: 1, step: 0.05, default: 0.8 }] },
}),
+
+ // ---------------- Round 3 (docs/research/comfyui-oss-3.md). Taglines carry the GPU memory and any licence catch.
+ // Layers
+ o({
+ id: "oss-qwen-layered",
+ name: "Qwen-Image-Layered",
+ vendor: "Alibaba Qwen",
+ family: "qwen-image",
+ kind: "image",
+ tagline: "Splits a picture into editable transparent layers, back to front · 24 GB GPU · Apache-2.0",
+ badges: ["new", "top"],
+ routes: [comfy("layers", "layers-qwen-image-layered", "full-canvas RGBA layers with name, z and bounding box")],
+ options: { seed: true, sliders: [{ param: "numLayers", label: "Layers", min: 2, max: 10, step: 1, default: 4 }] },
+ }),
+ o({
+ id: "oss-qwen-layered-control",
+ name: "Qwen-Image-Layered Control",
+ vendor: "DiffSynth-Studio",
+ family: "qwen-image",
+ kind: "image",
+ tagline: "Pulls the element you name (“the guitar”) onto its own layer · 24 GB GPU, 41 GB download · Apache-2.0",
+ badges: ["new"],
+ routes: [comfy("layers", "layers-qwen-image-layered-control", "prompt = the element to separate")],
+ options: { seed: true },
+ }),
+ // Moodboards: generate in the look of reference images (op t2i with the references attached)
+ o({
+ id: "oss-style-qwen-edit",
+ name: "Qwen-Image-Edit Style Reference",
+ vendor: "Alibaba Qwen",
+ family: "style-reference",
+ kind: "image",
+ tagline: "A new image in the look of your moodboard (1–2 collages): palette, light, grain, mood · 24 GB GPU · Apache-2.0",
+ badges: ["new", "top", "fast"],
+ routes: [comfy("t2i", "style-ref-qwen-edit-2511", "Qwen-Image-Edit-2511 + Lightning, 4 steps")],
+ options: { aspectRatios: IMG_AR, resolutions: ["1K", "1.5K"], maxImages: 2, seed: true },
+ defaults: { aspectRatio: "1:1", resolution: "1K" },
+ }),
+ o({
+ id: "oss-style-flux2-klein",
+ name: "FLUX.2 [klein] Style Reference",
+ vendor: "Black Forest Labs",
+ family: "style-reference",
+ kind: "image",
+ tagline: "Fast style transfer from up to 4 references, 4 steps · 10 GB GPU · Apache-2.0",
+ badges: ["new", "fast"],
+ routes: [comfy("t2i", "style-ref-flux2-klein-4b")],
+ options: { aspectRatios: IMG_AR, resolutions: ["1K", "1.5K"], maxImages: 4, seed: true },
+ defaults: { aspectRatio: "1:1", resolution: "1K" },
+ }),
+ o({
+ id: "oss-style-krea2",
+ name: "Krea 2 Style Reference",
+ vendor: "Krea",
+ family: "style-reference",
+ kind: "image",
+ tagline: "Trained for style reference (1–2 images) · 20 GB GPU · Krea 2 Community License: enterprise terms above its size limits",
+ badges: ["new"],
+ routes: [comfy("t2i", "style-ref-krea2", "Krea 2 Turbo + style_reference LoRA")],
+ options: { aspectRatios: IMG_AR, resolutions: ["1K", "1.5K"], maxImages: 2, seed: true },
+ defaults: { aspectRatio: "1:1", resolution: "1K" },
+ }),
+ o({
+ id: "oss-style-uso",
+ name: "USO Style Reference",
+ vendor: "ByteDance",
+ family: "style-reference",
+ kind: "image",
+ tagline: "Style-only reference on FLUX.1 [dev] · 20 GB GPU · non-commercial base model",
+ routes: [comfy("t2i", "style-ref-uso-flux1")],
+ options: { aspectRatios: IMG_AR, resolutions: ["1K", "1.5K"], maxImages: 2, seed: true },
+ defaults: { aspectRatio: "1:1", resolution: "1K" },
+ }),
+ // Soul HEX: the palette in the prompt + a ColorTransfer lock to a swatch rendered from params.palette
+ o({
+ id: "oss-zimage-palette",
+ name: "Z-Image Turbo · Palette",
+ vendor: "Alibaba Tongyi",
+ family: "z-image",
+ kind: "image",
+ tagline: "Generates in your hex colours and locks them with a colour transfer · 12 GB GPU · Apache-2.0",
+ badges: ["new", "fast"],
+ routes: [comfy("t2i", "palette-zimage-hex", "hex list in the prompt + ColorTransfer to a swatch")],
+ options: {
+ aspectRatios: IMG_AR,
+ resolutions: ["1K", "1.5K", "2K"],
+ seed: true,
+ sliders: [{ param: "strength", label: "Palette lock", min: 0, max: 1, step: 0.05, default: 0.7 }],
+ controls: [{ param: "method", label: "Colour match", values: ["mkl_lab", "reinhard_lab", "histogram"], default: "mkl_lab" }],
+ },
+ defaults: { aspectRatio: "1:1", resolution: "1K" },
+ hidden: true,
+ }),
+ // Video: trim, segment, restyle, Mixed Media
+ o({
+ id: "oss-trim",
+ name: "Trim video",
+ vendor: "ComfyUI",
+ family: "utility",
+ kind: "video",
+ tagline: "Keeps the part between a start and an end time, with its sound · CPU",
+ routes: [comfy("trim", "video-trim")],
+ options: {},
+ }),
+ o({
+ id: "oss-segment",
+ name: "Cut segment (resampled)",
+ vendor: "ComfyUI",
+ family: "utility",
+ kind: "video",
+ tagline: "One window of a clip at a model's frame rate and size, plus its first frame · CPU",
+ routes: [comfy("trim", "video-segment-resample", "VHS loader: fps, start, frame count, size")],
+ options: { aspectRatios: VID_AR, resolutions: ["480p", "720p"] },
+ defaults: { aspectRatio: "16:9", resolution: "480p" },
+ hidden: true,
+ }),
+ o({
+ id: "oss-wan22-vace-restyle",
+ name: "Wan 2.2 Fun VACE Restyle",
+ vendor: "Alibaba Wan",
+ family: "wan",
+ kind: "video",
+ tagline: "Re-renders a ≤5 s clip in the look of its restyled first frame, keeping the motion (depth) · 24 GB GPU · Apache-2.0",
+ badges: ["new"],
+ routes: [comfy("v2v", "video-restyle-wan22-fun-vace", "image = restyled first frame; Depth Anything 3 control; Lightx2v 4-step")],
+ options: { aspectRatios: VID_AR, resolutions: ["480p", "720p"], durations: [3, 4, 5], seed: true, negativePrompt: true },
+ defaults: { aspectRatio: "16:9", resolution: "480p", duration: 5 },
+ hidden: true,
+ }),
+ o({
+ id: "oss-mixed-media",
+ name: "Z-Image Mixed Media",
+ vendor: "Alibaba Tongyi",
+ family: "z-image",
+ kind: "video",
+ tagline: "Stylises every frame (sketch, comic, paper…) at 4–24 fps, outlines kept by a ControlNet · 16 GB GPU · Apache-2.0",
+ badges: ["new"],
+ routes: [comfy("v2v", "mixed-media-zimage-frames", "Z-Image Turbo img2img + Fun Union ControlNet (canny), per frame")],
+ options: {
+ aspectRatios: ["9:16", "16:9", "1:1"],
+ resolutions: ["720p"],
+ durations: [2, 4, 6, 8, 10],
+ seed: true,
+ controls: [{ param: "fps", label: "Frame rate", values: [4, 8, 10, 12, 24], default: 8 }],
+ sliders: [{ param: "denoise", label: "Style strength", min: 0.4, max: 0.9, step: 0.05, default: 0.7 }],
+ },
+ defaults: { aspectRatio: "9:16", resolution: "720p", duration: 4 },
+ }),
+ // Sound effects (text to audio)
+ o({
+ id: "oss-stable-audio-3",
+ name: "Stable Audio 3 Small SFX",
+ vendor: "Stability AI",
+ family: "stable-audio",
+ kind: "audio",
+ tagline: "Sound effects from a description in 8 steps · 6 GB GPU · free under US$1M revenue (Stability Community License)",
+ badges: ["new", "top", "fast"],
+ routes: [comfy("sfx", "sfx-stable-audio-3-small")],
+ options: { durations: [3, 5, 10, 20], seed: true, negativePrompt: true },
+ defaults: { duration: 5 },
+ }),
+ o({
+ id: "oss-stable-audio-open",
+ name: "Stable Audio Open 1.0",
+ vendor: "Stability AI",
+ family: "stable-audio",
+ kind: "audio",
+ tagline: "Effects and loops up to 47 s · 6 GB GPU · free under US$1M revenue (Stability Community License)",
+ routes: [comfy("sfx", "sfx-stable-audio-open")],
+ options: { durations: [5, 10, 20, 30, 45], seed: true, negativePrompt: true },
+ defaults: { duration: 10 },
+ }),
+ o({
+ id: "oss-hunyuan-foley",
+ name: "HunyuanVideo-Foley",
+ vendor: "Tencent",
+ family: "hunyuan",
+ kind: "audio",
+ tagline: "48 kHz foley from a description · 12 GB GPU · licence excludes the EU, UK and South Korea",
+ routes: [comfy("sfx", "sfx-hunyuan-foley")],
+ options: { durations: [3, 5, 8, 10], seed: true, negativePrompt: true },
+ defaults: { duration: 5 },
+ }),
+ o({
+ id: "oss-mmaudio-sfx",
+ name: "MMAudio (text to audio)",
+ vendor: "hkchengrex",
+ family: "mmaudio",
+ kind: "audio",
+ tagline: "Sound effects from text, best at about 8 s · 8 GB GPU · non-commercial weights",
+ routes: [comfy("sfx", "sfx-mmaudio-t2a")],
+ options: { durations: [3, 5, 8], seed: true, negativePrompt: true },
+ defaults: { duration: 8 },
+ }),
+ o({
+ id: "oss-thinksound",
+ name: "ThinkSound",
+ vendor: "FunAudioLLM",
+ family: "thinksound",
+ kind: "audio",
+ tagline: "Apache-2.0 sound effects with a step-by-step sound description · 12 GB GPU · needs a separate ComfyUI worker",
+ routes: [comfy("sfx", "sfx-thinksound", "isolated worker (scripts/comfy/README.md)")],
+ options: { durations: [3, 5, 8, 10, 20, 30], seed: true },
+ defaults: { duration: 8 },
+ hidden: true,
+ }),
+ // Voice, transcription, captions, translation, lip re-sync, soundtrack
+ o({
+ id: "oss-voice-separate",
+ name: "MelBand RoFormer + Qwen3-ASR",
+ vendor: "Open source",
+ family: "melband",
+ kind: "audio",
+ tagline: "Splits the voice from the music and effects, and transcribes the voice with timings · 8 GB GPU · MIT / Apache-2.0",
+ badges: ["new"],
+ routes: [comfy("separate-audio", "dub-prepare-separate-transcribe", "voice stem, background stem, timed cues, transcript")],
+ options: {},
+ }),
+ o({
+ id: "oss-qwen3-asr",
+ name: "Qwen3-ASR",
+ vendor: "Alibaba Qwen",
+ family: "qwen-asr",
+ kind: "text",
+ tagline: "Timed captions from speech in 30 languages (auto-detect) · 4 GB GPU · Apache-2.0",
+ badges: ["new", "top"],
+ routes: [comfy("transcribe", "captions-qwen3-asr", "Qwen3-ASR 0.6B + ForcedAligner; one cue per line")],
+ options: { sliders: [{ param: "maxChars", label: "Characters per caption", min: 12, max: 60, step: 2, default: 32 }] },
+ }),
+ o({
+ id: "oss-captions-burnin",
+ name: "Caption burn-in",
+ vendor: "ComfyUI",
+ family: "utility",
+ kind: "video",
+ tagline: "Burns timed captions into the frames, keeping the sound · CPU or GPU, no model",
+ badges: ["new"],
+ routes: [comfy("captions", "captions-burnin", "prompt = timed lines (“0.00-2.40: Hello”) or SRT, e.g. from Qwen3-ASR")],
+ options: {
+ sliders: [
+ { param: "fontSize", label: "Text size", min: 3, max: 12, step: 0.5, default: 6 },
+ { param: "wordsPerCaption", label: "Words at a time (0 = whole line)", min: 0, max: 8, step: 1, default: 0 },
+ ],
+ controls: [
+ { param: "captionPosition", label: "Position", values: ["bottom", "top"], default: "bottom" },
+ { param: "fontColor", label: "Colour", values: ["#ffffff", "#ffd400", "#00e5ff", "#000000"], default: "#ffffff" },
+ ],
+ },
+ }),
+ o({
+ id: "oss-captions-whisper",
+ name: "Whisper captions",
+ vendor: "OpenAI × yuvraj108c",
+ family: "whisper",
+ kind: "video",
+ tagline: "Transcribes and burns word-by-word captions in one job · 6 GB GPU · node pack is non-commercial",
+ routes: [comfy("captions", "captions-whisper-burnin", "Whisper large-v3-turbo + ComfyUI-Whisper (CC-BY-NC-SA code)")],
+ options: { sliders: [{ param: "fontSize", label: "Text size (px)", min: 30, max: 160, step: 5, default: 90 }] },
+ }),
+ o({
+ id: "oss-qwen35-translate",
+ name: "Qwen3.5 4B translate",
+ vendor: "Alibaba Qwen",
+ family: "qwen-llm",
+ kind: "text",
+ tagline: "Translates text or timed caption lines inside ComfyUI, timings kept · 10 GB GPU · Apache-2.0",
+ routes: [comfy("translate", "translate-qwen35-textgen")],
+ options: { seed: true },
+ hidden: true,
+ }),
+ o({
+ id: "oss-gemma4-speech-translate",
+ name: "Gemma 4 speech translate",
+ vendor: "Google",
+ family: "gemma",
+ kind: "text",
+ tagline: "Speech straight to translated text, no timings (voice-over dubs) · 12 GB GPU · Apache-2.0",
+ routes: [comfy("translate", "speech-translate-gemma4")],
+ options: { seed: true },
+ hidden: true,
+ }),
+ o({
+ id: "oss-infinitetalk-v2v",
+ name: "InfiniteTalk Lip Re-sync",
+ vendor: "MeiGen",
+ family: "infinitetalk",
+ kind: "video",
+ tagline: "Re-syncs the lips (and head) of real footage to a new voice; camera and background stay · 24 GB GPU · Apache-2.0",
+ badges: ["new"],
+ routes: [comfy("lipsync", "lipsync-v2v-infinitetalk", "video-to-video, 4 steps from step 2")],
+ options: { aspectRatios: VID_AR, resolutions: ["480p", "720p"], seed: true, negativePrompt: true },
+ defaults: { aspectRatio: "16:9", resolution: "480p" },
+ }),
+ o({
+ id: "oss-latentsync",
+ name: "LatentSync 1.6",
+ vendor: "ByteDance",
+ family: "latentsync",
+ kind: "video",
+ tagline: "Mouth-only lip re-sync, identity untouched · 20 GB GPU · OpenRAIL++ · needs a separate ComfyUI worker",
+ routes: [comfy("lipsync", "lipsync-latentsync16", "isolated worker (scripts/comfy/README.md)")],
+ options: { seed: true },
+ hidden: true,
+ }),
+ o({
+ id: "oss-mux",
+ name: "Add soundtrack",
+ vendor: "ComfyUI",
+ family: "utility",
+ kind: "video",
+ tagline: "Puts a new soundtrack on a video, optionally mixed over a background track · CPU",
+ routes: [comfy("mux", "video-mux-audio", "one track: video-mux-audio-replace; two: voice + background mix")],
+ options: { sliders: [{ param: "backgroundVolumeDb", label: "Background level (dB)", min: -30, max: 6, step: 1, default: 0 }] },
+ }),
+ // Product 3D, try-on
+ o({
+ id: "oss-trellis2",
+ name: "TRELLIS.2",
+ vendor: "Microsoft",
+ family: "trellis",
+ kind: "model3d",
+ tagline: "A textured 3D model (.glb) from one product photo, plus a turntable video · 16 GB GPU · MIT",
+ badges: ["new", "top"],
+ routes: [comfy("image-to-3d", "image-to-3d-trellis2", "PBR textures; second output = 36-view turntable MP4")],
+ options: { seed: true },
+ }),
+ o({
+ id: "oss-hunyuan3d-21",
+ name: "Hunyuan3D 2.1",
+ vendor: "Tencent",
+ family: "hunyuan",
+ kind: "model3d",
+ tagline: "Untextured 3D shape from a photo · 10 GB GPU · licence excludes the EU, UK and South Korea",
+ routes: [comfy("image-to-3d", "image-to-3d-hunyuan3d-21")],
+ options: { seed: true },
+ }),
+ o({
+ id: "oss-tryon-klein",
+ name: "FLUX.2 [klein] Try-On",
+ vendor: "Black Forest Labs × xocialize",
+ family: "flux",
+ kind: "image",
+ tagline: "Dresses the person in image 1 in the top (image 2) and bottom (image 3) · 10 GB GPU · Apache-2.0",
+ badges: ["new", "fast"],
+ routes: [comfy("edit", "tryon-flux2-klein-4b", "try-on LoRA; old outfit masked out first")],
+ options: { maxImages: 3, seed: true },
+ }),
+ // Cinema Studio grid and Soul Cast (used by those studios)
+ o({
+ id: "oss-zimage-grid",
+ name: "Z-Image Turbo · Grid",
+ vendor: "Alibaba Tongyi",
+ family: "z-image",
+ kind: "image",
+ tagline: "One prompt, a whole contact sheet (2×2 to 4×4) that shares one look, cut into tiles · 14 GB GPU · Apache-2.0",
+ routes: [comfy("t2i", "grid-zimage-contact-sheet", "outputs: the sheet, then the tiles")],
+ options: {
+ aspectRatios: ["16:9", "1:1", "9:16"],
+ resolutions: ["2K"],
+ seed: true,
+ controls: [
+ { param: "columns", label: "Columns", values: [2, 3, 4], default: 3 },
+ { param: "rows", label: "Rows", values: [2, 3, 4], default: 3 },
+ ],
+ },
+ defaults: { aspectRatio: "16:9", resolution: "2K" },
+ hidden: true,
+ }),
+ o({
+ id: "oss-zimage-soul-cast",
+ name: "Z-Image Turbo · Soul Cast sheet",
+ vendor: "Alibaba Tongyi",
+ family: "z-image",
+ kind: "image",
+ tagline: "A cast member as a turnaround sheet (front, three-quarter, profile, back) plus the four views · 14 GB GPU · Apache-2.0",
+ routes: [comfy("t2i", "soul-cast-sheet-zimage", "outputs: the sheet, then the four views")],
+ options: { seed: true },
+ defaults: {},
+ hidden: true,
+ }),
];
/** fal's FFmpeg utilities (docs/research/paid-model-apis-2.md): the cloud side of join clips and Kling extend. */
diff --git a/tests/open-engine.test.ts b/tests/open-engine.test.ts
index 9c0a4f17..8221a5eb 100644
--- a/tests/open-engine.test.ts
+++ b/tests/open-engine.test.ts
@@ -1,5 +1,9 @@
+import fs from "node:fs";
+import path from "node:path";
import { describe, expect, it } from "vitest";
-import { getModel, getPreset } from "@/lib/catalog";
+import { getModel, getPreset, MODELS } from "@/lib/catalog";
+import { OPERATION_OUTPUT, type MediaKind, type Operation } from "@/lib/catalog/types";
+import type { Manifest } from "@/lib/comfy";
import { planGeneration } from "@/lib/catalog/plan";
import { applySketch, stripMotionPaths } from "@/lib/catalog/sketch";
import { resample, tracksFor } from "@/lib/motion-paths";
@@ -38,3 +42,104 @@ describe("open-source voice", () => {
expect(getPreset("app-relight")?.open?.modelId).toBe("oss-qwen-relight");
});
});
+
+/** The round-3 open models (docs/research/comfyui-oss-3.md), one or more per capability. */
+const ROUND3_MODELS: Record<string, { op: Operation; kind: MediaKind; workflow: string }> = {
+ "oss-qwen-layered": { op: "layers", kind: "image", workflow: "layers-qwen-image-layered" },
+ "oss-qwen-layered-control": { op: "layers", kind: "image", workflow: "layers-qwen-image-layered-control" },
+ "oss-style-qwen-edit": { op: "t2i", kind: "image", workflow: "style-ref-qwen-edit-2511" },
+ "oss-style-flux2-klein": { op: "t2i", kind: "image", workflow: "style-ref-flux2-klein-4b" },
+ "oss-style-krea2": { op: "t2i", kind: "image", workflow: "style-ref-krea2" },
+ "oss-style-uso": { op: "t2i", kind: "image", workflow: "style-ref-uso-flux1" },
+ "oss-zimage-palette": { op: "t2i", kind: "image", workflow: "palette-zimage-hex" },
+ "oss-trim": { op: "trim", kind: "video", workflow: "video-trim" },
+ "oss-segment": { op: "trim", kind: "video", workflow: "video-segment-resample" },
+ "oss-wan22-vace-restyle": { op: "v2v", kind: "video", workflow: "video-restyle-wan22-fun-vace" },
+ "oss-mixed-media": { op: "v2v", kind: "video", workflow: "mixed-media-zimage-frames" },
+ "oss-stable-audio-3": { op: "sfx", kind: "audio", workflow: "sfx-stable-audio-3-small" },
+ "oss-stable-audio-open": { op: "sfx", kind: "audio", workflow: "sfx-stable-audio-open" },
+ "oss-hunyuan-foley": { op: "sfx", kind: "audio", workflow: "sfx-hunyuan-foley" },
+ "oss-mmaudio-sfx": { op: "sfx", kind: "audio", workflow: "sfx-mmaudio-t2a" },
+ "oss-thinksound": { op: "sfx", kind: "audio", workflow: "sfx-thinksound" },
+ "oss-voice-separate": { op: "separate-audio", kind: "audio", workflow: "dub-prepare-separate-transcribe" },
+ "oss-qwen3-asr": { op: "transcribe", kind: "text", workflow: "captions-qwen3-asr" },
+ "oss-captions-burnin": { op: "captions", kind: "video", workflow: "captions-burnin" },
+ "oss-captions-whisper": { op: "captions", kind: "video", workflow: "captions-whisper-burnin" },
+ "oss-qwen35-translate": { op: "translate", kind: "text", workflow: "translate-qwen35-textgen" },
+ "oss-gemma4-speech-translate": { op: "translate", kind: "text", workflow: "speech-translate-gemma4" },
+ "oss-infinitetalk-v2v": { op: "lipsync", kind: "video", workflow: "lipsync-v2v-infinitetalk" },
+ "oss-latentsync": { op: "lipsync", kind: "video", workflow: "lipsync-latentsync16" },
+ "oss-mux": { op: "mux", kind: "video", workflow: "video-mux-audio" },
+ "oss-trellis2": { op: "image-to-3d", kind: "model3d", workflow: "image-to-3d-trellis2" },
+ "oss-hunyuan3d-21": { op: "image-to-3d", kind: "model3d", workflow: "image-to-3d-hunyuan3d-21" },
+ "oss-tryon-klein": { op: "edit", kind: "image", workflow: "tryon-flux2-klein-4b" },
+ "oss-zimage-grid": { op: "t2i", kind: "image", workflow: "grid-zimage-contact-sheet" },
+ "oss-zimage-soul-cast": { op: "t2i", kind: "image", workflow: "soul-cast-sheet-zimage" },
+};
+const manifest = JSON.parse(fs.readFileSync(path.join(process.cwd(), "workflows/comfyui/manifest.json"), "utf8")) as Manifest;
+const workflowById = new Map(manifest.workflows.map((w) => [w.id, w]));
+/** Settings the ComfyUI provider consumes itself instead of writing them into a binding. */
+const PROVIDER_PARAMS = new Set(["wordsPerCaption", "paletteWeights", "cues"]);
+
+describe("round-3 open models", () => {
+ it.each(Object.entries(ROUND3_MODELS))("%s routes to its validated workflow", (id, want) => {
+ const m = getModel(id);
+ expect(m, id).toBeDefined();
+ expect(m!.engine).toBe("open");
+ expect(m!.badges).toContain("open");
+ expect(m!.kind).toBe(want.kind);
+ const route = m!.routes.find((r) => r.provider === "comfyui" && r.endpoint === want.workflow);
+ expect(route?.op, `${id} route`).toBe(want.op);
+ const wf = workflowById.get(want.workflow);
+ expect(wf?.validated, want.workflow).toBe(true);
+ // What the model makes is what the operation's rows say they hold (the feed and the mock provider use it).
+ expect(OPERATION_OUTPUT[want.op] === m!.kind || (want.op === "t2i" && m!.kind === "image") || (want.op === "translate" && m!.kind === "text")).toBe(true);
+ // Every slider or control reaches the workflow (pitfall: unknown extra keys are dropped silently).
+ for (const p of [...(m!.options.sliders ?? []), ...(m!.options.controls ?? [])].map((s) => s.param)) {
+ if (!PROVIDER_PARAMS.has(p)) expect(Object.keys(wf!.bindings), `${id}: ${p} is not a binding of ${want.workflow}`).toContain(p);
+ }
+ // Taglines tell people what the GPU and the licence ask of them.
+ expect(m!.tagline, id).toMatch(/GB|CPU/);
+ });
+
+ it("flags the licences people have to know about", () => {
+ expect(getModel("oss-style-uso")!.tagline).toMatch(/non-commercial/);
+ expect(getModel("oss-mmaudio-sfx")!.tagline).toMatch(/non-commercial/);
+ expect(getModel("oss-captions-whisper")!.tagline).toMatch(/non-commercial/);
+ expect(getModel("oss-hunyuan-foley")!.tagline).toMatch(/EU, UK and South Korea/);
+ expect(getModel("oss-stable-audio-3")!.tagline).toMatch(/US\$1M/);
+ expect(getModel("oss-thinksound")!.hidden).toBe(true); // isolated worker only
+ expect(getModel("oss-latentsync")!.hidden).toBe(true);
+ });
+
+ it("every open model's sliders and controls are bindings of its workflows", () => {
+ for (const m of MODELS.filter((x) => x.engine === "open")) {
+ for (const r of m.routes.filter((x) => x.provider === "comfyui")) {
+ const ids = r.endpoint.includes("{n}") ? ["2", "3", "4"].map((n) => r.endpoint.replace("{n}", n)) : [r.endpoint];
+ for (const wid of ids) {
+ const keys = Object.keys(workflowById.get(wid)?.bindings ?? {});
+ for (const p of [...(m.options.sliders ?? []), ...(m.options.controls ?? [])].map((s) => s.param)) {
+ if (!PROVIDER_PARAMS.has(p) && p !== "cameraMotion") expect(keys, `${m.id} → ${wid}: ${p}`).toContain(p);
+ }
+ }
+ }
+ }
+ });
+
+ it("plans the new tools without a prompt, and asks for what's missing", () => {
+ expect(planGeneration({ feature: "video", modelId: "oss-trim", inputs: { video: "/v.mp4" }, params: { startTime: 1, endTime: 3 } }, getModel, getPreset).op).toBe("trim");
+ expect(() => planGeneration({ feature: "video", modelId: "oss-trim" }, getModel, getPreset)).toThrow(/video to trim/);
+ expect(() => planGeneration({ feature: "video", modelId: "oss-mux", inputs: { video: "/v.mp4" } }, getModel, getPreset)).toThrow(/soundtrack/);
+ expect(planGeneration({ feature: "image", modelId: "oss-qwen-layered", inputs: { images: ["/a.png"] }, params: { numLayers: 4 } }, getModel, getPreset).op).toBe("layers");
+ expect(planGeneration({ feature: "captions", modelId: "oss-qwen3-asr", inputs: { video: "/v.mp4" } }, getModel, getPreset).op).toBe("transcribe");
+ expect(() => planGeneration({ feature: "3d", modelId: "oss-trellis2" }, getModel, getPreset)).toThrow(/photo/);
+ });
+
+ it("runs Virtual Try-On on the try-on LoRA on the open engine", () => {
+ const p = getPreset("app-virtual-try-on")!;
+ expect(p.open).toMatchObject({ modelId: "oss-tryon-klein", op: "edit" });
+ expect(p.parity).toMatch(/try-on LoRA/);
+ const plan = planGeneration({ feature: "app", presetId: p.id, modelId: "oss-tryon-klein", inputs: { images: ["/me.png", "/dress.png"] } }, getModel, getPreset);
+ expect(plan.prompt).toMatch(/^A full-body photo of a person/);
+ });
+});
diff --git a/workflows/comfyui/manifest.json b/workflows/comfyui/manifest.json
index e550b6df..be9da593 100644
--- a/workflows/comfyui/manifest.json
+++ b/workflows/comfyui/manifest.json
@@ -1,6 +1,6 @@
{
"version": 1,
- "generatedAt": "2026-10-17T21:02:48.119Z",
+ "generatedAt": "2026-10-17T21:13:08.018Z",
"comfyuiCommit": "fc04da91b2ab12f99e4716371a7e4f98ac982597",
"comfyuiVersion": "0.41.0",
"workflowTemplatesVersion": "0.11.86",
@@ -10141,7 +10141,8 @@
],
"defaults": {
"steps": 4,
- "loraStrength": 1
+ "loraStrength": 1,
+ "promptPrefix": "TRYON"
},
"limits": {},
"models": [
@@ -10179,7 +10180,7 @@
"vramGb": 10,
"license": "Apache-2.0 (FLUX.2 [klein] 4B, try-on LoRA by xocialize); segformer_b2_clothes MIT; ComfyUI-RMBG code GPL-3.0",
"validated": true,
- "notes": "Reference order is load-bearing (LoRA card): image = person, image2 = top, image3 = bottom; for a dress the provider passes image2 again as image3. The LoRA was trained on clothing-agnostic inputs, so ClothesSegment greys the old outfit out first. Trigger word TRYON (keep it at the start of the prompt). Output size = the person image (~1 MP).",
+ "notes": "Reference order is load-bearing (LoRA card): image = person, image2 = top, image3 = bottom; for a dress the provider passes image2 again as image3. The LoRA was trained on clothing-agnostic inputs, so ClothesSegment greys the old outfit out first. Trigger word TRYON (defaults.promptPrefix: the provider puts it at the start of the prompt). Output size = the person image (~1 MP).",
"autoDownloads": [
"ClothesSegment (ComfyUI-RMBG) downloads segformer_b2_clothes (0.11 GB) into models/RMBG/segformer_clothes on first run"
]
@@ -10267,7 +10268,8 @@
"height": 1152,
"steps": 8,
"columns": 3,
- "rows": 3
+ "rows": 3,
+ "gridPrompt": "A {columns}x{rows} grid contact sheet of {count} film stills from the same scene, edge to edge with thin black gutters, consistent characters, wardrobe, lighting and colour grade in every panel, varied shot sizes and angles:"
},
"limits": {
"maxWidth": 2048,
@@ -10303,7 +10305,7 @@
"vramGb": 14,
"license": "Apache-2.0 (Z-Image Turbo)",
"validated": true,
- "notes": "Higgsfield \"full grid from a single prompt\": one generation, then KJNodes ImageGridtoBatch cuts the sheet into columns x rows tiles (row-major). gridPrompt is chosen by the app per size/type (freeform, zooms, shots); next/prev shots continue from a tile with storyboard-qwen-edit-2509-next-scene. Outputs: the sheet first, then the tiles."
+ "notes": "gridPrompt defaults to a contact-sheet sentence for the chosen columns x rows ({columns}, {rows}, {count} are filled by the provider). Higgsfield \"full grid from a single prompt\": one generation, then KJNodes ImageGridtoBatch cuts the sheet into columns x rows tiles (row-major). gridPrompt is chosen by the app per size/type (freeform, zooms, shots); next/prev shots continue from a tile with storyboard-qwen-edit-2509-next-scene. Outputs: the sheet first, then the tiles."
},
{
"id": "soul-cast-sheet-zimage",