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.

N7-5: H3 Max camera-controls as a hidden cloud helper, priced by the run's date

Claudee5df7ec7224e
diff --git a/docs/research/paid-model-apis-2.json b/docs/research/paid-model-apis-2.json
index 936501ed..e70fd11c 100644
--- a/docs/research/paid-model-apis-2.json
+++ b/docs/research/paid-model-apis-2.json
@@ -23132,6 +23132,28 @@
"minItems": 2,
"maxItems": 12,
"desc": "Ordered camera keyframes. The first pose is held before its time and the final pose is held for the remainder of the video. Signed full turns are preserved, with at most 32 turns of total azimuth travel."
+ },
+ "free_camera_preset": {
+ "type": "enum",
+ "required": false,
+ "nullable": true,
+ "values": [
+ "truck_right",
+ "truck_left",
+ "pedestal_up",
+ "pedestal_down",
+ "dolly_in",
+ "dolly_out",
+ "pan_right",
+ "pan_left",
+ "tilt_up",
+ "tilt_down",
+ "roll_right",
+ "roll_left",
+ "s_curve_forward"
+ ],
+ "valueType": "string",
+ "desc": "A fixed free-camera move. Truck, pedestal, and dolly slide the camera; pan, tilt, and roll turn it in place. The path is not editable. When this is set, camera_trajectory is ignored. Each move is one training-scale step: one near-depth unit, 30 degrees of pan, or 20 degrees of tilt or roll."
}
},
"keyFields": {
@@ -23140,7 +23162,8 @@
"resolution": "resolution",
"duration": "duration",
"seed": "seed",
- "trajectory": "camera_trajectory"
+ "trajectory": "camera_trajectory",
+ "freeCamera": "free_camera_preset"
},
"output": "video.url",
"outputShape": {
@@ -23150,7 +23173,7 @@
},
"price": "Video costs $0.0325 per second at 480p, $0.052 per second at 768p, and $0.104 per second at 1080p. Note: these are promotional rates, 35% off for a limited time. The discount ends October 31, after which 480p is $0.05/second, 768p is $0.08/second, and 1080p is $0.16/second.",
"replicateEquivalent": null,
- "notes": "Camera path only: camera_trajectory[{time 0-1,azimuth,elevation -90..90,distance}] 2-12 keyframes; prompt_expansion_mode is REQUIRED (disabled|balanced|quality).",
+ "notes": "Camera path only: camera_trajectory[{time 0-1,azimuth,elevation -90..90,distance}] 2-12 keyframes; prompt_expansion_mode is REQUIRED (disabled|balanced|quality). free_camera_preset (13 fixed moves, e.g. truck_left / truck_right) replaces the trajectory; added from the queue OpenAPI on 2026-10-29 (build plan N7-5).",
"verified": true,
"sourceUrl": "https://fal.ai/models/minimax/h3-max/camera-controls/api",
"schemaUrl": "https://fal.ai/api/openapi/queue/openapi.json?endpoint_id=minimax/h3-max/camera-controls"
diff --git a/scripts/gen-cloud-models.py b/scripts/gen-cloud-models.py
index 04f03aaa..b0e80f25 100644
--- a/scripts/gen-cloud-models.py
+++ b/scripts/gen-cloud-models.py
@@ -469,6 +469,16 @@ model("minimax-h3-max", "MiniMax H3 Max", "MiniMax", "hailuo", "video", "Top-tie
[("t2v", "minimax/h3-max/text-to-video"), ("i2v", "minimax/h3-max/image-to-video", "fal", "+flf2v"), ("ref2v", "minimax/h3-max/reference-to-video"),
("extend", "minimax/h3-max/extend-video")],
badges=["pro"], defaults={"aspectRatio": "16:9"})
+# Build plan N7-5 (Fly path in Cinema's 3D scene): H3 Max following a keyframed camera path from one still. A hidden
+# helper (Cinema's "Film this path" picks it), priced per second by resolution: fal's launch rates until 2026-10-31, then
+# the list rates (Pricing.promo). Prompt expansion stays off so the user's motion words reach the model as written.
+model("minimax-h3-max-camera", "MiniMax H3 Max camera controls", "MiniMax", "hailuo", "video",
+ "A still filmed along a camera path you keyframe: orbits, arcs, dollies and slides that follow the path exactly",
+ [("camera-path", "minimax/h3-max/camera-controls")], hidden=True, ranged_durations=True,
+ defaults={"duration": 5, "resolution": "768P"}, fixed={"prompt_expansion_mode": "disabled"},
+ pricing=("second", 0.08, "768P; 480P $0.05, 1080P $0.16 — launch price $0.052 (480P $0.0325, 1080P $0.104) until 2026-10-31",
+ {"byResolution": {"480P": 0.05, "768P": 0.08, "1080P": 0.16},
+ "promo": {"until": "2026-10-31", "usd": 0.052, "byResolution": {"480P": 0.0325, "768P": 0.052, "1080P": 0.104}}}))
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})
@@ -1431,7 +1441,7 @@ def enum_of(inputs, key):
# Operations research part 4 added (their numeric fields get FieldMap.ranges).
ROUND4_OPS = ("remove-object", "video-swap", "video-insert", "keyframes", "sdr-to-hdr", "export-video", "ocr", "still-motion", "audio-loop",
- "audio-join", "scene-3d", "splat", "text-to-3d", "rig-3d", "extract-frames", "images-to-video", "overlay")
+ "audio-join", "scene-3d", "splat", "text-to-3d", "rig-3d", "extract-frames", "images-to-video", "overlay", "camera-path")
def part4_slots(op, kf, inputs, m, opts, fmap):
@@ -1468,6 +1478,8 @@ def part4_slots(op, kf, inputs, m, opts, fmap):
warn(f"{m['id']}: format values {bad or list(m['formats'].values())} not in its output-format enum")
if "crossfade" in kf and op in ("audio-loop", "audio-join"):
fmap["crossfade"] = kf["crossfade"]
+ if "trajectory" in kf and op == "camera-path":
+ camera_path_slot(kf, inputs, m, fmap)
if "zoom" in kf and op == "still-motion":
z = {"factor": kf["zoom"]}
# The furthest it zooms (fal: 2x); a steeper move is sent at that.
@@ -1559,6 +1571,28 @@ def part4_ranges(op, inputs, fmap):
fmap["ranges"] = ranges
+def camera_path_slot(kf, inputs, m, fmap):
+ """A camera path (build plan N7-5: H3 Max camera-controls): FieldMap.cameraPath from the trajectory field's schema,
+ keyframes {time, azimuth, elevation, distance} (the item fields must carry those names), their count, the height's
+ limits and the most turns its description allows; plus the endpoint's fixed moves (free_camera_preset) when it has them."""
+ spec = inputs.get(kf["trajectory"]) or {}
+ item = spec.get("itemSchema") or {}
+ if spec.get("type") != "array" or not {"time", "azimuth", "elevation", "distance"} <= set(item):
+ warn(f"{m['id']}: {kf['trajectory']} is not a list of {{time, azimuth, elevation, distance}} keyframes")
+ return
+ el = item["elevation"]
+ turns = re.search(r"at most (\d+) turns", spec.get("desc") or "")
+ f = {"key": kf["trajectory"], "min": int(spec.get("minItems") or 2), "max": int(spec.get("maxItems") or 12),
+ "elevation": [num(el.get("minimum")) if num(el.get("minimum")) is not None else -90, num(el.get("maximum")) if num(el.get("maximum")) is not None else 90],
+ "maxTurns": int(turns[1]) if turns else 32}
+ free = kf.get("freeCamera")
+ values = enum_of(inputs, free) if free else []
+ if values:
+ f["free"] = {"key": free, "values": [v for v in values if isinstance(v, str)]}
+ fmap["cameraPath"] = f
+
+
+
def build_route(op, ep, provider, m, opts, ropts=None):
ropts = ropts or {}
# A Replicate model run by version ("owner/name:<version>") is researched under its name.
diff --git a/src/lib/catalog/cloud-models.generated.ts b/src/lib/catalog/cloud-models.generated.ts
index 2787884b..e9067e50 100644
--- a/src/lib/catalog/cloud-models.generated.ts
+++ b/src/lib/catalog/cloud-models.generated.ts
@@ -6310,6 +6310,111 @@ export const CLOUD_MODELS: ModelDef[] = [
"usd": 0.0325
}
},
+ {
+ "id": "minimax-h3-max-camera",
+ "name": "MiniMax H3 Max camera controls",
+ "vendor": "MiniMax",
+ "family": "hailuo",
+ "engine": "cloud",
+ "kind": "video",
+ "tagline": "A still filmed along a camera path you keyframe: orbits, arcs, dollies and slides that follow the path exactly",
+ "routes": [
+ {
+ "op": "camera-path",
+ "provider": "fal",
+ "endpoint": "minimax/h3-max/camera-controls",
+ "map": {
+ "image": "image_url",
+ "seed": "seed",
+ "cameraPath": {
+ "key": "camera_trajectory",
+ "min": 2,
+ "max": 12,
+ "elevation": [
+ -90,
+ 90
+ ],
+ "maxTurns": 32,
+ "free": {
+ "key": "free_camera_preset",
+ "values": [
+ "truck_right",
+ "truck_left",
+ "pedestal_up",
+ "pedestal_down",
+ "dolly_in",
+ "dolly_out",
+ "pan_right",
+ "pan_left",
+ "tilt_up",
+ "tilt_down",
+ "roll_right",
+ "roll_left",
+ "s_curve_forward"
+ ]
+ }
+ },
+ "resolution": "resolution",
+ "duration": {
+ "key": "duration",
+ "type": "number"
+ },
+ "ranges": {
+ "duration": {
+ "min": 0.92,
+ "max": 15
+ }
+ },
+ "fixed": {
+ "prompt_expansion_mode": "disabled"
+ }
+ }
+ }
+ ],
+ "options": {
+ "seed": true,
+ "resolutions": [
+ "480P",
+ "768P",
+ "1080P"
+ ],
+ "durations": [
+ 3,
+ 4,
+ 5,
+ 6,
+ 8,
+ 10,
+ 12,
+ 15
+ ],
+ "maxImages": 1
+ },
+ "defaults": {
+ "duration": 5,
+ "resolution": "768P"
+ },
+ "pricing": {
+ "unit": "second",
+ "usd": 0.08,
+ "note": "768P; 480P $0.05, 1080P $0.16 \u2014 launch price $0.052 (480P $0.0325, 1080P $0.104) until 2026-10-31",
+ "byResolution": {
+ "480P": 0.05,
+ "768P": 0.08,
+ "1080P": 0.16
+ },
+ "promo": {
+ "until": "2026-10-31",
+ "usd": 0.052,
+ "byResolution": {
+ "480P": 0.0325,
+ "768P": 0.052,
+ "1080P": 0.104
+ }
+ }
+ },
+ "hidden": true
+ },
{
"id": "hailuo-2-3",
"name": "MiniMax Hailuo 2.3",
diff --git a/src/lib/catalog/models.ts b/src/lib/catalog/models.ts
index d063c252..3643c887 100644
--- a/src/lib/catalog/models.ts
+++ b/src/lib/catalog/models.ts
@@ -1388,6 +1388,21 @@ const open: ModelDef[] = [
],
},
}),
+ // N7-5: Cinema's "Film this path" on the GPU. The browser renders the 3D scene along the path (Uni3C's render_video);
+ // Wan 2.1 I2V starts from the still and Uni3C keeps its camera on the render. 81 frames at 16 fps, always.
+ o({
+ id: "oss-uni3c-path",
+ name: "Wan 2.1 + Uni3C path",
+ vendor: "Alibaba (Wan, DAMO Uni3C)",
+ family: "wan",
+ kind: "video",
+ tagline: "A still filmed along the camera path you fly in the 3D scene: Uni3C keeps Wan 2.1 on your path · 5 s · ~48 GB GPU · Apache-2.0",
+ badges: ["new"],
+ hidden: true,
+ routes: [comfy("camera-path", "wan21-i2v-uni3c-path", "your browser's render of the path guides Wan 2.1 I2V 720P through core Uni3C")],
+ options: { resolutions: ["480p", "720p"], aspectRatios: ["auto", ...VID_AR], seed: true, maxImages: 1 },
+ defaults: { resolution: "480p", aspectRatio: "auto" },
+ }),
o({
id: "oss-tryon-klein",
name: "FLUX.2 [klein] Try-On",
@@ -1541,8 +1556,17 @@ function withLastFrameExtend(m: ModelDef): ModelDef {
return { ...m, routes: [...m.routes, { op: "extend", provider: "fal", endpoint: LAST_FRAME_CHAIN, note: "last frame → Kling image-to-video → joined" }] };
}
-/** A launch price while it lasts, the list price after (FLUX 3 Max); read once, when the catalog loads. */
-const withCurrentPrice = (m: ModelDef): ModelDef => (m.pricing?.promo ? { ...m, pricing: pricingAt(m.pricing) } : m);
+/**
+ * A launch price while it lasts, the list price after (FLUX 3 Max, H3 Max camera controls): read each time the price is,
+ * so a run is priced at the rate of the day it runs, even on a server started before the launch price ended.
+ */
+const withCurrentPrice = (m: ModelDef): ModelDef => {
+ const raw = m.pricing;
+ if (!raw?.promo) return m;
+ const out = { ...m };
+ Object.defineProperty(out, "pricing", { get: () => pricingAt(raw), enumerable: true, configurable: true });
+ return out;
+};
/** Cloud models (fal and Replicate) and the cloud tools. */
const cloud: ModelDef[] = [...CLOUD_MODELS.map(withLastFrameExtend).map(withCurrentPrice), ...cloudTools];
diff --git a/src/lib/catalog/payload.ts b/src/lib/catalog/payload.ts
index 94eba0a8..0dc6967d 100644
--- a/src/lib/catalog/payload.ts
+++ b/src/lib/catalog/payload.ts
@@ -1,4 +1,5 @@
import { readTimeline, timelineTracks } from "@/lib/av/timeline";
+import { toH3MaxTrajectory, type CameraKey } from "@/lib/camera-path";
import { upscaleFactorFor } from "@/lib/av/upscale";
import { loraFields } from "./loras";
import { OPERATION_OUTPUT, type DurationField, type EnumField, type FieldMap, type GenInput, type MatteOutput, type MediaKind, type Operation, type PixelPoint } from "./types";
@@ -8,6 +9,21 @@ function enumValue(field: string | EnumField, value: string): [string, unknown]
return [field.key, field.values && value in field.values ? field.values[value] : value];
}
+/**
+ * A camera path as the route takes it (H3 Max camera-controls): the keyframes within the route's limits, or, for a pure
+ * slide, the endpoint's own truck move in place of them (the field the schema says replaces the trajectory).
+ */
+export function cameraPathFields(f: NonNullable<FieldMap["cameraPath"]>, keys: CameraKey[]): Record<string, unknown> {
+ const cam = toH3MaxTrajectory(keys, { min: f.min, max: f.max, elevation: f.elevation, maxTurns: f.maxTurns });
+ if ("freeCamera" in cam) {
+ if (f.free?.values.includes(cam.freeCamera)) return { [f.free.key]: cam.freeCamera };
+ // No fixed moves on this route: the slide is sent as a still trajectory (the camera holds its pose).
+ const held = toH3MaxTrajectory(keys.map((k) => ({ ...k, truck: 0 })), { min: f.min, max: f.max, elevation: f.elevation, maxTurns: f.maxTurns });
+ return "trajectory" in held ? { [f.key]: held.trajectory } : {};
+ }
+ return { [f.key]: cam.trajectory };
+}
+
/** "16:9" → 16/9; undefined for "auto" and other names. */
function ratioOf(v: string): number | undefined {
const m = /^(\d+(?:\.\d+)?):(\d+(?:\.\d+)?)$/.exec(v.trim());
@@ -410,6 +426,7 @@ export function buildPayload(map: FieldMap, input: GenInput): Record<string, unk
out[map.animation.key] = numeric ? n : input.animation;
if (map.animation.flag) out[map.animation.flag] = true;
}
+ if (map.cameraPath && input.cameraPath?.length) Object.assign(out, cameraPathFields(map.cameraPath, input.cameraPath));
if (map.numFrames) {
const n = numFramesValue(map.numFrames, input);
if (n !== undefined) out[map.numFrames.key] = n;
diff --git a/src/lib/catalog/types.ts b/src/lib/catalog/types.ts
index 4713f1df..841398b9 100644
--- a/src/lib/catalog/types.ts
+++ b/src/lib/catalog/types.ts
@@ -7,6 +7,7 @@
* (fal, replicate, comfyui, ...). Presets (apps, camera motions, effects) sit on top
* of models and add prompt templates, fixed inputs and LoRAs.
*/
+import type { CameraKey } from "@/lib/camera-path";
import type { SignatureRecord } from "./palettes";
export type Engine = "cloud" | "open";
@@ -81,7 +82,9 @@ export type Operation =
| "images-to-video" // images in order → a video at params.fps
| "overlay" // image + a second image (logo) → composited (params.position, params.scale)
// round 5 (O11)
- | "face-mosaic"; // image → the same picture with the faces (or what the prompt names) pixelated: SAM 3.1 mask + mosaic
+ | "face-mosaic" // image → the same picture with the faces (or what the prompt names) pixelated: SAM 3.1 mask + mosaic
+ // N7-5
+ | "camera-path"; // image + params.cameraPath (+ inputs.video: the open engine's render along the path) → the camera following the path
export const OPERATION_LABELS: Record<Operation, string> = {
t2i: "Text to image",
@@ -149,6 +152,7 @@ export const OPERATION_LABELS: Record<Operation, string> = {
"images-to-video": "Images to video",
overlay: "Overlay image",
"face-mosaic": "Pixelate faces",
+ "camera-path": "Fly path",
};
export const OPERATION_OUTPUT: Record<Operation, MediaKind> = {
@@ -218,6 +222,7 @@ export const OPERATION_OUTPUT: Record<Operation, MediaKind> = {
"images-to-video": "video",
overlay: "image",
"face-mosaic": "image",
+ "camera-path": "video",
};
/**
@@ -451,6 +456,12 @@ export interface FieldMap {
ranges?: Record<string, { min?: number; max?: number; integer?: boolean }>;
/** The most images this route's image list takes, when fewer than the model's options.maxImages (another route takes more). */
maxImages?: number;
+ /**
+ * A camera path (params.cameraPath, build plan N7-5) as the API's keyframes [{time, azimuth, elevation, distance}]:
+ * `min`–`max` of them, the height kept inside `elevation`, at most `maxTurns` turns of travel. `free`: the API's fixed
+ * moves (H3 Max's free_camera_preset), which a pure slide (Truck left / right) is sent as instead of the keyframes.
+ */
+ 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;
/** params.extra keys this route has no field for (a model-wide control only its other routes read): left out. */
@@ -741,6 +752,8 @@ export interface GenParams {
scale?: number;
/** An animation preset for a rigged model (the provider's preset id). */
animation?: string | number;
+ /** A camera path's keyframes (N7-5, src/lib/camera-path.ts): the cloud route sends them as its trajectory. */
+ cameraPath?: CameraKey[];
/** Free-form advanced params forwarded to the provider payload. */
extra?: Record<string, unknown>;
}