Anime Production
v3.6.0Animates finished artwork into a video cut to music with local LTX video on your GPU.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
animate_shot
Animate one illustration with LTX-2.5 — THE SEED HUNT, as a single call. For each seed: render on the Klein ComfyUI, make a `view_fps` preview (every other frame of the 24 fps take, so it plays at true speed on twos), measure its motion, and record it. Returns every take, sorted best-first by `maxdev`. length: 49 (2 s) or 97 (4 s). NOT 17 — at 17 frames 2.5 has only three latent frames: every take sat still to frame 8, lurched at frame 9 and tore faces. ~3.5 min a 49-frame take on the 6 GB card at 1920x1088. A 97 is NOT twice that: two 97-frame takes at 1920x1…
| Parameter | Type | Description |
|---|---|---|
image_path * | string | |
name * | string | |
project * | string | |
prompt * | string | |
fps | number | |
height | ||
last_frame_path | ||
length | integer | |
measure_box | ||
seeds | ||
strength | number | |
view_fps | integer | |
width |
animate_shot_cloud
Animate one illustration on a paid Higgsfield video model — BILLED PER TAKE. For the shots LTX cannot do: an action that must actually happen (a full kick, a thrust, a sprint) and faces and hands that must survive it. Everything else — hair, cloth, small gestures, camera drift — stays on the free `animate_shot`. model: REQUIRED, so a paid run always names its model — one of seedance-2.5, seedance-2.0, kling-3.0-std, kling-3.0-pro, kling-4.0 (cloud_video.MODELS has each one's limits). ref_images: the characters' sprites, for a model whose first-…
| Parameter | Type | Description |
|---|---|---|
image_path * | string | |
model * | string | |
name * | string | |
project * | string | |
prompt * | string | |
duration | integer | |
estimate_only | boolean | |
last_frame_path | ||
max_usd | ||
measure_box | ||
ref_images | ||
resolution | string | |
takes | integer | |
view_fps | integer |
edit_shot_cloud
Redo an existing take on a paid Higgsfield video-edit model — BILLED PER TAKE. For an LTX take whose MOTION is right but whose faces or hands smear: the model gets the take itself and redraws it, keeping the motion and camera. When the motion itself is wrong, animate_shot_cloud from the panel instead. model: REQUIRED — seedance-2.5-edit or kling-4.0-edit. clip_path: the take, at its full frame rate (the shot's own .webp or .mp4, not the 12 fps preview), so the model sees every drawing. ref_images: the panel the take was made from, and any character sheet,…
| Parameter | Type | Description |
|---|---|---|
clip_path * | string | |
model * | string | |
name * | string | |
project * | string | |
prompt * | string | |
estimate_only | boolean | |
fit | string | |
max_usd | ||
ref_images | ||
resolution | string | |
takes | integer | |
view_fps | integer |
edit_frame
Generate a KEYFRAME or repair a frame with FLUX 3 Klein — for what LTX cannot animate, and for the hands it breaks. A blink is ~0.2% of frame pixels and about four latent pixels wide after the VAE's 8x compression; there is nothing there for a video model to move. So eye and mouth positions come from generated keyframes played back by a frame player, not from video generation. Runs on Klein's own ComfyUI (port 8189), started on first use. Refuses while the main ComfyUI has a job — the two cannot share the 6 GB card — and otherwise unloads the main one's…
| Parameter | Type | Description |
|---|---|---|
edit * | string | |
image_path * | string | |
out_dir * | string | |
box | ||
seeds | ||
steps | integer |
composite_patch
Paste ONLY `box` [l,t,r,b] of a generated image back over the original. The other half of edit_frame, and skipping it is what ruins a shot. `blend` < 1 mixes with the original underneath — how a half-lid is made.
| Parameter | Type | Description |
|---|---|---|
base_path * | string | |
box * | array | |
out_path * | string | |
patch_path * | string | |
blend | number | |
feather | number |
measure_motion
How much a clip actually moves, and whether it round-trips. ⚠ Measures CHANGE, not quality. ⚠ The whole-frame figure cannot see eye-scale features — pass a `box`. ⚠ `span` is blind to round trips; read `maxdev` and its `peak_frame` instead. Compare the SAME region across takes, and use an unmoved region as a control.
| Parameter | Type | Description |
|---|---|---|
clip_path * | string | |
box |
cut_frames
Drop specific frames from a clip and join what remains. LTX damage arrives in a WINDOW, not at the tail — measured at 1920x1088, length 25 was clean but for frames 18-19 and length 33 clean but for 11-13. Truncating from the end throws those takes away; this removes just the bad frames. `drop` is indices into the uniform frame grid, matching what you counted on a `contact_sheet`. ⚠ CHECK THE `seams` REPORT, DO NOT ASSUME THE CUT IS FREE. Each seam's `ratio` is the jump at the join against the clip's own median frame-to-frame change. Under ~2x it is invisib…
| Parameter | Type | Description |
|---|---|---|
clip * | string | |
drop * | array | |
out_path * | string | |
fps | integer |
retime_clip
Re-save a clip at a watchable rate. 12 fps is this pipeline's rate.
| Parameter | Type | Description |
|---|---|---|
clip_path * | string | |
out_path * | string | |
fps | integer | |
hold_ms | integer | |
pingpong | boolean |
contact_sheet
Tile a clip's frames into one image — the fastest way to actually LOOK. Crop to `box` at native scale when judging a hand or a pair of eyes; they vanish in a shrunken full frame.
| Parameter | Type | Description |
|---|---|---|
clip_path * | string | |
out_path * | string | |
box | ||
cols | integer | |
scale | number |
add_impact
Speed lines, flash and camera shake — sells a hit with no extra drawing. Anime does not animate the punch traveling; it sells the MOMENT OF CONTACT. `focal` is [x, y] as fractions of the frame; `at` is the contact frame.
| Parameter | Type | Description |
|---|---|---|
clip_path * | string | |
out_path * | string | |
at | integer | |
attack | integer | |
color | ||
decay | integer | |
flash | number | |
focal | ||
fps | integer | |
lines | number | |
shake | number |
grow_layer
Grow an artist-supplied transparent layer from an edge — ice, vines, fire. `layer_path` must be the element on its OWN layer with real alpha, exported from the drawing program. A traced polygon cannot substitute where the element overlaps a character. `src_path` may be a still or an existing clip, so generated motion and drawn growth combine in one pass.
| Parameter | Type | Description |
|---|---|---|
layer_path * | string | |
out_path * | string | |
src_path * | string | |
anchor | string | |
fps | integer | |
frames | integer | |
hold | integer | |
kmax | number |
add_streaks
Shooting stars across a masked sky, occluded by `exclude` shapes. Occlusion is the point: without it a streak crosses in FRONT of the buildings and reads as a scratch on the print. Stagger `paths` starts by a frame or two so they arrive as a group, not a queue.
| Parameter | Type | Description |
|---|---|---|
clip_path * | string | |
out_path * | string | |
duration | number | |
exclude | ||
fps | integer | |
gain | number | |
mask_path | ||
paths | ||
polygons | ||
ref_size | ||
twinkle | integer | |
width | integer |
add_water
Glints and expanding rings on water. Ring centers are placed on an eroded, color-filtered mask so a ring cannot expand onto the bank or a lily pad.
| Parameter | Type | Description |
|---|---|---|
clip_path * | string | |
out_path * | string | |
fps | integer | |
gain | number | |
mask_path | ||
polygons | ||
ref_size | ||
ripples | integer | |
sparkles | integer |
add_motion_lines
Parallel streaks traveling one way — sells travel across the frame. Distinct from add_impact, whose lines radiate from a point of contact. Needed because LTX deforms locally and will NOT translate a subject across a composition: asked for a leap right-to-left it returned a weight shift and a fluttering hem. Anime sells travel with streaks rather than by drawing the body at every point on the path. `angle` 180 = right-to-left. `clear` [cx, cy, r] in frame fractions keeps an ellipse free of lines so the subject is not buried.
| Parameter | Type | Description |
|---|---|---|
clip_path * | string | |
out_path * | string | |
angle | number | |
clear | ||
density | integer | |
fps | integer | |
gain | number | |
length | number | |
ramp | integer | |
start | integer |
add_glow
Pulse and optionally rotate the lit parts of a region — runes, magic. A drawn sigil brightening is a change of VALUE, not relocation of existing pixels, so LTX leaves it static. This keys the lit pixels by color (`warm`, `cool`, `bright`), blurs them into a halo and screens it back on a sine. `swirl` turns the halo about its own centroid, degrees per second — keep it slow, it is a blurred copy and spinning it fast just looks blurred.
| Parameter | Type | Description |
|---|---|---|
clip_path * | string | |
out_path * | string | |
floor | number | |
fps | integer | |
gain | number | |
key | string | |
mask_path | ||
period | number | |
swirl | number |
scan_artifacts
Find where a clip's linework collapses — smears, melts, blobbed hands. The motion score is blind to this: the highest-scoring take in testing (97.75) was the one whose face dissolved. Cel art is defined by its lines, and LTX does not replace lost lines, it blurs them away — so edge energy falling off its running peak localises the damage, and `last_clean` is where to truncate. `grid=True` tiles the frame and reports the worst tile — use it to RANK takes and to aim a contact_sheet, NOT to auto-truncate: a tile also dims when the subject merely moves out o…
| Parameter | Type | Description |
|---|---|---|
clip_path * | string | |
box | ||
grid | boolean |
inspect_moment
Step one of fixing a smear: a slow-motion clip of a ROUGH moment, every frame numbered. For when someone has seen a smear but cannot name the frame ("around 0:57"). Cuts [center_s - window_s, center_s + window_s] out of a take (12 fps webp) or a finished video (mp4), plays it `slow` times slower, and burns each frame's number in large; they read off the bad numbers while it plays and pass them to repair_frames. Frames the detector suspects get a red border: a HINT. It cannot tell fast motion from damage (measured: a real smear 0.62-0.69, clean drawings in the same push…
| Parameter | Type | Description |
|---|---|---|
center_s * | number | |
clip_path * | string | |
slow | integer | |
threshold | number | |
window_s | number |
repair_frames
Step two: replace the frames someone named from inspect_moment's numbers. mode "hold" repeats the nearest clean frame before the run: an ordinary anime hold at 12 fps, but it reads as a stutter during a camera move. mode "interp" redraws the run as in-betweens of the clean frames on both sides with RIFE (needs WEBCOMIC_ANIME_RIFE pointing at rife-ncnn-vulkan). Exact doubles of a bad frame (a 24 fps video's copy of a 12 fps drawing) are replaced too. Writes `<name>_repaired` beside the source unless `out_path` is given, never over it; a video keeps its audio. Show the r…
| Parameter | Type | Description |
|---|---|---|
bad_frames * | array | |
clip_path * | string | |
mode | string | |
out_path |
measure_frame_slot
Find the transparent slot in a drawn frame. ⚠ The alpha BOUNDING BOX is not the slot — decoration drawn on transparency makes the gaps between leaves count, and the bbox comes out far too wide. This measures the columns clear for the FULL height.
| Parameter | Type | Description |
|---|---|---|
frame_path * | string |
frame_clip
Composite a clip into a drawn frame's slot, centered in the video canvas. Portrait artwork in a 16:9 video is only ~720px wide at full height; the frame fills what would otherwise be dead screen with the artist's own work.
| Parameter | Type | Description |
|---|---|---|
clip_path * | string | |
frame_path * | string | |
out_path * | string | |
bleed | integer | |
fps | integer | |
slot | ||
video_size |
assemble_video
Cut the shots to the track and encode. Blocking; minutes. `scenes`: [{"clip": path, "kind": "loop"|"pong"|"once"|"hold", "name": str}]. The KIND decides the timing, and picking it well is most of the edit: loop — ambient, no natural end. Holds the full panel. pong — oscillatory. Full panel, forward-then-back, no seam. once — an event. Lasts EXACTLY its clip; no static hold, because holding a still frame before an event reads as the video having frozen. hold — plays once then freezes on the last frame. Stillness AFTER motion rea…
| Parameter | Type | Description |
|---|---|---|
out_path * | string | |
scenes * | array | |
audio_path | ||
bars_loop | integer | |
beats_path | ||
card | ||
clip_fps | integer | |
cues | ||
duration | ||
fps | integer | |
hold_seconds | number | |
preview | number | |
video_size |
write_srt
Write a SubRip sidecar from the same cue list assemble_video burns in. ⚠ Do not upload BOTH a burned-in video and this file — players that default captions on will draw a second copy over the first.
| Parameter | Type | Description |
|---|---|---|
cues * | array | |
out_path * | string |
list_shots
Terse listing of takes (id, seed, maxdev, approved, viewable path).
| Parameter | Type | Description |
|---|---|---|
name | ||
project |
get_shot
One take's full record — every parameter needed to reproduce it.
| Parameter | Type | Description |
|---|---|---|
shot_id * | string |
approve_shot
Lock a take as this shot's canon, published as FINAL_<slug>.webp. Approval is per NAME: a teaser has many approved shots at once, and approving a second take of the same name unapproves only the first.
| Parameter | Type | Description |
|---|---|---|
shot_id * | string | |
slug |
forget_shot
Delete one take. Refuses an approved one.
| Parameter | Type | Description |
|---|---|---|
shot_id * | string |
forget_rejected
Bulk-delete every unapproved take, keeping the canon ones. A hunt for eight shots at three seeds leaves ~16 dead takes. Clearing them one id at a time never happens, so the library grows until someone deletes the folder by hand and takes the approved shots with it.
| Parameter | Type | Description |
|---|---|---|
project * | string | |
name |
check_status
Is the GPU path usable? Call this first when a generation fails. Everything this server renders — LTX-2.5 and Klein — runs on the separate Klein ComfyUI (v0.41, port 8189). Reports whether it is up, which LTX-2.5 and Klein model files are missing from it, the paid cloud path's key status, and whether an ffmpeg for encoding was found. The main ComfyUI is reported only because the server unloads it (music, matting) before rendering.