Video Generation
TF Design has two distinct video paths, and choosing the wrong one is the most common mistake:
| Path | What it produces | Use when |
|---|---|---|
| Video models | Diffusion-generated footage (.mp4) | You want invented footage — a whale breaching, a product in motion |
HyperFrames (hyperframes-html) | A locally rendered HTML/CSS composition (.mp4) | You want graphics you can edit and re-render |
For animated slides, explainers, kinetic type, and anything the user will want to tweak, use Motion instead of either.
Video models
| Id | Label | Character | Max length | Honors --length | Caps |
|---|---|---|---|---|---|
sorcerer_motion | Sorcerer Motion | Cinematic camera motion — default | 5s | No | t2v, i2v |
mystica_motion | Mystica Motion | Dynamic scenes | 5s | No | t2v, i2v |
mystica_motion_pro | Mystica Motion Pro | Premium motion control | 5s | No | t2v, i2v |
mystica_video_sd | Mystica Video SD | Flexible clip length | 6s | Yes | t2v, i2v |
hyperframes-html | HyperFrames (HTML) | Local GSAP composition → MP4 | 600s | No | html2mp4 |
t2v = text-to-video, i2v = accepts a reference image.
The duration ceiling is real
Only mystica_video_sd honours a length parameter. The other three have a hardcoded 5-second render — the backend ignores the flag entirely. The registry encodes this as supportsLength: false and the dispatcher tells you when a request was clamped rather than pretending a 30-second clip worked.
Offered lengths are 3, 5, and 6 seconds. Anything longer is a sequence job, not a longer clip.
Multi-shot sequences
media sequence renders several shots in order, using the last frame of each shot as the first frame of the next for visual continuity, then concatenates them with ffmpeg.
"$OD_NODE_BIN" "$OD_BIN" media sequence \
--project "$OD_PROJECT_ID" \
--model mystica_video_sd \
--segment "A ceramic cup rotates slowly on paper, warm side light" \
--segment "Camera drifts closer as steam rises" \
--segment "Pull back to reveal the full table setting" \
--aspect 16:9 --length 5
| Rule | Detail |
|---|---|
| Shot count | Minimum 2, maximum 8 |
| Model | Must advertise i2v — a non-i2v model has no continuity to chain |
| Length | Per shot, clamped to the model ceiling |
| Output | One mp4; intermediate clip files are cleaned up |
| Requirements | ffmpeg and ffprobe on PATH |
Over MCP the same operation is media_sequence, which returns a taskId to drive with wait_media.
HyperFrames (local HTML → MP4)
hyperframes-html is not a backend model. The agent scaffolds a composition directory in the project (hyperframes.json, meta.json, index.html) and the daemon runs npx hyperframes render against it.
It runs on the daemon rather than in the agent's shell on purpose: Claude Code wraps Bash in macOS sandbox-exec, under which Puppeteer's Chrome hangs mid-capture.
"$OD_NODE_BIN" "$OD_BIN" media generate \
--project "$OD_PROJECT_ID" \
--surface video \
--model hyperframes-html \
--composition-dir composition \
--output launch.mp4
| Parameter | Meaning |
|---|---|
--composition-dir | Project-relative directory holding the composition |
| Max duration | 600s — this renderer is not bound by the 5–6s model ceiling |
Use this when the deliverable is graphics rather than footage but you want the media pipeline (task tracking, project file placement) rather than the motion skeleton.
Image-to-video
Pass --image <project-relative path> (MCP: image) and the still becomes the first frame. The daemon reads the file from the project, base64-encodes it, and forwards it upstream.
"$OD_NODE_BIN" "$OD_BIN" media generate \
--surface video --model sorcerer_motion \
--image assets/hero.png \
--prompt "Slow parallax push into the scene"
Every video model supports i2v, which is also why they can all anchor a sequence.
Parameters
| Parameter | Values | Notes |
|---|---|---|
--aspect | 1:1 16:9 9:16 4:3 3:4 | |
--length | 3 5 6 | Ignored by three of five models |
--image | project-relative path | Image-to-video |
--prompt-influence | 0–1 | |
--loop | boolean | Looping output |
Using video in artifacts
<video src="assets/clip.mp4" autoplay loop muted playsinline></video>
As a background:
.hero-video { position: absolute; inset: 0; object-fit: cover; width: 100%; height: 100%; }
Tips
- Be specific about camera language — movement, lens, lighting, mood.
- Keep prompts tight. Very long prompts reduce adherence.
- Plan the shot list before dispatching. Each shot is a full render; a wrong plan costs minutes.
- Prefer a sequence over a single long clip. The ceiling is per model, and continuity is the point.
Routes
| Endpoint | Method | Description |
|---|---|---|
/api/projects/:id/media/generate | POST | Single clip (surface: "video") |
/api/projects/:id/media/sequence | POST | Multi-shot sequence → one mp4 |
/api/media/motion/models | GET | Motion renderer registry (distinct from video) |
/api/media/tasks/:id/wait | POST | Long-poll |
See Motion for the code-authored animation path.