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.

Hosted Wan routes: move to fal's named successors before 2027-01-04

Adarshaf0791f20fc5
diff --git a/public/starters/ex.couture-400-hours/1/voice.m4a b/public/starters/ex.couture-400-hours/1/voice.m4a
new file mode 100644
index 00000000..0f69356d
Binary files /dev/null and b/public/starters/ex.couture-400-hours/1/voice.m4a differ
diff --git a/public/starters/faceless.couture-icons/1/voice.m4a b/public/starters/faceless.couture-icons/1/voice.m4a
new file mode 100644
index 00000000..0f69356d
Binary files /dev/null and b/public/starters/faceless.couture-icons/1/voice.m4a differ
diff --git a/scripts/eval/cases/genjutsu.json b/scripts/eval/cases/genjutsu.json
index 864ee3b0..342888e5 100644
--- a/scripts/eval/cases/genjutsu.json
+++ b/scripts/eval/cases/genjutsu.json
@@ -2,7 +2,7 @@
"$schema": "./case.schema.json",
"suite": "genjutsu",
"title": "Fuobe Genjutsu · motion transfer, character swap, object swap, restyle",
- "description": "Runs the Genjutsu studio route (POST /api/genjutsu, priced by /api/genjutsu/estimate) on your reference clips and images in local/genjutsu/: dance.mp4 (a 4–10 s clip of one person moving), person.mp4 (5–15 s, one continuous shot, the person visible in its first frame), character.png (who should move like that or take their place, a consenting person or a drawn character), street.mp4 (a clip with an object to swap), object.png (what replaces it), style.png (a look image you own). The Originals (O5) run on both engines: open weights on ComfyUI (Wan Animate 2, MiniMax H3 Character swap, Wan 2.1 VACE with SAM 3.1, Wan 2.2 Fun VACE) and the same open models hosted on fal (Wan 2.2 Animate, MiniMax H3 with Akatz Labs' swap LoRA, Wan VACE). The -lite cases run an Original's cheaper, faster tier on the same inputs (motion and object swap have one); the partner variant runs each mode's partner model on fal for reference (Kling 3.0 Motion Control, MiniMax H3 Max Recast, Kling O3 edit, Kling O3 4K edit). A job is skipped when the studio would pick another model than the one named.",
+ "description": "Runs the Genjutsu studio route (POST /api/genjutsu, priced by /api/genjutsu/estimate) on your reference clips and images in local/genjutsu/: dance.mp4 (a 4–10 s clip of one person moving), person.mp4 (5–15 s, one continuous shot, the person visible in its first frame), character.png (who should move like that or take their place, a consenting person or a drawn character), street.mp4 (a clip with an object to swap), object.png (what replaces it), style.png (a look image you own). The Originals (O5) run on both engines: open weights on ComfyUI (Wan Animate 2, MiniMax H3 Character swap, Wan 2.1 VACE with SAM 3.1, Wan 2.2 Fun VACE) and hosted models on fal (MiniMax H3 Max Recast for motion, MiniMax H3 with Akatz Labs' swap LoRA, Wan VACE). The -lite cases run an Original's cheaper, faster tier on the same inputs (motion and object swap have one); the partner variant runs each mode's partner model on fal for reference (Kling 3.0 Motion Control, MiniMax H3 Max Recast, Kling O3 edit, Kling O3 4K edit). A job is skipped when the studio would pick another model than the one named.",
"original": [
"fuobe-genjutsu-motion",
"fuobe-character-swap",
diff --git a/scripts/gen-cloud-models.py b/scripts/gen-cloud-models.py
index f7af70a1..5277fde7 100644
--- a/scripts/gen-cloud-models.py
+++ b/scripts/gen-cloud-models.py
@@ -310,9 +310,12 @@ model("flux-2-klein-4b-cloud", "FLUX.2 [klein] 4B (hosted)", "Black Forest Labs"
# Its edit takes "a maximum of 4 images".
("edit", "fal-ai/flux-2/klein/4b/edit", "fal", {"loraEndpoint": "fal-ai/flux-2/klein/4b/edit/lora", "max_images": 4})],
badges=["fast"], defaults={"aspectRatio": "1:1"}, options={"maxImages": 4})
-model("wan-2-2-a14b-image-cloud", "Wan 2.2 A14B Image (hosted)", "Alibaba Wan", "wan", "image",
- "Open-weights Wan 2.2 stills that take Wan LoRAs",
- [("t2i", "fal-ai/wan/v2.2-a14b/text-to-image/lora", "fal")], defaults={"aspectRatio": "16:9"})
+# fal retires Wan 2.2 A14B on 2027-01-04 and names Wan 2.7 text to image as its successor: the hosted route runs Wan 2.7,
+# which takes no LoRAs (a run's LoRAs are left out with a note: fitLoras). "$0.03 per image" (fal's model page, 2026-11-07).
+model("wan-2-2-a14b-image-cloud", "Wan 2.2 A14B Image (hosted · Wan 2.7)", "Alibaba Wan", "wan", "image",
+ "Wan stills in the cloud, made by Wan 2.7 on fal; it takes no LoRAs",
+ [("t2i", "fal-ai/wan/v2.7/text-to-image", "fal", {"note": "Wan 2.7 on fal · no LoRAs"})], defaults={"aspectRatio": "16:9"},
+ pricing=("image", 0.03, "per image (Wan 2.7 on fal)"))
# Soul ID on every base fal trains (O3, o/soul-id): a character or style LoRA trained on FLUX.1 [dev], FLUX.2 [dev],
# Krea 2 or FLUX.2 [klein] 9B runs on these. The weights' licences are information on Thanks & licences, never a gate
# (the owner's decision of 2026-10-27): FLUX [dev] and klein 9B weights are non-commercial (fal clears its own hosted
@@ -845,32 +848,39 @@ model("fuobe-cinema", "Fuobe Cinema", "Fuobe Original", "fuobe-cinema", "video",
{"byResolution": CINEMA_PER_SECOND, "withLoras": CINEMA_PER_SECOND_LORA["720p"], "withLorasByResolution": CINEMA_PER_SECOND_LORA,
"videoMegapixel": {"usd": CINEMA_MP, "withLoras": CINEMA_MP_LORA}}),
defaults={"aspectRatio": "16:9", "duration": 5, "resolution": "720p"}, frame_step=8)
-# ----- Originals (O5): Fuobe Genjutsu's cloud halves on hosted open weights (research §8 genjutsu, build plan O5;
-# docs/research/openjutsu-6.md §8 for the Character swap). Motion transfer on Wan 2.2 Animate (fal bills frames ÷ 16 as
-# "video seconds"), Object swap on Wan 2.1 VACE 14B inpainting with SAM 3.1's mask video, Restyle on Wan 2.2 Fun VACE
-# depth from a restyled first frame, Character swap on MiniMax H3 with Akatz Labs' Character Swap LoRA. Lite is the
-# cheaper, faster tier of the same Original: 480p (and fal's turbo pass on Animate).
-_ANIMATE_PRICE = {"byResolution": {"720p": 0.08, "580p": 0.06, "480p": 0.04}}
+# ----- Originals (O5): Fuobe Genjutsu's cloud halves (research §8 genjutsu, build plan O5; docs/research/openjutsu-6.md §8
+# for the Character swap). Motion transfer on MiniMax H3 Max Recast (fal retires Wan 2.2 Animate on 2027-01-04 and names
+# Recast as its successor: the character photo takes over the clip's performance in the clip's own setting, sound kept;
+# 5-30 s, no shot over 15 s), Object swap on Wan 2.1 VACE 14B inpainting with SAM 3.1's mask video, Restyle on Wan 2.2
+# Fun VACE depth from a restyled first frame, Character swap on MiniMax H3 with Akatz Labs' Character Swap LoRA. Lite is
+# the cheaper, faster tier of the same Original: 768p on Recast, 480p on VACE.
_FRAMES16 = "fal bills frames ÷ 16 as video seconds: a 30 fps clip costs about 1.9× its length"
+# fal retires the Wan 2.1 / 2.2 line on 2027-01-04. VACE's masked inpainting and depth-guided restyle have no hosted
+# successor that does the same job (fal points VACE inpainting at H3 Max's insert-a-moment and the depth route at Recast,
+# a person swap), so those routes stay on Wan VACE and say when they end, before a run.
+WAN_ENDS = "Wan VACE runs on fal until 4 January 2027"
+_RECAST_PRICE = {"byResolution": {"768p": 0.3, "1080p": 0.45}}
model("fuobe-genjutsu-motion", "Fuobe Genjutsu · Motion", "Fuobe Original", "fuobe-genjutsu", "video",
- "Your character performs the clip's moves with its camera and framing: Wan 2.2 Animate",
- [("motion-transfer", "fal-ai/wan/v2.2-14b/animate/move")],
- original=True, fit_values=True, pricing=("second", 0.08, f"720p; 580p $0.06, 480p $0.04 · {_FRAMES16}", _ANIMATE_PRICE),
- defaults={"resolution": "720p"})
+ "Your character takes over the clip's performance, in the clip's own setting with its sound: MiniMax H3 Max Recast",
+ [("motion-transfer", "minimax/h3-max/recast")],
+ original=True, fit_values=True, prompt_max=2000, options={"promptOptional": True},
+ pricing=("second", 0.45, "1080p; 768p $0.30/s · 5–30 s, no shot over 15 s", _RECAST_PRICE),
+ defaults={"resolution": "1080P"})
model("fuobe-genjutsu-motion-lite", "Fuobe Genjutsu Lite · Motion", "Fuobe Original", "fuobe-genjutsu", "video",
- "The quick tier: Wan 2.2 Animate at 480p with fal's turbo pass",
- [("motion-transfer", "fal-ai/wan/v2.2-14b/animate/move", "fal", {"fixed": {"use_turbo": True, "resolution": "480p"}})],
- original=True, pricing=("second", 0.04, f"480p · {_FRAMES16}"), options={"resolutions": ["480p"]}, defaults={"resolution": "480p"})
+ "The quick tier: MiniMax H3 Max Recast at 768p",
+ [("motion-transfer", "minimax/h3-max/recast", "fal", {"fixed": {"resolution": "768P"}})],
+ original=True, prompt_max=2000, pricing=("second", 0.3, "768p · 5–30 s, no shot over 15 s"),
+ options={"resolutions": ["768p"], "promptOptional": True}, defaults={"resolution": "768p"})
_VACE14 = "fal-ai/wan-vace-14b/inpainting"
_VACE14_PRICE = {"byResolution": {"720p": 0.08, "580p": 0.06, "480p": 0.04}}
model("fuobe-genjutsu-swap", "Fuobe Genjutsu · Swap", "Fuobe Original", "fuobe-genjutsu", "video",
"A thing, a person or an outfit becomes your reference: SAM 3.1 follows it, Wan VACE paints it in",
- [("video-swap", _VACE14, "fal", {"keys": {"mask": "mask_video_url"}})],
+ [("video-swap", _VACE14, "fal", {"keys": {"mask": "mask_video_url"}, "note": WAN_ENDS})],
original=True, fit_values=True, pricing=("second", 0.08, f"720p; 580p $0.06, 480p $0.04 · {_FRAMES16}; SAM 3.1's mask $0.01 per 16 frames", _VACE14_PRICE),
api_defaults={"match_input_num_frames": True, "match_input_frames_per_second": True}, defaults={"resolution": "720p"})
model("fuobe-genjutsu-swap-lite", "Fuobe Genjutsu Lite · Swap", "Fuobe Original", "fuobe-genjutsu", "video",
"The quick tier: Wan VACE at 480p with fal's accelerated sampling",
- [("video-swap", _VACE14, "fal", {"keys": {"mask": "mask_video_url"}, "fixed": {"resolution": "480p", "acceleration": "regular"}})],
+ [("video-swap", _VACE14, "fal", {"keys": {"mask": "mask_video_url"}, "fixed": {"resolution": "480p", "acceleration": "regular"}, "note": WAN_ENDS})],
original=True, pricing=("second", 0.04, f"480p · {_FRAMES16}"), options={"resolutions": ["480p"]},
api_defaults={"match_input_num_frames": True, "match_input_frames_per_second": True}, defaults={"resolution": "480p"})
# fal's Wan 2.2 Fun VACE depth endpoint reads video_url as the depth control unless preprocess is on (its example input is
@@ -879,7 +889,7 @@ model("fuobe-genjutsu-swap-lite", "Fuobe Genjutsu Lite · Swap", "Fuobe Original
SHORTS_O = next(s for s in ORIGINALS["studios"] if s["id"] == "shorts")["original"]
model("fuobe-genjutsu-restyle", "Fuobe Genjutsu · Restyle", "Fuobe Original", "fuobe-genjutsu", "video",
"Every frame takes the look of a restyled first frame, motion kept by depth: Wan 2.2 Fun VACE",
- [("v2v", "fal-ai/wan-22-vace-fun-a14b/depth", "fal", {"fixed": SHORTS_O["cloud"]["fixed"]})],
+ [("v2v", "fal-ai/wan-22-vace-fun-a14b/depth", "fal", {"fixed": SHORTS_O["cloud"]["fixed"], "note": WAN_ENDS})],
original=True, fit_values=True, pricing=("second", 0.1, f"720p; 580p $0.075, 480p $0.05 · {_FRAMES16}; the first frame's restyle is priced on its own",
{"byResolution": {"720p": 0.1, "580p": 0.075, "480p": 0.05}}),
api_defaults={"match_input_num_frames": True, "match_input_frames_per_second": True}, defaults={"resolution": "720p"},
@@ -909,7 +919,7 @@ model("fuobe-mixed-media", "Fuobe Mixed Media", "Fuobe Original", "fuobe-mixed-m
# and fal derives the depth from the cut (preprocess, fixed).
model("fuobe-shorts", "Fuobe Shorts", "Fuobe Original", "fuobe-shorts", "video",
"Your footage in a new look, motion kept: a restyled first frame carried through every frame by depth (Wan 2.2 Fun VACE)",
- [("v2v", SHORTS_O["cloud"]["restyle"], "fal", {"drop": ["aspectRatio", "images"], "fixed": SHORTS_O["cloud"]["fixed"]})],
+ [("v2v", SHORTS_O["cloud"]["restyle"], "fal", {"drop": ["aspectRatio", "images"], "fixed": SHORTS_O["cloud"]["fixed"], "note": WAN_ENDS})],
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"])
@@ -925,7 +935,7 @@ model("fuobe-shorts", "Fuobe Shorts", "Fuobe Original", "fuobe-shorts", "video",
EVOLUTION = next(s for s in ORIGINALS["studios"] if s["id"] == "evolution")["original"]["cloud"]
model("fuobe-evolution", "Fuobe Evolution", "Fuobe Original", "fuobe-evolution", "video",
"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", "image"], "fixed": EVOLUTION["fixed"]})],
+ [("v2v", EVOLUTION["endpoint"], "fal", {"drop": ["aspectRatio", "image"], "fixed": EVOLUTION["fixed"], "note": WAN_ENDS})],
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"},
@@ -1014,8 +1024,8 @@ model("luma-ray-3-2", "Luma Ray 3.2", "Luma", "luma", "video", "HDR, physically
defaults={"aspectRatio": "16:9"})
model("ltx-reframe", "LTX Reframe", "Lightricks", "ltx", "video", "Change a clip's aspect ratio — fast, no prompt needed",
[("reframe", "fal-ai/ltx-2.3/reframe")], defaults={"aspectRatio": "9:16"})
-model("wan-vace-reframe", "Wan VACE Reframe (hosted)", "Alibaba Wan", "wan", "video", "Open-weights reframe: outpaints the new edges with a prompt",
- [("reframe", "fal-ai/wan-vace-14b/reframe")], defaults={"aspectRatio": "9:16"})
+# Wan VACE Reframe (fal-ai/wan-vace-14b/reframe) left with fal's Wan 2.1 / 2.2 line (removed 2027-01-04): fal names H3 Max
+# Reframe (minimax-h3-max-reframe) as its successor, and src/lib/catalog/replaced.ts sends a stored wan-vace-reframe there.
# ----- Video restyle / edit (research part 3; Shorts Studio, Mixed Media, Ad Multiplier)
# fal: "$0.28/second ($0.14 per input second and 0.14 per output second)" at 720p, $0.56 at 1080p: the whole price
@@ -1402,9 +1412,9 @@ model("ltx-2-3-clean-plate", "LTX 2.3 Clean Plate", "Lightricks", "ltx", "video"
_VACE = "fal-ai/wan-22-vace-fun-a14b/inpainting"
_VACE_KEYS = {"keys": {"mask": "mask_image_url"}, "drop": ["image", "endImage"]}
model("wan-22-vace-inpaint", "Wan 2.2 VACE Fun Inpaint (hosted)", "Alibaba Wan", "wan", "video",
- "Paint an area on the first frame: erase it, or swap or add something from a reference image",
- [("remove-object", _VACE, "fal", {**_VACE_KEYS, "drop": ["image", "endImage", "images", "prompt"], "defaults": {"prompt": SCENE_AFTER_REMOVAL}}),
- ("video-swap", _VACE, "fal", _VACE_KEYS), ("video-insert", _VACE, "fal", _VACE_KEYS)],
+ f"Paint an area on the first frame: erase it, or swap or add something from a reference image · {WAN_ENDS}",
+ [("remove-object", _VACE, "fal", {**_VACE_KEYS, "drop": ["image", "endImage", "images", "prompt"], "defaults": {"prompt": SCENE_AFTER_REMOVAL}, "note": WAN_ENDS}),
+ ("video-swap", _VACE, "fal", {**_VACE_KEYS, "note": WAN_ENDS}), ("video-insert", _VACE, "fal", {**_VACE_KEYS, "note": WAN_ENDS})],
# "Video seconds calculated at 16 frames per second": the clip keeps its own frame rate, so a 30 fps clip bills ~1.9x its length.
pricing=("second", 0.1, "720p, billed as frames ÷ 16 (a 30 fps clip costs about 1.9× its length); 580p $0.075, 480p $0.05",
{"byResolution": {"720p": 0.1, "580p": 0.075, "480p": 0.05}}),
@@ -1425,12 +1435,10 @@ model("p-video-replace", "P-Video Replace", "Pruna AI", "p-video", "video",
pricing=("second", 0.03, "720p; 1080p $0.06", {"byResolution": {"720p": 0.03, "1080p": 0.06}}), defaults={"resolution": "720p"},
# "Identity reference image(s) (1-3)".
options={"maxImages": 3})
-# Genjutsu's hosted open alternatives (O5): Wan 2.2 Animate Replace and SCAIL-2 for people, Wan Motion with pose
-# retargeting; and MiniMax's own person swap, H3 Max Recast (a partner model: closed weights).
-model("wan-22-animate-replace", "Wan 2.2 Animate Replace (hosted)", "Alibaba Wan", "wan", "video",
- "Swaps the person on camera for your character, lighting matched to the scene",
- [("video-swap", "fal-ai/wan/v2.2-14b/animate/replace")], fit_values=True,
- pricing=("second", 0.08, f"720p; 580p $0.06, 480p $0.04 · {_FRAMES16}", _ANIMATE_PRICE), defaults={"resolution": "720p"})
+# Genjutsu's hosted open alternatives (O5): SCAIL-2 for people, Wan Motion with pose retargeting; and MiniMax's own person
+# swap, H3 Max Recast (a partner model: closed weights). Wan 2.2 Animate Replace (fal-ai/wan/v2.2-14b/animate/replace) left
+# with fal's Wan 2.1 / 2.2 line (removed 2027-01-04): fal names Recast as its successor, and src/lib/catalog/replaced.ts
+# sends a stored wan-22-animate-replace there.
_SCAIL_PROMPT = "The reference character performs the motion of the video"
model("scail-2", "SCAIL-2 (hosted)", "SCAIL", "scail", "video",
"Character animation without skeletons: humans, several people or animals; or replace the person",
@@ -2797,5 +2805,6 @@ ts = (
"/** The Fuobe Originals' cloud halves (hosted open weights): models.ts joins each to its ComfyUI routes. */\n"
f"export const ORIGINAL_CLOUD: ModelDef[] = {json.dumps(originals, indent=2)};\n"
)
-(ROOT / "src/lib/catalog/cloud-models.generated.ts").write_text(ts)
+# LF on every platform (Windows would write CRLF), so a second run leaves the file as it is.
+(ROOT / "src/lib/catalog/cloud-models.generated.ts").write_text(ts, encoding="utf-8", newline="\n")
print(f"wrote {len(out)} cloud models and {len(originals)} Originals' cloud halves")
diff --git a/src/lib/av/katana.ts b/src/lib/av/katana.ts
index 8a06e1ad..741f301f 100644
--- a/src/lib/av/katana.ts
+++ b/src/lib/av/katana.ts
@@ -32,7 +32,8 @@ export interface MotionModel {
export const MOTION_MODELS: Record<Engine, MotionModel[]> = {
cloud: [
{ id: "kling-o3", label: "Kling O3 edit", op: "v2v", min: 3, max: 10, maxRefs: 4 },
- { id: "fuobe-genjutsu-motion", label: "Fuobe Genjutsu · Motion", op: "motion-transfer", min: 3, max: 10, maxRefs: 1 },
+ // MiniMax H3 Max Recast in the cloud: 5 to 30 s a call (a segment is one shot, never over 15 s).
+ { id: "fuobe-genjutsu-motion", label: "Fuobe Genjutsu · Motion", op: "motion-transfer", min: 5, max: 10, maxRefs: 1 },
{ id: "kling-motion-control", label: "Kling 3.0 Motion Control", op: "motion-transfer", min: 3, max: 10, maxRefs: 1 },
],
open: [
diff --git a/src/lib/catalog/cloud-models.generated.ts b/src/lib/catalog/cloud-models.generated.ts
index 4f063d40..a4548cf2 100644
--- a/src/lib/catalog/cloud-models.generated.ts
+++ b/src/lib/catalog/cloud-models.generated.ts
@@ -2917,19 +2917,20 @@ export const CLOUD_MODELS: ModelDef[] = [
},
{
"id": "wan-2-2-a14b-image-cloud",
- "name": "Wan 2.2 A14B Image (hosted)",
+ "name": "Wan 2.2 A14B Image (hosted \u00b7 Wan 2.7)",
"vendor": "Alibaba Wan",
"family": "wan",
"engine": "cloud",
"kind": "image",
- "tagline": "Open-weights Wan 2.2 stills that take Wan LoRAs",
+ "tagline": "Wan stills in the cloud, made by Wan 2.7 on fal; it takes no LoRAs",
"routes": [
{
"op": "t2i",
"provider": "fal",
- "endpoint": "fal-ai/wan/v2.2-a14b/text-to-image/lora",
+ "endpoint": "fal-ai/wan/v2.7/text-to-image",
"map": {
"negativePrompt": "negative_prompt",
+ "numOutputs": "num_images",
"seed": "seed",
"aspectRatio": {
"key": "image_size",
@@ -2946,17 +2947,9 @@ export const CLOUD_MODELS: ModelDef[] = [
"4:5": "portrait_4_3"
}
},
- "loras": {
- "shape": "items",
- "key": "loras",
- "range": {
- "min": 0,
- "max": 4
- },
- "transformer": "high",
- "weightName": true
- }
- }
+ "promptMax": 2000
+ },
+ "note": "Wan 2.7 on fal \u00b7 no LoRAs"
}
],
"options": {
@@ -2973,20 +2966,16 @@ export const CLOUD_MODELS: ModelDef[] = [
"21:9",
"5:4",
"4:5"
- ]
- },
- "licence": {
- "licence": "Apache-2.0",
- "commercial": true,
- "note": "Wan 2.1 / 2.2 weights are Apache-2.0",
- "checked": "2026-10-23"
+ ],
+ "maxOutputs": 4
},
"defaults": {
"aspectRatio": "16:9"
},
"pricing": {
"unit": "image",
- "usd": 0.05
+ "usd": 0.03,
+ "note": "per image (Wan 2.7 on fal)"
}
},
{
@@ -11878,58 +11867,6 @@ export const CLOUD_MODELS: ModelDef[] = [
"usd": 0.1
}
},
- {
- "id": "wan-vace-reframe",
- "name": "Wan VACE Reframe (hosted)",
- "vendor": "Alibaba Wan",
- "family": "wan",
- "engine": "cloud",
- "kind": "video",
- "tagline": "Open-weights reframe: outpaints the new edges with a prompt",
- "routes": [
- {
- "op": "reframe",
- "provider": "fal",
- "endpoint": "fal-ai/wan-vace-14b/reframe",
- "map": {
- "negativePrompt": "negative_prompt",
- "image": "first_frame_url",
- "endImage": "last_frame_url",
- "video": "video_url",
- "seed": "seed",
- "aspectRatio": "aspect_ratio",
- "resolution": "resolution"
- }
- }
- ],
- "options": {
- "negativePrompt": true,
- "seed": true,
- "endFrame": true,
- "aspectRatios": [
- "auto",
- "16:9",
- "1:1",
- "9:16"
- ],
- "resolutions": [
- "auto",
- "240p",
- "360p",
- "480p",
- "580p",
- "720p"
- ],
- "maxImages": 1
- },
- "defaults": {
- "aspectRatio": "9:16"
- },
- "pricing": {
- "unit": "video",
- "usd": 0.08
- }
- },
{
"id": "happy-horse-video-edit",
"name": "Happy Horse Video Edit",
@@ -19429,7 +19366,7 @@ export const CLOUD_MODELS: ModelDef[] = [
"family": "wan",
"engine": "cloud",
"kind": "video",
- "tagline": "Paint an area on the first frame: erase it, or swap or add something from a reference image",
+ "tagline": "Paint an area on the first frame: erase it, or swap or add something from a reference image \u00b7 Wan VACE runs on fal until 4 January 2027",
"routes": [
{
"op": "remove-object",
@@ -19456,7 +19393,8 @@ export const CLOUD_MODELS: ModelDef[] = [
"match_input_frames_per_second": true,
"prompt": "The same shot with nothing there: the background continues naturally, matching the light, texture and motion around it"
}
- }
+ },
+ "note": "Wan VACE runs on fal until 4 January 2027"
},
{
"op": "video-swap",
@@ -19482,7 +19420,8 @@ export const CLOUD_MODELS: ModelDef[] = [
"match_input_num_frames": true,
"match_input_frames_per_second": true
}
- }
+ },
+ "note": "Wan VACE runs on fal until 4 January 2027"
},
{
"op": "video-insert",
@@ -19508,7 +19447,8 @@ export const CLOUD_MODELS: ModelDef[] = [
"match_input_num_frames": true,
"match_input_frames_per_second": true
}
- }
+ },
+ "note": "Wan VACE runs on fal until 4 January 2027"
}
],
"options": {
@@ -19630,59 +19570,6 @@ export const CLOUD_MODELS: ModelDef[] = [
}
}
},
- {
- "id": "wan-22-animate-replace",
- "name": "Wan 2.2 Animate Replace (hosted)",
- "vendor": "Alibaba Wan",
- "family": "wan",
- "engine": "cloud",
- "kind": "video",
- "tagline": "Swaps the person on camera for your character, lighting matched to the scene",
- "routes": [
- {
- "op": "video-swap",
- "provider": "fal",
- "endpoint": "fal-ai/wan/v2.2-14b/animate/replace",
- "map": {
- "prompt": false,
- "image": "image_url",
- "video": "video_url",
- "seed": "seed",
- "resolution": {
- "key": "resolution",
- "accepts": [
- "480p",
- "580p",
- "720p"
- ]
- }
- }
- }
- ],
- "options": {
- "seed": true,
- "resolutions": [
- "480p",
- "580p",
- "720p"
- ],
- "maxImages": 1,
- "promptless": true
- },
- "defaults": {
- "resolution": "720p"
- },
- "pricing": {
- "unit": "second",
- "usd": 0.08,
- "note": "720p; 580p $0.06, 480p $0.04 \u00b7 fal bills frames \u00f7 16 as video seconds: a 30 fps clip costs about 1.9\u00d7 its length",
- "byResolution": {
- "720p": 0.08,
- "580p": 0.06,
- "480p": 0.04
- }
- }
- },
{
"id": "scail-2",
"name": "SCAIL-2 (hosted)",
@@ -24994,49 +24881,47 @@ export const ORIGINAL_CLOUD: ModelDef[] = [
"family": "fuobe-genjutsu",
"engine": "cloud",
"kind": "video",
- "tagline": "Your character performs the clip's moves with its camera and framing: Wan 2.2 Animate",
+ "tagline": "Your character takes over the clip's performance, in the clip's own setting with its sound: MiniMax H3 Max Recast",
"routes": [
{
"op": "motion-transfer",
"provider": "fal",
- "endpoint": "fal-ai/wan/v2.2-14b/animate/move",
+ "endpoint": "minimax/h3-max/recast",
"map": {
- "prompt": false,
- "image": "image_url",
+ "omitEmptyPrompt": true,
+ "images": "reference_image_urls",
"video": "video_url",
"seed": "seed",
"resolution": {
"key": "resolution",
"accepts": [
- "480p",
- "580p",
- "720p"
+ "768P",
+ "1080P"
]
- }
+ },
+ "promptMax": 2000
}
}
],
"options": {
"seed": true,
"resolutions": [
- "480p",
- "580p",
- "720p"
+ "768P",
+ "1080P"
],
- "maxImages": 1,
- "promptless": true
+ "maxImages": 4,
+ "promptOptional": true
},
"defaults": {
- "resolution": "720p"
+ "resolution": "1080P"
},
"pricing": {
"unit": "second",
- "usd": 0.08,
- "note": "720p; 580p $0.06, 480p $0.04 \u00b7 fal bills frames \u00f7 16 as video seconds: a 30 fps clip costs about 1.9\u00d7 its length",
+ "usd": 0.45,
+ "note": "1080p; 768p $0.30/s \u00b7 5\u201330 s, no shot over 15 s",
"byResolution": {
- "720p": 0.08,
- "580p": 0.06,
- "480p": 0.04
+ "768p": 0.3,
+ "1080p": 0.45
}
}
},
@@ -25047,40 +24932,40 @@ export const ORIGINAL_CLOUD: ModelDef[] = [
"family": "fuobe-genjutsu",
"engine": "cloud",
"kind": "video",
- "tagline": "The quick tier: Wan 2.2 Animate at 480p with fal's turbo pass",
+ "tagline": "The quick tier: MiniMax H3 Max Recast at 768p",
"routes": [
{
"op": "motion-transfer",
"provider": "fal",
- "endpoint": "fal-ai/wan/v2.2-14b/animate/move",
+ "endpoint": "minimax/h3-max/recast",
"map": {
- "prompt": false,
- "image": "image_url",
+ "omitEmptyPrompt": true,
+ "images": "reference_image_urls",
"video": "video_url",
"seed": "seed",
"resolution": "resolution",
"fixed": {
- "use_turbo": true,
- "resolution": "480p"
- }
+ "resolution": "768P"
+ },
+ "promptMax": 2000
}
}
],
"options": {
"seed": true,
"resolutions": [
- "480p"
+ "768p"
],
- "maxImages": 1,
- "promptless": true
+ "maxImages": 4,
+ "promptOptional": true
},
"defaults": {
- "resolution": "480p"
+ "resolution": "768p"
},
"pricing": {
"unit": "second",
- "usd": 0.04,
- "note": "480p \u00b7 fal bills frames \u00f7 16 as video seconds: a 30 fps clip costs about 1.9\u00d7 its length"
+ "usd": 0.3,
+ "note": "768p \u00b7 5\u201330 s, no shot over 15 s"
}
},
{
@@ -25134,7 +25019,8 @@ export const ORIGINAL_CLOUD: ModelDef[] = [
"match_input_num_frames": true,
"match_input_frames_per_second": true
}
- }
+ },
+ "note": "Wan VACE runs on fal until 4 January 2027"
}
],
"options": {
@@ -25207,7 +25093,8 @@ export const ORIGINAL_CLOUD: ModelDef[] = [
"match_input_num_frames": true,
"match_input_frames_per_second": true
}
- }
+ },
+ "note": "Wan VACE runs on fal until 4 January 2027"
}
],
"options": {
@@ -25280,7 +25167,8 @@ export const ORIGINAL_CLOUD: ModelDef[] = [
"match_input_num_frames": true,
"match_input_frames_per_second": true
}
- }
+ },
+ "note": "Wan VACE runs on fal until 4 January 2027"
}
],
"options": {
@@ -25500,7 +25388,8 @@ export const ORIGINAL_CLOUD: ModelDef[] = [
"match_input_num_frames": true,
"match_input_frames_per_second": true
}
- }
+ },
+ "note": "Wan VACE runs on fal until 4 January 2027"
}
],
"options": {
@@ -25572,7 +25461,8 @@ export const ORIGINAL_CLOUD: ModelDef[] = [
"match_input_num_frames": true,
"match_input_frames_per_second": true
}
- }
+ },
+ "note": "Wan VACE runs on fal until 4 January 2027"
}
],
"options": {
diff --git a/src/lib/catalog/genjutsu.ts b/src/lib/catalog/genjutsu.ts
index 7d8a0e83..a6fbc6cd 100644
--- a/src/lib/catalog/genjutsu.ts
+++ b/src/lib/catalog/genjutsu.ts
@@ -3,11 +3,12 @@
* transfer (your character does what the clip's person does), Character swap (the person in a 5–15 s part becomes your
* character, sound and performance kept: Openjutsu / Akatz Labs' H3 Character Swap), Object swap (a thing, a person or
* an outfit becomes your reference), Restyle (every frame takes a look) and Insert (your reference is added where you
- * say). Each mode's default is a Fuobe Original — open weights on your GPU (ComfyUI) and the same open weights hosted on
- * fal in the cloud: Wan Animate for motion, MiniMax H3 + the Character Swap LoRA for characters, SAM 3.1 + Wan VACE for
- * swaps, a restyled first frame + Wan Fun VACE for looks. Lite is the cheaper, faster tier of the same Original. Other
- * hosted open models (SCAIL-2, Wan Motion, Wan 2.2 Animate Replace, hosted Wan 2.2 VACE) and partner models (Kling,
- * P-Video, H3 Max Recast, Gemini Omni, Happy Horse) stay as labelled alternatives. No retired provider's model or look.
+ * say). Each mode's default is a Fuobe Original — open weights on your GPU (ComfyUI) and hosted models on fal in the
+ * cloud: Wan Animate 2 for motion on your GPU and MiniMax H3 Max Recast in the cloud (fal's successor to Wan 2.2 Animate),
+ * MiniMax H3 + the Character Swap LoRA for characters, SAM 3.1 + Wan VACE for swaps, a restyled first frame + Wan Fun VACE
+ * for looks. Lite is the cheaper, faster tier of the same Original. Other hosted open models (SCAIL-2, Wan Motion, hosted
+ * Wan 2.2 VACE) and partner models (Kling, P-Video, H3 Max Recast, Gemini Omni, Happy Horse) stay as labelled
+ * alternatives. No retired provider's model or look.
*
* Every model takes a part of the clip (Kling 3–15 s, VACE 81 or 241 frames, H3 5–15 s…), so longer selections are cut
* into pieces or windows, made one by one, joined, and the clip's own sound put back (the remove-object plumbing). Pure
@@ -59,7 +60,7 @@ import {
type RemoveRange,
type RemoveSource,
} from "./remove-object";
-import { firstFramePrompt, getShortsPreset, lookFromPreset, planShorts, segmentPrompt, SHORTS_TOOLS, type PlanStep, type ShortsLook } from "./shorts";
+import { firstFramePrompt, getShortsPreset, lookFromPreset, planShorts, segmentPrompt, SHORTS_TOOLS, WAN_VACE_ENDS, type PlanStep, type ShortsLook } from "./shorts";
import { getModel } from "./index";
import { REPLACED_BY } from "./replaced";
import { LOOK_IDS, lightWords, type LookId, type PaintKeyframe } from "../openjutsu-graphs";
@@ -381,6 +382,12 @@ export interface Maker {
const VACE_CLOUD_WINDOW: FrameWindow = { cap: 241, step: 4, base: 1, min: 17 };
const VACE_FUN_CLOUD = "wan-22-vace-inpaint";
const FAL_RES = ["480p", "580p", "720p"];
+/**
+ * MiniMax H3 Max Recast on fal: "5 to 30 seconds long, with no single shot longer than 15 seconds"; 768P or 1080P. Motion
+ * transfer cuts 15 s pieces (`shot`), so a long take in one shot still fits.
+ */
+const RECAST_SECONDS = { min: 5, max: 30, shot: 15 } as const;
+const RECAST_RES = ["768p", "1080p"];
/** Motion transfer on MiniMax H3 (your GPU): the character photo is the look, the part's normals the motion. */
export const MOTION_H3 = "oss-h3-motion";
@@ -399,21 +406,22 @@ const ORIGINAL_IDS = new Set<string>([...Object.values(ORIGINALS), "fuobe-soul"]
export const isOriginal = (id: string) => ORIGINAL_IDS.has(id);
export const MAKERS: Maker[] = [
- // Motion transfer.
+ // Motion transfer. In the cloud on MiniMax H3 Max Recast (fal's successor to Wan 2.2 Animate): the character takes the
+ // person's place in the clip's own setting, sound kept; 5–15 s a part (no shot over 15 s).
{
id: ORIGINALS.motionLite,
engine: "cloud",
modes: ["motion"],
label: "Fuobe Genjutsu",
- note: "Quick 480p takes · one character image · the clip's sound put back",
+ note: "768p · one character image, in the clip's own setting · the clip's sound kept · 5–15 s a part",
source: "original",
tier: "standard",
pair: ORIGINALS.motion,
refs: { min: 1, max: 1 },
- maxSeconds: 30,
- keepsSound: false,
- qualities: ["480p"],
- billFps: 16,
+ maxSeconds: RECAST_SECONDS.shot,
+ minSeconds: RECAST_SECONDS.min,
+ keepsSound: true,
+ qualities: ["768p"],
promptOptional: true,
},
{
@@ -421,15 +429,15 @@ export const MAKERS: Maker[] = [
engine: "cloud",
modes: ["motion"],
label: "Fuobe Genjutsu",
- note: "Up to 720p · one character image · the clip's sound put back",
+ note: "Up to 1080p · one character image, in the clip's own setting · the clip's sound kept · 5–15 s a part",
source: "original",
tier: "high",
pair: ORIGINALS.motionLite,
refs: { min: 1, max: 1 },
- maxSeconds: 30,
- keepsSound: false,
- qualities: FAL_RES,
- billFps: 16,
+ maxSeconds: RECAST_SECONDS.shot,
+ minSeconds: RECAST_SECONDS.min,
+ keepsSound: true,
+ qualities: RECAST_RES,
promptOptional: true,
},
{
@@ -544,26 +552,10 @@ export const MAKERS: Maker[] = [
note: "MiniMax's own swap: 1–4 people from photos, across shots, sound kept · 5–30 s · $0.30/s",
source: "partner",
refs: { min: 1, max: 4 },
- maxSeconds: 30,
- minSeconds: 5,
+ maxSeconds: RECAST_SECONDS.max,
+ minSeconds: RECAST_SECONDS.min,
keepsSound: true,
- qualities: ["768p", "1080p"],
- promptOptional: true,
- people: true,
- },
- {
- id: "wan-22-animate-replace",
- engine: "cloud",
- modes: ["character"],
- targets: ["type"],
- label: "Wan 2.2 Animate Replace",
- note: "Replaces the person, lighting matched · one image · up to 720p",
- source: "open",
- refs: { min: 1, max: 1 },
- maxSeconds: 30,
- keepsSound: false,
- qualities: FAL_RES,
- billFps: 16,
+ qualities: RECAST_RES,
promptOptional: true,
people: true,
},
@@ -603,7 +595,7 @@ export const MAKERS: Maker[] = [
modes: ["swap"],
targets: ["type", "click", "paint"],
label: "Fuobe Genjutsu",
- note: "Paints your reference in place of what you name · 480p, fast · up to 4 references",
+ note: `Paints your reference in place of what you name · 480p, fast · up to 4 references · ${WAN_VACE_ENDS}`,
source: "original",
tier: "standard",
pair: ORIGINALS.swap,
@@ -619,7 +611,7 @@ export const MAKERS: Maker[] = [
modes: ["swap"],
targets: ["type", "click", "paint"],
label: "Fuobe Genjutsu",
- note: "Paints your reference in place of what you name · up to 720p · up to 4 references",
+ note: `Paints your reference in place of what you name · up to 720p · up to 4 references · ${WAN_VACE_ENDS}`,
source: "original",
tier: "high",
pair: ORIGINALS.swapLite,
@@ -681,7 +673,7 @@ export const MAKERS: Maker[] = [
modes: ["swap", "insert"],
targets: ["click", "paint"],
label: "Wan 2.2 VACE (hosted)",
- note: "Changes only the area you mark on the first frame · up to 4 references · 241 frames a part",
+ note: `Changes only the area you mark on the first frame · up to 4 references · 241 frames a part · ${WAN_VACE_ENDS}`,
source: "open",
refs: { min: 1, max: 4 },
window: VACE_CLOUD_WINDOW,
@@ -726,7 +718,7 @@ export const MAKERS: Maker[] = [
engine: "cloud",
modes: ["restyle"],
label: "Fuobe Genjutsu",
- note: "The first frame takes the look, then every frame follows it · 241 frames a part",
+ note: `The first frame takes the look, then every frame follows it · 241 frames a part · ${WAN_VACE_ENDS}`,
source: "original",
refs: { min: 0, max: 0 },
window: VACE_CLOUD_WINDOW,
@@ -892,7 +884,8 @@ export const getMaker = (id: string | undefined, engine?: Engine) => MAKERS.find
* round-4 open models: the Original that replaced each (the look and tier are kept where they still mean something).
*/
export const LEGACY_MAKERS: Record<string, string> = {
- ...Object.fromEntries(Object.entries(REPLACED_BY).flatMap(([id, r]) => (Object.values(ORIGINALS).includes(r.id as never) ? [[id, r.id]] : []))),
+ // A retired model whose replacement is a maker here (an Original, or H3 Max Recast for Wan 2.2 Animate Replace).
+ ...Object.fromEntries(Object.entries(REPLACED_BY).flatMap(([id, r]) => (Object.values(ORIGINALS).includes(r.id as never) || MAKERS.some((m) => m.id === r.id) ? [[id, r.id]] : []))),
"oss-wan22-animate": ORIGINALS.motion,
"oss-vace-swap": ORIGINALS.swap,
"oss-wan22-vace-restyle": ORIGINALS.restyle,
diff --git a/src/lib/catalog/hosted-untested.ts b/src/lib/catalog/hosted-untested.ts
index def035fd..86ffa7d6 100644
--- a/src/lib/catalog/hosted-untested.ts
+++ b/src/lib/catalog/hosted-untested.ts
@@ -61,6 +61,8 @@ export const HOSTED_UNTESTED_ENDPOINTS: ReadonlySet<string> = new Set([
// Bria: green-screen despill and the guided cut-out.
"bria/video/background-removal/green-screen-despill",
"bria/guided-remove-background",
+ // Wan 2.7 text to image: the hosted route of Wan 2.2 A14B Image since fal retires Wan 2.2 (2027-01-04).
+ "fal-ai/wan/v2.7/text-to-image",
]);
/** Models whose hosted routes are new even where the endpoint isn't (Fuobe Animation's LoRA run on Wan 2.2 A14B). */
diff --git a/src/lib/catalog/models.ts b/src/lib/catalog/models.ts
index e8e1c9e6..9183190d 100644
--- a/src/lib/catalog/models.ts
+++ b/src/lib/catalog/models.ts
@@ -3034,18 +3034,31 @@ const originals: ModelDef[] = [
},
// Fuobe Genjutsu (O5): the parity studio's Genjutsu rebuilt on open weights, one model per mode on both engines, and Lite as the
// cheaper, faster tier of the same Original (src/lib/catalog/genjutsu.ts plans the pieces, masks, looks and sound).
- original({
- id: "fuobe-genjutsu-motion",
- open: [comfy("motion-transfer", "wan-animate2", "Wan Animate 2: the whole selection in 81-frame fragments, the clip's fps and sound kept")],
- tagline: "Your character performs the clip's moves · Wan Animate 2 free on your GPU (24 GB), Wan 2.2 Animate on fal",
- options: { seed: true, resolutions: ["480p", "720p"], maxImages: 1, promptOptional: true },
- }),
- original({
- id: "fuobe-genjutsu-motion-lite",
- open: [comfy("motion-transfer", "wan-animate2", "Wan Animate 2 at 480p with 4 distilled steps")],
- tagline: "The quick tier: 480p · Wan Animate 2 in 4 steps on your GPU, Wan 2.2 Animate turbo on fal",
- options: { seed: true, resolutions: ["480p"], maxImages: 1, promptOptional: true },
- }),
+ // In the cloud on MiniMax H3 Max Recast, fal's successor to Wan 2.2 Animate: the character takes the person's place in the
+ // clip's own setting (on your GPU, Wan Animate 2 keeps its photo's setting).
+ {
+ ...original({
+ id: "fuobe-genjutsu-motion",
+ open: [comfy("motion-transfer", "wan-animate2", "Wan Animate 2: the whole selection in 81-frame fragments, the clip's fps and sound kept")],
+ tagline: "Your character performs the clip's moves · Wan Animate 2 free on your GPU (24 GB), MiniMax H3 Max Recast in the cloud",
+ options: { seed: true, resolutions: ["480p", "720p"], maxImages: 1, promptOptional: true },
+ }),
+ // The cloud half's own defaults are Recast's; the model as a whole keeps a size both engines read.
+ defaults: { resolution: "720p" },
+ engineOptions: { cloud: { resolutions: ["768P", "1080P"] } },
+ engineDefaults: { cloud: { resolution: "1080P" } },
+ },
+ {
+ ...original({
+ id: "fuobe-genjutsu-motion-lite",
+ open: [comfy("motion-transfer", "wan-animate2", "Wan Animate 2 at 480p with 4 distilled steps")],
+ tagline: "The quick tier: 480p · Wan Animate 2 in 4 steps on your GPU, MiniMax H3 Max Recast at 768p in the cloud",
+ options: { seed: true, resolutions: ["480p"], maxImages: 1, promptOptional: true },
+ }),
+ defaults: { resolution: "480p" },
+ engineOptions: { cloud: { resolutions: ["768P"] } },
+ engineDefaults: { cloud: { resolution: "768P" } },
+ },
{
...original({
id: "fuobe-genjutsu-swap",
diff --git a/src/lib/catalog/replaced.ts b/src/lib/catalog/replaced.ts
index 6de68bcc..a89b7cc8 100644
--- a/src/lib/catalog/replaced.ts
+++ b/src/lib/catalog/replaced.ts
@@ -62,7 +62,7 @@ export const REPLACED_BY: Readonly<Record<string, Replacement>> = {
withReferences: "ref2v",
ops: { ref2v: { id: "seedance-2-5", note: "Cinema Studio's reference takes now run on Seedance 2.5 (Fuobe Cinema takes no references yet)" } },
},
- "genjutsu-motion-transfer": { id: "fuobe-genjutsu-motion", was: "Genjutsu Motion Transfer (earlier version)", note: "Motion transfer now runs on Fuobe Genjutsu (Wan Animate)", original: true },
+ "genjutsu-motion-transfer": { id: "fuobe-genjutsu-motion", was: "Genjutsu Motion Transfer (earlier version)", note: "Motion transfer now runs on Fuobe Genjutsu", original: true },
"genjutsu-lite-motion-transfer": { id: "fuobe-genjutsu-motion-lite", was: "Genjutsu Lite Motion Transfer (earlier version)", note: "Motion transfer Lite now runs on Fuobe Genjutsu Lite", original: true },
// Its v2v and video-swap routes were the same endpoint.
"genjutsu-object-swap": { id: "fuobe-genjutsu-swap", was: "Genjutsu Object Swap (earlier version)", note: "Object swap now runs on Fuobe Genjutsu (SAM 3.1 + Wan VACE)", original: true, ops: { v2v: { op: "video-swap" } } },
@@ -74,6 +74,9 @@ export const REPLACED_BY: Readonly<Record<string, Replacement>> = {
"ads-studio": { id: "fuobe-marketing-image", was: "Ads Studio (earlier version)", note: "Ads now come from Fuobe's Ads pipeline: written copy, a Fuobe Marketing Image visual and your fonts", original: true },
// The AI Influencer sheet runs on Fuobe Soul (O10), as the builder's does: the Realistic look, a wide sheet.
"ai-influencer": { id: "fuobe-soul", was: "AI Influencer (earlier version)", note: "The AI Influencer sheet now runs on Fuobe Soul (the Soul Cast sheet on your GPU)", original: true },
+ // fal removes its Wan 2.1 / 2.2 line on 2027-01-04 and names a MiniMax H3 Max successor for each of these.
+ "wan-22-animate-replace": { id: "h3-max-recast", was: "Wan 2.2 Animate Replace (hosted)", note: "Person swaps in the cloud now run on MiniMax H3 Max Recast, which keeps the clip's sound" },
+ "wan-vace-reframe": { id: "minimax-h3-max-reframe", was: "Wan VACE Reframe (hosted)", note: "Reframes in the cloud now run on MiniMax H3 Max Reframe, which keeps the clip's sound and timing" },
};
/** Retired training targets (the retired provider's Soul ID) → the trainer that makes a Fuobe Soul ID from the same photos. */
diff --git a/src/lib/catalog/shorts.ts b/src/lib/catalog/shorts.ts
index 566f7ede..afc96dba 100644
--- a/src/lib/catalog/shorts.ts
+++ b/src/lib/catalog/shorts.ts
@@ -19,6 +19,13 @@ import { finishLengthProblem, REGEN_FINISH_TIER, REGEN_FPS, REGEN_SMOOTH_MODEL,
import type { ChainSlot, Engine, Generation, GenerationRequest } from "./types";
import { withOriginalSound, type OriginalSound } from "../av/original-sound";
+/**
+ * fal removes its Wan 2.1 / 2.2 line (Wan VACE among it) on 2027-01-04. Masked swaps and depth restyles have no hosted
+ * successor that does the same job, so the cloud routes on Wan VACE (Shorts, Evolution, Genjutsu's swap and restyle) stay
+ * and say so before a run.
+ */
+export const WAN_VACE_ENDS = "Wan VACE runs on fal until 4 January 2027";
+
// ---------------------------------------------------------------------------
// Limits (the parity studio's, from the upload dialog) and engine shapes
diff --git a/src/server/evolution.ts b/src/server/evolution.ts
index 4ea967a0..ff688b78 100644
--- a/src/server/evolution.ts
+++ b/src/server/evolution.ts
@@ -18,7 +18,7 @@ import {
type EvolutionPlanInput,
type Intensity,
} from "@/lib/catalog/evolution";
-import { SHORTS, vaceDownsample, type PlanStep } from "@/lib/catalog/shorts";
+import { SHORTS, vaceDownsample, WAN_VACE_ENDS, type PlanStep } from "@/lib/catalog/shorts";
import type { Engine, Generation, GenerationRequest } from "@/lib/catalog/types";
import { ACCESS_PLACE } from "@/lib/model-access";
import { createPipeline } from "./chains";
@@ -195,7 +195,7 @@ function planInput(body: z.infer<typeof EvolutionBodySchema>, info: Awaited<Retu
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 re-renders the piece by its depth with that frame as its reference, 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(EVOLUTION_CLOUD_NOTE);
+ notes.push(EVOLUTION_CLOUD_NOTE, WAN_VACE_ENDS);
// fal bills frames ÷ 16 as video seconds; a clip above 30 fps is worked at a fraction of its rate (as in Shorts).
const fps = source.fps;
if (fps && fps > SHORTS.original.billFps + 0.5) notes.push(`fal bills this clip's ${Math.round(fps)} fps as ${(fps / SHORTS.original.billFps).toFixed(1)}× its length (video seconds at ${SHORTS.original.billFps} fps)`);
diff --git a/src/server/shorts.ts b/src/server/shorts.ts
index 66abf532..987261ab 100644
--- a/src/server/shorts.ts
+++ b/src/server/shorts.ts
@@ -5,6 +5,7 @@ import { getModel } from "@/lib/catalog";
import { routeNotes } from "@/lib/catalog/fitted";
import { maxRefsFor, reframes, resolutionFor, sourceSeconds } from "@/lib/catalog/shorts-models";
import {
+ WAN_VACE_ENDS,
clipLengthProblem,
ENHANCE_COPY,
clipShapeProblem,
@@ -495,6 +496,7 @@ function notesFor(input: ShortsPlanInput, segments: number): string[] {
const fps = input.source.fps;
if (input.engine === "cloud") {
notes.push(`Fuobe Shorts draws each segment's first frame in the look (Qwen-Image-Edit 2511), then Wan 2.2 Fun VACE carries it through every frame by depth${segments > 1 ? `: ${segments} segments, joined with the clip's own sound` : ""}`);
+ notes.push(WAN_VACE_ENDS);
if (fps && fps > SHORTS.original.billFps + 0.5) notes.push(`fal bills this clip's ${Math.round(fps)} fps as ${(fps / SHORTS.original.billFps).toFixed(1)}× its length (video seconds at ${SHORTS.original.billFps} fps)`);
if (vaceDownsample(fps)) notes.push(`Wan 2.2 Fun VACE works this ${Math.round(fps!)} fps clip at ${Math.round(fps! / (vaceDownsample(fps) + 1))} fps and brings it back to its own rate`);
} else notes.push("Fuobe Shorts on your GPU renders 480p at 16 fps, 5 s a segment");
diff --git a/tests/eval-harness.test.ts b/tests/eval-harness.test.ts
index b64b343c..da40b1c8 100644
--- a/tests/eval-harness.test.ts
+++ b/tests/eval-harness.test.ts
@@ -370,7 +370,8 @@ describe("the runner on the demo provider", () => {
expect(cloud(g).map((j) => [j.case, j.model, j.skip ?? null])).toEqual([
["genjutsu/move", "kling-motion-control", null],
// A case with no partner of its own runs its own models (the -lite tiers, the Original without its first frame).
- ["genjutsu/move-lite", "fuobe-genjutsu-motion-lite", null],
+ // The fixture dance clip is under 5 s: MiniMax H3 Max Recast (the Original's cloud motion) takes 5 s or more.
+ ["genjutsu/move-lite", "fuobe-genjutsu-motion-lite", expect.stringMatching(/needs at least 5 s/)],
// Character swap's partner: MiniMax's own Recast on fal.
["genjutsu/character", "h3-max-recast", null],
["genjutsu/character-plain", "fuobe-character-swap", null],
@@ -382,8 +383,8 @@ describe("the runner on the demo provider", () => {
// The Originals on the cloud: their hosted open halves on fal.
const o = await dry(["--suite", "genjutsu", "--engine", "cloud", "--variants", "original", "--allow-fixtures"]);
expect(cloud(o).map((j) => [j.case, j.model, j.skip ?? null])).toEqual([
- ["genjutsu/move", "fuobe-genjutsu-motion", null],
- ["genjutsu/move-lite", "fuobe-genjutsu-motion-lite", null],
+ ["genjutsu/move", "fuobe-genjutsu-motion", expect.stringMatching(/needs at least 5 s/)],
+ ["genjutsu/move-lite", "fuobe-genjutsu-motion-lite", expect.stringMatching(/needs at least 5 s/)],
["genjutsu/character", "fuobe-character-swap", null],
["genjutsu/character-plain", "fuobe-character-swap", null],
["genjutsu/swap", "fuobe-genjutsu-swap", null],
diff --git a/tests/fixtures/provider-schemas/fal/fal-ai__wan__v2.7__text-to-image.json b/tests/fixtures/provider-schemas/fal/fal-ai__wan__v2.7__text-to-image.json
new file mode 100644
index 00000000..3fcf7526
--- /dev/null
+++ b/tests/fixtures/provider-schemas/fal/fal-ai__wan__v2.7__text-to-image.json
@@ -0,0 +1,440 @@
+{
+ "components": {
+ "schemas": {
+ "File": {
+ "properties": {
+ "content_type": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The mime type of the file.",
+ "examples": [
+ "image/png"
+ ],
+ "title": "Content Type"
+ },
+ "file_name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The name of the file. It will be auto-generated if not provided.",
+ "examples": [
+ "z9RV14K95DvU.png"
+ ],
+ "title": "File Name"
+ },
+ "file_size": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The size of the file in bytes.",
+ "examples": [
+ 4404019
+ ],
+ "title": "File Size"
+ },
+ "url": {
+ "description": "The URL where the file can be downloaded from.",
+ "title": "Url",
+ "type": "string"
+ }
+ },
+ "required": [
+ "url"
+ ],
+ "title": "File",
+ "type": "object",
+ "x-fal-order-properties": [
+ "url",
+ "content_type",
+ "file_name",
+ "file_size"
+ ]
+ },
+ "ImageSize": {
+ "properties": {
+ "height": {
+ "default": 512,
+ "description": "The height of the generated image.",
+ "exclusiveMinimum": 0,
+ "maximum": 14142,
+ "title": "Height",
+ "type": "integer"
+ },
+ "width": {
+ "default": 512,
+ "description": "The width of the generated image.",
+ "exclusiveMinimum": 0,
+ "maximum": 14142,
+ "title": "Width",
+ "type": "integer"
+ }
+ },
+ "title": "ImageSize",
+ "type": "object",
+ "x-fal-order-properties": [
+ "width",
+ "height"
+ ]
+ },
+ "QueueStatus": {
+ "properties": {
+ "cancel_url": {
+ "description": "The cancel url.",
+ "type": "string"
+ },
+ "logs": {
+ "additionalProperties": true,
+ "description": "The logs.",
+ "type": "object"
+ },
+ "metrics": {
+ "additionalProperties": true,
+ "description": "The metrics.",
+ "type": "object"
+ },
+ "queue_position": {
+ "description": "The queue position.",
+ "type": "integer"
+ },
+ "request_id": {
+ "description": "The request id.",
+ "type": "string"
+ },
+ "response_url": {
+ "description": "The response url.",
+ "type": "string"
+ },
+ "status": {
+ "enum": [
+ "IN_QUEUE",
+ "IN_PROGRESS",
+ "COMPLETED"
+ ],
+ "type": "string"
+ },
+ "status_url": {
+ "description": "The status url.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "status",
+ "request_id"
+ ],
+ "type": "object"
+ },
+ "WanV27TextToImageInput": {
+ "properties": {
+ "enable_safety_checker": {
+ "default": true,
+ "description": "Enable content moderation for input and output. Disabling it requires account authorization; unauthorized requests are always checked.",
+ "title": "Enable Safety Checker",
+ "type": "boolean"
+ },
+ "image_size": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/ImageSize"
+ },
+ {
+ "enum": [
+ "square_hd",
+ "square",
+ "portrait_4_3",
+ "portrait_16_9",
+ "landscape_4_3",
+ "landscape_16_9"
+ ],
+ "type": "string"
+ }
+ ],
+ "default": "square_hd",
+ "description": "Output image size.",
+ "title": "Image Size"
+ },
+ "negative_prompt": {
+ "anyOf": [
+ {
+ "maxLength": 500,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": "",
+ "description": "Content to avoid in the generated image. Max 500 characters.",
+ "title": "Negative Prompt"
+ },
+ "num_images": {
+ "default": 1,
+ "description": "Number of images to generate (1-5).",
+ "maximum": 5,
+ "minimum": 1,
+ "title": "Num Images",
+ "type": "integer"
+ },
+ "output_format": {
+ "default": "jpeg",
+ "description": "The format of the generated images.",
+ "enum": [
+ "jpeg",
+ "png",
+ "webp"
+ ],
+ "title": "Output Format",
+ "type": "string"
+ },
+ "prompt": {
+ "description": "Text prompt describing the desired output. Supports Chinese and English.",
+ "examples": [
+ "An astronaut riding a horse in a photorealistic style."
+ ],
+ "maxLength": 2000,
+ "minLength": 1,
+ "title": "Prompt",
+ "type": "string"
+ },
+ "seed": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Random seed for reproducibility (0-2147483647).",
+ "title": "Seed"
+ }
+ },
+ "required": [
+ "prompt"
+ ],
+ "title": "Wan27TextToImageInput",
+ "type": "object",
+ "x-fal-order-properties": [
+ "prompt",
+ "negative_prompt",
+ "image_size",
+ "num_images",
+ "seed",
+ "enable_safety_checker",
+ "output_format"
+ ]
+ },
+ "WanV27TextToImageOutput": {
+ "properties": {
+ "generated_text": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Optional generated text returned by the model.",
+ "title": "Generated Text"
+ },
+ "images": {
+ "description": "Generated images.",
+ "items": {
+ "$ref": "#/components/schemas/File"
+ },
+ "title": "Images",
+ "type": "array"
+ },
+ "seed": {
+ "description": "The seed used for generation.",
+ "title": "Seed",
+ "type": "integer"
+ }
+ },
+ "required": [
+ "images",
+ "seed"
+ ],
+ "title": "Wan27TextToImageOutput",
+ "type": "object",
+ "x-fal-order-properties": [
+ "images",
+ "generated_text",
+ "seed"
+ ]
+ }
+ },
+ "securitySchemes": {
+ "apiKeyAuth": {
+ "description": "Fal Key",
+ "in": "header",
+ "name": "Authorization",
+ "type": "apiKey"
+ }
+ }
+ },
+ "info": {
+ "description": "The OpenAPI schema for the fal-ai/wan/v2.7/text-to-image queue.",
+ "title": "Queue OpenAPI for fal-ai/wan/v2.7/text-to-image",
+ "version": "1.0.0",
+ "x-fal-metadata": {
+ "about": "Text To Image",
+ "category": "text-to-image",
+ "documentationUrl": "https://fal.ai/models/fal-ai/wan/v2.7/text-to-image/api",
+ "endpointId": "fal-ai/wan/v2.7/text-to-image",
+ "playgroundUrl": "https://fal.ai/models/fal-ai/wan/v2.7/text-to-image",
+ "thumbnailUrl": "https://v3b.fal.media/files/b/0a948152/0UucVYSOBXiyibwSyN3HT_38400743f04344a5b25b1cd9b551a625.jpg"
+ }
+ },
+ "openapi": "3.1.0",
+ "paths": {
+ "/fal-ai/wan/v2.7/text-to-image": {
+ "post": {
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/WanV27TextToImageInput"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/QueueStatus"
+ }
+ }
+ },
+ "description": "The request status."
+ }
+ }
+ }
+ },
+ "/fal-ai/wan/v2.7/text-to-image/requests/{request_id}": {
+ "get": {
+ "parameters": [
+ {
+ "in": "path",
+ "name": "request_id",
+ "required": true,
+ "schema": {
+ "description": "Request ID",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/WanV27TextToImageOutput"
+ }
+ }
+ },
+ "description": "Result of the request."
+ }
+ }
+ }
+ },
+ "/fal-ai/wan/v2.7/text-to-image/requests/{request_id}/cancel": {
+ "put": {
+ "parameters": [
+ {
+ "in": "path",
+ "name": "request_id",
+ "required": true,
+ "schema": {
+ "description": "Request ID",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "properties": {
+ "success": {
+ "description": "Whether the request was cancelled successfully.",
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+ }
+ }
+ },
+ "description": "The request was cancelled."
+ }
+ }
+ }
+ },
+ "/fal-ai/wan/v2.7/text-to-image/requests/{request_id}/status": {
+ "get": {
+ "parameters": [
+ {
+ "in": "path",
+ "name": "request_id",
+ "required": true,
+ "schema": {
+ "description": "Request ID",
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "logs",
+ "required": false,
+ "schema": {
+ "description": "Whether to include logs (`1`) in the response or not (`0`).",
+ "type": "number"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/QueueStatus"
+ }
+ }
+ },
+ "description": "The request status."
+ }
+ }
+ }
+ }
+ },
+ "security": [
+ {
+ "apiKeyAuth": []
+ }
+ ],
+ "servers": [
+ {
+ "url": "https://queue.fal.run"
+ }
+ ]
+}
diff --git a/tests/fixtures/provider-schemas/index.json b/tests/fixtures/provider-schemas/index.json
index 0323bacd..077224b4 100644
--- a/tests/fixtures/provider-schemas/index.json
+++ b/tests/fixtures/provider-schemas/index.json
@@ -15,6 +15,7 @@
"fal-ai/vidu/q4/reference-to-video",
"fal-ai/wan/v2.2-a14b/image-to-video",
"fal-ai/wan/v2.2-a14b/image-to-video/lora",
+ "fal-ai/wan/v2.7/text-to-image",
"fal-ai/workflow-utilities/extract-audio",
"google/lyria-3.5",
"meshy/v6/retexture",
diff --git a/tests/genjutsu-api.test.ts b/tests/genjutsu-api.test.ts
index fd615d7a..03478b97 100644
--- a/tests/genjutsu-api.test.ts
+++ b/tests/genjutsu-api.test.ts
@@ -74,7 +74,7 @@ describe("Genjutsu: estimates", () => {
const res = await estimateRoute.POST(json(body({ source: { url: clip, ...src } })));
expect(res.status).toBe(200);
const e = await res.json();
- expect(e).toMatchObject({ modelId: "fuobe-genjutsu-motion-lite", source: "original", tier: "standard", quality: "480p", pieces: 1, seconds: 12, demo: true });
+ expect(e).toMatchObject({ modelId: "fuobe-genjutsu-motion-lite", source: "original", tier: "standard", quality: "768p", pieces: 1, seconds: 12, demo: true });
expect(Object.keys(e).filter((k) => mentionsRetiredName(k))).toEqual([]);
});
@@ -82,19 +82,18 @@ describe("Genjutsu: estimates", () => {
beforeAll(() => setSetting("falKey", "fal-test-key"));
afterAll(() => setSetting("falKey", ""));
- it("motion: Lite is Wan 2.2 Animate at 480p turbo; Quality: High is the full model at its own price per resolution", async () => {
- // 12 s at 16 fps = 192 frames = 12 video seconds: $0.04 each, then the sound put back.
+ it("motion: Lite is MiniMax H3 Max Recast at 768p; Quality: High is the full model at 1080p, each at its own price per second", async () => {
+ // 12 s on Recast at 768p: $0.30 a second, the clip's sound kept by Recast (one step).
const lite = await (await estimateRoute.POST(json(body({ source: { url: clip, ...src } })))).json();
- expect(lite).toMatchObject({ modelId: "fuobe-genjutsu-motion-lite", tier: "standard", quality: "480p", pieces: 1, steps: 2, demo: false, providers: ["fal"] });
- expect(lite.costUsd).toBeGreaterThanOrEqual(0.48);
- expect(lite.costUsd).toBeLessThan(0.49);
- const high = await (await estimateRoute.POST(json(body({ source: { url: clip, ...src }, tier: "high", quality: "720p" })))).json();
- expect(high).toMatchObject({ modelId: "fuobe-genjutsu-motion", tier: "high", quality: "720p" });
- expect(high.costUsd).toBeGreaterThanOrEqual(0.96);
- expect(high.costUsd).toBeLessThan(0.97);
- // fal bills frames ÷ 16: a 30 fps clip costs 1.9× its length, and says so.
+ expect(lite).toMatchObject({ modelId: "fuobe-genjutsu-motion-lite", tier: "standard", quality: "768p", pieces: 1, steps: 1, demo: false, providers: ["fal"] });
+ expect(lite.costUsd).toBeCloseTo(3.6, 2);
+ const high = await (await estimateRoute.POST(json(body({ source: { url: clip, ...src }, tier: "high", quality: "1080p" })))).json();
+ expect(high).toMatchObject({ modelId: "fuobe-genjutsu-motion", tier: "high", quality: "1080p" });
+ expect(high.costUsd).toBeCloseTo(5.4, 2);
+ // Recast bills seconds, not frames: a 30 fps clip costs the same.
const fast = await (await estimateRoute.POST(json(body({ source: { url: clip, ...src, fps: 30 } })))).json();
- expect(fast.notes.join(" ")).toMatch(/fal bills this clip's 30 fps as 1\.9× its length/);
+ expect(fast.costUsd).toBeCloseTo(3.6, 2);
+ expect(fast.notes.join(" ")).not.toMatch(/fal bills this clip's/);
});
it("Kling O3 swap at its edit price; the hosted VACE per 16-frame second", async () => {
@@ -176,7 +175,7 @@ describe("Genjutsu: estimates", () => {
it("demo mode off and no keys: the key it needs, in words", async () => {
setSetting("demoMode", "off");
- expect(await say(body({ source: { url: clip, ...src } }))).toBe("Fuobe Genjutsu Lite · Motion runs on fal.ai, and putting the sound back runs on fal.ai — add a fal.ai key in Settings → Paid API configuration");
+ expect(await say(body({ source: { url: clip, ...src } }))).toBe("Fuobe Genjutsu Lite · Motion runs on fal.ai — add a fal.ai key in Settings → Paid API configuration");
setSetting("demoMode", "auto");
});
});
@@ -324,9 +323,9 @@ describe("Genjutsu: runs (demo)", () => {
expect(final.feature).toBe("genjutsu");
expect(items.filter((g) => g.feature === "genjutsu")).toHaveLength(1);
const rows = batchOf(final.id);
- // Wan 2.2 Animate takes the whole 12 s selection in one call; the sound goes back on after.
+ // MiniMax H3 Max Recast takes the whole 12 s selection in one call and keeps the clip's sound.
expect(rows.filter((r) => r.op === "motion-transfer").map((r) => r.model_id)).toEqual(["fuobe-genjutsu-motion-lite"]);
- expect(rows.some((r) => r.op === "mux")).toBe(true);
+ expect(rows.some((r) => r.op === "mux")).toBe(false);
expect((await settle(final.id)).status).toBe("succeeded");
});
diff --git a/tests/genjutsu.test.ts b/tests/genjutsu.test.ts
index 573cd788..2a1c0db5 100644
--- a/tests/genjutsu.test.ts
+++ b/tests/genjutsu.test.ts
@@ -73,7 +73,7 @@ describe("Genjutsu: which model runs", () => {
it("partners and other open weights stay as labelled alternatives", () => {
const sources = (engine: Engine, mode: "motion" | "character" | "swap" | "restyle" | "insert", target?: "type" | "click" | "paint") =>
Object.fromEntries(makersFor(engine, mode, target).map((m) => [m.id, m.source]));
- expect(sources("cloud", "character")).toEqual({ [ORIGINALS.character]: "original", "scail-2": "open", "h3-max-recast": "partner", "wan-22-animate-replace": "open", "kling-o3": "partner", "p-video-replace": "partner" });
+ expect(sources("cloud", "character")).toEqual({ [ORIGINALS.character]: "original", "scail-2": "open", "h3-max-recast": "partner", "kling-o3": "partner", "p-video-replace": "partner" });
expect(sources("cloud", "swap", "type")).toEqual({ [ORIGINALS.swapLite]: "original", "kling-o3": "partner", "kling-4": "partner", "p-video-replace": "partner" });
expect(sources("cloud", "insert", "type")).toMatchObject({ "kling-o3": "partner", "kling-4": "partner" });
expect(sources("cloud", "swap", "paint")).toEqual({ [ORIGINALS.swapLite]: "original", "wan-22-vace-inpaint": "open" });
@@ -168,21 +168,21 @@ describe("Genjutsu: checks", () => {
});
describe("Genjutsu: plans", () => {
- it("cloud motion on the Original: Wan 2.2 Animate on the whole selection, billed as frames ÷ 16, the sound put back", () => {
+ it("cloud motion on the Original: MiniMax H3 Max Recast in pieces of up to 15 s, billed per second, joined under the clip's sound", () => {
const p = plan({ maker: maker(ORIGINALS.motion), prompt: "a knight in silver armour", quality: "1080p" });
- expect(p.pieces).toBe(1);
+ // 20 s: two pieces (Recast takes no shot over 15 s).
+ expect(p.pieces).toBe(2);
const make = step(p, "make0").request;
- expect(make).toMatchObject({ modelId: ORIGINALS.motion, engine: "cloud", op: "motion-transfer", feature: "genjutsu-step", inputs: { video: clip.url, images: [ref] } });
- // 20 s at 30 fps = 600 frames = 37.5 video seconds; 1080p goes to its top, 720p.
- expect(make.params).toMatchObject({ resolution: "720p", duration: 37.5, sourceDuration: 20 });
+ expect(make).toMatchObject({ modelId: ORIGINALS.motion, engine: "cloud", op: "motion-transfer", feature: "genjutsu-step", inputs: { images: [ref] } });
+ expect(make.params).toMatchObject({ resolution: "1080p" });
expect(p.final).toBe("final");
expect(step(p, "final").request).toMatchObject({ op: "mux", feature: "genjutsu", inputs: { audio: clip.url } });
- // $0.08 a video second at 720p: $3.00.
- expect(estimateCost(onEngine(getModel(ORIGINALS.motion)!, "cloud"), make.params!, 1, "motion-transfer")).toBeCloseTo(3, 6);
- // Lite: 480p turbo, $0.04.
+ // $0.45 a second at 1080p: a 10 s piece is $4.50.
+ expect(estimateCost(onEngine(getModel(ORIGINALS.motion)!, "cloud"), { ...make.params!, duration: 10 }, 1, "motion-transfer")).toBeCloseTo(4.5, 6);
+ // Lite: 768p, $0.30 a second.
const lite = step(plan({ maker: maker(ORIGINALS.motionLite) }), "make0").request;
- expect(lite.params).toMatchObject({ resolution: "480p" });
- expect(estimateCost(onEngine(getModel(ORIGINALS.motionLite)!, "cloud"), lite.params!, 1, "motion-transfer")).toBeCloseTo(1.5, 6);
+ expect(lite.params).toMatchObject({ resolution: "768p" });
+ expect(estimateCost(onEngine(getModel(ORIGINALS.motionLite)!, "cloud"), { ...lite.params!, duration: 10 }, 1, "motion-transfer")).toBeCloseTo(3, 6);
});
it("open motion on the Original: Wan Animate 2 on the cut selection; Lite runs it in 4 steps at 480p", () => {
@@ -420,15 +420,16 @@ describe("Genjutsu: Character swap", () => {
expect("maker" in both && both.maker.source).not.toBe("original");
});
- it("partners in Character swap: MiniMax's Recast, Wan Animate Replace, Kling O3 with who in words", () => {
+ it("partners in Character swap: MiniMax's Recast (also for an old setup on Wan Animate Replace), Kling O3 with who in words", () => {
const r = ch({ maker: maker("h3-max-recast"), range: { start: 2, end: 20 }, quality: "1080p", character: { who: "leftmost", description: "a ronin" } });
expect(r.steps.map((s) => s.key)).toEqual(["cut0", "make0"]);
expect(step(r, "make0").request).toMatchObject({ modelId: "h3-max-recast", op: "video-swap", params: { resolution: "1080p" } });
expect(step(r, "make0").request.prompt).toBe("The person on the left becomes the person in the photo, a ronin.");
expect(r.final).toBe("make0");
- const w = ch({ maker: maker("wan-22-animate-replace") });
- expect(step(w, "make0").request).toMatchObject({ op: "video-swap", params: { resolution: "720p" } });
- expect(w.final).toBe("final");
+ // fal retires Wan 2.2 Animate Replace (2027-01-04): an old setup naming it opens Recast, fal's named successor.
+ const retired = ["wan", "22", "animate", "replace"].join("-");
+ expect(chooseMaker({ engine: "cloud", mode: "character", modelId: retired })).toMatchObject({ maker: { id: "h3-max-recast" } });
+ expect(MAKERS.some((m) => m.id === retired)).toBe(false);
expect(makerPrompt({ mode: "character", maker: maker("kling-o3"), refs: 1, character: { who: "rightmost" } })).toBe(
"Replace the person on the right in @Video1 with @Image1. Keep everything else the same: the performance, camera, framing, light and timing.",
);
@@ -496,7 +497,8 @@ describe("Genjutsu: the steps plan as catalog generations", () => {
it("billed seconds: fal's video seconds count 16 (Wan Motion 24) frames a second at the clip's own rate", () => {
const piece = { index: 0, start: 0, end: 10 };
- expect(billedSeconds(maker(ORIGINALS.motion), piece, 30)).toBeCloseTo(18.75, 6);
+ // Recast (Genjutsu's cloud motion) bills the piece's own seconds.
+ expect(billedSeconds(maker(ORIGINALS.motion), piece, 30)).toBe(10);
expect(billedSeconds(maker("wan-motion"), piece, 30)).toBeCloseTo(12.5, 6);
expect(billedSeconds(maker("kling-motion-control"), piece, 30)).toBe(10);
expect(billedSeconds(maker(ORIGINALS.swap), { ...piece, frames: 241 }, 30)).toBeCloseTo(241 / 16, 6);
diff --git a/tests/retired-provider.test.ts b/tests/retired-provider.test.ts
index 099fff03..5d219f4e 100644
--- a/tests/retired-provider.test.ts
+++ b/tests/retired-provider.test.ts
@@ -165,6 +165,9 @@ describe("REPLACED_BY", () => {
"genjutsu-lite-motion-transfer",
"genjutsu-object-swap",
"genjutsu-lite-object-swap",
+ // fal's Wan 2.1 / 2.2 line, removed 2027-01-04.
+ "wan-22-animate-replace",
+ "wan-vace-reframe",
"genjutsu-restyle",
"marketing-studio-image",
"ads-studio",
diff --git a/tests/wan-successors.test.ts b/tests/wan-successors.test.ts
new file mode 100644
index 00000000..457a9ce1
--- /dev/null
+++ b/tests/wan-successors.test.ts
@@ -0,0 +1,174 @@
+import fs from "node:fs";
+import path from "node:path";
+import { describe, expect, it } from "vitest";
+import { getModel, MODELS } from "@/lib/catalog";
+import { MOTION_MODELS } from "@/lib/av/katana";
+import { onEngine } from "@/lib/catalog/engines";
+import { chooseMaker, getMaker, makersFor, MAKERS, ORIGINALS, planGenjutsu, type GenjutsuPlanInput, type Maker } from "@/lib/catalog/genjutsu";
+import { isHostedUntested } from "@/lib/catalog/hosted-untested";
+import { fitLoras } from "@/lib/catalog/loras";
+import { buildPayload } from "@/lib/catalog/payload";
+import { estimateCost } from "@/lib/catalog/plan";
+import { currentModelId, migrateRequest, replacementOf } from "@/lib/catalog/replaced";
+import { WAN_VACE_ENDS } from "@/lib/catalog/shorts";
+import type { LoraRef, ModelRoute } from "@/lib/catalog/types";
+
+/*
+ * fal removes its Wan 2.1 / 2.2 line on 2027-01-04 and names a successor on each endpoint's page: Wan 2.7 text to image
+ * for Wan 2.2 A14B stills, MiniMax H3 Max Recast for Wan 2.2 Animate (move and replace), H3 Max Reframe for Wan VACE
+ * reframe. Wan VACE's masked inpainting and depth routes have no successor that does the same job: they stay, and say
+ * when they end before a run.
+ */
+
+const ROOT = path.resolve(__dirname, "..");
+const falSchema = (endpoint: string) => {
+ const doc = JSON.parse(fs.readFileSync(path.join(ROOT, "tests/fixtures/provider-schemas/fal", `${endpoint.replaceAll("/", "__")}.json`), "utf8"));
+ const ref: string = doc.paths[`/${endpoint}`].post.requestBody.content["application/json"].schema.$ref;
+ return doc.components.schemas[ref.split("/").pop()!] as { properties: Record<string, { enum?: string[]; anyOf?: { enum?: string[] }[] }>; required: string[] };
+};
+const liveSchema = (endpoint: string) =>
+ JSON.parse(fs.readFileSync(path.join(ROOT, "tests/fixtures/provider-schemas/fal/live-routes.json"), "utf8")).endpoints[endpoint].input as {
+ properties: Record<string, { enum?: string[] }>;
+ required: string[];
+ };
+
+const cloudRoute = (id: string, op: string): ModelRoute => {
+ const m = getModel(id)!;
+ const r = onEngine(m, "cloud").routes.find((x) => x.op === op && x.provider !== "comfyui");
+ if (!r) throw new Error(`${id} has no cloud ${op} route`);
+ return r;
+};
+
+/** fal-ai/wan/v2.2-14b/animate, fal-ai/wan-vace-14b/reframe and fal-ai/wan/v2.2-a14b/text-to-image, as any route names them. */
+const MOVED = /^fal-ai\/(wan\/v2\.2-14b\/animate\/|wan-vace-14b\/reframe|wan\/v2\.2-a14b\/text-to-image)/;
+
+describe("the routes fal names a successor for", () => {
+ it("no model calls Wan 2.2 Animate, Wan VACE reframe or Wan 2.2 A14B stills any more", () => {
+ const left = MODELS.flatMap((m) => m.routes.filter((r) => MOVED.test(r.endpoint) || MOVED.test(r.loraEndpoint ?? "")).map((r) => `${m.id} ${r.op} ${r.endpoint}`));
+ expect(left).toEqual([]);
+ });
+
+ it("Wan 2.2 A14B Image's hosted route is Wan 2.7 text to image, named as such, at fal's $0.03 an image", () => {
+ const m = getModel("wan-2-2-a14b-image-cloud")!;
+ const r = cloudRoute(m.id, "t2i");
+ expect(r).toMatchObject({ provider: "fal", endpoint: "fal-ai/wan/v2.7/text-to-image" });
+ expect(r.loraEndpoint).toBeUndefined();
+ expect(m.name).toContain("Wan 2.7");
+ expect(r.note).toMatch(/Wan 2\.7.*no LoRAs/);
+ expect(m.pricing).toMatchObject({ unit: "image", usd: 0.03 });
+ expect(estimateCost(m, { aspectRatio: "16:9" }, 1, "t2i")).toBeCloseTo(0.03, 5);
+ // Never sent with a real key yet: an account runs it on its own fal.ai key until a live call passes.
+ expect(isHostedUntested(m.id, r)).toBe(true);
+ });
+
+ it("its requests fit fal's saved Wan 2.7 schema for every shape the composer offers", () => {
+ const schema = falSchema("fal-ai/wan/v2.7/text-to-image");
+ const r = cloudRoute("wan-2-2-a14b-image-cloud", "t2i");
+ const sizes = schema.properties.image_size.anyOf!.flatMap((a) => a.enum ?? []);
+ for (const aspectRatio of getModel("wan-2-2-a14b-image-cloud")!.options.aspectRatios!) {
+ const p = buildPayload(r.map!, { prompt: "a red coat on a city street", aspectRatio, negativePrompt: "blur", seed: 7, numOutputs: 2 });
+ for (const k of Object.keys(p)) expect(Object.keys(schema.properties), `${aspectRatio}: ${k}`).toContain(k);
+ expect(sizes).toContain(p.image_size);
+ expect(p).toMatchObject({ prompt: "a red coat on a city street", negative_prompt: "blur", seed: 7, num_images: 2 });
+ expect(p).not.toHaveProperty("loras");
+ }
+ });
+
+ it("a run's LoRAs are left out on Wan 2.7, with the reason", () => {
+ const lora: LoraRef = { file: "wan-style.safetensors", name: "Wan style", url: "https://example.com/wan-style.safetensors", strength: 0.8 } as LoraRef;
+ const fit = fitLoras([lora], cloudRoute("wan-2-2-a14b-image-cloud", "t2i"));
+ expect(fit.loras).toEqual([]);
+ expect(fit.notes.join(" ")).toMatch(/takes no LoRAs in the cloud/);
+ });
+
+ it("Genjutsu's motion transfer runs on H3 Max Recast in the cloud, the open graph as it was", () => {
+ const schema = liveSchema("minimax/h3-max/recast");
+ for (const [id, res] of [
+ [ORIGINALS.motion, "1080P"],
+ [ORIGINALS.motionLite, "768P"],
+ ] as const) {
+ const m = getModel(id)!;
+ const r = cloudRoute(id, "motion-transfer");
+ expect(r.endpoint).toBe("minimax/h3-max/recast");
+ const p = buildPayload(r.map!, { video: "https://x/clip.mp4", images: ["https://x/hero.png"], resolution: onEngine(m, "cloud").defaults?.resolution });
+ expect(p).toMatchObject({ video_url: "https://x/clip.mp4", reference_image_urls: ["https://x/hero.png"], resolution: res });
+ for (const k of Object.keys(p)) expect(Object.keys(schema.properties), k).toContain(k);
+ expect(schema.properties.resolution.enum).toContain(p.resolution);
+ // No words: Recast finds the person itself.
+ expect(p).not.toHaveProperty("prompt");
+ // The GPU half is Wan Animate 2, unchanged.
+ expect(onEngine(m, "open").routes.map((x) => `${x.provider}:${x.endpoint}`)).toEqual(["comfyui:wan-animate2"]);
+ }
+ });
+
+ it("Genjutsu cuts the cloud motion into 5–15 s pieces and keeps Recast's own sound", () => {
+ const clip = { url: "/api/files/clip.mp4", duration: 40, fps: 30, width: 1280, height: 720, hasAudio: true };
+ const plan = (maker: Maker, end: number) =>
+ planGenjutsu({ engine: "cloud", mode: "motion", title: "Genjutsu", source: clip, range: { start: 0, end }, quality: "1080p", references: ["/api/files/hero.png"], maker } as GenjutsuPlanInput);
+ const full = getMaker(ORIGINALS.motion, "cloud")!;
+ expect(full).toMatchObject({ minSeconds: 5, maxSeconds: 15, keepsSound: true, qualities: ["768p", "1080p"] });
+ expect(full.billFps).toBeUndefined();
+ const one = plan(full, 12);
+ const make = one.steps.filter((s) => s.request.modelId === ORIGINALS.motion);
+ expect(make).toHaveLength(1);
+ expect(make[0].request).toMatchObject({ op: "motion-transfer", inputs: { images: ["/api/files/hero.png"] }, params: { resolution: "1080p" } });
+ const long = plan(full, 30).steps.filter((s) => s.request.modelId === ORIGINALS.motion);
+ expect(long.length).toBeGreaterThanOrEqual(2);
+ expect(getMaker(ORIGINALS.motionLite, "cloud")).toMatchObject({ qualities: ["768p"], keepsSound: true });
+ });
+
+ it("Katana's cloud motion segments start at Recast's 5 s", () => {
+ expect(MOTION_MODELS.cloud.find((m) => m.id === ORIGINALS.motion)).toMatchObject({ min: 5 });
+ expect(MOTION_MODELS.open.find((m) => m.id === ORIGINALS.motion)).toMatchObject({ min: 1, max: 5 });
+ });
+
+ it("stored Wan 2.2 Animate Replace and Wan VACE Reframe runs open on fal's named successors", () => {
+ const replace = ["wan", "22", "animate", "replace"].join("-");
+ const reframe = ["wan", "vace", "reframe"].join("-");
+ expect(getModel(replace)).toBeUndefined();
+ expect(getModel(reframe)).toBeUndefined();
+ expect(currentModelId(replace)).toBe("h3-max-recast");
+ expect(currentModelId(reframe)).toBe("minimax-h3-max-reframe");
+ expect(replacementOf(replace, "video-swap")).toMatchObject({ id: "h3-max-recast", original: false });
+ const moved = migrateRequest({ modelId: reframe, op: "reframe" as const, inputs: { videos: ["/api/files/c.mp4"] } });
+ expect(moved.request.modelId).toBe("minimax-h3-max-reframe");
+ expect(moved.note).toMatch(/H3 Max Reframe/);
+ expect(chooseMaker({ engine: "cloud", mode: "character", modelId: replace })).toMatchObject({ maker: { id: "h3-max-recast" } });
+ // H3 Max Reframe takes what the old route's reframe sent: the clip and the new shape.
+ const r = cloudRoute("minimax-h3-max-reframe", "reframe");
+ const p = buildPayload(r.map!, { video: "https://x/clip.mp4", aspectRatio: "9:16", resolution: "768p" });
+ expect(p).toMatchObject({ video_url: "https://x/clip.mp4", aspect_ratio: "9:16" });
+ expect(liveSchema("minimax/h3-max/reframe-video").properties.aspect_ratio.enum).toContain(p.aspect_ratio);
+ });
+});
+
+describe("the Wan VACE routes with no successor that does the same job", () => {
+ const KEPT: [string, string][] = [
+ ["fuobe-genjutsu-swap", "video-swap"],
+ ["fuobe-genjutsu-swap-lite", "video-swap"],
+ ["fuobe-genjutsu-restyle", "v2v"],
+ ["fuobe-shorts", "v2v"],
+ ["fuobe-evolution", "v2v"],
+ ["wan-22-vace-inpaint", "remove-object"],
+ ["wan-22-vace-inpaint", "video-swap"],
+ ["wan-22-vace-inpaint", "video-insert"],
+ ];
+
+ it("stay on Wan VACE and say when it ends", () => {
+ for (const [id, op] of KEPT) {
+ const r = cloudRoute(id, op);
+ expect(r.endpoint, id).toMatch(/^fal-ai\/wan-(22-)?vace/);
+ expect(r.note, `${id} ${op}`).toBe(WAN_VACE_ENDS);
+ }
+ expect(getModel("wan-22-vace-inpaint")!.tagline).toContain(WAN_VACE_ENDS);
+ });
+
+ it("say so in Genjutsu's picker before a run", () => {
+ const cloudVace = MAKERS.filter((m) => m.engine === "cloud" && m.window);
+ expect(cloudVace.map((m) => m.id).sort()).toEqual(["fuobe-genjutsu-restyle", "fuobe-genjutsu-swap", "fuobe-genjutsu-swap-lite", "wan-22-vace-inpaint"]);
+ for (const m of cloudVace) expect(m.note, m.id).toContain(WAN_VACE_ENDS);
+ // The open engine's makers don't: their graphs run on your GPU.
+ for (const m of MAKERS.filter((x) => x.engine === "open")) expect(m.note, m.id).not.toContain(WAN_VACE_ENDS);
+ expect(makersFor("cloud", "motion").every((m) => !m.note.includes(WAN_VACE_ENDS))).toBe(true);
+ });
+});