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.

Cloud: H3 Max lip sync, relight, insert and looks, H3 Max Turbo, H3 Lite and HighSpeed, Vidu Q4, Meshy retexture and Tripo P2

Claudeb33719fba825
diff --git a/scripts/gen-cloud-models.py b/scripts/gen-cloud-models.py
index 3b31a8ba..87ba5d7a 100644
--- a/scripts/gen-cloud-models.py
+++ b/scripts/gen-cloud-models.py
@@ -89,7 +89,7 @@ M = []
def model(id, name, vendor, family, kind, tagline, routes, badges=None, pricing=None, defaults=None, options=None, fixed=None, hidden=False,
sliders=None, controls=None, api_defaults=None, formats=None, ranged_durations=False, fit_values=False, fps_targets=None, upscale_tiers=None,
frame_step=None, original=False, sizes=None, keep_shape=False, licence=None, frame_fps=None, frame_multiple=None,
- exact_size=False, tier_size=None):
+ exact_size=False, tier_size=None, prompt_max=False):
"""sliders / controls: [(field, label)] read from each route's research inputs (dotted = nested field; a slider's
third item is its step, when the generic one is too coarse):
numeric fields with minimum/maximum become sliders, enums become composer controls; both travel as params.extra.
@@ -119,6 +119,8 @@ def model(id, name, vendor, family, kind, tagline, routes, badges=None, pricing=
tier_size: the endpoint whose price names resolution tiers ("$0.009 at 1K … $0.036 at 4K": fal's FLUX 3 Klein): the size goes
as one {width, height} object, the aspect ratio's shape on the tier's square (FieldMap.size.bases), on a 16 px grid within
the limits the field's description states ("256 to 4096 pixels"); the tiers become the resolutions.
+ prompt_max: the prompt field's maxLength goes to FieldMap.promptMax, so a longer prompt is refused before a paid call (Vidu Q4's
+ 5,000 characters, Meshy retexture's 600).
A route's options dict may also set max_images (FieldMap.maxImages), note, loraEndpoint (the same model with LoRAs:
FieldMap.loras comes from its research record) and pin (a Replicate model run by version: the research's version)."""
M.append(dict(id=id, name=name, vendor=vendor, family=family, kind=kind, tagline=tagline, routes=routes,
@@ -126,7 +128,7 @@ def model(id, name, vendor, family, kind, tagline, routes, badges=None, pricing=
sliders=sliders or [], controls=controls or [], api_defaults=api_defaults or {}, formats=formats or {},
ranged_durations=ranged_durations, fit_values=fit_values, fps_targets=fps_targets or [], upscale_tiers=upscale_tiers or [],
frame_step=frame_step, original=original, sizes=sizes, keep_shape=keep_shape, licence=licence, frame_fps=frame_fps,
- frame_multiple=frame_multiple, exact_size=exact_size, tier_size=tier_size))
+ frame_multiple=frame_multiple, exact_size=exact_size, tier_size=tier_size, prompt_max=prompt_max))
# ----- Image
@@ -595,6 +597,82 @@ model("minimax-h3-max-3d", "MiniMax H3 Max 3D to video", "MiniMax", "hailuo", "v
[("v2v", "minimax/h3-max/3d-to-video")], hidden=True, defaults={"resolution": "768P"},
pricing=("second", 0.08, "768P; 480P $0.05, 1080P $0.16; at least 5 s a shot; + $0.50 processing a request; + $0.10 for each reference it draws when given none (up to 2)",
{"byResolution": {"480P": 0.05, "768P": 0.08, "1080P": 0.16}, "minSeconds": 5, "perRequest": 0.5, "generatedRefs": {"usd": 0.1, "count": 2}}))
+# ----- Hosted catch-up (package nm10-hosted-catchup; research new-models-10.json endpointRecords, read 2026-11-02 with
+# scripts/fetch-hosted-schemas.py --catchup). Closed models on fal and Replicate: cloud only; the open engine keeps its own tools.
+H3_RES = {"480P": 0.05, "768P": 0.08, "1080P": 0.16, "2K": 0.32}
+# H3 Max lip sync: a portrait (0.4-2.5 wide) and 5 s to 15 min of audio; the video is as long as the audio, billed per second by
+# resolution and 1.2 times over for a video over 15 s (fal's page: 30 s at 768P costs $2.88).
+model("minimax-h3-max-lipsync", "MiniMax H3 Max Lip Sync · up to 15 min", "MiniMax", "hailuo", "video",
+ "A portrait speaks your audio: 5 seconds to 15 minutes, as long as the voice, 480P to 2K",
+ [("avatar", "minimax/h3-max/lip-sync/image-to-video")], badges=["new"], defaults={"resolution": "768P"},
+ pricing=("second", 0.08, "768P; 480P $0.05, 1080P $0.16, 2K $0.32; 1.2× for audio over 15 s", {"byResolution": H3_RES, "longFactor": {"over": 15, "factor": 1.2}}))
+# H3 Max relight: the clip (up to 15 s, resampled to 24 fps) relit to match a lit sphere, which Fuobe draws in the browser from a
+# light preset (ModelOptions.lightSphere). The result keeps the clip's shape ("adaptive") and is billed on its length.
+model("minimax-h3-max-relight", "MiniMax H3 Max Relight", "MiniMax", "hailuo", "video",
+ "Real footage relit to a light you pick — direction, colour and softness — up to 15 s",
+ [("relight-video", "minimax/h3-max/relight", "fal", {"drop": ["aspectRatio"]})], badges=["new"], defaults={"resolution": "768P"},
+ fixed={"aspect_ratio": "adaptive"}, options={"lightSphere": True, "promptOptional": True},
+ pricing=("second", 0.08, "768P; 480P $0.05, 1080P $0.16, 2K $0.32; billed on the clip's length", {"byResolution": H3_RES}))
+# H3 Max insert: a new scene of `duration` seconds generated between params.startTime and params.endTime (resume_time) of the clip;
+# only the new scene is billed (references past fal's first 4,096 tokens add $0.02 per 1,000, not counted here).
+model("minimax-h3-max-insert", "MiniMax H3 Max Insert a moment", "MiniMax", "hailuo", "video",
+ "A new 5–13 s moment generated inside your clip, between two points you mark",
+ [("insert-moment", "minimax/h3-max/insert-video")], badges=["new"], defaults={"resolution": "768p", "duration": 5}, ranged_durations=True,
+ options={"promptOptional": True}, prompt_max=True,
+ pricing=("second", 0.06, "768p; 480p $0.05; only the new moment is billed; references past the first 4,096 tokens add $0.02 per 1,000",
+ {"byResolution": {"480p": 0.05, "768p": 0.06}}))
+# H3 Max looks: words or a first frame to a 5-15 s clip in the look, with sound. Generation, not a restyle of a clip.
+for _slug, _id, _name, _tag in (("16bit-pixel", "pixel", "16-bit Pixel", "16-bit pixel art in motion"),
+ ("hand-drawn", "hand-drawn", "Hand-drawn", "a hand-drawn animation"),
+ ("low-poly", "low-poly", "Low Poly", "low-poly 3D"),
+ ("retro-toon-70s", "retro-toon", "Retro Toon 70s", "a 1970s cartoon"),
+ ("vhs", "vhs", "VHS", "a worn VHS tape, with the tape damage you pick")):
+ _ep = f"minimax/h3-max/styles/{_slug}"
+ model(f"minimax-h3-max-look-{_id}", f"MiniMax H3 Max · {_name} look", "MiniMax", "hailuo", "video",
+ f"A new 5–15 s clip with sound, made as {_tag}, from words or a first frame (it doesn't restyle a clip)",
+ [("t2v", _ep), ("i2v", _ep)], badges=["new", "audio"], defaults={"aspectRatio": "16:9", "duration": 5}, ranged_durations=True,
+ controls=[("damage_level", "Tape wear")] if _slug == "vhs" else None,
+ pricing=("second", 0.08, "768p, sound included"))
+# H3 Max Turbo: words, a start frame or start and end frames, 1-15 s with sound. fal's November rate runs to 2026-11-15 (30% off),
+# then the list rates. Its reference and extend routes are billed differently, so they are models of their own.
+model("minimax-h3-max-turbo", "MiniMax H3 Max Turbo", "MiniMax", "hailuo", "video",
+ "Fast, cheap H3 Max with sound — drafts and quick takes from words or frames, 1–15 s",
+ [("t2v", "minimax/h3-max-turbo/text-to-video"), ("i2v", "minimax/h3-max-turbo/image-to-video", "fal", "+flf2v")],
+ badges=["new", "fast", "audio"], defaults={"aspectRatio": "16:9", "duration": 5, "resolution": "768P"}, ranged_durations=True,
+ pricing=("second", 0.04, "768P; 480P $0.025, 1080P $0.08 — $0.028 (480P $0.0175, 1080P $0.056) until 2026-11-15",
+ {"byResolution": {"480P": 0.025, "768P": 0.04, "1080P": 0.08},
+ "promo": {"until": "2026-11-15", "usd": 0.028, "byResolution": {"480P": 0.0175, "768P": 0.028, "1080P": 0.056}}}))
+model("minimax-h3-max-turbo-refs", "MiniMax H3 Max Turbo · references", "MiniMax", "hailuo", "video",
+ "Turbo with up to 9 pictures, 3 clips and 3 sound clips as references (Image 1, Video 1, Audio 1 in the prompt)",
+ [("ref2v", "minimax/h3-max-turbo/reference-to-video")], badges=["new", "audio"], fit_values=True,
+ defaults={"aspectRatio": "16:9", "duration": 5, "resolution": "768P"}, ranged_durations=True,
+ pricing=("second", 0.08, "768P; 480P $0.05, 1080P $0.16; references past the first 4,096 tokens add $0.016 per 1,000",
+ {"byResolution": {"480P": 0.05, "768P": 0.08, "1080P": 0.16}}))
+# The extend keeps the clip's shape (its aspect ratio left out: fal's "auto") and bills only the seconds added.
+model("minimax-h3-max-turbo-extend", "MiniMax H3 Max Turbo · extend", "MiniMax", "hailuo", "video",
+ "Continue a 1.6–60 s clip with up to 15 s more, sound and all; only the new seconds are billed",
+ [("extend", "minimax/h3-max-turbo/extend-video", "fal", {"drop": ["aspectRatio"]})], badges=["new", "audio"],
+ defaults={"duration": 5, "resolution": "768P"}, ranged_durations=True,
+ pricing=("second", 0.04, "768P; 480P $0.025, 1080P $0.08, 2K $0.16; only the new seconds", {"byResolution": {"480P": 0.025, "768P": 0.04, "1080P": 0.08, "2K": 0.16}}))
+# One Replicate model takes every input; each route sends only its own (a start frame is never also a reference picture).
+# HighSpeed's ratio is "adaptive" from a frame (its schema: "adaptive for image-to-video"); Lite ignores the ratio then.
+def H3_REPLICATE_ROUTES(ep, adaptive=False):
+ refs = ["images", "video", "audio"]
+ frame = {"drop": ["aspectRatio"], "fixed": {"ratio": "adaptive"}} if adaptive else {}
+ return [("t2v", ep, "replicate", {"drop": ["image", "endImage", *refs]}), ("i2v", ep, "replicate", {**frame, "drop": ["endImage", *refs, *frame.get("drop", [])]}),
+ ("flf2v", ep, "replicate", {**frame, "drop": [*refs, *frame.get("drop", [])]}), ("ref2v", ep, "replicate", {"drop": ["image", "endImage"]})]
+
+
+# Replicate's H3 Lite (480P / 768P) and HighSpeed (one rate): words, a first frame, first and last frames, or references, 4-15 s.
+model("minimax-h3-lite", "MiniMax H3 Lite", "MiniMax", "hailuo", "video",
+ "The lightest H3 with sound: words, frames or references, 4–15 s at 480P or 768P",
+ H3_REPLICATE_ROUTES("minimax/h3-lite"),
+ badges=["new", "audio"], defaults={"aspectRatio": "16:9", "duration": 5, "resolution": "768P"}, fit_values=True, options={"maxImages": 9},
+ pricing=("second", 0.04, "768P; 480P $0.025", {"byResolution": {"480P": 0.025, "768P": 0.04}}))
+model("minimax-h3-highspeed", "MiniMax H3 HighSpeed", "MiniMax", "hailuo", "video",
+ "H3 tuned for speed, with sound: words, frames or references, 4–15 s",
+ H3_REPLICATE_ROUTES("minimax/h3-highspeed", adaptive=True),
+ badges=["new", "audio", "fast"], defaults={"aspectRatio": "16:9", "duration": 5}, fit_values=True, options={"maxImages": 9}, pricing=("second", 0.06))
model("hailuo-2-3", "MiniMax Hailuo 2.3", "MiniMax", "hailuo", "video", "Expressive characters and dynamic action",
[("t2v", "fal-ai/minimax/hailuo-2.3/pro/text-to-video"), ("i2v", "fal-ai/minimax/hailuo-2.3/pro/image-to-video")],
pricing=("video", 0.49), defaults={"duration": 6}, fixed={"prompt_optimizer": True})
@@ -842,6 +920,13 @@ model("pixverse-v6", "PixVerse V6", "PixVerse", "pixverse", "video", "Stylized s
model("vidu-q3", "Vidu Q3", "Shengshu", "vidu", "video", "Anime-friendly video with references",
[("t2v", "fal-ai/vidu/q3/text-to-video"), ("i2v", "fal-ai/vidu/q3/image-to-video"), ("ref2v", "fal-ai/vidu/q3/reference-to-video/mix")],
defaults={"aspectRatio": "16:9"})
+# Vidu Q4 on fal (package nm10-hosted-catchup): a start frame, or up to 12 reference pictures and 3 voice clips (mp3, 3-12 s) with
+# sound on request, 3-16 s up to 4K. Vidu's own API takes more references than fal's schema exposes; Fuobe sends what fal takes.
+model("vidu-q4", "Vidu Q4", "Shengshu", "vidu", "video", "Vidu's newest: a start frame or up to 12 references and 3 voices, 3–16 s, up to 4K",
+ [("i2v", "fal-ai/vidu/q4/image-to-video"), ("ref2v", "fal-ai/vidu/q4/reference-to-video")], badges=["new", "4k", "audio"], ranged_durations=True,
+ defaults={"aspectRatio": "16:9", "duration": 5, "resolution": "720p"}, options={"maxImages": 12}, prompt_max=True, fit_values=True,
+ pricing=("second", 0.0665, "720p; 540p $0.0315, 1080p $0.084, 2K $0.133, 4K $0.273; sound costs nothing extra",
+ {"byResolution": {"540p": 0.0315, "720p": 0.0665, "1080p": 0.084, "2K": 0.133, "4K": 0.273}}))
model("luma-ray-3-2", "Luma Ray 3.2", "Luma", "luma", "video", "HDR, physically convincing motion",
[("t2v", "luma/agent/ray/v3.2/text-to-video"), ("i2v", "luma/agent/ray/v3.2/image-to-video"), ("v2v", "luma/agent/ray/v3.2/video-to-video"),
("reframe", "luma/agent/ray/v3.2/reframe")],
@@ -1268,6 +1353,18 @@ model("meshy-7-1-multi", "Meshy 7.1 Multi-view", "Meshy", "meshy", "model3d", "O
controls=[("topology", "Topology")], options={"minImages": 2})
model("meshy-rigging", "Meshy Rigging", "Meshy", "meshy", "model3d", "Rig a humanoid GLB with a skeleton, walk and run cycles, or an animation preset",
[("rig-3d", "fal-ai/meshy/rigging")], badges=["new"], pricing=("request", 0.2, "+$0.12 with an animation preset", {"animationUsd": 0.12}))
+# Retexture a 3D model (package nm10-hosted-catchup): Meshy 7 or 6 paints new textures on a GLB from words or a style picture (the
+# picture wins when both go). $0.30 a model at 2K or 4K textures, $0.45 at 8K.
+for _v in ("7", "6"):
+ model(f"meshy-{_v}-retexture", f"Meshy {_v} Retexture", "Meshy", "meshy", "model3d", "New textures on a 3D model, from words or a style picture",
+ [("retexture-3d", f"meshy/v{_v}/retexture")], badges=["new"], prompt_max=True, controls=[("texture_resolution", "Texture size")],
+ options={"promptOptional": True}, fixed={"enable_pbr": True},
+ pricing=("request", 0.3, "2K or 4K textures; 8K $0.45; PBR maps included", {"factors": [{"param": "texture_resolution", "values": {"8k": 1.5}}]}))
+# Tripo P2: Tripo's production tier. $1.10 a model with fast or standard textures, $1.20 detailed, $1.30 extreme ($1.00 untextured).
+model("tripo-p2", "Tripo P2", "Tripo", "tripo", "model3d", "Tripo's production tier: game-ready meshes with PBR textures, quads on request",
+ [("image-to-3d", "tripo3d/p2/image-to-3d")], badges=["new", "pro"], controls=[("texture_quality", "Texture")],
+ pricing=("request", 1.1, "standard textures; detailed $1.20, extreme $1.30",
+ {"factors": [{"param": "texture_quality", "values": {"detailed": 1.2 / 1.1, "extreme": 1.3 / 1.1}}]}))
# Cinema Studio's "Create 3D scene" on the cloud (part 4 §8): a depth map of the whole frame, which the browser
# turns into a point cloud with the photo's colours. So scene-3d answers with an image on this model.
model("marigold-depth", "Marigold V2 Depth", "Marigold", "marigold", "image", "A depth map of the whole frame, for the 3D scene your browser builds",
@@ -1498,7 +1595,7 @@ def map_fields(fmap):
out += lora_field_names(v)
elif k == "size":
out += [v["key"]] if v.get("key") else [v["width"], v["height"]]
- elif k in ("seedRange", "maskFormat", "ranges", "ignore", "maxImages", "omitEmptyPrompt"):
+ elif k in ("seedRange", "maskFormat", "ranges", "ignore", "maxImages", "omitEmptyPrompt", "promptMax"):
continue
elif isinstance(v, str):
out.append(v)
@@ -1667,7 +1764,7 @@ def part4_slots(op, kf, inputs, m, opts, fmap):
if url and frames:
fmap["frames"] = {"key": kf["frames"], "url": url, "frames": frames}
opts["maxImages"] = max(opts.get("maxImages", 1), num((inputs.get(kf["frames"]) or {}).get("maxItems")) or 1)
- if op == "rig-3d":
+ if op in ("rig-3d", "retexture-3d"):
if "model3d" in kf:
fmap["model3d"] = kf["model3d"]
if "animation" in kf:
@@ -2155,6 +2252,10 @@ def build_route(op, ep, provider, m, opts, ropts=None):
fmap.setdefault("defaults", {})[k] = spec["default"]
else:
warn(f"{m['id']}: {ep} requires {k}, which no field of this route fills")
+ if m.get("prompt_max"):
+ pspec = inputs.get((fmap.get("prompt") or "prompt").split(".")[0]) if fmap.get("prompt") is not False else None
+ if pspec and num(pspec.get("maxLength")):
+ fmap["promptMax"] = int(num(pspec["maxLength"]))
if "numOutputs" in fmap:
mx = num((inputs.get(fmap["numOutputs"]) or {}).get("maximum")) or 4
opts["maxOutputs"] = max(opts.get("maxOutputs", 1), min(4, mx))
diff --git a/src/lib/catalog/clip-windows.ts b/src/lib/catalog/clip-windows.ts
index c178bcc5..ada06cf3 100644
--- a/src/lib/catalog/clip-windows.ts
+++ b/src/lib/catalog/clip-windows.ts
@@ -14,8 +14,52 @@ const SOURCE_SECONDS: Record<string, { min?: number; max?: number }> = {
"wan-2-7": { min: 2, max: 10 },
// Higgsfield feeds Gemini Omni Flash ≤10 s segments.
"gemini-omni-flash": { max: 10 },
+ // fal's H3 Max relight: "up to 15 seconds", resampled to 24 fps and trimmed to 17n+5 frames, "at least 56 frames (about 2.33 seconds)".
+ "minimax-h3-max-relight": { min: 2.4, max: 15 },
+ // fal's H3 Max insert takes start and resume times up to 60 s into the clip, the start at least 1.625 s in.
+ "minimax-h3-max-insert": { min: 1.7, max: 60 },
+ // fal's H3 Max Turbo extend: "Must be 1.625 s to 60 s long".
+ "minimax-h3-max-turbo-extend": { min: 1.625, max: 60 },
};
+/** How long a voice a talking-avatar model takes (fal's H3 Max lip sync: "at least 5 seconds long. Supports up to 15 minutes"). */
+const VOICE_SECONDS: Record<string, { min: number; max: number }> = { "minimax-h3-max-lipsync": { min: 5, max: 900 } };
+
+/** Why a voice `seconds` long is outside what the model takes, in Generate's words, or null. */
+export function voiceWindowProblem(model: { id: string; name: string }, seconds: number): string | null {
+ const w = VOICE_SECONDS[model.id];
+ if (!w || !(seconds > 0)) return null;
+ if (seconds < w.min - 0.05) return `${model.name} needs at least ${w.min} s of audio, and this is ${secs(seconds)}: use a longer recording`;
+ if (seconds > w.max + 0.05) return `${model.name} takes up to ${w.max / 60} minutes of audio, and this is ${minutes(seconds)}: trim it first`;
+ return null;
+}
+
+/** The picture a talking-avatar model animates: width ÷ height (fal's H3 Max lip sync: "between 0.4 and 2.5"). */
+const PORTRAIT_RATIO: Record<string, [number, number]> = { "minimax-h3-max-lipsync": [0.4, 2.5] };
+
+/** Why a picture `width`×`height` is too tall or wide for the model, or null. */
+export function portraitShapeProblem(model: { id: string; name: string }, width: number, height: number): string | null {
+ const r = PORTRAIT_RATIO[model.id];
+ if (!r || !(width > 0) || !(height > 0)) return null;
+ const shape = width / height;
+ if (shape >= r[0] - 0.005 && shape <= r[1] + 0.005) return null;
+ return `${model.name} takes pictures from ${r[0].toFixed(1)}:1 (tall) to ${r[1].toFixed(1)}:1 (wide), and this one is ${width}×${height}: crop it first`;
+}
+
+/**
+ * Where a new moment may go inside a clip (fal's H3 Max insert: start_time 1.625–60 s, resume_time after it and at most 60 s), in
+ * Generate's words, or null. `clip` is the clip's length when known: both points must be inside it.
+ */
+export const INSERT_RANGE = { minStart: 1.625, max: 60 } as const;
+export function insertRangeProblem(start: number | undefined, resume: number | undefined, clip?: number): string | null {
+ if (start === undefined || resume === undefined || !Number.isFinite(start) || !Number.isFinite(resume)) return "Mark where the new moment starts and where the clip picks up again";
+ if (start < INSERT_RANGE.minStart - 1e-6) return `The new moment can start ${INSERT_RANGE.minStart} s into the clip at the earliest: move the first handle right`;
+ if (resume <= start + 1e-6) return "The clip has to pick up again after the new moment starts: move the second handle right";
+ if (resume > INSERT_RANGE.max + 1e-6) return `Both points have to be within the first ${INSERT_RANGE.max} s of the clip: trim it first`;
+ if (clip !== undefined && clip > 0 && resume > clip + 0.05) return `The clip is ${secs(clip)} long, so it can't pick up again at ${secs(resume)}: move the second handle left`;
+ return null;
+}
+
export function sourceSeconds(modelId: string): { min?: number; max?: number } {
return SOURCE_SECONDS[modelId] ?? {};
}
@@ -110,6 +154,7 @@ export function billedClipSeconds(modelId: string, seconds: number, fps?: number
}
const secs = (n: number) => `${Math.round(n * 10) / 10} s`;
+const minutes = (n: number) => `${Math.floor(n / 60)} min ${Math.round(n % 60)} s`;
/**
* Why a clip `seconds` long is outside the model's window, in Generate's words ("Happy Horse Video Edit takes 3–15 s
diff --git a/src/lib/catalog/cloud-models.generated.ts b/src/lib/catalog/cloud-models.generated.ts
index 953fd6a8..777664d5 100644
--- a/src/lib/catalog/cloud-models.generated.ts
+++ b/src/lib/catalog/cloud-models.generated.ts
@@ -7269,6 +7269,1144 @@ export const CLOUD_MODELS: ModelDef[] = [
},
"hidden": true
},
+ {
+ "id": "minimax-h3-max-lipsync",
+ "name": "MiniMax H3 Max Lip Sync \u00b7 up to 15 min",
+ "vendor": "MiniMax",
+ "family": "hailuo",
+ "engine": "cloud",
+ "kind": "video",
+ "tagline": "A portrait speaks your audio: 5 seconds to 15 minutes, as long as the voice, 480P to 2K",
+ "routes": [
+ {
+ "op": "avatar",
+ "provider": "fal",
+ "endpoint": "minimax/h3-max/lip-sync/image-to-video",
+ "map": {
+ "prompt": false,
+ "image": "image_url",
+ "audio": "audio_url",
+ "seed": "seed",
+ "resolution": "resolution"
+ }
+ }
+ ],
+ "options": {
+ "seed": true,
+ "resolutions": [
+ "480P",
+ "768P",
+ "1080P",
+ "2K"
+ ],
+ "maxImages": 1,
+ "promptless": true
+ },
+ "badges": [
+ "new"
+ ],
+ "defaults": {
+ "resolution": "768P"
+ },
+ "pricing": {
+ "unit": "second",
+ "usd": 0.08,
+ "note": "768P; 480P $0.05, 1080P $0.16, 2K $0.32; 1.2\u00d7 for audio over 15 s",
+ "byResolution": {
+ "480P": 0.05,
+ "768P": 0.08,
+ "1080P": 0.16,
+ "2K": 0.32
+ },
+ "longFactor": {
+ "over": 15,
+ "factor": 1.2
+ }
+ }
+ },
+ {
+ "id": "minimax-h3-max-relight",
+ "name": "MiniMax H3 Max Relight",
+ "vendor": "MiniMax",
+ "family": "hailuo",
+ "engine": "cloud",
+ "kind": "video",
+ "tagline": "Real footage relit to a light you pick \u2014 direction, colour and softness \u2014 up to 15 s",
+ "routes": [
+ {
+ "op": "relight-video",
+ "provider": "fal",
+ "endpoint": "minimax/h3-max/relight",
+ "map": {
+ "prompt": false,
+ "image": "reference_image_url",
+ "video": "video_url",
+ "seed": "seed",
+ "resolution": "resolution",
+ "fixed": {
+ "aspect_ratio": "adaptive"
+ }
+ }
+ }
+ ],
+ "options": {
+ "seed": true,
+ "resolutions": [
+ "480P",
+ "768P",
+ "1080P",
+ "2K"
+ ],
+ "maxImages": 1,
+ "promptless": true,
+ "lightSphere": true,
+ "promptOptional": true
+ },
+ "badges": [
+ "new"
+ ],
+ "defaults": {
+ "resolution": "768P"
+ },
+ "pricing": {
+ "unit": "second",
+ "usd": 0.08,
+ "note": "768P; 480P $0.05, 1080P $0.16, 2K $0.32; billed on the clip's length",
+ "byResolution": {
+ "480P": 0.05,
+ "768P": 0.08,
+ "1080P": 0.16,
+ "2K": 0.32
+ }
+ }
+ },
+ {
+ "id": "minimax-h3-max-insert",
+ "name": "MiniMax H3 Max Insert a moment",
+ "vendor": "MiniMax",
+ "family": "hailuo",
+ "engine": "cloud",
+ "kind": "video",
+ "tagline": "A new 5\u201313 s moment generated inside your clip, between two points you mark",
+ "routes": [
+ {
+ "op": "insert-moment",
+ "provider": "fal",
+ "endpoint": "minimax/h3-max/insert-video",
+ "map": {
+ "omitEmptyPrompt": true,
+ "videos": "reference_video_urls",
+ "images": "reference_image_urls",
+ "video": "video_url",
+ "seed": "seed",
+ "startTime": {
+ "key": "start_time",
+ "type": "number"
+ },
+ "endTime": {
+ "key": "resume_time",
+ "type": "number"
+ },
+ "resolution": "resolution",
+ "duration": {
+ "key": "duration",
+ "type": "number"
+ },
+ "promptMax": 50000
+ }
+ }
+ ],
+ "options": {
+ "maxVideos": 3,
+ "seed": true,
+ "resolutions": [
+ "480p",
+ "768p"
+ ],
+ "durations": [
+ 5,
+ 6,
+ 8,
+ 10,
+ 12
+ ],
+ "maxImages": 9,
+ "promptOptional": true
+ },
+ "badges": [
+ "new"
+ ],
+ "defaults": {
+ "resolution": "768p",
+ "duration": 5
+ },
+ "pricing": {
+ "unit": "second",
+ "usd": 0.06,
+ "note": "768p; 480p $0.05; only the new moment is billed; references past the first 4,096 tokens add $0.02 per 1,000",
+ "byResolution": {
+ "480p": 0.05,
+ "768p": 0.06
+ }
+ }
+ },
+ {
+ "id": "minimax-h3-max-look-pixel",
+ "name": "MiniMax H3 Max \u00b7 16-bit Pixel look",
+ "vendor": "MiniMax",
+ "family": "hailuo",
+ "engine": "cloud",
+ "kind": "video",
+ "tagline": "A new 5\u201315 s clip with sound, made as 16-bit pixel art in motion, from words or a first frame (it doesn't restyle a clip)",
+ "routes": [
+ {
+ "op": "t2v",
+ "provider": "fal",
+ "endpoint": "minimax/h3-max/styles/16bit-pixel",
+ "map": {
+ "image": "image_url",
+ "seed": "seed",
+ "aspectRatio": "aspect_ratio",
+ "duration": {
+ "key": "duration",
+ "type": "number"
+ }
+ }
+ },
+ {
+ "op": "i2v",
+ "provider": "fal",
+ "endpoint": "minimax/h3-max/styles/16bit-pixel",
+ "map": {
+ "image": "image_url",
+ "seed": "seed",
+ "aspectRatio": "aspect_ratio",
+ "duration": {
+ "key": "duration",
+ "type": "number"
+ }
+ }
+ }
+ ],
+ "options": {
+ "seed": true,
+ "aspectRatios": [
+ "21:9",
+ "16:9",
+ "4:3",
+ "1:1",
+ "3:4",
+ "9:16"
+ ],
+ "durations": [
+ 5,
+ 6,
+ 8,
+ 10,
+ 12,
+ 15
+ ],
+ "maxImages": 1
+ },
+ "badges": [
+ "new",
+ "audio"
+ ],
+ "defaults": {
+ "aspectRatio": "16:9",
+ "duration": 5
+ },
+ "pricing": {
+ "unit": "second",
+ "usd": 0.08,
+ "note": "768p, sound included"
+ }
+ },
+ {
+ "id": "minimax-h3-max-look-hand-drawn",
+ "name": "MiniMax H3 Max \u00b7 Hand-drawn look",
+ "vendor": "MiniMax",
+ "family": "hailuo",
+ "engine": "cloud",
+ "kind": "video",
+ "tagline": "A new 5\u201315 s clip with sound, made as a hand-drawn animation, from words or a first frame (it doesn't restyle a clip)",
+ "routes": [
+ {
+ "op": "t2v",
+ "provider": "fal",
+ "endpoint": "minimax/h3-max/styles/hand-drawn",
+ "map": {
+ "image": "image_url",
+ "seed": "seed",
+ "aspectRatio": "aspect_ratio",
+ "duration": {
+ "key": "duration",
+ "type": "number"
+ }
+ }
+ },
+ {
+ "op": "i2v",
+ "provider": "fal",
+ "endpoint": "minimax/h3-max/styles/hand-drawn",
+ "map": {
+ "image": "image_url",
+ "seed": "seed",
+ "aspectRatio": "aspect_ratio",
+ "duration": {
+ "key": "duration",
+ "type": "number"
+ }
+ }
+ }
+ ],
+ "options": {
+ "seed": true,
+ "aspectRatios": [
+ "21:9",
+ "16:9",
+ "4:3",
+ "1:1",
+ "3:4",
+ "9:16"
+ ],
+ "durations": [
+ 5,
+ 6,
+ 8,
+ 10,
+ 12,
+ 15
+ ],
+ "maxImages": 1
+ },
+ "badges": [
+ "new",
+ "audio"
+ ],
+ "defaults": {
+ "aspectRatio": "16:9",
+ "duration": 5
+ },
+ "pricing": {
+ "unit": "second",
+ "usd": 0.08,
+ "note": "768p, sound included"
+ }
+ },
+ {
+ "id": "minimax-h3-max-look-low-poly",
+ "name": "MiniMax H3 Max \u00b7 Low Poly look",
+ "vendor": "MiniMax",
+ "family": "hailuo",
+ "engine": "cloud",
+ "kind": "video",
+ "tagline": "A new 5\u201315 s clip with sound, made as low-poly 3D, from words or a first frame (it doesn't restyle a clip)",
+ "routes": [
+ {
+ "op": "t2v",
+ "provider": "fal",
+ "endpoint": "minimax/h3-max/styles/low-poly",
+ "map": {
+ "image": "image_url",
+ "seed": "seed",
+ "aspectRatio": "aspect_ratio",
+ "duration": {
+ "key": "duration",
+ "type": "number"
+ }
+ }
+ },
+ {
+ "op": "i2v",
+ "provider": "fal",
+ "endpoint": "minimax/h3-max/styles/low-poly",
+ "map": {
+ "image": "image_url",
+ "seed": "seed",
+ "aspectRatio": "aspect_ratio",
+ "duration": {
+ "key": "duration",
+ "type": "number"
+ }
+ }
+ }
+ ],
+ "options": {
+ "seed": true,
+ "aspectRatios": [
+ "21:9",
+ "16:9",
+ "4:3",
+ "1:1",
+ "3:4",
+ "9:16"
+ ],
+ "durations": [
+ 5,
+ 6,
+ 8,
+ 10,
+ 12,
+ 15
+ ],
+ "maxImages": 1
+ },
+ "badges": [
+ "new",
+ "audio"
+ ],
+ "defaults": {
+ "aspectRatio": "16:9",
+ "duration": 5
+ },
+ "pricing": {
+ "unit": "second",
+ "usd": 0.08,
+ "note": "768p, sound included"
+ }
+ },
+ {
+ "id": "minimax-h3-max-look-retro-toon",
+ "name": "MiniMax H3 Max \u00b7 Retro Toon 70s look",
+ "vendor": "MiniMax",
+ "family": "hailuo",
+ "engine": "cloud",
+ "kind": "video",
+ "tagline": "A new 5\u201315 s clip with sound, made as a 1970s cartoon, from words or a first frame (it doesn't restyle a clip)",
+ "routes": [
+ {
+ "op": "t2v",
+ "provider": "fal",
+ "endpoint": "minimax/h3-max/styles/retro-toon-70s",
+ "map": {
+ "image": "image_url",
+ "seed": "seed",
+ "aspectRatio": "aspect_ratio",
+ "duration": {
+ "key": "duration",
+ "type": "number"
+ }
+ }
+ },
+ {
+ "op": "i2v",
+ "provider": "fal",
+ "endpoint": "minimax/h3-max/styles/retro-toon-70s",
+ "map": {
+ "image": "image_url",
+ "seed": "seed",
+ "aspectRatio": "aspect_ratio",
+ "duration": {
+ "key": "duration",
+ "type": "number"
+ }
+ }
+ }
+ ],
+ "options": {
+ "seed": true,
+ "aspectRatios": [
+ "21:9",
+ "16:9",
+ "4:3",
+ "1:1",
+ "3:4",
+ "9:16"
+ ],
+ "durations": [
+ 5,
+ 6,
+ 8,
+ 10,
+ 12,
+ 15
+ ],
+ "maxImages": 1
+ },
+ "badges": [
+ "new",
+ "audio"
+ ],
+ "defaults": {
+ "aspectRatio": "16:9",
+ "duration": 5
+ },
+ "pricing": {
+ "unit": "second",
+ "usd": 0.08,
+ "note": "768p, sound included"
+ }
+ },
+ {
+ "id": "minimax-h3-max-look-vhs",
+ "name": "MiniMax H3 Max \u00b7 VHS look",
+ "vendor": "MiniMax",
+ "family": "hailuo",
+ "engine": "cloud",
+ "kind": "video",
+ "tagline": "A new 5\u201315 s clip with sound, made as a worn VHS tape, with the tape damage you pick, from words or a first frame (it doesn't restyle a clip)",
+ "routes": [
+ {
+ "op": "t2v",
+ "provider": "fal",
+ "endpoint": "minimax/h3-max/styles/vhs",
+ "map": {
+ "image": "image_url",
+ "seed": "seed",
+ "aspectRatio": "aspect_ratio",
+ "duration": {
+ "key": "duration",
+ "type": "number"
+ }
+ }
+ },
+ {
+ "op": "i2v",
+ "provider": "fal",
+ "endpoint": "minimax/h3-max/styles/vhs",
+ "map": {
+ "image": "image_url",
+ "seed": "seed",
+ "aspectRatio": "aspect_ratio",
+ "duration": {
+ "key": "duration",
+ "type": "number"
+ }
+ }
+ }
+ ],
+ "options": {
+ "controls": [
+ {
+ "param": "damage_level",
+ "label": "Tape wear",
+ "values": [
+ "light",
+ "medium",
+ "heavy"
+ ],
+ "default": "medium"
+ }
+ ],
+ "seed": true,
+ "aspectRatios": [
+ "21:9",
+ "16:9",
+ "4:3",
+ "1:1",
+ "3:4",
+ "9:16"
+ ],
+ "durations": [
+ 5,
+ 6,
+ 8,
+ 10,
+ 12,
+ 15
+ ],
+ "maxImages": 1
+ },
+ "badges": [
+ "new",
+ "audio"
+ ],
+ "defaults": {
+ "aspectRatio": "16:9",
+ "duration": 5
+ },
+ "pricing": {
+ "unit": "second",
+ "usd": 0.08,
+ "note": "768p, sound included"
+ }
+ },
+ {
+ "id": "minimax-h3-max-turbo",
+ "name": "MiniMax H3 Max Turbo",
+ "vendor": "MiniMax",
+ "family": "hailuo",
+ "engine": "cloud",
+ "kind": "video",
+ "tagline": "Fast, cheap H3 Max with sound \u2014 drafts and quick takes from words or frames, 1\u201315 s",
+ "routes": [
+ {
+ "op": "t2v",
+ "provider": "fal",
+ "endpoint": "minimax/h3-max-turbo/text-to-video",
+ "map": {
+ "seed": "seed",
+ "aspectRatio": "aspect_ratio",
+ "resolution": "resolution",
+ "duration": {
+ "key": "duration",
+ "type": "number"
+ },
+ "defaults": {
+ "prompt_expansion_mode": "balanced"
+ }
+ }
+ },
+ {
+ "op": "i2v",
+ "provider": "fal",
+ "endpoint": "minimax/h3-max-turbo/image-to-video",
+ "map": {
+ "image": "image_url",
+ "endImage": "end_image_url",
+ "seed": "seed",
+ "resolution": "resolution",
+ "duration": {
+ "key": "duration",
+ "type": "number"
+ },
+ "defaults": {
+ "prompt_expansion_mode": "balanced"
+ }
+ }
+ },
+ {
+ "op": "flf2v",
+ "provider": "fal",
+ "endpoint": "minimax/h3-max-turbo/image-to-video",
+ "map": {
+ "image": "image_url",
+ "endImage": "end_image_url",
+ "seed": "seed",
+ "resolution": "resolution",
+ "duration": {
+ "key": "duration",
+ "type": "number"
+ },
+ "defaults": {
+ "prompt_expansion_mode": "balanced"
+ }
+ }
+ }
+ ],
+ "options": {
+ "seed": true,
+ "aspectRatios": [
+ "21:9",
+ "16:9",
+ "4:3",
+ "1:1",
+ "3:4",
+ "9:16"
+ ],
+ "resolutions": [
+ "480P",
+ "768P",
+ "1080P"
+ ],
+ "durations": [
+ 3,
+ 4,
+ 5,
+ 6,
+ 8,
+ 10,
+ 12,
+ 15
+ ],
+ "endFrame": true,
+ "maxImages": 1
+ },
+ "badges": [
+ "new",
+ "fast",
+ "audio"
+ ],
+ "defaults": {
+ "aspectRatio": "16:9",
+ "duration": 5,
+ "resolution": "768P"
+ },
+ "pricing": {
+ "unit": "second",
+ "usd": 0.04,
+ "note": "768P; 480P $0.025, 1080P $0.08 \u2014 $0.028 (480P $0.0175, 1080P $0.056) until 2026-11-15",
+ "byResolution": {
+ "480P": 0.025,
+ "768P": 0.04,
+ "1080P": 0.08
+ },
+ "promo": {
+ "until": "2026-11-15",
+ "usd": 0.028,
+ "byResolution": {
+ "480P": 0.0175,
+ "768P": 0.028,
+ "1080P": 0.056
+ }
+ }
+ }
+ },
+ {
+ "id": "minimax-h3-max-turbo-refs",
+ "name": "MiniMax H3 Max Turbo \u00b7 references",
+ "vendor": "MiniMax",
+ "family": "hailuo",
+ "engine": "cloud",
+ "kind": "video",
+ "tagline": "Turbo with up to 9 pictures, 3 clips and 3 sound clips as references (Image 1, Video 1, Audio 1 in the prompt)",
+ "routes": [
+ {
+ "op": "ref2v",
+ "provider": "fal",
+ "endpoint": "minimax/h3-max-turbo/reference-to-video",
+ "map": {
+ "images": "reference_image_urls",
+ "videos": "reference_video_urls",
+ "audios": "reference_audio_urls",
+ "seed": "seed",
+ "aspectRatio": {
+ "key": "aspect_ratio",
+ "accepts": [
+ "21:9",
+ "16:9",
+ "4:3",
+ "1:1",
+ "3:4",
+ "9:16"
+ ]
+ },
+ "resolution": {
+ "key": "resolution",
+ "accepts": [
+ "480P",
+ "768P",
+ "1080P"
+ ]
+ },
+ "duration": {
+ "key": "duration",
+ "type": "number"
+ },
+ "defaults": {
+ "prompt_expansion_mode": "balanced"
+ }
+ }
+ }
+ ],
+ "options": {
+ "maxVideos": 3,
+ "maxAudios": 3,
+ "seed": true,
+ "aspectRatios": [
+ "21:9",
+ "16:9",
+ "4:3",
+ "1:1",
+ "3:4",
+ "9:16"
+ ],
+ "resolutions": [
+ "480P",
+ "768P",
+ "1080P"
+ ],
+ "durations": [
+ 3,
+ 4,
+ 5,
+ 6,
+ 8,
+ 10,
+ 12,
+ 15
+ ],
+ "maxImages": 9
+ },
+ "badges": [
+ "new",
+ "audio"
+ ],
+ "defaults": {
+ "aspectRatio": "16:9",
+ "duration": 5,
+ "resolution": "768P"
+ },
+ "pricing": {
+ "unit": "second",
+ "usd": 0.08,
+ "note": "768P; 480P $0.05, 1080P $0.16; references past the first 4,096 tokens add $0.016 per 1,000",
+ "byResolution": {
+ "480P": 0.05,
+ "768P": 0.08,
+ "1080P": 0.16
+ }
+ }
+ },
+ {
+ "id": "minimax-h3-max-turbo-extend",
+ "name": "MiniMax H3 Max Turbo \u00b7 extend",
+ "vendor": "MiniMax",
+ "family": "hailuo",
+ "engine": "cloud",
+ "kind": "video",
+ "tagline": "Continue a 1.6\u201360 s clip with up to 15 s more, sound and all; only the new seconds are billed",
+ "routes": [
+ {
+ "op": "extend",
+ "provider": "fal",
+ "endpoint": "minimax/h3-max-turbo/extend-video",
+ "map": {
+ "video": "video_url",
+ "audios": "reference_audio_urls",
+ "seed": "seed",
+ "resolution": "resolution",
+ "duration": {
+ "key": "duration",
+ "type": "number"
+ }
+ }
+ }
+ ],
+ "options": {
+ "maxAudios": 3,
+ "seed": true,
+ "resolutions": [
+ "480P",
+ "768P",
+ "1080P",
+ "2K"
+ ],
+ "durations": [
+ 3,
+ 4,
+ 5,
+ 6,
+ 8,
+ 10,
+ 12,
+ 15
+ ]
+ },
+ "badges": [
+ "new",
+ "audio"
+ ],
+ "defaults": {
+ "duration": 5,
+ "resolution": "768P"
+ },
+ "pricing": {
+ "unit": "second",
+ "usd": 0.04,
+ "note": "768P; 480P $0.025, 1080P $0.08, 2K $0.16; only the new seconds",
+ "byResolution": {
+ "480P": 0.025,
+ "768P": 0.04,
+ "1080P": 0.08,
+ "2K": 0.16
+ }
+ }
+ },
+ {
+ "id": "minimax-h3-lite",
+ "name": "MiniMax H3 Lite",
+ "vendor": "MiniMax",
+ "family": "hailuo",
+ "engine": "cloud",
+ "kind": "video",
+ "tagline": "The lightest H3 with sound: words, frames or references, 4\u201315 s at 480P or 768P",
+ "routes": [
+ {
+ "op": "t2v",
+ "provider": "replicate",
+ "endpoint": "minimax/h3-lite",
+ "map": {
+ "aspectRatio": {
+ "key": "ratio",
+ "accepts": [
+ "21:9",
+ "16:9",
+ "4:3",
+ "1:1",
+ "3:4",
+ "9:16"
+ ]
+ },
+ "resolution": {
+ "key": "resolution",
+ "accepts": [
+ "480P",
+ "768P"
+ ]
+ },
+ "duration": {
+ "key": "duration",
+ "type": "number"
+ }
+ }
+ },
+ {
+ "op": "i2v",
+ "provider": "replicate",
+ "endpoint": "minimax/h3-lite",
+ "map": {
+ "image": "first_frame_image",
+ "aspectRatio": {
+ "key": "ratio",
+ "accepts": [
+ "21:9",
+ "16:9",
+ "4:3",
+ "1:1",
+ "3:4",
+ "9:16"
+ ]
+ },
+ "resolution": {
+ "key": "resolution",
+ "accepts": [
+ "480P",
+ "768P"
+ ]
+ },
+ "duration": {
+ "key": "duration",
+ "type": "number"
+ }
+ }
+ },
+ {
+ "op": "flf2v",
+ "provider": "replicate",
+ "endpoint": "minimax/h3-lite",
+ "map": {
+ "image": "first_frame_image",
+ "endImage": "last_frame_image",
+ "aspectRatio": {
+ "key": "ratio",
+ "accepts": [
+ "21:9",
+ "16:9",
+ "4:3",
+ "1:1",
+ "3:4",
+ "9:16"
+ ]
+ },
+ "resolution": {
+ "key": "resolution",
+ "accepts": [
+ "480P",
+ "768P"
+ ]
+ },
+ "duration": {
+ "key": "duration",
+ "type": "number"
+ }
+ }
+ },
+ {
+ "op": "ref2v",
+ "provider": "replicate",
+ "endpoint": "minimax/h3-lite",
+ "map": {
+ "images": "reference_image_urls",
+ "videos": "reference_video_urls",
+ "audios": "reference_audio_urls",
+ "aspectRatio": {
+ "key": "ratio",
+ "accepts": [
+ "21:9",
+ "16:9",
+ "4:3",
+ "1:1",
+ "3:4",
+ "9:16"
+ ]
+ },
+ "resolution": {
+ "key": "resolution",
+ "accepts": [
+ "480P",
+ "768P"
+ ]
+ },
+ "duration": {
+ "key": "duration",
+ "type": "number"
+ }
+ }
+ }
+ ],
+ "options": {
+ "aspectRatios": [
+ "21:9",
+ "16:9",
+ "4:3",
+ "1:1",
+ "3:4",
+ "9:16"
+ ],
+ "resolutions": [
+ "480P",
+ "768P"
+ ],
+ "durations": [
+ 4,
+ 5,
+ 6,
+ 8,
+ 10,
+ 12,
+ 15
+ ],
+ "maxImages": 9,
+ "endFrame": true,
+ "maxVideos": 3,
+ "maxAudios": 3
+ },
+ "badges": [
+ "new",
+ "audio"
+ ],
+ "defaults": {
+ "aspectRatio": "16:9",
+ "duration": 5,
+ "resolution": "768P"
+ },
+ "pricing": {
+ "unit": "second",
+ "usd": 0.04,
+ "note": "768P; 480P $0.025",
+ "byResolution": {
+ "480P": 0.025,
+ "768P": 0.04
+ }
+ }
+ },
+ {
+ "id": "minimax-h3-highspeed",
+ "name": "MiniMax H3 HighSpeed",
+ "vendor": "MiniMax",
+ "family": "hailuo",
+ "engine": "cloud",
+ "kind": "video",
+ "tagline": "H3 tuned for speed, with sound: words, frames or references, 4\u201315 s",
+ "routes": [
+ {
+ "op": "t2v",
+ "provider": "replicate",
+ "endpoint": "minimax/h3-highspeed",
+ "map": {
+ "aspectRatio": {
+ "key": "ratio",
+ "accepts": [
+ "21:9",
+ "16:9",
+ "4:3",
+ "1:1",
+ "3:4",
+ "9:16"
+ ]
+ },
+ "duration": {
+ "key": "duration",
+ "type": "number"
+ }
+ }
+ },
+ {
+ "op": "i2v",
+ "provider": "replicate",
+ "endpoint": "minimax/h3-highspeed",
+ "map": {
+ "image": "first_frame_image",
+ "duration": {
+ "key": "duration",
+ "type": "number"
+ },
+ "fixed": {
+ "ratio": "adaptive"
+ }
+ }
+ },
+ {
+ "op": "flf2v",
+ "provider": "replicate",
+ "endpoint": "minimax/h3-highspeed",
+ "map": {
+ "image": "first_frame_image",
+ "endImage": "last_frame_image",
+ "duration": {
+ "key": "duration",
+ "type": "number"
+ },
+ "fixed": {
+ "ratio": "adaptive"
+ }
+ }
+ },
+ {
+ "op": "ref2v",
+ "provider": "replicate",
+ "endpoint": "minimax/h3-highspeed",
+ "map": {
+ "images": "reference_image_urls",
+ "videos": "reference_video_urls",
+ "audios": "reference_audio_urls",
+ "aspectRatio": {
+ "key": "ratio",
+ "accepts": [
+ "21:9",
+ "16:9",
+ "4:3",
+ "1:1",
+ "3:4",
+ "9:16"
+ ]
+ },
+ "duration": {
+ "key": "duration",
+ "type": "number"
+ }
+ }
+ }
+ ],
+ "options": {
+ "aspectRatios": [
+ "21:9",
+ "16:9",
+ "4:3",
+ "1:1",
+ "3:4",
+ "9:16"
+ ],
+ "durations": [
+ 4,
+ 5,
+ 6,
+ 8,
+ 10,
+ 12,
+ 15
+ ],
+ "maxImages": 9,
+ "endFrame": true,
+ "maxVideos": 3,
+ "maxAudios": 3
+ },
+ "badges": [
+ "new",
+ "audio",
+ "fast"
+ ],
+ "defaults": {
+ "aspectRatio": "16:9",
+ "duration": 5
+ },
+ "pricing": {
+ "unit": "second",
+ "usd": 0.06
+ }
+ },
{
"id": "hailuo-2-3",
"name": "MiniMax Hailuo 2.3",
@@ -8344,6 +9482,130 @@ export const CLOUD_MODELS: ModelDef[] = [
"generateAudio": true
}
},
+ {
+ "id": "vidu-q4",
+ "name": "Vidu Q4",
+ "vendor": "Shengshu",
+ "family": "vidu",
+ "engine": "cloud",
+ "kind": "video",
+ "tagline": "Vidu's newest: a start frame or up to 12 references and 3 voices, 3\u201316 s, up to 4K",
+ "routes": [
+ {
+ "op": "i2v",
+ "provider": "fal",
+ "endpoint": "fal-ai/vidu/q4/image-to-video",
+ "map": {
+ "image": "image_url",
+ "seed": "seed",
+ "resolution": {
+ "key": "resolution",
+ "accepts": [
+ "540p",
+ "720p",
+ "1080p",
+ "2K",
+ "4K"
+ ]
+ },
+ "duration": {
+ "key": "duration",
+ "type": "number"
+ },
+ "promptMax": 5000
+ }
+ },
+ {
+ "op": "ref2v",
+ "provider": "fal",
+ "endpoint": "fal-ai/vidu/q4/reference-to-video",
+ "map": {
+ "images": "reference_image_urls",
+ "audios": "reference_audio_urls",
+ "seed": "seed",
+ "generateAudio": "audio",
+ "aspectRatio": {
+ "key": "aspect_ratio",
+ "accepts": [
+ "16:9",
+ "9:16",
+ "4:3",
+ "3:4",
+ "1:1"
+ ]
+ },
+ "resolution": {
+ "key": "resolution",
+ "accepts": [
+ "540p",
+ "720p",
+ "1080p",
+ "2K",
+ "4K"
+ ]
+ },
+ "duration": {
+ "key": "duration",
+ "type": "number"
+ },
+ "promptMax": 5000
+ }
+ }
+ ],
+ "options": {
+ "seed": true,
+ "resolutions": [
+ "540p",
+ "720p",
+ "1080p",
+ "2K",
+ "4K"
+ ],
+ "durations": [
+ 3,
+ 4,
+ 5,
+ 6,
+ 8,
+ 10,
+ 12,
+ 15
+ ],
+ "maxImages": 12,
+ "maxAudios": 3,
+ "audio": true,
+ "aspectRatios": [
+ "16:9",
+ "9:16",
+ "4:3",
+ "3:4",
+ "1:1"
+ ]
+ },
+ "badges": [
+ "new",
+ "4k",
+ "audio"
+ ],
+ "defaults": {
+ "aspectRatio": "16:9",
+ "duration": 5,
+ "resolution": "720p",
+ "generateAudio": true
+ },
+ "pricing": {
+ "unit": "second",
+ "usd": 0.0665,
+ "note": "720p; 540p $0.0315, 1080p $0.084, 2K $0.133, 4K $0.273; sound costs nothing extra",
+ "byResolution": {
+ "540p": 0.0315,
+ "720p": 0.0665,
+ "1080p": 0.084,
+ "2K": 0.133,
+ "4K": 0.273
+ }
+ }
+ },
{
"id": "luma-ray-3-2",
"name": "Luma Ray 3.2",
@@ -16418,6 +17680,179 @@ export const CLOUD_MODELS: ModelDef[] = [
"animationUsd": 0.12
}
},
+ {
+ "id": "meshy-7-retexture",
+ "name": "Meshy 7 Retexture",
+ "vendor": "Meshy",
+ "family": "meshy",
+ "engine": "cloud",
+ "kind": "model3d",
+ "tagline": "New textures on a 3D model, from words or a style picture",
+ "routes": [
+ {
+ "op": "retexture-3d",
+ "provider": "fal",
+ "endpoint": "meshy/v7/retexture",
+ "map": {
+ "prompt": "text_style_prompt",
+ "omitEmptyPrompt": true,
+ "image": "image_style_url",
+ "model3d": "model_url",
+ "fixed": {
+ "enable_pbr": true
+ },
+ "promptMax": 600
+ }
+ }
+ ],
+ "options": {
+ "controls": [
+ {
+ "param": "texture_resolution",
+ "label": "Texture size",
+ "values": [
+ "2k",
+ "4k",
+ "8k"
+ ],
+ "default": "2k"
+ }
+ ],
+ "maxImages": 1,
+ "promptOptional": true
+ },
+ "badges": [
+ "new"
+ ],
+ "pricing": {
+ "unit": "request",
+ "usd": 0.3,
+ "note": "2K or 4K textures; 8K $0.45; PBR maps included",
+ "factors": [
+ {
+ "param": "texture_resolution",
+ "values": {
+ "8k": 1.5
+ }
+ }
+ ]
+ }
+ },
+ {
+ "id": "meshy-6-retexture",
+ "name": "Meshy 6 Retexture",
+ "vendor": "Meshy",
+ "family": "meshy",
+ "engine": "cloud",
+ "kind": "model3d",
+ "tagline": "New textures on a 3D model, from words or a style picture",
+ "routes": [
+ {
+ "op": "retexture-3d",
+ "provider": "fal",
+ "endpoint": "meshy/v6/retexture",
+ "map": {
+ "prompt": "text_style_prompt",
+ "omitEmptyPrompt": true,
+ "image": "image_style_url",
+ "model3d": "model_url",
+ "fixed": {
+ "enable_pbr": true
+ },
+ "promptMax": 600
+ }
+ }
+ ],
+ "options": {
+ "controls": [
+ {
+ "param": "texture_resolution",
+ "label": "Texture size",
+ "values": [
+ "2k",
+ "4k",
+ "8k"
+ ],
+ "default": "2k"
+ }
+ ],
+ "maxImages": 1,
+ "promptOptional": true
+ },
+ "badges": [
+ "new"
+ ],
+ "pricing": {
+ "unit": "request",
+ "usd": 0.3,
+ "note": "2K or 4K textures; 8K $0.45; PBR maps included",
+ "factors": [
+ {
+ "param": "texture_resolution",
+ "values": {
+ "8k": 1.5
+ }
+ }
+ ]
+ }
+ },
+ {
+ "id": "tripo-p2",
+ "name": "Tripo P2",
+ "vendor": "Tripo",
+ "family": "tripo",
+ "engine": "cloud",
+ "kind": "model3d",
+ "tagline": "Tripo's production tier: game-ready meshes with PBR textures, quads on request",
+ "routes": [
+ {
+ "op": "image-to-3d",
+ "provider": "fal",
+ "endpoint": "tripo3d/p2/image-to-3d",
+ "map": {
+ "prompt": false,
+ "image": "image_url",
+ "seed": "model_seed"
+ }
+ }
+ ],
+ "options": {
+ "controls": [
+ {
+ "param": "texture_quality",
+ "label": "Texture",
+ "values": [
+ "fast",
+ "standard",
+ "detailed",
+ "extreme"
+ ],
+ "default": "standard"
+ }
+ ],
+ "seed": true,
+ "maxImages": 1,
+ "promptless": true
+ },
+ "badges": [
+ "new",
+ "pro"
+ ],
+ "pricing": {
+ "unit": "request",
+ "usd": 1.1,
+ "note": "standard textures; detailed $1.20, extreme $1.30",
+ "factors": [
+ {
+ "param": "texture_quality",
+ "values": {
+ "detailed": 1.0909090909090908,
+ "extreme": 1.1818181818181817
+ }
+ }
+ ]
+ }
+ },
{
"id": "marigold-depth",
"name": "Marigold V2 Depth",
diff --git a/src/lib/catalog/payload.ts b/src/lib/catalog/payload.ts
index 9368f4c9..058a9303 100644
--- a/src/lib/catalog/payload.ts
+++ b/src/lib/catalog/payload.ts
@@ -1008,6 +1008,7 @@ export function extractOutputs(response: unknown, op?: Operation): ExtractedOutp
break;
case "image-to-3d":
case "text-to-3d":
+ case "retexture-3d":
out = model3dOutputs(response);
break;
case "scene-3d":
diff --git a/src/lib/catalog/plan.ts b/src/lib/catalog/plan.ts
index 3f63c3e7..cb826304 100644
--- a/src/lib/catalog/plan.ts
+++ b/src/lib/catalog/plan.ts
@@ -11,7 +11,7 @@ import type {
PresetEndStep,
PresetRoute,
} from "./types";
-import { billedClipSeconds, editClipsProblem, sourceSeconds } from "./clip-windows";
+import { billedClipSeconds, editClipsProblem, insertRangeProblem, sourceSeconds } from "./clip-windows";
import { chainGapProblem, chainTiming, FIRST_AT_ZERO, frameTimes, keyframeChain, MAX_KEYFRAMES, spread } from "./keyframes";
import { cloudPath, fitLoras, gated, localOnly, loraCapacity, needsToken, routeLoraField, triggerOf } from "./loras";
import { anglesPrompt, anglesWords, ANGLES_ORIGINAL } from "./open-tools";
@@ -243,6 +243,8 @@ const PROMPTLESS = new Set<Operation>([
"face-mosaic",
// archive-restore: the scene's words help (period, place, light) but a run without them gets a neutral one
"restore-video",
+ // nm10-hosted-catchup: an inserted moment can be left to the model; a retexture takes words or a style picture
+ "insert-moment", "retexture-3d",
]);
/**
@@ -485,6 +487,8 @@ export function planGeneration(
if (model.options.promptFormat === "minimax-h3" && op === "i2v" && params.extra?.orbit === true && req.params?.duration === undefined && params.duration === model.defaults?.duration) {
params = { ...params, duration: 3 };
}
+ const hosted = hostedInputProblem(model, op, prompt, params, req);
+ if (hosted) throw new Error(hosted);
if (op === "finalize" && !params.draftId) throw new Error("Pick a draft to finish");
if (op === "dialogue" && !params.dialogue?.some((l) => l.text.trim())) throw new Error("Write at least one line");
if (op === "dub" && !params.targetLanguage) throw new Error("Pick a language to translate into");
@@ -788,6 +792,8 @@ const NEEDS: Partial<
"scene-3d": { images: 1, msg: "Add the image to build the scene from" },
splat: { images: 1, msg: "Add a photo of the subject" },
"rig-3d": { model3d: true, msg: "Add the 3D model to rig" },
+ "retexture-3d": { model3d: true, msg: "Add the 3D model to retexture" },
+ "insert-moment": { video: true, msg: "Add the clip to insert a moment into" },
"extract-frames": { video: true, msg: "Add the video to take frames from" },
"images-to-video": { images: 1, msg: "Add the images, in order" },
overlay: { images: 2, msg: "Add the picture and the overlay to put on it" },
@@ -862,6 +868,22 @@ function extraImages(model: ModelDef, op: Operation, req: Pick<GenerationRequest
return `${model.name} takes up to ${max} image${max === 1 ? "" : "s"} for this — remove the others`;
}
+/**
+ * What a hosted endpoint would refuse after it's paid for, caught first in Fuobe's words: a prompt over the API's own limit
+ * (FieldMap.promptMax: Vidu Q4 5,000 characters), a moment inserted outside the clip's first 60 s (H3 Max insert), a relight
+ * without its lit sphere, a retexture with neither words nor a style picture.
+ */
+export function hostedInputProblem(model: Pick<ModelDef, "name" | "routes" | "options">, op: Operation, prompt: string, params: GenParams, req: Pick<GenerationRequest, "inputs">): string | null {
+ const max = Math.min(...model.routes.filter((r) => r.op === op && r.map?.promptMax).map((r) => r.map!.promptMax!));
+ if (Number.isFinite(max) && prompt.length > max) {
+ return `${model.name} takes up to ${max.toLocaleString("en-US")} characters of prompt, and this one has ${prompt.length.toLocaleString("en-US")}: shorten it`;
+ }
+ if (op === "insert-moment") return insertRangeProblem(params.startTime, params.endTime, params.sourceDuration);
+ if (op === "relight-video" && model.options.lightSphere && !req.inputs?.images?.length) return `Pick a light: ${model.name} matches the light on a sphere you choose`;
+ if (op === "retexture-3d" && !prompt.trim() && !req.inputs?.images?.length) return "Describe the new look, or add a style picture";
+ return null;
+}
+
/** Models that need several images (try-on: the person, then the garment). */
function missingImages(model: ModelDef, req: Pick<GenerationRequest, "inputs">): string | null {
const min = model.options.minImages ?? 0;
@@ -875,7 +897,7 @@ function missingImages(model: ModelDef, req: Pick<GenerationRequest, "inputs">):
* price counts the clip's seconds (params.sourceDuration) when the caller knows them, and slow motion bills
* the whole stretched result.
*/
-const CLIP_LENGTH_OPS = new Set<Operation>(["upscale-video", "interpolate", "sdr-to-hdr", "export-video", "restore-video"]);
+const CLIP_LENGTH_OPS = new Set<Operation>(["upscale-video", "interpolate", "sdr-to-hdr", "export-video", "restore-video", "relight-video"]);
/**
* The seconds a clip edit that keeps the clip's length is billed for (Happy Horse, Runway Aleph, Lucy Edit, Kling O3 4K
@@ -1056,6 +1078,8 @@ export function estimateCost(model: ModelDef, params: GenParams, jobs = 1, op?:
const mp = p.videoMegapixel ? videoMegapixels(model, params, seconds) : undefined;
const rate = p.videoMegapixel && (withLoras && p.videoMegapixel.withLoras !== undefined ? p.videoMegapixel.withLoras : p.videoMegapixel.usd);
per = mp !== undefined && rate ? Math.ceil(mp - 1e-9) * rate : usd * seconds;
+ // A long result billed at a higher rate throughout (fal's H3 Max lip sync: 1.2× over 15 s).
+ if (p.longFactor && seconds > p.longFactor.over + 1e-9) per *= p.longFactor.factor;
}
if (p.unit === "minute") per = (usd * (voice ?? params.duration ?? 60)) / 60;
// Settings that change the price (60 fps, a Pro tier, a cheaper model).
diff --git a/src/lib/catalog/types.ts b/src/lib/catalog/types.ts
index ac15098f..a669f719 100644
--- a/src/lib/catalog/types.ts
+++ b/src/lib/catalog/types.ts
@@ -87,7 +87,10 @@ export type Operation =
// N7-5
| "camera-path" // image + params.cameraPath (+ inputs.video: the open engine's render along the path) → the camera following the path
// archive-restore
- | "restore-video"; // archive video (+ prompt: period, place, light; negative: what not to invent) → the same shot clean, in colour, larger
+ | "restore-video" // archive video (+ prompt: period, place, light; negative: what not to invent) → the same shot clean, in colour, larger
+ // nm10-hosted-catchup
+ | "insert-moment" // video + params.startTime / params.endTime (+ prompt, reference images and clips, params.duration: the new scene's length) → the clip with a new scene between them
+ | "retexture-3d"; // 3D model (inputs.model3d) + prompt or a style image → the same model with new textures
export const OPERATION_LABELS: Record<Operation, string> = {
t2i: "Text to image",
@@ -158,6 +161,8 @@ export const OPERATION_LABELS: Record<Operation, string> = {
"face-mosaic": "Pixelate faces",
"camera-path": "Fly path",
"restore-video": "Restore & colourise",
+ "insert-moment": "Insert a moment",
+ "retexture-3d": "Retexture",
};
export const OPERATION_OUTPUT: Record<Operation, MediaKind> = {
@@ -230,6 +235,8 @@ export const OPERATION_OUTPUT: Record<Operation, MediaKind> = {
"face-mosaic": "image",
"camera-path": "video",
"restore-video": "video",
+ "insert-moment": "video",
+ "retexture-3d": "model3d",
};
/**
@@ -503,6 +510,8 @@ export interface FieldMap {
cameraPath?: { key: string; min: number; max: number; elevation: [number, number]; maxTurns: number; free?: { key: string; values: string[] } };
/** An empty prompt is left out rather than sent as "" (APIs that read a missing prompt as "no words": Bria Expand). */
omitEmptyPrompt?: boolean;
+ /** The most characters the API's prompt field takes (its schema's maxLength: Vidu Q4 5,000, Meshy retexture 600): a longer one is refused before it's paid for. */
+ promptMax?: number;
/** params.extra keys this route has no field for (a model-wide control only its other routes read): left out. */
ignore?: string[];
/**
@@ -630,6 +639,11 @@ export interface ModelOptions {
promptless?: boolean;
/** The prompt box shows, but the model also runs without words (P-Video Replace, Genjutsu Lite object swap). */
promptOptional?: boolean;
+ /**
+ * The light goes as a picture of a lit sphere (fal's H3 Max relight: reference_image_url), drawn in the browser from a light
+ * preset (src/lib/relight-sphere.ts) and sent as the run's image; no words.
+ */
+ lightSphere?: boolean;
/** The words a run takes when none are given (Fuobe Try-On: its try-on LoRA's own instruction). */
defaultPrompt?: string;
/** The prompt box's placeholder for this model (Open-H3 Regenerate: describe the clip it redraws). */
@@ -734,6 +748,11 @@ export interface Pricing {
* rate of a run without clips).
*/
clipInput?: { usd: number; byResolution?: Record<string, number>; plain?: true };
+ /**
+ * A per-second price multiplied by `factor` for a result longer than `over` seconds (fal's H3 Max lip sync: 1.2× for a video
+ * over 15 s, the whole video at the higher rate).
+ */
+ longFactor?: { over: number; factor: number };
/** A fixed fee each request adds on top of its seconds (fal's H3 Max 3D to video: $0.50 processing). */
perRequest?: number;
/** The fewest seconds a per-second request bills (fal's H3 Max 3D to video: 5 s a shot). */
diff --git a/src/server/generations.ts b/src/server/generations.ts
index f8c0ffc4..8eb859ba 100644
--- a/src/server/generations.ts
+++ b/src/server/generations.ts
@@ -12,7 +12,7 @@ import { cueText, type Cue } from "@/lib/cues";
import { HELPER_FEATURES, HELPER_SUFFIX, isReviewStatus, type AssetUse, type ReviewFilter } from "@/lib/library";
import { upscaleTier } from "@/lib/av/upscale";
import { chainedWaitMessage, framesWait, keyframeChain } from "@/lib/catalog/keyframes";
-import { clipFpsProblem, clipSizeProblem, clipTotalProblem, clipWindowProblem, elementClipProblem, sourceFrames } from "@/lib/catalog/clip-windows";
+import { clipFpsProblem, clipSizeProblem, clipTotalProblem, clipWindowProblem, elementClipProblem, insertRangeProblem, sourceFrames, voiceWindowProblem } from "@/lib/catalog/clip-windows";
import { avatarSeconds, clipEditSeconds, estimateCost, inferOperation, movedAppRequest, planGeneration, presetRoute, routeLoras, routesFor, withoutTriggers } from "@/lib/catalog/plan";
import { framedLength, keepMatte, sizeValue } from "@/lib/catalog/payload";
import { fitLoras, loraName, lorasFit } from "@/lib/catalog/loras";
@@ -1737,6 +1737,21 @@ async function submitNow(
update(id, { cost_usd: estimateCost(plan.model, { ...plan.params, sourceDuration: input.sourceDuration, sourceFps: input.sourceFps }, 1, plan.op, plan.loras.length > 0 && !!route.loraEndpoint) });
}
}
+ // A clip relit, extended or given a new moment, or a voice made into a talking video, held to the hosted model's window once
+ // its header is read (fal's H3 Max relight: up to 15 s; insert and Turbo extend: up to 60 s; lip sync: 5 s to 15 min).
+ if (input.sourceDuration && !req.chain?.length && providerId !== "mock" && plan.model.engine !== "open") {
+ const problem =
+ plan.op === "avatar"
+ ? voiceWindowProblem(plan.model, input.sourceDuration)
+ : plan.op === "relight-video" || plan.op === "extend"
+ ? clipWindowProblem(plan.model, input.sourceDuration, input.sourceFps)
+ : plan.op === "insert-moment"
+ ? (clipWindowProblem(plan.model, input.sourceDuration, input.sourceFps) ?? insertRangeProblem(input.startTime, input.endTime, input.sourceDuration))
+ : null;
+ if (problem) throw new Error(problem);
+ // A relight is billed on the clip's length: priced for it once the header is read (an API call that didn't say).
+ if (plan.op === "relight-video" && plan.params.sourceDuration === undefined) update(id, { cost_usd: estimateCost(plan.model, { ...plan.params, sourceDuration: input.sourceDuration }, 1, plan.op) });
+ }
const edits = plan.op === "v2v" || plan.op === "video-swap" || plan.op === "video-insert";
// An edit whose route sends no length keeps the clip's own (Kling 4.0's edit, swap and insert), whatever the request
// said: the clip is held to the model's window, sides, shape and frame rate before it's paid for. Frame-billed routes
diff --git a/src/server/providers/mock.ts b/src/server/providers/mock.ts
index 1f8bfff4..dc50e102 100644
--- a/src/server/providers/mock.ts
+++ b/src/server/providers/mock.ts
@@ -322,6 +322,9 @@ function demoOutputs(op: Operation | undefined, kind: MediaKind, prompt: string,
return [{ url: "sample:demo-model.glb", kind: "model3d", contentType: "model/gltf-binary", meta: { demo: true, format: "glb", splat: true } }];
case "rig-3d":
return [{ url: "sample:demo-model.glb", kind: "model3d", contentType: "model/gltf-binary", meta: { demo: true, format: "glb", rigged: true } }];
+ // A retexture comes back as the demo mesh (a real one is the same model with its new textures).
+ case "retexture-3d":
+ return [{ url: "sample:demo-model.glb", kind: "model3d", contentType: "model/gltf-binary", meta: { demo: true, format: "glb", retextured: true } }];
case "ocr":
return [demoOcr(brief)];
// As many frames as were asked for (max_frames), 4 without a count.
@@ -352,6 +355,7 @@ function demoOutputs(op: Operation | undefined, kind: MediaKind, prompt: string,
...(meta.master ? [{ url: `sample:${sampleClip(ar)}`, kind: "video" as const, contentType: "video/mp4", meta: { role: "master", demo: true } }] : []),
];
case "video-insert":
+ case "insert-moment":
case "restore-video":
case "keyframes":
case "still-motion":