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.

Originals O4: review fixes for Fuobe DoP on both engines

Claude8ff2fae3b312
diff --git a/scripts/eval/cases/dop.json b/scripts/eval/cases/dop.json
index 081d3d73..7428eb48 100644
--- a/scripts/eval/cases/dop.json
+++ b/scripts/eval/cases/dop.json
@@ -2274,7 +2274,7 @@
"fuobe-dop"
],
"cloud": [
- "ltx-2-5"
+ "ltx-2-5-fast"
]
},
"inputs": {
diff --git a/scripts/eval/gen-cases.mjs b/scripts/eval/gen-cases.mjs
index 92960f97..4be86d84 100644
--- a/scripts/eval/gen-cases.mjs
+++ b/scripts/eval/gen-cases.mjs
@@ -238,7 +238,8 @@ const LORA_STATUSES = new Set(["add-lora", "alias", "replace", "weak-candidate",
/**
* The models a DoP preset runs on when it isn't Fuobe DoP's Wan (src/lib/catalog/dop.ts): an LTX-2.3 LoRA runs on Fuobe
- * DoP · LTX on both engines; an LTX-2.5 LoRA on the open LTX-2.5 graph only (the cloud runs the words on Fuobe DoP).
+ * DoP · LTX on both engines; an LTX-2.5 LoRA on the open LTX-2.5 graph only. In the cloud the harness measures Fuobe
+ * DoP on its words, against the partner model the catalog keeps there until a run promotes it.
*/
function dopModels(m) {
const bases = (m.loras ?? []).map((l) => l.base ?? "");
@@ -287,7 +288,7 @@ function dopSuite() {
if ((!lora && !move && !pose) || ids.has(id) || !catalog[m.kind].has(name)) continue;
ids.add(id);
const transition = catalog.endFrames.has(name);
- const cloud = move ? "ltx-2-5" : lora ? "fuobe-dop-ltx" : "fuobe-dop";
+ const cloud = move ? "ltx-2-5-fast" : lora ? "fuobe-dop-ltx" : "fuobe-dop";
cases.push({
id,
title: `DoP ${m.kind} · ${name} (camera)`,
diff --git a/scripts/gen-cloud-models.py b/scripts/gen-cloud-models.py
index 32a1842a..cc85052c 100644
--- a/scripts/gen-cloud-models.py
+++ b/scripts/gen-cloud-models.py
@@ -478,6 +478,14 @@ model("fuobe-dop-ltx", "Fuobe DoP · LTX", "Fuobe Original", "fuobe-dop", "video
model("ltx-2-5", "LTX 2.5 Pro", "Lightricks", "ltx", "video", "Fast 4K-capable video with audio",
[("t2v", "lightricks/ltx-2.5/text-to-video/pro"), ("i2v", "lightricks/ltx-2.5/image-to-video/pro")],
badges=["audio"], defaults={"aspectRatio": "16:9"})
+# Fuobe DoP's Focus Change in the cloud (O4, research §7.3): LTX-2.5's own focus_shift move (camera_motion) on the fast
+# endpoint, open weights hosted with no LoRAs. 720p, the start frame's shape, silent like every DoP clip. A helper
+# the preset runs on, not a picker model.
+model("ltx-2-5-fast", "LTX 2.5 Fast", "Lightricks", "ltx", "video", "LTX-2.5's built-in camera moves (focus shift, dolly, jib) from a start frame",
+ [("i2v", "lightricks/ltx-2.5/image-to-video/fast")],
+ pricing=("second", 0.09, "720p; 1080p $0.13/s, 1440p $0.19/s, 4K $0.30/s; sound included",
+ {"byResolution": {"720p": 0.09, "1080p": 0.13, "1440p": 0.19, "2160p": 0.3}}),
+ defaults={"aspectRatio": "auto", "duration": 6, "resolution": "720p", "generateAudio": False}, hidden=True)
model("pixverse-v6", "PixVerse V6", "PixVerse", "pixverse", "video", "Stylized social video with transitions",
[("t2v", "fal-ai/pixverse/v6/text-to-video"), ("i2v", "fal-ai/pixverse/v6/image-to-video"), ("flf2v", "fal-ai/pixverse/v6/transition"),
("extend", "fal-ai/pixverse/v6/extend")],
@@ -1562,8 +1570,11 @@ def build_route(op, ep, provider, m, opts, ropts=None):
# "enum or free string" unions (FLUX Ultra's aspect_ratio): offer the enum.
enum = [v for var in spec.get("variants") or [] for v in (var.get("values") or [])]
if key == "image_size" or any("landscape" in str(v) or "square" in str(v) for v in enum):
- fmap["aspectRatio"] = {"key": key, "values": IMAGE_SIZE_MAP}
- opts["aspectRatios"] = union(opts.get("aspectRatios", []), IMG_AR)
+ # A model that asks for "auto" (Fuobe DoP · LTX: the start frame's shape) keeps it when the API takes it;
+ # otherwise the default fallback below would make every clip square (1:1, the first size listed).
+ auto = "auto" in enum and m["defaults"].get("aspectRatio") == "auto"
+ fmap["aspectRatio"] = {"key": key, "values": {**({"auto": "auto"} if auto else {}), **IMAGE_SIZE_MAP}}
+ opts["aspectRatios"] = union(opts.get("aspectRatios", []), (["auto"] if auto else []) + IMG_AR)
else:
fmap["aspectRatio"] = key
ratios = [v for v in enum if RATIO.match(str(v)) or v == "auto"]
diff --git a/src/app/(studio)/motions/page.tsx b/src/app/(studio)/motions/page.tsx
index 271b9bd3..87f06a5a 100644
--- a/src/app/(studio)/motions/page.tsx
+++ b/src/app/(studio)/motions/page.tsx
@@ -11,7 +11,7 @@ export default function Page() {
<PageShell>
<PageHeader
title="Camera motions"
- description="Director-grade camera moves for any image. Pick a move, drop in a start frame: Fuobe DoP runs it with its camera LoRA, free on your GPU or hosted in the cloud. Any other video model takes the move's words."
+ description="Director-grade camera moves for any image. Pick a move, drop in a start frame: Fuobe DoP runs it with its camera LoRA, free on your GPU or hosted in the cloud. A move with no LoRA of its own runs its words on any video model."
/>
<PresetGallery presets={MOTIONS.map(toPresetCard)} href="/video?preset={id}" noun="moves" />
</PageShell>
diff --git a/src/app/api/models/route.ts b/src/app/api/models/route.ts
index 43d830c6..a626d9b9 100644
--- a/src/app/api/models/route.ts
+++ b/src/app/api/models/route.ts
@@ -61,7 +61,8 @@ export async function GET(request: Request) {
// A Fuobe Original runs on both engines: on a list for one engine (asked for, or the install's only one) it is
// that engine's model (its routes, its price), else it is listed once with both.
const only = (engine as Engine | undefined) ?? (mode === "both" ? undefined : mode);
- const list = findModels(MODELS, { kind: kind as MediaKind | undefined, engine: engine as Engine | undefined, op: op as Operation | undefined, q: p.get("q") ?? undefined, hidden: p.get("hidden") === "1" })
+ // The install's only engine counts as asked for: an Original's operations there are that engine's.
+ const list = findModels(MODELS, { kind: kind as MediaKind | undefined, engine: only, op: op as Operation | undefined, q: p.get("q") ?? undefined, hidden: p.get("hidden") === "1" })
.filter((m) => mode === "both" || runsOn(m, mode))
.map((m) => (only ? onEngine(m, only) : m));
const defaults = Object.fromEntries(
diff --git a/src/components/studio/composer.tsx b/src/components/studio/composer.tsx
index 8c4f2453..ad1362db 100644
--- a/src/components/studio/composer.tsx
+++ b/src/components/studio/composer.tsx
@@ -39,9 +39,11 @@ import {
clipBlocker,
clipOutcome,
costLabel,
+ engineSwitchModel,
enterFrames,
filterModels,
firstMissingSlot,
+ followEngineParams,
framesRequest,
framesShape,
framesSlots,
@@ -52,6 +54,8 @@ import {
onImageChange,
PLACEHOLDER,
presetModel,
+ presetOriginal,
+ presetParams,
prestepCost,
pushRecent,
settingsShape,
@@ -270,38 +274,55 @@ export function Composer({ docked }: { docked: boolean }) {
}, [needsFull]);
// Keep the selected model in sync with the engine switch. A camera motion or effect keeps its Original (Fuobe DoP),
- // moving to the model its move names on this engine (Jib Up: Fuobe DoP on the GPU, Fuobe DoP · LTX in the cloud).
+ // moving to the model its move names on this engine (Jib Up: Fuobe DoP on the GPU, Fuobe DoP · LTX in the cloud) when
+ // the engine changes; the same Original on the other engine takes that engine's defaults (480p on the GPU, 720p in the
+ // cloud) for the settings the person left alone.
+ const seen = useRef<{ engine: Engine; model?: ModelDef }>({ engine, model });
useEffect(() => {
+ const before = seen.current;
+ seen.current = { engine, model };
if (!model) return;
- const want = presetModel(preset, engine);
- const follows = !!want && want !== model.id && model.id === presetModel(preset, engine === "open" ? "cloud" : "open");
- if (model.engine === engine && !follows) return;
- const next = lockedModel ? (engine === "open" ? preset?.open?.modelId : preset?.cloud?.modelId) : (want ?? config.defaultModels[engine]);
+ const next = engineSwitchModel({ model, preset, engine, from: before.engine, defaults: config.defaultModels });
const m = next ? catalog.getModel(next) : undefined;
+ if (!m) {
+ if (before.engine === engine || before.model?.id !== model.id || before.model === model) return;
+ const from = before.model.defaults ?? {};
+ const to = model.defaults ?? {};
+ setDraft((d) => {
+ const params = d.modelId === model.id ? followEngineParams(d.params, from, to) : undefined;
+ return params ? { params } : {};
+ });
+ return;
+ }
// Only the model this effect saw: a hand-off applied in the same commit (?model=, a layout effect) already
// replaced it, and swapping it for the engine's default would undo the link (it landed on Z-Image Turbo).
- if (m) setDraft((d) => (d.modelId !== model.id ? {} : { modelId: m.id, params: { ...m.defaults, numOutputs: d.params.numOutputs, enhancePrompt: d.params.enhancePrompt }, ...lookCleared(model, m) }));
- }, [engine, model, lockedModel, preset, config.defaultModels, setDraft, catalog]);
+ const route = m.id === presetModel(preset, engine) ? presetParams(preset, engine) : {};
+ setDraft((d) => (d.modelId !== model.id ? {} : { modelId: m.id, params: { ...m.defaults, ...route, numOutputs: d.params.numOutputs, enhancePrompt: d.params.enhancePrompt }, ...lookCleared(model, m) }));
+ }, [engine, model, preset, config.defaultModels, setDraft, catalog]);
- // A camera motion or effect runs on its Original on this engine (Fuobe DoP): picking one moves the composer there.
- // Another video model can be picked after it; it takes the move's words.
+ // A camera motion or effect runs on its Original on this engine (Fuobe DoP): picking one moves the composer there,
+ // with the move's own settings (Focus Change: 6 s, silent). Another video model can be picked after it; it takes
+ // the move's words. A move whose cloud route is a partner model's words leaves the person's model as it is.
const pickPreset = (id?: string) => {
if (!id) return setDraft({ presetId: undefined, mix: undefined, presetStrength: undefined });
- const want = presetModel(catalog.getPreset(id), engine);
+ const picked = catalog.getPreset(id);
+ const want = presetOriginal(picked, engine);
const m = want && want !== model?.id ? catalog.getModel(want) : undefined;
if (!m) return setDraft({ presetId: id });
- setDraft((d) => ({ presetId: id, modelId: m.id, params: { ...m.defaults, numOutputs: d.params.numOutputs, enhancePrompt: d.params.enhancePrompt, seed: d.params.seed }, ...lookCleared(model, m) }));
+ const route = presetParams(picked, engine);
+ setDraft((d) => ({ presetId: id, modelId: m.id, params: { ...m.defaults, ...route, numOutputs: d.params.numOutputs, enhancePrompt: d.params.enhancePrompt, seed: d.params.seed }, ...lookCleared(model, m) }));
};
// A motion handed over in the link (?preset= from the Motions gallery) is known once the presets load: it moves the
// studio's untouched default model to its Original, once per preset.
const adoptedPreset = useRef<string | undefined>(undefined);
useEffect(() => {
- const want = presetModel(preset, engine);
+ const want = presetOriginal(preset, engine);
if (!preset || !want || !model || adoptedPreset.current === preset.id) return;
adoptedPreset.current = preset.id;
if (model.id === want || model.id !== config.defaultModels[engine]) return;
const m = catalog.getModel(want);
- if (m) setDraft((d) => (d.modelId !== model.id ? {} : { modelId: m.id, params: { ...m.defaults, numOutputs: d.params.numOutputs, enhancePrompt: d.params.enhancePrompt, seed: d.params.seed }, ...lookCleared(model, m) }));
+ const route = presetParams(preset, engine);
+ if (m) setDraft((d) => (d.modelId !== model.id ? {} : { modelId: m.id, params: { ...m.defaults, ...route, numOutputs: d.params.numOutputs, enhancePrompt: d.params.enhancePrompt, seed: d.params.seed }, ...lookCleared(model, m) }));
}, [preset, engine, model, config.defaultModels, catalog, setDraft]);
// Single-purpose studios (Extend, Reframe, Edit video…) pin their operation.
diff --git a/src/lib/catalog/cinema.ts b/src/lib/catalog/cinema.ts
index 47e725ac..8d6228b6 100644
--- a/src/lib/catalog/cinema.ts
+++ b/src/lib/catalog/cinema.ts
@@ -1,6 +1,7 @@
import { APERTURE, LENS, anglesNote, poseWords, recomposePrompt, type ScenePose } from "@/lib/scene3d";
import { getModel, getPreset } from "./index";
import { DOP_MODEL } from "./dop";
+import { triggerOf } from "./loras";
import { composeShots, estimateCost, planGeneration, routesFor } from "./plan";
import type { Engine, GenerationRequest, GenParams, LoraRef, ModelDef, Operation } from "./types";
@@ -993,7 +994,7 @@ export function openCameraRoute(slug: string, hasStartFrame: boolean): { via: "l
// Fuobe DoP's Wan LoRAs (an LTX-2.3 or LTX-2.5 motion's LoRA can't load on Wan 2.2), else a Fun Camera pose.
const wan = preset?.open?.modelId === DOP_MODEL ? preset.open : undefined;
const loras = wan?.loras;
- if (loras?.length && hasStartFrame) return { via: "lora", loras, trigger: loras.find((l) => l.trigger)?.trigger };
+ if (loras?.length && hasStartFrame) return { via: "lora", loras, trigger: triggerOf(loras) };
const pose = move.funCamera ?? (typeof wan?.params?.extra?.cameraMotion === "string" ? wan.params.extra.cameraMotion : undefined);
if (pose && hasStartFrame) return { via: "fun-camera", pose };
return { via: "prompt" };
diff --git a/src/lib/catalog/cloud-models.generated.ts b/src/lib/catalog/cloud-models.generated.ts
index 6e104b17..1e6f4eca 100644
--- a/src/lib/catalog/cloud-models.generated.ts
+++ b/src/lib/catalog/cloud-models.generated.ts
@@ -6662,6 +6662,74 @@ export const CLOUD_MODELS: ModelDef[] = [
"usd": 0.12
}
},
+ {
+ "id": "ltx-2-5-fast",
+ "name": "LTX 2.5 Fast",
+ "vendor": "Lightricks",
+ "family": "ltx",
+ "engine": "cloud",
+ "kind": "video",
+ "tagline": "LTX-2.5's built-in camera moves (focus shift, dolly, jib) from a start frame",
+ "routes": [
+ {
+ "op": "i2v",
+ "provider": "fal",
+ "endpoint": "lightricks/ltx-2.5/image-to-video/fast",
+ "map": {
+ "image": "image_url",
+ "endImage": "end_image_url",
+ "generateAudio": "generate_audio",
+ "aspectRatio": "aspect_ratio",
+ "resolution": "resolution",
+ "duration": {
+ "key": "duration",
+ "type": "string"
+ }
+ }
+ }
+ ],
+ "options": {
+ "endFrame": true,
+ "audio": true,
+ "aspectRatios": [
+ "auto",
+ "16:9",
+ "9:16"
+ ],
+ "resolutions": [
+ "720p",
+ "1080p",
+ "1440p",
+ "2160p"
+ ],
+ "durations": [
+ 6,
+ 8,
+ 10,
+ 12,
+ 20
+ ],
+ "maxImages": 1
+ },
+ "defaults": {
+ "aspectRatio": "auto",
+ "duration": 6,
+ "resolution": "720p",
+ "generateAudio": false
+ },
+ "pricing": {
+ "unit": "second",
+ "usd": 0.09,
+ "note": "720p; 1080p $0.13/s, 1440p $0.19/s, 4K $0.30/s; sound included",
+ "byResolution": {
+ "720p": 0.09,
+ "1080p": 0.13,
+ "1440p": 0.19,
+ "2160p": 0.3
+ }
+ },
+ "hidden": true
+ },
{
"id": "pixverse-v6",
"name": "PixVerse V6",
@@ -17004,6 +17072,7 @@ export const ORIGINAL_CLOUD: ModelDef[] = [
"aspectRatio": {
"key": "video_size",
"values": {
+ "auto": "auto",
"1:1": "square_hd",
"4:3": "landscape_4_3",
"3:4": "portrait_4_3",
@@ -17053,6 +17122,7 @@ export const ORIGINAL_CLOUD: ModelDef[] = [
"aspectRatio": {
"key": "video_size",
"values": {
+ "auto": "auto",
"1:1": "square_hd",
"4:3": "landscape_4_3",
"3:4": "portrait_4_3",
@@ -17092,6 +17162,7 @@ export const ORIGINAL_CLOUD: ModelDef[] = [
"endFrame": true,
"audio": true,
"aspectRatios": [
+ "auto",
"1:1",
"4:3",
"3:4",
@@ -17106,7 +17177,7 @@ export const ORIGINAL_CLOUD: ModelDef[] = [
"maxImages": 1
},
"defaults": {
- "aspectRatio": "1:1",
+ "aspectRatio": "auto",
"duration": 5,
"generateAudio": false
},
diff --git a/src/lib/catalog/dop.ts b/src/lib/catalog/dop.ts
index 8673285f..a5d9817f 100644
--- a/src/lib/catalog/dop.ts
+++ b/src/lib/catalog/dop.ts
@@ -8,13 +8,17 @@
* - LTX-2.3 LoRAs (FPV Drone, Wind to Face, the transitions) and LTX-2.3's built-in camera LoRA (dolly, jib, static)
* → Fuobe DoP · LTX. A camera move Wan 2.2 Fun Camera makes natively takes its pose on the user's GPU.
* - LTX-2.5 LoRAs (Slow Motion, Car Jump) run on the user's GPU only: fal has no LTX-2.5 LoRA endpoint, so the
- * cloud runs the preset's words. Focus Change is LTX-2.5's own focus_shift move, hosted.
+ * cloud runs the preset's words. Focus Change is LTX-2.5's own focus_shift move, hosted (LTX-2.5 Fast).
* - Effects that are a grade (15) animate without a LoRA, then the grade is applied in the browser; the relight
* effects (6) relight the start frame first (Qwen-Image-Edit 2509 + its Relight LoRA), then animate it.
- * - A LoRA whose licence doesn't allow hosting (civitai "RentCivit") stays on the user's GPU: fitLoras leaves it out
- * of a cloud run and says so.
+ * - A LoRA whose licence doesn't allow hosting (civitai "RentCivit") stays on the user's GPU: the cloud route leaves
+ * it out (and fitLoras would too, saying so).
+ * - A preset with nothing of the Original's own in the cloud (no hostable LoRA, camera LoRA, hosted move, grade or
+ * relight) keeps its partner route there, Kling 2.5 Turbo on the preset's words: Fuobe DoP on the words alone
+ * becomes its cloud default only when the evaluation harness (scripts/eval, O8) promotes it. On the user's GPU it
+ * is Fuobe DoP (Wan 2.2 on the words, as before).
*/
-import { libraryEntry, loraName, loraRef } from "./loras";
+import { libraryEntry, localOnly, loraName, loraRef, triggerOf } from "./loras";
import { DOP_RECIPES, OSS_LORAS, type DopRecipe, type OssLora } from "./oss-loras.generated";
import type { LoraRef, Operation, Preset, PresetRoute } from "./types";
@@ -22,8 +26,8 @@ export const DOP_MODEL = "fuobe-dop";
export const DOP_LTX_MODEL = "fuobe-dop-ltx";
/** LTX-2.5 LoRAs: the open LTX-2.5 graph (fal has no LTX-2.5 LoRA endpoint). */
const LTX25_OPEN = "oss-ltx25";
-/** LTX-2.5's camera_motion on fal (Focus Change's focus_shift): open weights, hosted, no LoRAs. */
-const LTX25_HOSTED = "ltx-2-5";
+/** LTX-2.5's camera_motion on fal's fast endpoint (Focus Change's focus_shift): open weights, hosted, no LoRAs. */
+export const LTX25_HOSTED = "ltx-2-5-fast";
/** The relight step before the clip: Qwen-Image-Edit 2509 + the Relight LoRA (the open graph has it built in). */
export const RELIGHT_OPEN = "oss-qwen-relight";
export const RELIGHT_CLOUD = "qwen-image-edit-2509-cloud";
@@ -116,7 +120,7 @@ export function presetLoras(presetId: string): { ref: LoraRef; base: string; fam
export const dopRecipe = (presetId: string): DopRecipe | undefined => DOP_RECIPES[presetId];
const withTrigger = (template: string, loras: LoraRef[]) => {
- const trigger = loras.find((l) => l.trigger?.trim())?.trigger?.trim();
+ const trigger = triggerOf(loras);
return trigger ? `${trigger}. ${template}` : undefined;
};
@@ -169,26 +173,7 @@ export function dopPreset(p: Preset): Preset {
openSays = "Wan 2.2 on the preset's words";
}
- // In the cloud: LTX-2.5's own move, LTX-2.3's camera LoRA, the Wan or LTX LoRAs, else the words on Wan.
- let cloud: PresetRoute;
- let cloudSays: string;
- if (recipe?.cameraMotion) {
- cloud = { modelId: LTX25_HOSTED, op: "i2v", params: { duration: 6, generateAudio: false, extra: { camera_motion: recipe.cameraMotion } } };
- cloudSays = `LTX-2.5's ${recipe.cameraMotion.replace(/_/g, " ")} camera move`;
- } else if (recipe?.cameraLora) {
- cloud = route(DOP_LTX_MODEL, ltx, { extra: { camera_lora: recipe.cameraLora } });
- cloudSays = `LTX-2.3's ${recipe.cameraLora.replace(/_/g, " ")} camera LoRA${ltx.length ? ` with ${names(ltx)}` : ""}`;
- } else if (wan.length) {
- cloud = route(DOP_MODEL, wan);
- cloudSays = `Wan 2.2 with ${names(wan)}`;
- } else if (ltx.length) {
- cloud = route(DOP_LTX_MODEL, ltx);
- cloudSays = `LTX-2.3 with ${names(ltx)}`;
- } else {
- cloud = route(DOP_MODEL, []);
- cloudSays = ltx25.length ? "Wan 2.2 on the preset's words (fal has no LTX-2.5 LoRA endpoint)" : "Wan 2.2 on the preset's words";
- }
-
+ // What the effect adds around the clip: a grade the browser applies after it, or a relight of the start frame first.
const extras: Pick<Preset, "grade" | "prestep"> = {};
const grade = DOP_GRADES[p.id];
if (grade) extras.grade = grade;
@@ -201,7 +186,35 @@ export function dopPreset(p: Preset): Preset {
};
}
- const local = [...wan, ...ltx].filter((l) => l.licence?.hostedOk === false);
+ // In the cloud: LTX-2.5's own move, LTX-2.3's camera LoRA, the Wan or LTX LoRAs a host may run, a grade or a relight
+ // on Wan. A LoRA whose licence keeps it on the GPU never reaches the cloud route (its trigger stays out too).
+ // Anything else keeps its partner route on the preset's words until the evaluation harness promotes Fuobe DoP's.
+ const wanHosted = wan.filter((l) => !localOnly(l));
+ const ltxHosted = ltx.filter((l) => !localOnly(l));
+ let cloud: PresetRoute;
+ let cloudSays: string;
+ if (recipe?.cameraMotion) {
+ // The fast endpoint at 720p in the start frame's shape, silent like every DoP clip (its defaults say so too).
+ cloud = { modelId: LTX25_HOSTED, op: "i2v", params: { duration: 6, resolution: "720p", aspectRatio: "auto", generateAudio: false, extra: { camera_motion: recipe.cameraMotion } } };
+ cloudSays = `LTX-2.5's ${recipe.cameraMotion.replace(/_/g, " ")} camera move`;
+ } else if (recipe?.cameraLora) {
+ cloud = route(DOP_LTX_MODEL, ltxHosted, { extra: { camera_lora: recipe.cameraLora } });
+ cloudSays = `LTX-2.3's ${recipe.cameraLora.replace(/_/g, " ")} camera LoRA${ltxHosted.length ? ` with ${names(ltxHosted)}` : ""}`;
+ } else if (wanHosted.length) {
+ cloud = route(DOP_MODEL, wanHosted);
+ cloudSays = `Wan 2.2 with ${names(wanHosted)}`;
+ } else if (ltxHosted.length) {
+ cloud = route(DOP_LTX_MODEL, ltxHosted);
+ cloudSays = `LTX-2.3 with ${names(ltxHosted)}`;
+ } else if (extras.grade || extras.prestep || !p.cloud) {
+ cloud = route(DOP_MODEL, []);
+ cloudSays = "Wan 2.2 on the preset's words";
+ } else {
+ cloud = { ...p.cloud, partner: true };
+ cloudSays = `the preset's words on a partner model until the evaluation harness measures Fuobe DoP on them${ltx25.length ? " (fal has no LTX-2.5 LoRA endpoint)" : ""}`;
+ }
+
+ const local = [...wan, ...ltx].filter(localOnly);
let parity: string;
if (grade) parity = "Fuobe DoP animates your still without a LoRA, then your browser grades the clip";
else if (extras.prestep) parity = "Fuobe DoP relights your still first (Qwen-Image-Edit 2509 + its Relight LoRA), then animates it";
diff --git a/src/lib/catalog/engines.ts b/src/lib/catalog/engines.ts
index 852c22d2..c629ecb2 100644
--- a/src/lib/catalog/engines.ts
+++ b/src/lib/catalog/engines.ts
@@ -22,19 +22,21 @@ export const providerEngine = (p: ProviderId): Engine => (p === "comfyui" || p =
const views = new WeakMap<ModelDef, Partial<Record<Engine, ModelDef>>>();
/**
- * The model as it runs on `engine`: an Original keeps that engine's routes only, with its defaults there (the same
- * object every time, so React memos and caches stay put). Any other model comes back as it is.
+ * The model as it runs on `engine`: an Original keeps that engine's routes only, with its defaults and options there
+ * (the same object every time, so React memos and caches stay put). Any other model comes back as it is.
*/
export function onEngine(m: ModelDef, engine: Engine): ModelDef {
if (!dualEngine(m) || !runsOn(m, engine)) return m;
let cached = views.get(m);
if (!cached) views.set(m, (cached = {}));
const own = m.engineDefaults?.[engine];
+ const options = m.engineOptions?.[engine];
return (cached[engine] ??= {
...m,
engine,
routes: m.routes.filter((r: ModelRoute) => providerEngine(r.provider) === engine),
...(own && { defaults: { ...m.defaults, ...own } }),
+ ...(options && { options: { ...m.options, ...options } }),
});
}
diff --git a/src/lib/catalog/loras.ts b/src/lib/catalog/loras.ts
index 6cbacb41..6f603a5b 100644
--- a/src/lib/catalog/loras.ts
+++ b/src/lib/catalog/loras.ts
@@ -113,6 +113,19 @@ export const gated = (l: Pick<LoraRef, "file" | "url">): boolean => libraryEntry
*/
export const localOnly = (l: LoraRef): boolean => l.licence?.hostedOk === false || libraryEntry(l)?.licence.hostedOk === false;
+/**
+ * The first LoRA's trigger word as a prompt can lead with it: without the full stop its author wrote after it (the
+ * prompt adds its own) or the brackets around it, which ComfyUI's text encoder reads as emphasis ("(过顶升摇)." →
+ * "过顶升摇").
+ */
+export function triggerOf(loras: Pick<LoraRef, "trigger">[]): string | undefined {
+ for (const l of loras) {
+ const t = l.trigger?.trim().replace(/[\s.,;:]+$/, "").replace(/^\((.*)\)$/s, "$1").trim();
+ if (t) return t;
+ }
+ return undefined;
+}
+
/** How many LoRAs one call of this API takes (Infinity when the schema states no limit). */
export function loraCapacity(field: LoraField): number {
if (field.shape === "single") return 1;
diff --git a/src/lib/catalog/models.ts b/src/lib/catalog/models.ts
index 5c7e7507..cfdf916b 100644
--- a/src/lib/catalog/models.ts
+++ b/src/lib/catalog/models.ts
@@ -1530,15 +1530,20 @@ const originals: ModelDef[] = [
// 480p on the user's GPU (720p takes about three times as long); 720p in the cloud, where a run with LoRAs costs the same.
engineDefaults: { open: { resolution: "480p" } },
},
- original({
- id: "fuobe-dop-ltx",
- open: [
- comfy("i2v", "ltx23-i2v-lora", "LTX-2.3 22B distilled with the motion's LoRAs"),
- comfy("flf2v", "ltx23-flf2v-lora", "LTX-2.3 22B distilled, start and end frame, with the transition LoRA"),
- ],
- tagline: "FPV, wind and transitions on LTX-2.3 with its camera LoRAs · free on your GPU (24 GB), or hosted on fal",
- options: { ...DOP_OPTIONS, resolutions: ["720p"], audio: true },
- }),
+ {
+ ...original({
+ id: "fuobe-dop-ltx",
+ open: [
+ comfy("i2v", "ltx23-i2v-lora", "LTX-2.3 22B distilled with the motion's LoRAs"),
+ comfy("flf2v", "ltx23-flf2v-lora", "LTX-2.3 22B distilled, start and end frame, with the transition LoRA"),
+ ],
+ // The graphs load the 22B fp8 checkpoint (29.5 GB) and the Gemma text encoder: 32 GB of VRAM (the manifest's vramGb).
+ tagline: "FPV, wind and transitions on LTX-2.3 with its camera LoRAs · free on your GPU (32 GB), or hosted on fal",
+ options: { ...DOP_OPTIONS, resolutions: ["720p"], audio: true },
+ }),
+ // Sound in the cloud only (fal's generate_audio): the open LTX-2.3 graphs decode no audio, so no toggle there.
+ engineOptions: { open: { audio: false } },
+ },
];
/** Tools that run entirely in the browser; recorded in the library like any other result. */
diff --git a/src/lib/catalog/plan.ts b/src/lib/catalog/plan.ts
index 9fd08ad5..53d3f26e 100644
--- a/src/lib/catalog/plan.ts
+++ b/src/lib/catalog/plan.ts
@@ -12,7 +12,7 @@ import type {
Pricing,
} from "./types";
import { chainGapProblem, chainTiming, FIRST_AT_ZERO, frameTimes, keyframeChain, MAX_KEYFRAMES, spread } from "./keyframes";
-import { cloudPath, fitLoras, gated, localOnly, loraCapacity, needsToken, routeLoraField } from "./loras";
+import { cloudPath, fitLoras, gated, localOnly, loraCapacity, needsToken, routeLoraField, triggerOf } from "./loras";
import { CINEMA_CROP, soulKind, soulMegapixels, soulRecipe, soulSize, type SoulOverlay } from "./soul";
/** Infer the operation from what the user attached. */
@@ -117,7 +117,7 @@ export function mixLoras(second: Preset, modelId: string, engine: Engine, streng
return { loras: [], note: `${second.name}'s LoRA runs on ${on}, so it joins this mix as words only` };
}
const k = clamp01(strength);
- return { loras: loras.map((l) => ({ ...l, strength: round2((l.strength ?? 1) * k) })), trigger: loras.find((l) => l.trigger?.trim())?.trigger?.trim() };
+ return { loras: loras.map((l) => ({ ...l, strength: round2((l.strength ?? 1) * k) })), trigger: triggerOf(loras) };
}
export interface Plan {
@@ -137,8 +137,6 @@ export interface Plan {
* generation (the grade, an overlay) that the result's meta carries.
*/
soul?: { look?: string; words: string; triggers: string[]; grade?: string; overlay?: SoulOverlay; crop?: "21:9" };
- /** A Fuobe DoP colour-grade effect: the grade the browser applies to the finished clip (meta.grade). */
- dop?: { grade: string };
}
/** Operations that work from their inputs alone. */
@@ -213,7 +211,6 @@ export function planGeneration(
}
const notes: string[] = [];
- let dopPlan: Plan["dop"];
if (preset && /motion|effect/.test(preset.type)) {
const k = clamp01(req.presetStrength ?? 1);
if (k < 1) loras = loras.map((l) => ({ ...l, strength: round2((l.strength ?? 1) * k) }));
@@ -237,8 +234,6 @@ export function planGeneration(
loras = [...loras, ...mixed.loras.filter((l) => !loras.some((x) => x.file === l.file))];
}
}
- // A colour-grade effect: the clip is graded in the browser when it arrives (meta.grade), on the preset's own model.
- if (preset.grade && presetRoute(preset, model.engine)?.modelId === model.id) dopPlan = { grade: preset.grade };
}
// The user's own LoRAs (an @character's trained identity) go first: on an API that takes so many, the first
@@ -380,7 +375,6 @@ export function planGeneration(
perJobOutputs,
...(notes.length && { notes }),
...(soulPlan && { soul: soulPlan }),
- ...(dopPlan && { dop: dopPlan }),
};
}
diff --git a/src/lib/catalog/types.ts b/src/lib/catalog/types.ts
index 5c763f58..2b212bbf 100644
--- a/src/lib/catalog/types.ts
+++ b/src/lib/catalog/types.ts
@@ -606,6 +606,11 @@ export interface ModelDef {
* times as long; 720p in the cloud, where the LoRA endpoint costs the same at either size).
*/
engineDefaults?: Partial<Record<Engine, ModelDef["defaults"]>>;
+ /**
+ * An Original's options on one engine, over `options` (Fuobe DoP · LTX: no sound toggle on the user's GPU, whose
+ * LTX-2.3 graphs make silent clips).
+ */
+ engineOptions?: Partial<Record<Engine, Partial<ModelOptions>>>;
/** Hidden from pickers (used only internally by presets). */
hidden?: boolean;
/**
@@ -981,6 +986,12 @@ export interface PresetRoute {
loras?: LoraRef[];
/** Overrides the preset prompt template for this engine. */
promptTemplate?: string;
+ /**
+ * A partner model running the preset's words because its Original has nothing of its own here yet (a Fuobe DoP move
+ * with no hostable LoRA, camera LoRA, hosted move or step in the cloud keeps Kling 2.5 Turbo until the evaluation
+ * harness promotes Fuobe DoP's words). Picking the preset doesn't move the composer to it; an engine switch does.
+ */
+ partner?: boolean;
}
export type PresetType = "app" | "motion" | "effect";
diff --git a/src/lib/composer.ts b/src/lib/composer.ts
index 932e269d..ea31fcba 100644
--- a/src/lib/composer.ts
+++ b/src/lib/composer.ts
@@ -672,21 +672,74 @@ export interface DraftShape {
const same = (a: unknown, b: unknown) => a === b || JSON.stringify(a ?? null) === JSON.stringify(b ?? null);
const sameAttachment = (a: Attachment | null | undefined, b: Attachment | null | undefined) => (a ?? null) === (b ?? null) || (!!a && !!b && a.id === b.id && a.ref === b.ref);
-/**
- * The draft a hand-off compares with, after the page's own model swap: the engine is read after hydration (or
- * switched while the page loads), and the composer swaps an untouched draft's studio default for that engine's
- * default. That swap isn't the person's pick, so the base follows it and the hand-off's model (?model=) still
- * applies; without this, a link opened on the open engine kept the open default (Z-Image Turbo).
- */
+type PresetRoutes = Pick<Preset, "type" | "open" | "cloud">;
+
/**
* The model a camera motion or effect runs on by default on an engine (Fuobe DoP, or the route its move names: a
- * camera LoRA in the cloud runs on Fuobe DoP · LTX). Undefined for apps (their model is pinned) and without a preset.
+ * camera LoRA in the cloud runs on Fuobe DoP · LTX; a move with nothing of the Original's own in the cloud keeps its
+ * partner model there). Undefined for apps (their model is pinned) and without a preset.
*/
-export function presetModel(preset: Pick<Preset, "type" | "open" | "cloud"> | undefined, engine: Engine): string | undefined {
+export function presetModel(preset: PresetRoutes | undefined, engine: Engine): string | undefined {
if (!preset || (preset.type !== "motion" && preset.type !== "effect")) return undefined;
return (engine === "open" ? preset.open : preset.cloud)?.modelId;
}
+/**
+ * The Original a camera motion or effect moves the composer to when it is picked or linked (Fuobe DoP on this engine).
+ * Never a partner route (a move Fuobe DoP has nothing of its own for in the cloud): the person's model stays.
+ */
+export function presetOriginal(preset: PresetRoutes | undefined, engine: Engine): string | undefined {
+ const route = preset && presetModel(preset, engine) ? (engine === "open" ? preset.open : preset.cloud) : undefined;
+ return route && !route.partner ? route.modelId : undefined;
+}
+
+/**
+ * The settings a preset's route starts the composer with on its model (Focus Change: 6 s, 720p, silent), over the
+ * model's defaults. Only plain values the composer shows: the route's extra (a camera LoRA, a pose) stays the
+ * preset's, so the next preset picked on the same model doesn't inherit it.
+ */
+export function presetParams(preset: PresetRoutes | undefined, engine: Engine): GenParams {
+ const route = preset && presetModel(preset, engine) ? (engine === "open" ? preset.open : preset.cloud) : undefined;
+ const plain: GenParams = { ...route?.params };
+ delete plain.extra;
+ return plain;
+}
+
+/**
+ * What the engine switch (or a model change) does to the composer's model: the model id to move to, or undefined to
+ * keep it. A model that doesn't run on the engine gives way to the preset's model there (an app's pinned route), else
+ * the studio's default. A camera motion or effect on its model for the other engine follows its move to this one's
+ * (Jib Up: Fuobe DoP on the GPU, Fuobe DoP · LTX in the cloud), but only when the engine has just changed: the sibling
+ * model picked on purpose on the same engine stays.
+ */
+export function engineSwitchModel(o: {
+ model: Pick<ModelDef, "id" | "engine">;
+ preset: PresetRoutes | undefined;
+ engine: Engine;
+ /** The engine the composer was on before (the same one when only the model changed). */
+ from: Engine;
+ defaults: Partial<Record<Engine, string>>;
+}): string | undefined {
+ const { model, preset, engine } = o;
+ const want = presetModel(preset, engine);
+ const other = presetModel(preset, engine === "open" ? "cloud" : "open");
+ const follows = o.from !== engine && !!want && want !== model.id && model.id === other;
+ if (model.engine === engine && !follows) return undefined;
+ if (preset?.type === "app") return engine === "open" ? preset.open?.modelId : preset.cloud?.modelId;
+ return want ?? o.defaults[engine];
+}
+
+/**
+ * The settings an Original takes on another engine (Fuobe DoP: 480p on the GPU, 720p in the cloud): each one whose
+ * default differs there moves to the new default when the person left it at the old one. Undefined when nothing moves.
+ */
+export function followEngineParams(params: GenParams, from: GenParams, to: GenParams): GenParams | undefined {
+ const keys = (Object.keys({ ...from, ...to }) as (keyof GenParams)[]).filter((k) => k !== "extra" && !same(from[k], to[k]));
+ const moved = keys.filter((k) => params[k] === undefined || same(params[k], from[k]));
+ if (!moved.length) return undefined;
+ return { ...params, ...Object.fromEntries(moved.map((k) => [k, to[k]])) };
+}
+
/**
* What a step before the clip adds to its price (Fuobe DoP relights a start frame first), when the run is on the
* preset's own model: a partner model runs the effect's words alone.
@@ -696,6 +749,12 @@ export function prestepCost(preset: Pick<Preset, "type" | "open" | "cloud" | "pr
return preset.prestep[engine].usd ?? 0;
}
+/**
+ * The draft a hand-off compares with, after the page's own model swap: the engine is read after hydration (or
+ * switched while the page loads), and the composer swaps an untouched draft's studio default for that engine's
+ * default. That swap isn't the person's pick, so the base follows it and the hand-off's model (?model=) still
+ * applies; without this, a link opened on the open engine kept the open default (Z-Image Turbo).
+ */
export function followEngineDefault<D extends DraftShape>(base: D, current: D, defaults: Partial<Record<Engine, string>>, engine: Engine): D {
const own = Object.values(defaults).filter(Boolean);
if (current.modelId === base.modelId || !own.includes(base.modelId) || current.modelId !== defaults[engine]) return base;
diff --git a/src/lib/model-list.ts b/src/lib/model-list.ts
index 3737b170..d91d06ab 100644
--- a/src/lib/model-list.ts
+++ b/src/lib/model-list.ts
@@ -4,7 +4,7 @@
* CLI asks (kind, engine, operation, search words).
*/
import { modelSearchText, toModelRow, type ModelRow } from "./model-rows";
-import { runsOn } from "./catalog/engines";
+import { onEngine, runsOn } from "./catalog/engines";
import type { Engine, MediaKind, ModelDef, Operation } from "./catalog/types";
export const MODEL_KINDS: MediaKind[] = ["image", "video", "audio", "text", "model3d"];
@@ -64,7 +64,8 @@ export function findModels(models: ModelDef[], query: ModelQuery): ModelDef[] {
return models.filter((m) => {
// A Fuobe Original runs on both engines, so either engine's list has it.
if ((m.hidden && !query.hidden) || (query.kind && m.kind !== query.kind) || (query.engine && !runsOn(m, query.engine))) return false;
- if (query.op && !m.routes.some((r) => r.op === query.op)) return false;
+ // An Original does on an engine what that engine's routes do (Fuobe DoP films keyframes on the GPU only).
+ if (query.op && !(query.engine ? onEngine(m, query.engine) : m).routes.some((r) => r.op === query.op)) return false;
if (!words.length) return true;
const text = `${modelSearchText(toModelRow(m))} ${m.family} ${m.routes.map((r) => r.op).join(" ")}`.toLowerCase();
return words.every((w) => text.includes(w));
diff --git a/src/lib/preset-cards.ts b/src/lib/preset-cards.ts
index 3f4d7e52..6aa9459d 100644
--- a/src/lib/preset-cards.ts
+++ b/src/lib/preset-cards.ts
@@ -479,8 +479,8 @@ export function presetRouteLines(
return (["cloud", "open"] as const).map((engine) => {
const route = p[engine];
const name = route ? (nameOf(route.modelId) ?? route.modelId) : null;
- // A LoRA whose licence keeps it on the user's GPU (civitai "RentCivit"): the cloud runs the preset's words.
- const gpuOnly = engine === "cloud" && !!route?.loras?.length && route.loras.every((l) => l.licence?.hostedOk === false);
+ // A LoRA whose licence keeps it on the user's GPU (civitai "RentCivit"): the cloud route runs the preset's words.
+ const gpuOnly = engine === "cloud" && !route?.loras?.length && !!p.open?.loras?.length && p.open.loras.every((l) => l.licence?.hostedOk === false);
return { engine, label: engine === "cloud" ? "Cloud" : "Open source", model: name && gpuOnly ? `${name} · words only, its LoRA is open engine only` : name };
});
}
diff --git a/src/server/generations.ts b/src/server/generations.ts
index a96389a1..05d37512 100644
--- a/src/server/generations.ts
+++ b/src/server/generations.ts
@@ -503,7 +503,9 @@ function prepare(original: GenerationRequest) {
const free = demo || (route.provider === "llm" && !llmUsesClaude(route));
const withLoras = fitted.loras.length > 0 && !!route.loraEndpoint;
const unreachable = asked.filter((l) => !reachable.loras.includes(l));
- return { req, plan, route, demo, providerId, notes, asked, unreachable, cost: free ? 0 : estimateCost(plan.model, plan.params, 1, plan.op, withLoras) };
+ // Priced for the clip the route makes: Replicate's Wan 2.2 fast makes 5 s when 3 s was asked.
+ const priced = made !== undefined && plan.params.duration !== undefined ? { ...plan.params, duration: Math.round(made * 2) / 2 } : plan.params;
+ return { req, plan, route, demo, providerId, notes, asked, unreachable, cost: free ? 0 : estimateCost(plan.model, priced, 1, plan.op, withLoras) };
}
/** Operations whose clip length is the duration picked (made, or added by extend), not an input video's. */
diff --git a/tests/cli-api.test.ts b/tests/cli-api.test.ts
index 59d781c8..f7003ded 100644
--- a/tests/cli-api.test.ts
+++ b/tests/cli-api.test.ts
@@ -121,7 +121,16 @@ describe("GET /api/models", () => {
expect(findModels(MODELS, { q: "wan zzqx" })).toEqual([]);
const open = findModels(MODELS, { q: "wan 2.2", engine: "open", kind: "video" });
expect(open.length).toBeGreaterThan(0);
- expect(open.every((m) => m.engine === "open" && /wan/i.test(`${m.name} ${m.id}`))).toBe(true);
+ // The words match the name, id or description: Fuobe DoP is an Original on Wan 2.2 and says so.
+ expect(open.every((m) => m.engine === "open" && /wan/i.test(`${m.name} ${m.id} ${m.tagline}`))).toBe(true);
+ expect(open.map((m) => m.id)).toContain("fuobe-dop");
+ });
+
+ it("lists an Original for an operation only on the engines whose routes run it", async () => {
+ // Fuobe DoP films keyframes on the GPU only: the cloud list for keyframes leaves it out.
+ expect(findModels(MODELS, { engine: "cloud", op: "keyframes" }).map((m) => m.id)).not.toContain("fuobe-dop");
+ expect(findModels(MODELS, { engine: "open", op: "keyframes" }).map((m) => m.id)).toContain("fuobe-dop");
+ expect((await models("?engine=cloud&op=keyframes")).body.items.map((m) => m.id)).not.toContain("fuobe-dop");
});
});
diff --git a/tests/dop-originals.test.ts b/tests/dop-originals.test.ts
index f26a8045..1a3b0726 100644
--- a/tests/dop-originals.test.ts
+++ b/tests/dop-originals.test.ts
@@ -16,10 +16,10 @@ const { setSetting } = await import("@/server/settings");
const { createGenerations, previewGeneration } = await import("@/server/generations");
const { prepareWorkflow } = await import("@/server/providers/comfyui");
const { falProvider } = await import("@/server/providers/fal");
-const { getModel, getPreset, modelsFor } = await import("@/lib/catalog");
+const { EFFECTS, getModel, getPreset, modelsFor, MOTIONS } = await import("@/lib/catalog");
const { onEngine } = await import("@/lib/catalog/engines");
const { estimateCost, planGeneration, routesFor } = await import("@/lib/catalog/plan");
-const { presetModel, prestepCost } = await import("@/lib/composer");
+const { engineSwitchModel, followEngineParams, presetModel, presetOriginal, presetParams, prestepCost } = await import("@/lib/composer");
const { gradeOf, nextSteps } = await import("@/lib/output-actions");
const { lorasFit } = await import("@/lib/catalog/loras");
@@ -49,9 +49,9 @@ async function submit(model: ModelDef, route: ModelRoute, input: GenInput): Prom
return seen!;
}
-const ctx = (media: (n: unknown) => unknown = () => undefined) => ({
+const ctx = (media: (n: unknown) => unknown = () => undefined, op: "i2v" | "flf2v" = "i2v") => ({
generationId: "g",
- op: "i2v" as const,
+ op,
upload: async (_d: Buffer, _t: string, name: string) => `up_${name}`,
media: media as never,
serverRam: async () => undefined,
@@ -84,8 +84,8 @@ describe("Fuobe DoP on both engines", () => {
expect(body).toMatchObject({ num_frames: frames, frames_per_second: 16, interpolator_model: "none", num_inference_steps: 20, resolution: "720p" });
expect((body.loras as { transformer: string }[]).map((l) => l.transformer)).toEqual(["high", "low"]);
}
- // Without a LoRA (a move on its words) the plain endpoint, at the same frame rate.
- const words = plan("cloud", { presetId: "motion-whip-pan" });
+ // Without a LoRA (a move on its words, Fuobe DoP picked) the plain endpoint, at the same frame rate.
+ const words = plan("cloud", { presetId: "motion-whip-pan" }, "fuobe-dop");
const plain = await submit(m, falRoute(m), { ...words.params, prompt: words.prompt, images: ["https://fal.media/a.png"] });
expect(plain.url).toMatch(/fal-ai\/wan\/v2\.2-a14b\/image-to-video$/);
expect(plain.body).toMatchObject({ num_frames: 81, frames_per_second: 16, interpolator_model: "none" });
@@ -193,19 +193,22 @@ describe("Fuobe DoP on the GPU", () => {
it("runs an LTX-2.5 LoRA on the open LTX-2.5 graph, and its words in the cloud", () => {
expect(plan("open", { presetId: "motion-slow-motion" }).model.id).toBe("oss-ltx25");
+ // fal has no LTX-2.5 LoRA endpoint: the words, on the partner model until the harness measures Fuobe DoP on them.
const cloud = plan("cloud", { presetId: "motion-slow-motion" });
- expect(cloud.model.id).toBe("fuobe-dop");
+ expect(cloud.model.id).toBe("kling-2-5-turbo");
expect(cloud.loras).toEqual([]);
+ const dop = plan("cloud", { presetId: "motion-slow-motion" }, "fuobe-dop");
+ expect(dop.loras).toEqual([]);
});
});
describe("effects as steps", () => {
it("grades a colour-grade effect in the browser: the clip carries the grade, its next step applies it", () => {
- const p = plan("cloud", { presetId: "effect-candy-pink" });
- expect(p.dop).toEqual({ grade: "candy-pink" });
- expect(p.loras).toEqual([]);
- // A partner model runs the words, nothing to grade.
- expect(planGeneration({ feature: "motion", modelId: "kling-2-5-turbo", presetId: "effect-candy-pink", prompt: "x", inputs: { images: ["/a.png"] } }, getModel, getPreset).dop).toBeUndefined();
+ const pink = getPreset("effect-candy-pink")!;
+ expect(pink.grade).toBe("candy-pink");
+ // The grade is Fuobe DoP's step: the effect runs on it on both engines, without a LoRA.
+ for (const engine of ["open", "cloud"] as const) expect(presetModel(pink, engine)).toBe("fuobe-dop");
+ expect(plan("cloud", { presetId: "effect-candy-pink" }).loras).toEqual([]);
const g = {
id: "gen123",
status: "succeeded",
@@ -246,3 +249,156 @@ describe("effects as steps", () => {
expect(open.loras.applied.map((l) => l.file)).toHaveLength(2);
});
});
+
+describe("review fixes", () => {
+ it("keeps the start frame's shape on Fuobe DoP · LTX: \"auto\" on both engines, never a square by default", async () => {
+ for (const engine of ["open", "cloud"] as const) expect(view("fuobe-dop-ltx", engine).defaults?.aspectRatio).toBe("auto");
+ // Jib Up from the gallery: the composer sends the model's defaults, and fal gets video_size "auto".
+ const m = view("fuobe-dop-ltx", "cloud");
+ const p = plan("cloud", { presetId: "motion-jib-up", params: { ...m.defaults } });
+ const { body } = await submit(m, falRoute(m), { ...p.params, prompt: p.prompt, images: ["https://fal.media/a.png"] });
+ expect(body.video_size).toBe("auto");
+ expect(body.camera_lora).toBe("jib_up");
+ // A shape picked on purpose still maps to fal's size names.
+ const wide = await submit(m, falRoute(m), { ...p.params, aspectRatio: "16:9", prompt: p.prompt, images: ["https://fal.media/a.png"] });
+ expect(wide.body.video_size).toBe("landscape_16_9");
+ // On the GPU, FPV Drone from a 1920x1080 still with the model's defaults is a landscape clip, not a 960x960 crop.
+ const open = view("fuobe-dop-ltx", "open");
+ const fpv = plan("open", { presetId: "motion-fpv-drone", params: { ...open.defaults } });
+ const { workflow } = await prepareWorkflow(
+ "ltx23-i2v-lora",
+ { ...fpv.params, prompt: fpv.prompt, images: ["up_wide.png"], loras: fpv.loras, seed: 1 },
+ ctx((n) => (n === "up_wide.png" ? { container: "image", width: 1920, height: 1080, hasVideo: false, hasAudio: false } : undefined)),
+ );
+ const wf = workflow as ComfyWorkflow;
+ const [w, h] = [wf["113"].inputs.value as number, wf["98"].inputs.value as number];
+ expect(w).toBeGreaterThan(h);
+ expect(w / h).toBeCloseTo(16 / 9, 1);
+ });
+
+ it("binds both frames of an LTX-2.3 transition on the GPU", async () => {
+ const p = plan("open", { presetId: "effect-melt-transition", inputs: { images: ["/a.png"], endImage: "/b.png" } });
+ expect(routesFor(p.model, "flf2v")[0].endpoint).toBe("ltx23-flf2v-lora");
+ const { manifest, workflow } = await prepareWorkflow(
+ "ltx23-flf2v-lora",
+ { ...p.params, prompt: p.prompt, images: ["up_a.png"], endImage: "up_b.png", loras: p.loras, seed: 2 },
+ ctx(() => undefined, "flf2v"),
+ );
+ expect(manifest.id).toBe("ltx23-flf2v-lora");
+ const wf = workflow as ComfyWorkflow;
+ expect(wf["31"].inputs.image).toBe("up_a.png");
+ expect(wf["39"].inputs.image).toBe("up_b.png");
+ const lora = Object.values(wf).find((n) => n.class_type === "LoraLoaderModelOnly")!;
+ expect(lora.inputs.lora_name).toBe(p.loras[0].file);
+ });
+
+ it("offers sound on Fuobe DoP · LTX in the cloud only, and says it needs 32 GB on the GPU", () => {
+ expect(view("fuobe-dop-ltx", "cloud").options.audio).toBe(true);
+ expect(view("fuobe-dop-ltx", "open").options.audio).toBe(false);
+ expect(getModel("fuobe-dop-ltx")!.tagline).toMatch(/32 GB/);
+ // The open engine's other options stay the Original's.
+ expect(view("fuobe-dop-ltx", "open").options.aspectRatios).toEqual(view("fuobe-dop-ltx", "cloud").options.aspectRatios);
+ });
+
+ it("runs Focus Change on LTX-2.5's fast endpoint: 720p, the start frame's shape, silent, about $0.54", async () => {
+ const focus = getPreset("motion-focus-change")!;
+ expect(presetModel(focus, "cloud")).toBe("ltx-2-5-fast");
+ const m = getModel("ltx-2-5-fast")!;
+ expect(m.hidden).toBe(true);
+ // As the composer sends it: the model's defaults, then the move's own settings over them.
+ const p = plan("cloud", { presetId: "motion-focus-change", params: { ...m.defaults, ...presetParams(focus, "cloud") } });
+ expect(p.params).toMatchObject({ duration: 6, resolution: "720p", aspectRatio: "auto", generateAudio: false, extra: { camera_motion: "focus_shift" } });
+ expect(estimateCost(m, p.params, 1, "i2v")).toBeCloseTo(0.54);
+ const { url, body } = await submit(m, m.routes[0], { ...p.params, prompt: p.prompt, images: ["https://fal.media/a.png"] });
+ expect(url).toContain("lightricks/ltx-2.5/image-to-video/fast");
+ expect(body).toMatchObject({ camera_motion: "focus_shift", generate_audio: false, aspect_ratio: "auto", resolution: "720p", duration: "6" });
+ });
+
+ it("keeps a move's partner model in the cloud when Fuobe DoP has nothing of its own there yet", () => {
+ const whip = getPreset("motion-whip-pan")!;
+ expect(whip.open).toMatchObject({ modelId: "fuobe-dop" });
+ expect(whip.cloud).toMatchObject({ modelId: "kling-2-5-turbo", partner: true });
+ expect(whip.parity).toMatch(/partner model until the evaluation harness measures Fuobe DoP/);
+ // Every cloud route on Fuobe DoP brings something of its own: a LoRA, a camera LoRA or move, a grade or a relight.
+ for (const p of [...MOTIONS, ...EFFECTS]) {
+ if (!p.cloud || p.cloud.partner) continue;
+ expect(!!(p.cloud.loras?.length || p.cloud.params?.extra || p.grade || p.prestep), p.id).toBe(true);
+ }
+ // Fuobe DoP on the words is still a pick away.
+ expect(plan("cloud", { presetId: "motion-whip-pan" }, "fuobe-dop").model.id).toBe("fuobe-dop");
+ });
+
+ it("never puts a local-only LoRA (or its trigger) on a cloud route, and prices Wiggle as what runs", () => {
+ for (const p of [...MOTIONS, ...EFFECTS]) for (const l of p.cloud?.loras ?? []) expect(l.licence?.hostedOk, `${p.id} ${l.file}`).not.toBe(false);
+ const wiggle = getPreset("motion-wiggle")!;
+ expect(wiggle.open!.loras!.every((l) => l.licence?.hostedOk === false)).toBe(true);
+ expect(wiggle.cloud).toMatchObject({ modelId: "kling-2-5-turbo", partner: true });
+ // Picked on Fuobe DoP in the cloud: the words without the trigger, at the plain endpoint's price.
+ const p = plan("cloud", { presetId: "motion-wiggle" }, "fuobe-dop");
+ expect(p.loras).toEqual([]);
+ expect(p.prompt.startsWith("Wiggle. ")).toBe(false);
+ expect(estimateCost(view("fuobe-dop", "cloud"), p.params, 1, "i2v", false)).toBeCloseTo(0.4);
+ });
+
+ it("leads with a LoRA's trigger once, without its full stop or brackets", () => {
+ expect(getPreset("motion-overhead")!.open!.promptTemplate).toMatch(/^过顶升摇\. \{prompt\}/);
+ expect(getPreset("motion-incline")!.open!.promptTemplate).toMatch(/^弧降仰底\. \{prompt\}/);
+ expect(getPreset("effect-outfit-switch")!.open!.promptTemplate).toMatch(/^8r1d3 bride effect\. \{prompt\}/);
+ for (const p of [...MOTIONS, ...EFFECTS]) for (const r of [p.open, p.cloud]) expect(r?.promptTemplate ?? "", p.id).not.toMatch(/\.\.|^\(/);
+ // In a Mix too.
+ const mix = plan("open", { presetId: "effect-building-explosion", mix: { presetId: "motion-overhead", strength: 0.8 } });
+ expect(mix.prompt).toMatch(/At the same time: 过顶升摇, /);
+ });
+
+ it("prices a clip at the length the route makes (Replicate's Wan 2.2 fast makes 5 s when 3 s is asked)", () => {
+ setSetting("replicateToken", "r8_test");
+ try {
+ const req = { feature: "motion", modelId: "fuobe-dop", presetId: "motion-whip-pan", prompt: "x", inputs: { images: ["/a.png"] }, params: { duration: 3, resolution: "720p" }, engine: "cloud" as const };
+ const p = previewGeneration(req);
+ expect(p.route).toMatchObject({ provider: "replicate" });
+ expect(p.notes?.join(" ")).toMatch(/about 5 s, not 3 s/);
+ expect(p.costUsd).toBeCloseTo(0.4);
+ } finally {
+ setSetting("replicateToken", "");
+ }
+ });
+});
+
+describe("the composer follows the engine, not a person's pick", () => {
+ const jib = getPreset("motion-jib-up")!;
+ const defaults = { open: "oss-wan22-14b", cloud: "kling-2-5-turbo" };
+ it("moves a move to its model on the new engine when the engine changes", () => {
+ expect(presetModel(jib, "open")).toBe("fuobe-dop");
+ expect(presetModel(jib, "cloud")).toBe("fuobe-dop-ltx");
+ // GPU → cloud on Fuobe DoP: Jib Up follows to Fuobe DoP · LTX.
+ expect(engineSwitchModel({ model: view("fuobe-dop", "cloud"), preset: jib, engine: "cloud", from: "open", defaults })).toBe("fuobe-dop-ltx");
+ // A partner model left behind on the other engine gives way to the move's model here.
+ expect(engineSwitchModel({ model: getModel("kling-2-5-turbo")!, preset: jib, engine: "open", from: "cloud", defaults })).toBe("fuobe-dop");
+ });
+
+ it("keeps the sibling Original picked on purpose on the same engine", () => {
+ // In the cloud, Fuobe DoP (Wan) picked for Jib Up stays: the engine didn't change.
+ expect(engineSwitchModel({ model: view("fuobe-dop", "cloud"), preset: jib, engine: "cloud", from: "cloud", defaults })).toBeUndefined();
+ // On the GPU, Fuobe DoP · LTX picked for Jib Up stays too.
+ expect(engineSwitchModel({ model: view("fuobe-dop-ltx", "open"), preset: jib, engine: "open", from: "open", defaults })).toBeUndefined();
+ // Focus Change: Fuobe DoP picked in the cloud doesn't snap back to LTX 2.5 Fast.
+ expect(engineSwitchModel({ model: view("fuobe-dop", "cloud"), preset: getPreset("motion-focus-change")!, engine: "cloud", from: "cloud", defaults })).toBeUndefined();
+ });
+
+ it("moves to a picked or linked move's Original, never to a partner route", () => {
+ expect(presetOriginal(jib, "cloud")).toBe("fuobe-dop-ltx");
+ expect(presetOriginal(getPreset("motion-whip-pan")!, "cloud")).toBeUndefined();
+ expect(presetOriginal(getPreset("motion-whip-pan")!, "open")).toBe("fuobe-dop");
+ expect(presetOriginal(getPreset("app-face-swap") ?? undefined, "cloud")).toBeUndefined();
+ // The move's own settings start the composer, its extra (a camera LoRA) stays the preset's.
+ expect(presetParams(jib, "cloud")).toEqual({ duration: 5 });
+ });
+
+ it("takes the other engine's defaults for the settings left alone when the same Original changes engine", () => {
+ const [open, cloud] = [view("fuobe-dop", "open").defaults!, view("fuobe-dop", "cloud").defaults!];
+ expect(followEngineParams({ ...open, numOutputs: 1 }, open, cloud)).toEqual({ ...open, numOutputs: 1, resolution: "720p" });
+ expect(followEngineParams({ ...cloud }, cloud, open)).toMatchObject({ resolution: "480p" });
+ // 720p picked on the GPU on purpose: it stays in the cloud (nothing moves).
+ expect(followEngineParams({ ...open, resolution: "720p" }, open, cloud)).toBeUndefined();
+ });
+});
diff --git a/tests/e2e/dop-flows.mjs b/tests/e2e/dop-flows.mjs
index 1923491e..6a7cd774 100644
--- a/tests/e2e/dop-flows.mjs
+++ b/tests/e2e/dop-flows.mjs
@@ -2,13 +2,18 @@
// the price says Free on the open engine and the hosted price in the cloud, a move whose cloud route is LTX-2.3's
// camera LoRA follows the engine switch, a colour-grade effect's clip offers its grade, and Color grading opens with
// it picked. Then the pages it changes fit a 390 px phone in light and dark mode.
-// Usage: node tests/e2e/dop-flows.mjs [appUrl] (the app runs in demo mode, no GPU; a fal key, any string, adds the
-// cloud price checks, and nothing is sent to fal)
+// Usage: node tests/e2e/dop-flows.mjs [appUrl] [--shots=dir] (the app runs in demo mode, no GPU; a fal key, any
+// string, adds the cloud price checks, and nothing is sent to fal; --shots saves screenshots there)
import fs from "node:fs";
import path from "node:path";
import { DESKTOP, launch, openRoute, PHONE, root } from "./_browser.mjs";
-const app = (process.argv[2] ?? "http://localhost:3000").replace(/\/$/, "");
+const args = process.argv.slice(2);
+const app = (args.find((a) => !a.startsWith("--")) ?? "http://localhost:3000").replace(/\/$/, "");
+const shots = args.find((a) => a.startsWith("--shots="))?.slice(8);
+if (shots) fs.mkdirSync(shots, { recursive: true });
+/** Save a screenshot when --shots names a folder. */
+const shoot = (page, name) => (shots ? page.screenshot({ path: path.join(shots, name) }) : undefined);
const results = [];
const check = (name, ok, detail = "") => {
results.push({ name, ok });
@@ -51,7 +56,7 @@ const composerText = (page) => page.locator("[data-composer]").innerText();
const text = await composerText(page);
check("a motion opens on Fuobe DoP (open engine)", /Fuobe DoP/.test(text), text.replace(/\s+/g, " ").slice(0, 160));
check("its price on the open engine is free", /free/i.test(text), (text.match(/(Demo · )?[Ff]ree/) ?? ["no price"])[0]);
- await page.screenshot({ path: "/tmp/claude-0/o-dop-shots/motion-open-1440.png" });
+ await shoot(page, "motion-open-1440.png");
await ctx.close();
}
{
@@ -60,7 +65,7 @@ const composerText = (page) => page.locator("[data-composer]").innerText();
const text = await composerText(page);
check("in the cloud it runs on Fuobe DoP", /Fuobe DoP/.test(text), text.replace(/\s+/g, " ").slice(0, 160));
if (fal) check("in the cloud it shows the hosted price before the run ($0.10/s with LoRAs)", /\$0\.50/.test(text), (text.match(/\$\d+\.\d+/) ?? ["no price"])[0]);
- await page.screenshot({ path: "/tmp/claude-0/o-dop-shots/motion-cloud-1440.png" });
+ await shoot(page, "motion-cloud-1440.png");
await ctx.close();
}
@@ -69,6 +74,39 @@ const composerText = (page) => page.locator("[data-composer]").innerText();
const { page, ctx } = await studio("cloud", `preset=motion-jib-up&image=${encodeURIComponent(start)}`);
await page.waitForFunction(() => /Fuobe DoP · LTX/.test(document.querySelector("[data-composer]")?.textContent ?? ""), null, { timeout: 20_000 }).catch(() => {});
check("a camera-LoRA move runs on Fuobe DoP · LTX in the cloud", /Fuobe DoP · LTX/.test(await composerText(page)));
+ // Fuobe DoP (Wan) picked on purpose for the move stays picked: the engine didn't change.
+ await page.getByRole("button", { name: /^Model: .*Change model$/ }).first().click();
+ await page.getByPlaceholder(/Search (all )?models/).fill("Fuobe DoP");
+ await page.locator('[cmdk-item][data-value$=":fuobe-dop"]').first().click();
+ await page.waitForTimeout(2000);
+ const chip = await page.getByRole("button", { name: /^Model: .*Change model$/ }).first().getAttribute("aria-label");
+ check("the sibling Original picked for the move stays picked", chip === "Model: Fuobe DoP. Change model", chip ?? "no model chip");
+ await ctx.close();
+}
+
+// 2b. A move Fuobe DoP has nothing of its own for in the cloud (Whip Pan: no LoRA, no camera LoRA) leaves the studio's
+// model as it is there; on the GPU it lands on Fuobe DoP.
+{
+ const { page, ctx } = await studio("cloud", `preset=motion-whip-pan&image=${encodeURIComponent(start)}`);
+ await page.waitForTimeout(2500);
+ const chip = await page.getByRole("button", { name: /^Model: .*Change model$/ }).first().getAttribute("aria-label");
+ check("a words-only move keeps the studio's model in the cloud", !!chip && !/Fuobe DoP/.test(chip), chip ?? "no model chip");
+ await ctx.close();
+}
+
+// 2c. The same Original across the engine switch takes the new engine's default size (480p on the GPU, 720p in the cloud).
+{
+ const { page, ctx } = await studio("open", `preset=motion-overhead&image=${encodeURIComponent(start)}`);
+ await page.waitForFunction(() => /Fuobe DoP/.test(document.querySelector("[data-composer]")?.textContent ?? ""), null, { timeout: 20_000 }).catch(() => {});
+ const before = await composerText(page);
+ await page.getByRole("button", { name: /^Model: .*Change model$/ }).first().click();
+ await page.getByRole("radio", { name: "Cloud" }).first().click();
+ await page.keyboard.press("Escape");
+ await page.waitForTimeout(2000);
+ const after = await composerText(page);
+ const chip = await page.getByRole("button", { name: /^Model: .*Change model$/ }).first().getAttribute("aria-label");
+ check("switching engines keeps Fuobe DoP", chip === "Model: Fuobe DoP. Change model", chip ?? "no model chip");
+ check("480p on the GPU becomes 720p in the cloud", /480p/.test(before) && /720p/.test(after) && !/480p/.test(after), `${(before.match(/\d{3}p/) ?? ["?"])[0]} → ${(after.match(/\d{3}p/) ?? ["?"])[0]}`);
await ctx.close();
}
@@ -110,7 +148,7 @@ if (fal) {
await page.waitForTimeout(1500);
const pressed = await page.locator('[aria-pressed="true"]').allInnerTexts();
check("Color grading opens with the grade picked", pressed.some((t) => /Candy Pink/.test(t)), pressed.join(" | ").slice(0, 120));
- await page.screenshot({ path: "/tmp/claude-0/o-dop-shots/grade-1440.png" });
+ await shoot(page, "grade-1440.png");
}
await ctx.close();
}
@@ -137,7 +175,7 @@ for (const scheme of ["light", "dark"]) {
});
check(`${route.split("&")[0]} fits 390 px (${scheme})`, w.scroll <= w.client, `page ${w.scroll} px, window ${w.client} px`);
const name = `${route.replace(/[^a-z0-9]+/gi, "-").slice(1, 40)}-${scheme}-390.png`;
- await page.screenshot({ path: `/tmp/claude-0/o-dop-shots/${name}` });
+ await shoot(page, name);
await ctx.close();
}
}
diff --git a/tests/oss-loras.test.ts b/tests/oss-loras.test.ts
index 59e614a0..cc73a803 100644
--- a/tests/oss-loras.test.ts
+++ b/tests/oss-loras.test.ts
@@ -92,12 +92,13 @@ describe("aliases, Fun Camera poses and camera LoRAs (§7.3)", () => {
const roll = getPreset("motion-roll-transition")!;
expect(roll.open).toMatchObject({ modelId: DOP_MODEL, op: "flf2v" });
expect(roll.open!.params?.extra).toBeUndefined();
- // Pan has no LTX camera LoRA: the cloud runs its words on Wan.
- expect(getPreset("motion-pan")!.cloud).toMatchObject({ modelId: DOP_MODEL });
+ // Pan has no LTX camera LoRA: in the cloud its words keep their partner model until the harness measures Fuobe DoP's.
+ expect(getPreset("motion-pan")!.cloud).toMatchObject({ modelId: "kling-2-5-turbo", partner: true });
});
- it("runs Focus Change as LTX-2.5's own focus shift in the cloud", () => {
- expect(getPreset("motion-focus-change")!.cloud).toMatchObject({ modelId: "ltx-2-5", op: "i2v", params: { extra: { camera_motion: "focus_shift" } } });
+ it("runs Focus Change as LTX-2.5's own focus shift in the cloud, on the fast endpoint", () => {
+ expect(getPreset("motion-focus-change")!.cloud).toMatchObject({ modelId: "ltx-2-5-fast", op: "i2v", params: { generateAudio: false, extra: { camera_motion: "focus_shift" } } });
+ expect(getModel("ltx-2-5-fast")!.routes[0].endpoint).toBe("lightricks/ltx-2.5/image-to-video/fast");
});
});
@@ -140,9 +141,13 @@ describe("every motion and effect on Fuobe DoP", () => {
it("keeps a local-only LoRA on the user's GPU: a cloud run leaves it out and says so", () => {
const wiggle = getPreset("motion-wiggle")!;
expect(wiggle.open!.loras).toHaveLength(2);
- expect(wiggle.cloud!.modelId).toBe(DOP_MODEL);
+ // The cloud route carries neither the LoRA nor its trigger: the words, on the partner model.
+ expect(wiggle.cloud).toMatchObject({ modelId: "kling-2-5-turbo", partner: true });
+ expect(wiggle.cloud!.loras).toBeUndefined();
+ expect(wiggle.cloud!.promptTemplate).toBeUndefined();
+ // Sent to fal anyway (a Mix, a hand-made request), fitLoras still leaves it out and says so.
const fal = getModel(DOP_MODEL)!.routes.find((r) => r.provider === "fal" && r.op === "i2v")!;
- const fitted = fitLoras(wiggle.cloud!.loras ?? [], fal);
+ const fitted = fitLoras(wiggle.open!.loras ?? [], fal);
expect(fitted.loras).toEqual([]);
expect(fitted.notes.join(" ")).toMatch(/only on your GPU/);
expect(wiggle.parity).toMatch(/your GPU only/);
diff --git a/tests/preset-cards.test.ts b/tests/preset-cards.test.ts
index 8be27e7d..d067622b 100644
--- a/tests/preset-cards.test.ts
+++ b/tests/preset-cards.test.ts
@@ -266,8 +266,9 @@ describe("preset route lines (details popover)", () => {
it("says when a motion's LoRA is open engine only (its licence doesn't allow hosting)", () => {
const wiggle = getPreset("motion-wiggle")!;
- const [cloud, open] = presetRouteLines(wiggle, (id) => (id === "fuobe-dop" ? "Fuobe DoP" : undefined));
- expect(cloud.model).toBe("Fuobe DoP · words only, its LoRA is open engine only");
+ const [cloud, open] = presetRouteLines(wiggle, (id) => ({ "fuobe-dop": "Fuobe DoP", "kling-2-5-turbo": "Kling 2.5 Turbo" })[id]);
+ // The cloud route carries no LoRA it can't host: the move's words, on its partner model until Fuobe DoP's are measured.
+ expect(cloud.model).toBe("Kling 2.5 Turbo · words only, its LoRA is open engine only");
expect(open.model).toBe("Fuobe DoP");
expect(presetRouteLines(getPreset("motion-overhead")!, () => "Fuobe DoP")[0].model).toBe("Fuobe DoP");
});