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.

Evolution: the cloud runs the GPU's own model, Wan 2.2 Fun VACE hosted on fal, with a direction frame per piece

Claudec4b013ed6c31
diff --git a/docs/research/fuobe-originals-recipes-5.json b/docs/research/fuobe-originals-recipes-5.json
index 9d238da1..a487e560 100644
--- a/docs/research/fuobe-originals-recipes-5.json
+++ b/docs/research/fuobe-originals-recipes-5.json
@@ -18213,7 +18213,7 @@
"original": {
"model": "fuobe-evolution",
"added": "2026-10-29 (build plan O13)",
- "source": "Fuobe's own recipe for Higgsfield Evolution's Original, from build plan O13 (denoise by intensity, an LLM-written direction) and the LTX-2.3 22B video-to-video schema read on 2026-10-24 (§3.1). Unmeasured until the evaluation harness (O8) runs the evolution suite on a GPU and on fal.",
+ "source": "Fuobe's own recipe for Higgsfield Evolution's Original, from build plan O13 (denoise by intensity, an LLM-written direction). The cloud half moved on 2026-11-01 (package owner-calls-1, the owner's call of 2026-10-30) from LTX-2.3 22B video-to-video (a different model) to fal's hosted Wan 2.2 Fun VACE depth, the GPU recipe's model; its schema was read again that day (hostedBaseEndpoints[fal-ai/wan-22-vace-fun-a14b/depth]). Unmeasured until the evaluation harness (O8) runs the evolution suite on a GPU and on fal.",
"intensity": {
"low": 0.45,
"medium": 0.65,
@@ -18225,35 +18225,41 @@
"maxReferences": 40,
"maxDirectionChars": 10000
},
- "direction": "An LLM writes the creative direction from the references (images sent to a model that can see them: Claude, or Ollama with a vision model on the open engine) and the user's few words, as a description of the finished video's scene (the LTX endpoint renders a scene, not an instruction); with no LLM, or in demo mode, Fuobe's offline writer builds it from the intensity, the words and the number of references. The user can edit it before the run; a run with none writes one first.",
+ "direction": "An LLM writes the creative direction from the references (images sent to a model that can see them: Claude, or Ollama with a vision model on the open engine) and the user's few words, as a description of the finished video's scene; with no LLM, or in demo mode, Fuobe's offline writer builds it from the intensity, the words and the number of references. The user can edit it before the run; a run with none writes one first.",
"cloud": {
- "endpoint": "fal-ai/ltx-2.3-22b/video-to-video",
- "loraEndpoint": "fal-ai/ltx-2.3-22b/video-to-video/lora",
- "strengthField": "video_strength",
- "strength": "1 − denoise: low 0.55, medium 0.35, high 0.15 (the field's description: lower values give the model more freedom to change the video; fal's default 0.01 all but re-renders it)",
+ "endpoint": "fal-ai/wan-22-vace-fun-a14b/depth",
+ "frame": "fal-ai/qwen-image-edit-2511",
+ "replaced": "fal-ai/ltx-2.3-22b/video-to-video (video_strength 1 − denoise), the cloud route until 2026-11-01: a different model from the GPU's, and it took no images",
"fixed": {
- "enable_prompt_expansion": false,
- "generate_audio": false,
- "match_video_length": false,
- "match_input_fps": false,
- "fps": 24
+ "preprocess": true
},
- "fps": 24,
- "maxFrames": 481,
- "pieces": "a clip over 20 s (481 frames at 24 fps) is cut into equal pieces of at most 20 s, each evolved on its own and joined",
- "sizes": "the tier's size for the clip's nearest shape, from Fuobe Cinema's table (studios[cinema-studio].original.cloud.sizes)",
- "sound": "generate_audio off; the clip's own sound is put back on the joined result (merge-audio-video)",
- "references": "the endpoint takes no images: references shape the direction only (unverified whether fal-ai/ltx-2.3-22b/reference-video-to-video/lora's IC-LoRA could carry one)"
+ "defaults": {
+ "match_input_num_frames": true,
+ "match_input_frames_per_second": true
+ },
+ "segments": "Fuobe Shorts' cloud pieces: equal pieces of at most 10 s and 241 frames as fal works them (a clip above 30 fps worked at a whole fraction of its rate with temporal_downsample_factor and brought back), each cut with fal's trim-video unless it is the whole clip",
+ "directionFrame": "per piece, its first frame (fal's extract-frame) taken toward the direction by hosted Qwen-Image-Edit 2511 with the GPU's frame instruction for the intensity and the first 3 references as images 2–4, as the GPU recipe does with its own edit step",
+ "video": "Wan 2.2 Fun VACE depth: video_url = the piece (preprocess on, so fal derives the depth itself), first_frame_url = the direction frame, the direction as the prompt; frames and rate match the piece",
+ "intensity": "the endpoint has no strength or denoise field (31 inputs, read 2026-11-01): in the cloud the change level reaches the direction frame's instruction only (refine gently / change / reimagine boldly; low and medium keep the people), and the clip reaches the model only as its depth, so how much of the clip's own look stays (the GPU's denoise) is set on the GPU only",
+ "references": "the first 3 go into each piece's direction frame (images 2–4); the rest, and up to 8 in all with the clip's frame, shape the written direction",
+ "resolutions": [
+ "480p",
+ "580p",
+ "720p"
+ ],
+ "sound": "the endpoint's output is silent; the clip's own sound is put back on the joined result (merge-audio-video)",
+ "price": "$0.10 per video second at 720p ($0.075 at 580p, $0.05 at 480p), video seconds counted at 16 frames per second (a 30 fps piece costs about 1.9× its length); plus each direction frame's Qwen edit (about $0.03 a megapixel) and fal's trim, extract-frame, join and merge steps"
},
"open": {
"segments": "≤81 frames (4n+1) at 16 fps, back to back (video-segment-resample), 480p or 720p; the graph itself also loads any clip at 16 fps (VHS_LoadVideo, at most `frames` frames, cut to 4n+1) and runs as many frames as it loaded, so a whole clip sent from Edit video is neither slow motion nor a shape error",
- "directionFrame": "qwen-image-edit-2511 on the segment's first frame with the direction, up to 2 references as images 2–3",
+ "directionFrame": "Qwen-Image 2.1 Turbo (oss-qwen-image-21-turbo, 8 steps) on the segment's first frame with the direction, up to 3 references as images 2–4 (corrected 2026-11-01: the first version used qwen-image-edit-2511 with 2 references; commit 244bed92 moved image edits to Qwen-Image 2.1)",
"video": "video-evolution-wan22-fun-vace: reference latent + VAE-encoded segment, noised to denoise = the noise level it starts from (flow matching: (1 − denoise) × clip + denoise × noise). The simple scheduler with shift 5 reaches that level N − 4 steps into a schedule of N = round(4 × (5 − 4 × denoise) / denoise) steps, and the last 4 run (Lightx2v 4-step): low 0.45 → N 28 (starts at σ 0.455), medium 0.65 → N 15 (0.645), high 0.85 → N 8 (0.833). Wan 2.2's high-noise expert takes only the steps at or above its switch point (σ 0.875), so all three intensities run on the low-noise expert; full denoise is the restyle graph's 2 + 2. Depth Anything 3 depth on every frame. (Corrected 2026-10-29: the first version noised the way KSampler does, floor(4 / denoise) steps, which with 4 steps and shift 5 started every intensity at σ 0.83–1 and made high the same as full noise.)",
"join": "video-concat-N, then the clip's own sound (video-mux-audio)"
},
"unverified": [
- "nothing rendered: the denoise values, LTX-2.3's video_strength at these values, and whether fal resamples a 30 fps input to the fixed 24 fps",
- "Lightx2v's 4-step LoRA at these start levels (it was distilled on the full-noise schedule, σ 1 → 0.94 → 0.83 → 0.63), and whether low (σ 0.45) changes enough to be seen"
+ "nothing rendered: the denoise values on the GPU, and in the cloud how far the direction frame plus depth carries each change level",
+ "Lightx2v's 4-step LoRA at these start levels (it was distilled on the full-noise schedule, σ 1 → 0.94 → 0.83 → 0.63), and whether low (σ 0.45) changes enough to be seen",
+ "fal's preprocess on the depth endpoint (that it derives depth from an RGB clip), as for Fuobe Shorts"
]
}
},
@@ -22881,7 +22887,7 @@
"price": "Your request will cost $0.10 per video second for 720p, $0.075 per video second for 580p, $0.05 per video second for 480p. Video seconds are calculated at 16 frames per second.",
"verified": true,
"schemaUrl": "https://fal.ai/api/openapi/queue/openapi.json?endpoint_id=fal-ai/wan-22-vace-fun-a14b/depth",
- "checked": "2026-10-27"
+ "checked": "2026-11-01"
},
{
"provider": "fal",
diff --git a/scripts/eval/cases/evolution.json b/scripts/eval/cases/evolution.json
index fd1c8bed..e27801b1 100644
--- a/scripts/eval/cases/evolution.json
+++ b/scripts/eval/cases/evolution.json
@@ -2,7 +2,7 @@
"$schema": "./case.schema.json",
"suite": "evolution",
"title": "Fuobe Evolution · change intensity and the written direction",
- "description": "Runs Video tools → Evolution (POST /api/evolution, priced by /api/evolution/estimate) on your clip and references in local/evolution/: walk.mp4 (4–30 s of someone walking, your own footage) and ref-1.png … ref-3.png (characters, places or a style you own; never Higgsfield previews). The Original (build plan O13) runs on both engines: on ComfyUI, a direction frame from Qwen-Image-Edit 2511 then Wan 2.2 Fun VACE from the noised segment at denoise 0.45 / 0.65 / 0.85; on fal, LTX-2.3 22B video to video at video_strength 0.55 / 0.35 / 0.15. The three intensity cases share a direction, so they show how much of the clip each keeps (temporal drift against the source, style against the references); the written case leaves the direction to the writer. Nothing here has been rendered yet: these cases decide the intensities' denoise values.",
+ "description": "Runs Video tools → Evolution (POST /api/evolution, priced by /api/evolution/estimate) on your clip and references in local/evolution/: walk.mp4 (4–30 s of someone walking, your own footage) and ref-1.png … ref-3.png (characters, places or a style you own; never Higgsfield previews). The Original (build plan O13) runs on both engines: the same model on both: on ComfyUI, a direction frame per segment from Qwen-Image 2.1 Turbo then Wan 2.2 Fun VACE from the noised segment at denoise 0.45 / 0.65 / 0.85; on fal, a direction frame per piece from hosted Qwen-Image-Edit 2511 then fal's Wan 2.2 Fun VACE depth carrying it through the piece (the endpoint has no strength field, so in the cloud the intensity shapes the direction frame only). The three intensity cases share a direction, so they show how much of the clip each keeps (temporal drift against the source, style against the references) and how far apart the engines' intensities land; the written case leaves the direction to the writer. Nothing here has been rendered yet: these cases decide the intensities' denoise values.",
"original": [
"fuobe-evolution"
],
diff --git a/scripts/gen-cloud-models.py b/scripts/gen-cloud-models.py
index b1839042..1563714f 100644
--- a/scripts/gen-cloud-models.py
+++ b/scripts/gen-cloud-models.py
@@ -678,25 +678,21 @@ model("fuobe-shorts", "Fuobe Shorts", "Fuobe Original", "fuobe-shorts", "video",
original=True, fit_values=True, pricing=("second", 0.1, f"720p; 580p $0.075, 480p $0.05 · {_FRAMES16}; the first frame's Qwen edit is priced on its own",
{"byResolution": {"720p": 0.1, "580p": 0.075, "480p": 0.05}}),
api_defaults=SHORTS_O["cloud"]["defaults"], defaults={"resolution": "720p"}, licence=SHORTS_O["licence"])
-# ----- Originals (O13): Fuobe Evolution's cloud half (research §8 evolution → studios[evolution].original): Higgsfield
-# Evolution's change intensity as LTX-2.3 22B video-to-video's video_strength (1 − the denoise the open graph uses; set by
-# src/lib/catalog/evolution.ts through params.extra), the LLM-written direction as the prompt, prompt expansion off. Silent
-# (the clip's own sound goes back on), 24 fps, at most 481 frames a call (Evolution cuts longer clips into pieces); the
-# tier's size for the clip's shape from Fuobe Cinema's table. Priced per megapixel of video like Fuobe Cinema.
+# ----- Originals (O13): Fuobe Evolution's cloud half (research §8 evolution → studios[evolution].original.cloud): fal's
+# hosted Wan 2.2 Fun VACE depth, the GPU recipe's own model (the owner's call of 2026-10-30; LTX-2.3 video-to-video until
+# 2026-11-01). Like Fuobe Shorts: the piece as video_url (preprocess on, fal derives the depth), its direction frame
+# (hosted Qwen-Image-Edit 2511, planned by src/lib/catalog/evolution.ts) as first_frame_url only (no VACE subject
+# references: `images` is dropped), frames and rate matched to the piece, no aspect ratio asked (the clip keeps its shape).
+# The endpoint has no strength field: the change level reaches the direction frame's instruction only. Silent: the clip's
+# own sound goes back on.
EVOLUTION = next(s for s in ORIGINALS["studios"] if s["id"] == "evolution")["original"]["cloud"]
-EVOLUTION_MP = per_megapixel(EVOLUTION["endpoint"])
-EVOLUTION_MP_LORA = per_megapixel(EVOLUTION["loraEndpoint"])
-EVOLUTION_PER_SECOND = {t: round(s["16:9"][0] * s["16:9"][1] * EVOLUTION["fps"] / 1e6 * EVOLUTION_MP, 4) for t, s in CINEMA_SIZES.items()}
-EVOLUTION_PER_SECOND_LORA = {t: round(s["16:9"][0] * s["16:9"][1] * EVOLUTION["fps"] / 1e6 * EVOLUTION_MP_LORA, 4) for t, s in CINEMA_SIZES.items()}
model("fuobe-evolution", "Fuobe Evolution", "Fuobe Original", "fuobe-evolution", "video",
- "Takes your clip further in a direction an LLM writes from your references: LTX-2.3 video to video at a change intensity",
- [("v2v", EVOLUTION["endpoint"], "fal", {"loraEndpoint": EVOLUTION["loraEndpoint"], "fixed": EVOLUTION["fixed"]})],
- original=True, sizes=CINEMA_SIZES,
- pricing=("second", EVOLUTION_PER_SECOND["720p"],
- f"${EVOLUTION_MP} per megapixel of video (width × height × frames): about ${round(EVOLUTION_PER_SECOND['720p'] * 5, 2)} for 5 s at 720p; ${EVOLUTION_MP_LORA} with LoRAs",
- {"byResolution": EVOLUTION_PER_SECOND, "withLoras": EVOLUTION_PER_SECOND_LORA["720p"], "withLorasByResolution": EVOLUTION_PER_SECOND_LORA,
- "videoMegapixel": {"usd": EVOLUTION_MP, "withLoras": EVOLUTION_MP_LORA}}),
- defaults={"aspectRatio": "16:9", "duration": 5, "resolution": "720p"}, frame_step=8)
+ "Takes your clip further in a direction an LLM writes from your references: a direction frame per piece carried through it by depth (Wan 2.2 Fun VACE)",
+ [("v2v", EVOLUTION["endpoint"], "fal", {"drop": ["aspectRatio", "images"], "fixed": EVOLUTION["fixed"]})],
+ original=True, fit_values=True, pricing=("second", 0.1, f"720p; 580p $0.075, 480p $0.05 · {_FRAMES16}; each direction frame's Qwen edit is priced on its own",
+ {"byResolution": {"720p": 0.1, "580p": 0.075, "480p": 0.05}}),
+ options={"resolutions": EVOLUTION["resolutions"]}, api_defaults=EVOLUTION["defaults"], defaults={"resolution": "720p"},
+ licence={**SHORTS_O["licence"], "note": "Wan 2.2 Fun VACE A14B and Qwen-Image-Edit 2511 (the direction frames) are Apache-2.0"})
# ----- Originals (O11): the rebranded open tools and Speak on hosted open weights (research studios[angles].original,
# studios[speak].original). Fuobe Angles is fal's LoRA-gallery route of Qwen-Image-Edit 2509 with dx8152's Multiple-angles
# LoRA: Higgsfield Angles' controls are its fields (rotate −90…90°, positive = left; vertical −1…1, −1 = bird's-eye;
diff --git a/src/components/evolution/evolution-tool.tsx b/src/components/evolution/evolution-tool.tsx
index ddca4390..5012c22c 100644
--- a/src/components/evolution/evolution-tool.tsx
+++ b/src/components/evolution/evolution-tool.tsx
@@ -18,7 +18,7 @@ import { Feed } from "@/components/studio/feed";
import { fileToList, MediaSlot, type SlotValue } from "@/components/studio/media-slot";
import { VideoTrimmer, type TrimRange, type VideoTrimmerHandle } from "@/components/studio/video-trimmer";
import { useEngine, useGenerations, useLikelyVisitor } from "@/lib/api";
-import { DIRECTION_CUT_NOTE, directionPrompt, EVOLUTION, EVOLUTION_DEFAULT_RESOLUTION, EVOLUTION_RESOLUTIONS, INTENSITIES, type Intensity } from "@/lib/catalog/evolution";
+import { DIRECTION_CUT_NOTE, directionPrompt, EVOLUTION, EVOLUTION_CLOUD_NOTE, EVOLUTION_DEFAULT_RESOLUTION, EVOLUTION_RESOLUTIONS, INTENSITIES, type Intensity } from "@/lib/catalog/evolution";
import { chainState } from "@/lib/catalog/shorts";
import { downloadHref, downloadName } from "@/lib/library";
import { cn } from "@/lib/utils";
@@ -238,7 +238,7 @@ export function EvolutionTool({ tabs }: { tabs?: React.ReactNode }) {
Characters, objects, places or a style.{" "}
{engine === "open"
? `On your GPU the first ${EVOLUTION.openReferences} also go into each segment's direction frame; all of them shape the direction.`
- : "In the cloud they shape the direction (LTX-2.3 takes no pictures)."}
+ : `In the cloud the first ${EVOLUTION.cloudReferences} also go into each piece's direction frame; all of them shape the direction.`}
</p>
</div>
</Panel>
@@ -250,6 +250,7 @@ export function EvolutionTool({ tabs }: { tabs?: React.ReactNode }) {
<p className="text-[12px] text-muted-foreground" aria-live="polite">
{INTENSITIES.find((i) => i.id === intensity)?.hint}
</p>
+ {engine === "cloud" && <p className="text-[12px] text-muted-foreground">{EVOLUTION_CLOUD_NOTE}.</p>}
</Field>
<Field label="Creative direction" htmlFor="evolution-direction" hint={by ? BY[by] : "Optional: left empty, it's written for you when you start"}>
diff --git a/src/lib/catalog/cloud-models.generated.ts b/src/lib/catalog/cloud-models.generated.ts
index 0c085ea4..0001c864 100644
--- a/src/lib/catalog/cloud-models.generated.ts
+++ b/src/lib/catalog/cloud-models.generated.ts
@@ -19521,189 +19521,65 @@ export const ORIGINAL_CLOUD: ModelDef[] = [
"family": "fuobe-evolution",
"engine": "cloud",
"kind": "video",
- "tagline": "Takes your clip further in a direction an LLM writes from your references: LTX-2.3 video to video at a change intensity",
+ "tagline": "Takes your clip further in a direction an LLM writes from your references: a direction frame per piece carried through it by depth (Wan 2.2 Fun VACE)",
"routes": [
{
"op": "v2v",
"provider": "fal",
- "endpoint": "fal-ai/ltx-2.3-22b/video-to-video",
+ "endpoint": "fal-ai/wan-22-vace-fun-a14b/depth",
"map": {
"negativePrompt": "negative_prompt",
+ "image": "first_frame_url",
"video": "video_url",
"seed": "seed",
- "generateAudio": "generate_audio",
- "fps": "fps",
- "numFrames": {
- "key": "num_frames",
- "fps": 24,
- "min": 9,
- "max": 481,
- "step": 8
- },
- "size": {
- "key": "video_size",
- "multiple": 16,
- "table": {
- "480p": {
- "21:9": [
- 1120,
- 480
- ],
- "16:9": [
- 864,
- 480
- ],
- "4:3": [
- 640,
- 480
- ],
- "1:1": [
- 480,
- 480
- ],
- "3:4": [
- 480,
- 640
- ],
- "9:16": [
- 480,
- 864
- ]
- },
- "720p": {
- "21:9": [
- 1504,
- 640
- ],
- "16:9": [
- 1280,
- 704
- ],
- "4:3": [
- 1024,
- 768
- ],
- "1:1": [
- 960,
- 960
- ],
- "3:4": [
- 768,
- 1024
- ],
- "9:16": [
- 704,
- 1280
- ]
- },
- "1080p": {
- "21:9": [
- 2240,
- 960
- ],
- "16:9": [
- 1920,
- 1088
- ],
- "4:3": [
- 1440,
- 1088
- ],
- "1:1": [
- 1088,
- 1088
- ],
- "3:4": [
- 1088,
- 1440
- ],
- "9:16": [
- 1088,
- 1920
- ]
- }
- }
+ "fps": "frames_per_second",
+ "resolution": {
+ "key": "resolution",
+ "accepts": [
+ "auto",
+ "240p",
+ "360p",
+ "480p",
+ "580p",
+ "720p"
+ ]
},
"fixed": {
- "enable_prompt_expansion": false,
- "generate_audio": false,
- "match_video_length": false,
- "match_input_fps": false,
- "fps": 24
+ "preprocess": true
},
- "loras": {
- "shape": "items",
- "key": "loras",
- "required": true,
- "range": {
- "min": 0,
- "max": 4
- },
- "weightName": true
+ "defaults": {
+ "match_input_num_frames": true,
+ "match_input_frames_per_second": true
}
- },
- "loraEndpoint": "fal-ai/ltx-2.3-22b/video-to-video/lora"
+ }
}
],
"options": {
- "durations": [
- 3,
- 4,
- 5,
- 6,
- 8,
- 10,
- 12,
- 15,
- 20
- ],
- "aspectRatios": [
- "21:9",
- "16:9",
- "4:3",
- "1:1",
- "3:4",
- "9:16"
- ],
+ "negativePrompt": true,
+ "seed": true,
"resolutions": [
"480p",
- "720p",
- "1080p"
+ "580p",
+ "720p"
],
- "negativePrompt": true,
- "seed": true,
- "audio": true
+ "maxImages": 1
},
"licence": {
- "licence": "LTX-2 / LTX-2.x Community License",
+ "licence": "Apache-2.0",
"commercial": true,
- "note": "Free for companies under US$10M annual revenue; above that a paid licence (github.com/Lightricks/LTX-2 LICENSE-2, LICENSE-2_x, section 2.1)",
- "checked": "2026-10-23"
+ "note": "Wan 2.2 Fun VACE A14B and Qwen-Image-Edit 2511 (the direction frames) are Apache-2.0"
},
"defaults": {
- "aspectRatio": "16:9",
- "duration": 5,
- "resolution": "720p",
- "generateAudio": true
+ "resolution": "720p"
},
"pricing": {
"unit": "second",
- "usd": 0.0347,
- "note": "$0.001605 per megapixel of video (width \u00d7 height \u00d7 frames): about $0.17 for 5 s at 720p; $0.001805 with LoRAs",
+ "usd": 0.1,
+ "note": "720p; 580p $0.075, 480p $0.05 \u00b7 fal bills frames \u00f7 16 as video seconds: a 30 fps clip costs about 1.9\u00d7 its length; each direction frame's Qwen edit is priced on its own",
"byResolution": {
- "480p": 0.016,
- "720p": 0.0347,
- "1080p": 0.0805
- },
- "withLoras": 0.039,
- "withLorasByResolution": {
- "480p": 0.018,
- "720p": 0.039,
- "1080p": 0.0905
- },
- "videoMegapixel": {
- "usd": 0.001605,
- "withLoras": 0.001805
+ "720p": 0.1,
+ "580p": 0.075,
+ "480p": 0.05
}
}
},
diff --git a/src/lib/catalog/evolution.ts b/src/lib/catalog/evolution.ts
index 6ce67747..c48d10fc 100644
--- a/src/lib/catalog/evolution.ts
+++ b/src/lib/catalog/evolution.ts
@@ -8,13 +8,30 @@
* direction (the first references as images 2–4), then Wan 2.2 Fun VACE re-renders the segment from the segment
* itself, noised to the intensity's denoise, with depth control and that frame as its reference
* (video-evolution-wan22-fun-vace, which also loads a whole clip at 16 fps when Edit video sends one).
- * - In the cloud: LTX-2.3 22B video to video on fal, video_strength = 1 − denoise, the direction as the scene; a clip
- * over 20 s runs as equal pieces. The endpoint takes no images: there the references shape the direction only.
+ * - In the cloud: the same model hosted on fal (Wan 2.2 Fun VACE depth), the way Fuobe Shorts runs it. Per piece of up to
+ * 10 s (241 frames as fal works them), hosted Qwen-Image-Edit 2511 takes the piece's first frame toward the direction
+ * (the first references as images 2–4), and VACE carries that frame through the piece by its depth. The endpoint has
+ * no strength field, so the change level reaches the direction frame only: how much of the clip's own look stays
+ * (the GPU's denoise) is set on your GPU only (EVOLUTION_CLOUD_NOTE).
* - Then the pieces are joined and the clip's own sound put back.
*
* Pure module, shared by the page, the server (src/server/evolution.ts) and the tests.
*/
-import { planCloudSegments, planOpenSegments, planStitch, SHORTS, SHORTS_TOOLS, wholeClip, type PlanStep, type ShortsPlanInput, type ShortsRange } from "./shorts";
+import {
+ originalBilledSeconds,
+ originalSegmentProblem,
+ originalSegmentSeconds,
+ planCloudSegments,
+ planOpenSegments,
+ planStitch,
+ SHORTS,
+ SHORTS_TOOLS,
+ vaceDownsample,
+ wholeClip,
+ type PlanStep,
+ type ShortsPlanInput,
+ type ShortsRange,
+} from "./shorts";
import type { Engine, GenerationRequest } from "./types";
export const EVOLUTION = {
@@ -29,14 +46,16 @@ export const EVOLUTION = {
maxDirectionChars: 10_000,
/** What reaches the models: the direction's first sentences, up to this many characters. */
promptChars: 1500,
- /** LTX-2.3 makes at most 481 frames a call: 20 s at 24 fps. */
- cloudPieceSeconds: 20,
/** Qwen-Image 2.1 Turbo takes the frame plus three references. */
openReferences: 3,
+ /** In the cloud, hosted Qwen-Image-Edit 2511 takes the frame plus as many: the GPU recipe's direction frame. */
+ cloudReferences: 3,
/** The LLM sees this many references (Claude reads up to 20 images a turn; a local vision model fewer). */
llmReferences: { cloud: 8, open: 4 } as Record<Engine, number>,
/** Helper on the GPU: the segment's first frame taken toward the direction (Qwen-Image 2.1 Turbo, 8 steps). */
frameModel: "oss-qwen-image-21-turbo",
+ /** Helper in the cloud: the same step on hosted Qwen-Image-Edit 2511 (Fuobe Shorts' first-frame model). */
+ cloudFrameModel: SHORTS_TOOLS.cloud.frame,
maxBytes: 500 * 1024 * 1024,
accept: "video/mp4,video/quicktime,video/webm,.mp4,.mov,.m4v,.webm",
} as const;
@@ -45,9 +64,9 @@ export type Intensity = "low" | "medium" | "high";
/**
* Build plan O13's change intensity: the denoise the open graph starts from (the noise level it takes the clip to:
- * (1 − denoise) × clip + denoise × noise, then 4 Lightx2v steps back), and in the
- * cloud LTX-2.3's video_strength = 1 − denoise (lower gives the model more freedom). The same numbers are in the research
- * (studios[evolution].original.intensity); tests/evolution.test.ts holds them together.
+ * (1 − denoise) × clip + denoise × noise, then 4 Lightx2v steps back), and on both engines the direction frame's
+ * instruction (directionFramePrompt). fal's hosted VACE has no strength field, so in the cloud the instruction is all of
+ * it. The same numbers are in the research (studios[evolution].original.intensity); tests/evolution.test.ts holds them together.
*/
export const INTENSITIES: { id: Intensity; label: string; denoise: number; hint: string }[] = [
{ id: "low", label: "Low", denoise: 0.45, hint: "Same scene and people, a new finish" },
@@ -57,29 +76,17 @@ export const INTENSITIES: { id: Intensity; label: string; denoise: number; hint:
const intensity = (i: Intensity) => INTENSITIES.find((x) => x.id === i) ?? INTENSITIES[1];
export const denoiseFor = (i: Intensity): number => intensity(i).denoise;
-export const videoStrengthFor = (i: Intensity): number => Math.round((1 - intensity(i).denoise) * 100) / 100;
-/** Resolutions per engine (the GPU graph tops out at 1280 px; LTX-2.3 has a 1080p tier) and the default. */
-export const EVOLUTION_RESOLUTIONS: Record<Engine, string[]> = { open: ["480p", "720p"], cloud: ["480p", "720p", "1080p"] };
-export const EVOLUTION_DEFAULT_RESOLUTION: Record<Engine, string> = { open: "480p", cloud: "720p" };
+/** What the cloud can't do of the GPU recipe, in one plain line (the page, the estimate and Settings say it). */
+export const EVOLUTION_CLOUD_NOTE = "In the cloud the change level shapes each piece's direction frame; how much of the clip's own look stays is set on your GPU only";
-/** LTX-2.3's shapes (Fuobe Cinema's size table): the clip is made in the one nearest its own. */
-export const CLOUD_SHAPES = ["21:9", "16:9", "4:3", "1:1", "3:4", "9:16"] as const;
+/** Resolutions per engine (the GPU graph tops out at 1280 px; fal's hosted VACE at 720p) and the default. Both keep the clip's shape. */
+export const EVOLUTION_RESOLUTIONS: Record<Engine, string[]> = { open: ["480p", "720p"], cloud: ["480p", "580p", "720p"] };
+export const EVOLUTION_DEFAULT_RESOLUTION: Record<Engine, string> = { open: "480p", cloud: "720p" };
-export function nearestShape(width?: number, height?: number): (typeof CLOUD_SHAPES)[number] {
- if (!width || !height) return "16:9";
- const r = Math.log(width / height);
- let best: (typeof CLOUD_SHAPES)[number] = "16:9";
- let gap = Infinity;
- for (const s of CLOUD_SHAPES) {
- const [a, b] = s.split(":").map(Number);
- const d = Math.abs(Math.log(a / b) - r);
- if (d < gap) {
- gap = d;
- best = s;
- }
- }
- return best;
+/** The cloud's pieces: Fuobe Shorts' (at most 10 s and 241 frames as fal's VACE works them, by the clip's rate). */
+export function cloudPieces(range: ShortsRange, fps?: number) {
+ return planCloudSegments(range, originalSegmentSeconds(fps));
}
// ---------------------------------------------------------------------------
@@ -105,12 +112,14 @@ export function evolutionRangeProblem(range: ShortsRange, duration?: number): st
}
/** Why this run can't start, or null. */
-export function evolutionProblem(o: { engine: Engine; source: Pick<EvolutionSource, "duration">; range: ShortsRange; references: number; direction?: string; resolution?: string }): string | null {
+export function evolutionProblem(o: { engine: Engine; source: Pick<EvolutionSource, "duration" | "fps">; range: ShortsRange; references: number; direction?: string; resolution?: string }): string | null {
const r = evolutionRangeProblem(o.range, o.source.duration);
if (r) return r;
if (o.references > EVOLUTION.maxReferences) return `Use up to ${EVOLUTION.maxReferences} references`;
if ((o.direction?.length ?? 0) > EVOLUTION.maxDirectionChars) return `Keep the direction under ${EVOLUTION.maxDirectionChars.toLocaleString("en")} characters`;
- if (o.resolution && !EVOLUTION_RESOLUTIONS[o.engine].includes(o.resolution)) return `${o.resolution} isn't offered ${o.engine === "open" ? "on your GPU" : "in the cloud"} — pick ${EVOLUTION_RESOLUTIONS[o.engine].join(" or ")}`;
+ if (o.resolution && !EVOLUTION_RESOLUTIONS[o.engine].includes(o.resolution)) return `${o.resolution} isn't offered ${o.engine === "open" ? "on your GPU" : "in the cloud"} — pick ${EVOLUTION_RESOLUTIONS[o.engine].join(", ").replace(/, ([^,]*)$/, " or $1")}`;
+ // fal's VACE refuses a piece under 17 frames or a clip under 5 fps: said before the cuts and frames are paid for.
+ if (o.engine === "cloud") return cloudPieces(o.range, o.source.fps).map((p) => originalSegmentProblem(p.end - p.start, o.source.fps)).find(Boolean) ?? null;
return null;
}
@@ -143,7 +152,7 @@ function refImages(refs: number): string {
return n.length === 1 ? `image ${n[0]}` : `images ${n.slice(0, -1).join(", ")} and ${n.at(-1)}`;
}
-/** On the GPU: the edit model's instruction for the segment's first frame (references are images 2 onward). */
+/** On both engines: the edit model's instruction for the segment's first frame (references are images 2 onward). */
export function directionFramePrompt(direction: string, i: Intensity, refs: number): string {
const d = directionPrompt(direction).text.replace(/[.\s]+$/, "");
const keep = i === "high" ? "Keep the composition and the poses of image 1." : "Keep the composition, the people, their faces and poses, and the framing of image 1.";
@@ -231,7 +240,7 @@ export interface EvolutionPlan {
sound: boolean;
/** The direction was longer than the models take: only its first sentences go. */
cut: boolean;
- /** References that reach a model (the GPU's direction frames); the rest only shape the direction. */
+ /** References that reach a model (the direction frames, on both engines); the rest only shape the direction. */
referencesUsed: number;
}
@@ -240,8 +249,9 @@ const pieceLabel = (i: number, n: number, what: string) => ({ label: n > 1 ? `Pi
/**
* The whole job. GPU: per segment, cut it (16 fps), take its first frame toward the direction, evolve it from itself
- * at the intensity's denoise. Cloud: per piece of up to 20 s, cut it (unless it is the whole clip) and evolve it on
- * LTX-2.3 at video_strength 1 − denoise, in the tier's size for the clip's shape. Then join and put the sound back.
+ * at the intensity's denoise. Cloud: per piece of up to 10 s, cut it (unless it is the whole clip), take its first frame
+ * toward the direction on hosted Qwen-Image-Edit 2511, and carry that frame through the piece by depth on fal's Wan 2.2
+ * Fun VACE, frames and rate kept (billed on frames ÷ 16). Then join and put the sound back.
*/
export function planEvolution(input: EvolutionPlanInput): EvolutionPlan {
const { engine } = input;
@@ -299,18 +309,44 @@ export function planEvolution(input: EvolutionPlanInput): EvolutionPlan {
keys.push(`evolve${i}`);
});
} else {
- const pieces = planCloudSegments(input.range, EVOLUTION.cloudPieceSeconds);
+ const t = SHORTS_TOOLS.cloud;
+ const pieces = cloudPieces(input.range, input.source.fps);
n = pieces.length;
const whole = n === 1 && wholeClip(input.range, input.source.duration);
- const shape = nearestShape(input.source.width, input.source.height);
+ const refs = input.references.slice(0, EVOLUTION.cloudReferences);
+ referencesUsed = refs.length;
+ const downsample = vaceDownsample(input.source.fps);
pieces.forEach((p, i) => {
const own = n === 1 && !sound;
- if (!whole) {
+ const seconds = p.end - p.start;
+ // The whole clip goes as it is; a part is cut first.
+ const cut = whole ? null : `cut${i}`;
+ const video = cut ? {} : { inputs: { video: input.source.url } };
+ if (cut) {
steps.push({
- key: `cut${i}`,
- request: { ...helper, modelId: SHORTS_TOOLS.cloud.cut, op: "trim", inputs: { video: input.source.url }, params: { startTime: p.start, endTime: p.end }, step: pieceLabel(i, n, "cut") },
+ key: cut,
+ request: { ...helper, modelId: t.cut, op: "trim", inputs: { video: input.source.url }, params: { startTime: p.start, endTime: p.end }, step: pieceLabel(i, n, "cut") },
});
}
+ steps.push({
+ key: `still${i}`,
+ request: { ...helper, modelId: t.still, op: "frame", ...video, params: { extra: { frame_type: "first" } }, step: pieceLabel(i, n, "first frame") },
+ ...(cut ? { after: [cut], chain: [{ slot: "video" as const }] } : {}),
+ });
+ steps.push({
+ key: `frame${i}`,
+ request: {
+ ...helper,
+ modelId: EVOLUTION.cloudFrameModel,
+ op: "edit",
+ prompt: directionFramePrompt(input.direction, input.intensity, refs.length),
+ ...(refs.length ? { inputs: { images: refs } } : {}),
+ params: { ...seed },
+ step: pieceLabel(i, n, "direction frame"),
+ },
+ after: [`still${i}`],
+ chain: [{ slot: "images", position: "first" }],
+ });
steps.push({
key: `evolve${i}`,
request: {
@@ -319,11 +355,19 @@ export function planEvolution(input: EvolutionPlanInput): EvolutionPlan {
engine: "cloud",
op: "v2v",
prompt,
- ...(whole ? { inputs: { video: input.source.url } } : {}),
- params: { aspectRatio: shape, resolution, duration: r3(p.end - p.start), extra: { video_strength: videoStrengthFor(input.intensity) }, ...seed },
+ ...video,
+ // fal bills frames ÷ 16 as "video seconds" (duration); sourceDuration is the piece's own length.
+ params: {
+ resolution,
+ duration: originalBilledSeconds(seconds, input.source.fps),
+ sourceDuration: r3(seconds),
+ ...seed,
+ ...(downsample ? { extra: { temporal_downsample_factor: downsample } } : {}),
+ },
step: pieceLabel(i, n, "evolve"),
},
- ...(whole ? {} : { after: [`cut${i}`], chain: [{ slot: "video" as const }] }),
+ after: cut ? [cut, `frame${i}`] : [`frame${i}`],
+ chain: cut ? [{ slot: "video" }, { slot: "images", position: "first" }] : [{ slot: "images", position: "first" }],
});
keys.push(`evolve${i}`);
});
diff --git a/src/lib/catalog/models.ts b/src/lib/catalog/models.ts
index 2024b39f..52493152 100644
--- a/src/lib/catalog/models.ts
+++ b/src/lib/catalog/models.ts
@@ -4,7 +4,7 @@ import { ASR_LANGUAGES, WHISPER_LANGUAGES } from "../speech-languages";
import { loraEntry, loraRef } from "./loras";
import { ANGLES_LORA, MOSAIC_SCALE, MOSAIC_TARGET, SPEAK_GRAPH, SPEAK_LORA, SPEAK_PROMPT } from "./open-tools";
import { CINEMA_CROP, SOUL_ASPECTS, SOUL_TIERS } from "./soul";
-import { CLOUD_SHAPES, denoiseFor, EVOLUTION, EVOLUTION_DEFAULT_RESOLUTION, EVOLUTION_RESOLUTIONS, INTENSITIES, videoStrengthFor, type Intensity } from "./evolution";
+import { denoiseFor, EVOLUTION, EVOLUTION_DEFAULT_RESOLUTION, EVOLUTION_RESOLUTIONS, INTENSITIES, type Intensity } from "./evolution";
import { LAST_FRAME_CHAIN, type ModelDef, type ModelOptions, type ModelRoute, type Operation } from "./types";
/*
@@ -1907,7 +1907,7 @@ const DOP_OPTIONS: ModelOptions = {
requires: { images: 1, msg: "Add a start frame: Fuobe DoP moves the camera through your picture" },
};
-/** Fuobe Evolution's change intensity as a composer control on one engine's own field (the GPU's denoise, fal's video_strength). */
+/** Fuobe Evolution's change intensity as a composer control on the GPU graph's own field (its denoise; fal's hosted VACE has none). */
function intensityControl(param: string, value: (i: Intensity) => number): NonNullable<ModelOptions["controls"]>[number] {
return {
param,
@@ -2034,28 +2034,34 @@ const originals: ModelDef[] = [
options: { seed: true, negativePrompt: true, resolutions: ["480p", "720p"], maxImages: 4 },
}),
// Fuobe Evolution (O13): Higgsfield Evolution's Original (src/lib/catalog/evolution.ts plans the segments, the direction
- // frame and the sound; Video tools → Evolution is its studio). The change intensity is the denoise the GPU graph starts
- // from, and LTX-2.3's video_strength (1 − denoise) in the cloud: one control, each engine's own field.
+ // frame and the sound; Video tools → Evolution is its studio). Wan 2.2 Fun VACE on both engines: the graph on your GPU,
+ // fal's hosted depth route in the cloud (since the owner's call of 2026-10-30; LTX-2.3 before). The change intensity is
+ // the denoise the GPU graph starts from; fal's route has no such field, so in the cloud the change shapes only the
+ // direction frame Evolution makes, and the composer has no Change control there.
{
...original({
id: EVOLUTION.model,
open: [comfy("v2v", "video-evolution-wan22-fun-vace", "Wan 2.2 Fun VACE from the noised segment, depth control, image = the direction frame; ≤81 frames at 16 fps")],
- tagline: "Takes your clip further in a creative direction · Wan 2.2 Fun VACE free on your GPU (24 GB), or LTX-2.3 on fal",
- options: { seed: true, negativePrompt: true, aspectRatios: [...CLOUD_SHAPES], resolutions: EVOLUTION_RESOLUTIONS.cloud, maxImages: 0 },
+ tagline: "Takes your clip further in a creative direction · Wan 2.2 Fun VACE free on your GPU (24 GB), or hosted on fal (there the change level shapes the direction frame only)",
+ options: {
+ seed: true,
+ negativePrompt: true,
+ resolutions: EVOLUTION_RESOLUTIONS.cloud,
+ maxImages: 1,
+ imageLabels: ["direction frame (optional: the clip's first frame as it should look)"],
+ },
}),
- defaults: { aspectRatio: "16:9", duration: 5, resolution: EVOLUTION_DEFAULT_RESOLUTION.cloud },
+ defaults: { duration: 5, resolution: EVOLUTION_DEFAULT_RESOLUTION.cloud },
engineDefaults: { open: { resolution: EVOLUTION_DEFAULT_RESOLUTION.open, aspectRatio: "auto" } },
engineOptions: {
open: {
aspectRatios: ["auto", ...VID_AR],
resolutions: EVOLUTION_RESOLUTIONS.open,
durations: [3, 4, 5],
- maxImages: 1,
imageLabels: ["direction frame (the clip's first frame as it should look)"],
controls: [intensityControl("denoise", denoiseFor)],
requires: { images: 1, msg: "Add the direction frame: the clip's first frame as it should look (Video tools → Evolution makes it for you)" },
},
- cloud: { controls: [intensityControl("video_strength", videoStrengthFor)] },
},
},
// Character swap (Openjutsu, Akatz Labs' H3 Character Swap): MiniMax H3 with the Character Swap LoRA. On your GPU the
diff --git a/src/server/evolution.ts b/src/server/evolution.ts
index 5d502b71..8ae8bf4c 100644
--- a/src/server/evolution.ts
+++ b/src/server/evolution.ts
@@ -10,7 +10,6 @@ import {
EVOLUTION_RESOLUTIONS,
evolutionProblem,
evolutionTitle,
- nearestShape,
offlineDirection,
planEvolution,
tidyDirection,
@@ -187,9 +186,10 @@ function planInput(body: z.infer<typeof EvolutionBodySchema>, info: Awaited<Retu
if (n > EVOLUTION.openReferences) notes.push(`The other ${n - EVOLUTION.openReferences} reference${n - EVOLUTION.openReferences > 1 ? "s" : ""} shape the direction only`);
notes.push("Needs a 24 GB GPU · Wan 2.2 Fun VACE is Apache-2.0; Qwen-Image 2.1's weights are non-commercial");
} else {
- notes.push(`${name} runs LTX-2.3 video to video on fal in your clip's shape (${nearestShape(source.width, source.height)}) at 24 fps`);
- if (n) notes.push(`LTX-2.3 takes no pictures: your ${n === 1 ? "reference shapes" : `${n} references shape`} the direction`);
- notes.push("LTX-2.x Community License: free under US$10M annual revenue (information, Settings → Models & licences)");
+ const k = Math.min(n, EVOLUTION.cloudReferences);
+ notes.push(`${name} runs the GPU's model hosted on fal: each ≤10 s piece's first frame is taken toward the direction by Qwen-Image-Edit 2511${n ? ` with your first ${k === 1 ? "reference" : `${k} references`}` : ""}, then Wan 2.2 Fun VACE carries it through the piece by depth, in your clip's shape`);
+ if (n > EVOLUTION.cloudReferences) notes.push(`The other ${n - EVOLUTION.cloudReferences} reference${n - EVOLUTION.cloudReferences > 1 ? "s" : ""} shape the direction only`);
+ notes.push("Wan 2.2 Fun VACE and Qwen-Image-Edit 2511 are Apache-2.0 (information, Settings → Models & licences)");
}
if (source.hasAudio) notes.push("Your clip's own sound is put back on the result");
const title = evolutionTitle(direction, body.source.name);
diff --git a/tests/e2e/popcorn-evolution.mjs b/tests/e2e/popcorn-evolution.mjs
index 6aee9f15..52ffe870 100644
--- a/tests/e2e/popcorn-evolution.mjs
+++ b/tests/e2e/popcorn-evolution.mjs
@@ -1,8 +1,9 @@
// Build plan O13, browser check: Video tools → Evolution, the Storyboard's Soul looks and the Canvas picker's
// Effects 2.0 chains, at 1440 and 390 px, light and dark, in demo mode (no keys, ComfyUI and Ollama unreachable).
// Evolution: a clip goes in, Low / Medium / High, the direction written by the offline writer, a long direction said to
-// be cut, the price before it runs (a demo), a run that finishes with a before / after; the open engine says "on your
-// GPU". Storyboard: the cloud board runs on Fuobe's open recipe with Nano Banana Pro a partner choice, the look chip
+// be cut, the price before it runs (a demo), a run that finishes with a before / after; the cloud runs the GPU's model
+// hosted on fal (Wan 2.2 Fun VACE, no LTX-2.3), 480p / 580p / 720p, and says in one line what stays on the GPU; the open
+// engine says "on your GPU". Storyboard: the cloud board runs on Fuobe's open recipe with Nano Banana Pro a partner choice, the look chip
// starts at "No look", a look is picked, the board's price is shown, a board in that look is made. Canvas: the
// Effects 2.0 chains have their own section and one opens as a canvas with the edit and the effect. Nothing scrolls
// sideways. Usage: node tests/e2e/popcorn-evolution.mjs [appUrl] [--shots <dir>]. Exits 1 on a failed check.
@@ -82,6 +83,11 @@ try {
check(`${tag}: the offline writer wrote the direction`, /reimagined from the ground up/.test(written) && /Written by Fuobe's offline writer/.test(await text()), JSON.stringify(written.slice(0, 50)));
await page.waitForFunction(() => /Placeholder · free|≈ \$|Free/.test(document.body.innerText), null, { timeout: 30_000 }).catch(() => {});
check(`${tag}: the price before it runs (a demo here)`, /Placeholder · free/.test(await text()) && /Fuobe Evolution · \d+(\.\d+)? s · 720p/.test(await text()));
+ // The cloud runs the GPU's model hosted on fal, never a substitute, and says in one line what the GPU keeps.
+ check(`${tag}: cloud: Wan 2.2 Fun VACE hosted on fal, no LTX-2.3`, /runs the GPU's model hosted on fal/.test(await text()) && /Wan 2\.2 Fun VACE carries it through the piece/.test(await text()) && !/LTX/.test(await text()));
+ check(`${tag}: cloud: one line says the change level's limit`, /In the cloud the change level shapes each piece's direction frame; how much of the clip's own look stays is set on your GPU only/.test(await text()));
+ check(`${tag}: cloud: the references reach each piece's direction frame`, /In the cloud the first 3 also go into each piece's direction frame/.test(await text()));
+ check(`${tag}: cloud: 480p, 580p or 720p`, (await page.getByRole("radiogroup", { name: "Resolution" }).getByRole("radio").allInnerTexts()).join("|") === "480p|580p|720p");
check(`${tag}: no sideways scroll (Evolution, set up)`, (await sideways()) <= 1, `${await sideways()} px`);
await shot("evolution-setup");
await page.getByRole("button", { name: "Evolve" }).click();
@@ -98,6 +104,7 @@ try {
await page.getByRole("radiogroup", { name: "Engine" }).getByRole("radio", { name: "Open source" }).click();
await page.waitForFunction(() => /segments|Needs a 24 GB GPU/.test(document.body.innerText), null, { timeout: 30_000 }).catch(() => {});
check(`${tag}: open engine: 480p first, the GPU line`, (await page.getByRole("radiogroup", { name: "Resolution" }).getByRole("radio", { name: "480p" }).getAttribute("aria-checked")) === "true" && /Needs a 24 GB GPU/.test(await text()));
+ check(`${tag}: open engine: no cloud-only line`, !/In the cloud the change level/.test(await text()));
check(`${tag}: no sideways scroll (Evolution, open)`, (await sideways()) <= 1, `${await sideways()} px`);
await page.getByRole("radiogroup", { name: "Engine" }).getByRole("radio", { name: "Cloud" }).click();
diff --git a/tests/evolution-api.test.ts b/tests/evolution-api.test.ts
index 58c810fb..140adaea 100644
--- a/tests/evolution-api.test.ts
+++ b/tests/evolution-api.test.ts
@@ -7,7 +7,7 @@ import type { Generation } from "@/lib/catalog/types";
vi.setConfig({ testTimeout: 120_000 });
// /api/evolution end to end in demo mode (no keys, no ComfyUI, no LLM): a run on either engine becomes one pipeline of
-// ordinary generations that the mock provider runs through; estimates with a fal key price the real LTX-2.3 route.
+// ordinary generations that the mock provider runs through; estimates with a fal key price the real hosted VACE route.
const dir = fs.mkdtempSync(path.join(os.tmpdir(), "fuobe-evolution-"));
process.env.FUOBE_DATA_DIR = dir;
process.env.COMFYUI_URL = "http://127.0.0.1:9";
@@ -57,8 +57,9 @@ const body = (over: Record<string, unknown> = {}) => ({ engine: "cloud", intensi
describe("Evolution: estimates", () => {
it("no keys: a demo; the GPU is free", async () => {
const cloud = await (await estimateRoute.POST(json(body()))).json();
- expect(cloud).toMatchObject({ modelName: "Fuobe Evolution", engine: "cloud", resolution: "720p", pieces: 1, seconds: 12, demo: true });
- expect(cloud.notes.join(" ")).toMatch(/LTX-2.3 takes no pictures: your reference shapes the direction/);
+ expect(cloud).toMatchObject({ modelName: "Fuobe Evolution", engine: "cloud", resolution: "720p", pieces: 2, seconds: 12, demo: true });
+ expect(cloud.notes.join(" ")).toMatch(/runs the GPU's model hosted on fal: each ≤10 s piece's first frame is taken toward the direction by Qwen-Image-Edit 2511 with your first reference, then Wan 2\.2 Fun VACE/);
+ expect(cloud.notes.join(" ")).not.toMatch(/LTX/);
const open = await (await estimateRoute.POST(json(body({ engine: "open" })))).json();
expect(open).toMatchObject({ engine: "open", resolution: "480p", pieces: 3, costUsd: 0 });
expect(open.notes.join(" ")).toMatch(/Qwen-Image 2.1 Turbo takes its first frame toward the direction with your first reference/);
@@ -68,14 +69,15 @@ describe("Evolution: estimates", () => {
beforeAll(() => setSetting("falKey", "fal-test-key"));
afterAll(() => setSetting("falKey", ""));
- it("LTX-2.3 per megapixel of video in the clip's shape, plus the sound put back", async () => {
+ it("Wan 2.2 Fun VACE per video second (frames ÷ 16), each piece's direction frame, plus the sound put back", async () => {
const e = await (await estimateRoute.POST(json(body()))).json();
- expect(e).toMatchObject({ demo: false, pieces: 1, steps: 2 });
- // 9:16 at 720p is 704 × 1280; 12 s at 24 fps is 289 frames: 260.4 MP → 261 × $0.001605.
- expect(e.costUsd).toBeGreaterThanOrEqual(261 * 0.001605);
- expect(e.costUsd).toBeLessThan(261 * 0.001605 + 0.02);
- const hd = await (await estimateRoute.POST(json(body({ resolution: "1080p" })))).json();
- expect(hd.costUsd).toBeGreaterThan(e.costUsd * 2);
+ // 12 s at 16 fps: two 6 s pieces (cut, first frame, direction frame, evolve), a join and the sound.
+ expect(e).toMatchObject({ demo: false, pieces: 2, steps: 10 });
+ // VACE: 12 s × 16 fps ÷ 16 = 12 video seconds × $0.10 at 720p; the rest (Qwen edits, fal's tools) on top.
+ expect(e.costUsd).toBeGreaterThanOrEqual(1.2);
+ expect(e.costUsd).toBeLessThan(1.2 + 0.2);
+ const low = await (await estimateRoute.POST(json(body({ resolution: "480p" })))).json();
+ expect(e.costUsd - low.costUsd).toBeCloseTo(0.6, 2);
});
});
@@ -83,6 +85,7 @@ describe("Evolution: estimates", () => {
const say = async (b: unknown) => (await (await estimateRoute.POST(json(b))).json()).error;
expect(await say(body({ range: { start: 0, end: 3 } }))).toBe("Select at least 4 seconds");
expect(await say(body({ engine: "open", resolution: "1080p" }))).toMatch(/isn't offered on your GPU/);
+ expect(await say(body({ resolution: "1080p" }))).toBe("1080p isn't offered in the cloud — pick 480p, 580p or 720p");
expect(await say({ engine: "cloud" })).toBe("Add a clip and pick how much should change");
// Past the limits, the limit is said (not the schema's generic refusal), on every route.
expect(await say(body({ direction: "x".repeat(10_001) }))).toBe("Keep the direction under 10,000 characters");
@@ -137,17 +140,21 @@ describe("Evolution: runs (demo)", () => {
return out as { final: Generation; items: Generation[]; direction: string; by: string };
};
- it("cloud: no direction given, the offline writer writes one; Fuobe Evolution at video_strength 0.35, then the sound", async () => {
+ it("cloud: no direction given, the offline writer writes one; per piece a direction frame on hosted Qwen-Image-Edit 2511, then VACE, joined, the sound", async () => {
const { final, items, direction, by } = await run(body({ idea: "a rainy neon street" }));
expect(by).toBe("offline");
expect(direction).toMatch(/now in a new world: a rainy neon street/);
expect(final.feature).toBe("evolution");
expect(items.filter((g) => g.feature === "evolution")).toHaveLength(1);
const rows = batchOf(final.id);
- expect(rows.map((r) => `${r.op}:${r.model_id}`)).toEqual(["v2v:fuobe-evolution", "mux:merge-audio-video"]);
- const evolve = gens.getGeneration(rows[0].id)!;
- expect(evolve.request).toMatchObject({ engine: "cloud", params: { extra: { video_strength: 0.35 } } });
+ const count = (model: string) => rows.filter((r) => r.model_id === model).length;
+ expect([count("trim-video"), count("extract-frame"), count("qwen-image-edit-2511-cloud"), count("fuobe-evolution"), count("merge-audio-video")]).toEqual([2, 2, 2, 2, 1]);
+ const evolve = gens.getGeneration(rows.find((r) => r.model_id === "fuobe-evolution")!.id)!;
+ expect(evolve.request).toMatchObject({ engine: "cloud", params: { resolution: "720p", duration: 6, sourceDuration: 6 } });
+ expect(evolve.request.params?.extra).toBeUndefined();
expect(evolve.request.prompt).toBe(direction);
+ const frame = gens.getGeneration(rows.find((r) => r.model_id === "qwen-image-edit-2511-cloud")!.id)!;
+ expect(frame.request.prompt).toMatch(/^Change image 1 toward this direction: .*Use the characters, objects and style of image 2 where they fit\.$/);
const done = await settle(final.id);
expect(done.status, done.error ?? undefined).toBe("succeeded");
expect(done.outputs[0].kind).toBe("video");
diff --git a/tests/evolution.test.ts b/tests/evolution.test.ts
index d6b6b229..bac72feb 100644
--- a/tests/evolution.test.ts
+++ b/tests/evolution.test.ts
@@ -9,14 +9,13 @@ import {
directionPrompt,
directionRequest,
EVOLUTION,
+ EVOLUTION_CLOUD_NOTE,
evolutionProblem,
evolutionTitle,
INTENSITIES,
- nearestShape,
offlineDirection,
planEvolution,
tidyDirection,
- videoStrengthFor,
type EvolutionPlanInput,
} from "@/lib/catalog/evolution";
import { buildPayload } from "@/lib/catalog/payload";
@@ -33,11 +32,11 @@ const step = (p: ReturnType<typeof planEvolution>, key: string) => {
};
describe("Fuobe Evolution: intensities", () => {
- it("low / medium / high are denoise 0.45 / 0.65 / 0.85, and LTX-2.3's video_strength is 1 − denoise", () => {
- expect(INTENSITIES.map((i) => [i.id, denoiseFor(i.id), videoStrengthFor(i.id)])).toEqual([
- ["low", 0.45, 0.55],
- ["medium", 0.65, 0.35],
- ["high", 0.85, 0.15],
+ it("low / medium / high are denoise 0.45 / 0.65 / 0.85 on the GPU", () => {
+ expect(INTENSITIES.map((i) => [i.id, denoiseFor(i.id)])).toEqual([
+ ["low", 0.45],
+ ["medium", 0.65],
+ ["high", 0.85],
]);
});
@@ -47,90 +46,124 @@ describe("Fuobe Evolution: intensities", () => {
expect(evo.model).toBe(EVOLUTION.model);
expect(evo.intensity).toEqual(Object.fromEntries(INTENSITIES.map((i) => [i.id, i.denoise])));
expect(evo.limits).toEqual({ minSeconds: EVOLUTION.minSeconds, maxSeconds: EVOLUTION.maxSeconds, maxReferences: EVOLUTION.maxReferences, maxDirectionChars: EVOLUTION.maxDirectionChars });
- expect(evo.cloud.strengthField).toBe("video_strength");
+ // The cloud runs the GPU's model hosted on fal (the owner's call of 2026-10-30), with the GPU's direction frame.
+ expect(evo.cloud.endpoint).toBe("fal-ai/wan-22-vace-fun-a14b/depth");
+ expect(evo.cloud.frame).toBe("fal-ai/qwen-image-edit-2511");
+ expect(evo.cloud.resolutions).toEqual(["480p", "580p", "720p"]);
+ expect(getModel(EVOLUTION.cloudFrameModel)?.routes[0].endpoint).toBe(evo.cloud.frame);
+ // The endpoint the generator reads has no strength field: the change level can't reach it (said in the cloud).
+ const schema = research.hostedBaseEndpoints.find((e: { endpoint: string }) => e.endpoint === evo.cloud.endpoint);
+ expect(Object.keys(schema.inputs).filter((k) => /strength|denoise/.test(k))).toEqual([]);
+ expect(Object.keys(schema.inputs)).toEqual(expect.arrayContaining(["video_url", "first_frame_url", "preprocess", "match_input_num_frames"]));
});
});
describe("Fuobe Evolution: the model on both engines", () => {
const m = getModel(EVOLUTION.model)!;
- it("is an Original: the GPU graph and LTX-2.3 video to video on fal, no Higgsfield", () => {
+ it("is an Original: the GPU graph and the same Wan 2.2 Fun VACE hosted on fal, no Higgsfield, no LTX-2.3", () => {
expect(m).toBeTruthy();
expect(m.engines).toEqual(["open", "cloud"]);
- expect(m.routes.map((r) => `${r.provider}:${r.endpoint}`)).toEqual(["comfyui:video-evolution-wan22-fun-vace", "fal:fal-ai/ltx-2.3-22b/video-to-video"]);
- expect(m.routes[1].loraEndpoint).toBe("fal-ai/ltx-2.3-22b/video-to-video/lora");
- expect(m.licence?.licence).toMatch(/LTX-2/);
+ expect(m.routes.map((r) => `${r.provider}:${r.endpoint}`)).toEqual(["comfyui:video-evolution-wan22-fun-vace", "fal:fal-ai/wan-22-vace-fun-a14b/depth"]);
+ expect(m.routes.some((r) => /ltx/i.test(r.endpoint))).toBe(false);
+ expect(m.licence).toMatchObject({ licence: "Apache-2.0", commercial: true });
+ expect(m.tagline).toMatch(/Wan 2\.2 Fun VACE free on your GPU .*hosted on fal \(there the change level shapes the direction frame only\)/);
});
- it("the change control is each engine's own field", () => {
+ it("the change control is the GPU's own field; the cloud has none and says so", () => {
const open = onEngine(m, "open");
const cloud = onEngine(m, "cloud");
expect(open.options.controls?.[0]).toMatchObject({ param: "denoise", values: [0.45, 0.65, 0.85], default: 0.65, labels: { "0.45": "Low", "0.65": "Medium", "0.85": "High" } });
- expect(cloud.options.controls?.[0]).toMatchObject({ param: "video_strength", values: [0.55, 0.35, 0.15], default: 0.35 });
+ expect(cloud.options.controls).toBeUndefined();
+ expect(EVOLUTION_CLOUD_NOTE).toMatch(/^In the cloud the change level shapes each piece's direction frame; .* set on your GPU only$/);
expect(open.options.resolutions).toEqual(["480p", "720p"]);
- expect(cloud.options.resolutions).toEqual(["480p", "720p", "1080p"]);
+ expect(cloud.options.resolutions).toEqual(["480p", "580p", "720p"]);
expect(open.defaults?.resolution).toBe("480p");
+ expect(cloud.defaults?.resolution).toBe("720p");
+ // The GPU keeps its full recipe: the direction frame is required there, optional in the composer's cloud.
+ expect(open.options.requires?.images).toBe(1);
+ expect(cloud.options.requires).toBeUndefined();
+ expect(cloud.options.maxImages).toBe(1);
});
- it("the fal payload: silent, 24 fps, frames from the piece's length, the tier's size, video_strength from the step", () => {
+ it("the fal payload: the piece by its depth, the direction frame as the first frame, frames and rate kept; billed on frames ÷ 16", () => {
const cloud = onEngine(m, "cloud");
const p = planGeneration(
- { feature: "evolution", modelId: m.id, op: "v2v", prompt: "a night market", inputs: { video: "https://x/clip.mp4" }, params: { aspectRatio: "9:16", resolution: "720p", duration: 10, extra: { video_strength: 0.15 } } },
+ { feature: "evolution", modelId: m.id, op: "v2v", prompt: "a night market", inputs: { video: "https://x/clip.mp4", images: ["https://x/frame.png"] }, params: { resolution: "720p", duration: 15 } },
(id) => (id === m.id ? cloud : getModel(id)),
getPreset,
);
const route = cloud.routes.find((r) => r.op === "v2v")!;
- const body = buildPayload(route.map!, { ...p.params, prompt: p.prompt, video: "https://x/clip.mp4" });
+ const body = buildPayload(route.map!, { ...p.params, prompt: p.prompt, video: "https://x/clip.mp4", images: ["https://x/frame.png"] });
expect(body).toMatchObject({
prompt: "a night market",
video_url: "https://x/clip.mp4",
- video_size: { width: 704, height: 1280 },
- num_frames: 241,
- fps: 24,
- generate_audio: false,
- match_video_length: false,
- match_input_fps: false,
- enable_prompt_expansion: false,
- video_strength: 0.15,
+ first_frame_url: "https://x/frame.png",
+ resolution: "720p",
+ preprocess: true,
+ match_input_num_frames: true,
+ match_input_frames_per_second: true,
});
- // $0.001605 per megapixel of video: 704 × 1280 × 241 frames ≈ 217.2 MP, rounded up.
- expect(estimateCost(cloud, { aspectRatio: "9:16", resolution: "720p", duration: 10 }, 1, "v2v")).toBeCloseTo(218 * 0.001605, 3);
+ expect(body).not.toHaveProperty("ref_image_urls");
+ expect(body).not.toHaveProperty("aspect_ratio");
+ expect(body).not.toHaveProperty("video_strength");
+ // $0.10 a video second at 720p, $0.075 at 580p, $0.05 at 480p.
+ expect(estimateCost(cloud, { resolution: "720p", duration: 15 }, 1, "v2v")).toBeCloseTo(1.5, 5);
+ expect(estimateCost(cloud, { resolution: "480p", duration: 15 }, 1, "v2v")).toBeCloseTo(0.75, 5);
expect(estimateCost(onEngine(m, "open"), { resolution: "480p", duration: 5 }, 1, "v2v")).toBe(0);
});
});
describe("Fuobe Evolution: the plan", () => {
- it("cloud, the whole clip in one piece: evolved straight from the upload, then the clip's sound put back", () => {
- const p = plan();
+ it("cloud, the whole clip in one piece: its first frame toward the direction on Qwen-Image-Edit 2511, VACE from the upload, then the sound", () => {
+ const short = { ...clip, duration: 8 };
+ const p = plan({ source: short, range: { start: 0, end: 8 } });
expect(p.pieces).toBe(1);
- expect(p.steps.map((s) => `${s.key}:${s.request.modelId}`)).toEqual(["evolve0:fuobe-evolution", "final:merge-audio-video"]);
- const e = step(p, "evolve0").request;
- expect(e).toMatchObject({ engine: "cloud", op: "v2v", feature: "evolution-step", inputs: { video: clip.url }, params: { aspectRatio: "16:9", resolution: "720p", duration: 12, extra: { video_strength: 0.35 } } });
- expect(e.inputs?.images).toBeUndefined();
+ expect(p.steps.map((s) => `${s.key}:${s.request.modelId}`)).toEqual([
+ "still0:extract-frame",
+ "frame0:qwen-image-edit-2511-cloud",
+ "evolve0:fuobe-evolution",
+ "final:merge-audio-video",
+ ]);
+ expect(step(p, "still0").request).toMatchObject({ op: "frame", inputs: { video: clip.url }, params: { extra: { frame_type: "first" } } });
+ const frame = step(p, "frame0");
+ // The GPU's frame instruction for the intensity, the first three references as images 2–4.
+ expect(EVOLUTION.cloudReferences).toBe(3);
+ expect(frame.request).toMatchObject({ op: "edit", feature: "evolution-step", inputs: { images: refs.slice(0, 3) } });
+ expect(frame.request.prompt).toBe(directionFramePrompt("A neon-lit night market in the rain.", "medium", 3));
+ expect(frame).toMatchObject({ after: ["still0"], chain: [{ slot: "images", position: "first" }] });
+ const e = step(p, "evolve0");
+ // 8 s at 30 fps = 240 frames, billed as 240 ÷ 16 = 15 video seconds.
+ expect(e.request).toMatchObject({ engine: "cloud", op: "v2v", feature: "evolution-step", inputs: { video: clip.url }, params: { resolution: "720p", duration: 15, sourceDuration: 8 } });
+ expect(e.request.params?.aspectRatio).toBeUndefined();
+ expect(e.request.params?.extra).toBeUndefined();
+ expect(e).toMatchObject({ after: ["frame0"], chain: [{ slot: "images", position: "first" }] });
expect(p.final).toBe("final");
expect(step(p, "final").request).toMatchObject({ feature: "evolution", title: "Evolution", inputs: { audio: clip.url } });
- expect(p.referencesUsed).toBe(0);
+ expect(p.referencesUsed).toBe(3);
});
- it("cloud, 30 s: two 15 s pieces cut, evolved, joined, the sound back; a silent clip needs no mux", () => {
+ it("cloud, 30 s at 30 fps: four ≤8 s pieces, each cut, its own direction frame, evolved, joined, the sound back", () => {
const long = { ...clip, duration: 30 };
- const p = plan({ source: long, range: { start: 0, end: 30 }, intensity: "high", resolution: "1080p" });
- expect(p.pieces).toBe(2);
- expect(p.steps.map((s) => s.key)).toEqual(["cut0", "evolve0", "cut1", "evolve1", "join", "final"]);
- expect(step(p, "evolve1").request.params).toMatchObject({ duration: 15, resolution: "1080p", extra: { video_strength: 0.15 } });
- expect(step(p, "evolve1")).toMatchObject({ after: ["cut1"], chain: [{ slot: "video" }] });
+ const p = plan({ source: long, range: { start: 0, end: 30 }, intensity: "high", resolution: "480p" });
+ expect(p.pieces).toBe(4);
+ expect(p.steps.filter((s) => s.request.modelId === "qwen-image-edit-2511-cloud")).toHaveLength(4);
+ expect(p.steps.slice(0, 4).map((s) => s.key)).toEqual(["cut0", "still0", "frame0", "evolve0"]);
+ expect(step(p, "frame1").request.prompt).toMatch(/^Reimagine image 1 boldly in this direction/);
+ expect(step(p, "evolve1").request.params).toMatchObject({ resolution: "480p", sourceDuration: 7.5, duration: 14.0625 });
+ expect(step(p, "evolve1")).toMatchObject({ after: ["cut1", "frame1"], chain: [{ slot: "video" }, { slot: "images", position: "first" }] });
+ expect(step(p, "still1")).toMatchObject({ after: ["cut1"], chain: [{ slot: "video" }] });
+ expect(p.steps.at(-1)!.key).toBe("final");
const silent = plan({ source: { ...long, hasAudio: false }, range: { start: 0, end: 30 } });
expect(silent.final).toBe("join");
expect(step(silent, "join").request).toMatchObject({ feature: "evolution", title: "Evolution" });
});
- it("cloud: the clip's shape picks the nearest LTX-2.3 shape", () => {
- expect(nearestShape(1080, 1920)).toBe("9:16");
- expect(nearestShape(2560, 1080)).toBe("21:9");
- expect(nearestShape(1000, 1000)).toBe("1:1");
- expect(nearestShape(1440, 1080)).toBe("4:3");
- expect(nearestShape()).toBe("16:9");
- expect(step(plan({ source: { ...clip, width: 1080, height: 1920 } }), "evolve0").request.params?.aspectRatio).toBe("9:16");
+ it("cloud: a clip above 30 fps is worked at a fraction of its rate, as fal's VACE takes it", () => {
+ const p = plan({ source: { ...clip, fps: 60, duration: 8 }, range: { start: 0, end: 8 } });
+ expect(step(p, "evolve0").request.params?.extra).toEqual({ temporal_downsample_factor: 1 });
+ expect(evolutionProblem({ engine: "cloud", source: { duration: 12, fps: 4 }, range: { start: 0, end: 12 }, references: 0 })).toMatch(/at least 5 fps/);
+ expect(evolutionProblem({ engine: "open", source: { duration: 12, fps: 4 }, range: { start: 0, end: 12 }, references: 0 })).toBeNull();
});
it("GPU: per ≤81-frame segment, cut at 16 fps, the direction frame with three references, the graph at the intensity's denoise", () => {
@@ -161,7 +194,7 @@ describe("Fuobe Evolution: the plan", () => {
it("a part of the clip: only that part, and its own sound", () => {
const p = plan({ range: { start: 2, end: 8 } });
- expect(p.steps.map((s) => s.key)).toEqual(["cut0", "evolve0", "sound", "final"]);
+ expect(p.steps.map((s) => s.key)).toEqual(["cut0", "still0", "frame0", "evolve0", "sound", "final"]);
expect(step(p, "cut0").request.params).toMatchObject({ startTime: 2, endTime: 8 });
});
@@ -173,6 +206,7 @@ describe("Fuobe Evolution: the plan", () => {
expect(evolutionProblem({ ...ok, references: 41 })).toBe("Use up to 40 references");
expect(evolutionProblem({ ...ok, direction: "x".repeat(10_001) })).toMatch(/under 10,000 characters/);
expect(evolutionProblem({ ...ok, engine: "open", resolution: "1080p" })).toMatch(/isn't offered on your GPU/);
+ expect(evolutionProblem({ ...ok, resolution: "1080p" })).toBe("1080p isn't offered in the cloud — pick 480p, 580p or 720p");
});
});
@@ -187,7 +221,7 @@ describe("Fuobe Evolution: the direction", () => {
expect(directionPrompt(" short one ").text).toBe("short one");
});
- it("the GPU frame prompt follows the intensity", () => {
+ it("the frame prompt (both engines) follows the intensity", () => {
expect(directionFramePrompt("a snowy village", "high", 0)).toBe("Reimagine image 1 boldly in this direction: a snowy village. Keep the composition and the poses of image 1.");
expect(directionFramePrompt("a snowy village", "medium", 1)).toMatch(/^Change image 1 toward this direction: a snowy village\. .* image 2 where they fit\.$/);
});