Look and sound
26 tools: auto_color, set_color, match_grade, copy_props…
auto_color
One-tap colour correction on a clip, analysed from its current frame: white balance voted by near-neutral pixels only (a genuinely golden or blue scene stays that way), exposure taken from the frame's MEDIAN with a low-key guard (a night shot with a bright lamp is not 'corrected' into grey), tone, the three-zone wheels when the shot carries a split cast, and the skin secondary when there IS skin. It reads the file's own colour tags, so phone HDR (HLG/PQ) and camera log are converted with the published math before anything is judged. Re-running RE-DECIDES its own knobs rather than stacking a second grade on the first, so it is safe to call again after a trim. The fast path for 'make it look good' — season afterwards with set_color.
| Input | Type | |
|---|---|---|
clipId | string | Required |
set_color
Adjust a clip's colour. Pass any of the knobs (each roughly -100..100 unless noted): brightness, contrast, saturation, vibrance, exposure, hue (-180..180), temperature, tint, highlights, shadows, vignette (0..200 — past 100 the falloff also tightens when vignetteSoftness is unset), vignetteSoftness (0..100 — how gradually the vignette rolls off; Effects tab), vignetteX / vignetteY (-100..100, moves its centre), vignetteStretchX / vignetteStretchY (25..400 %), fade (0..100), haze (-100..100 — atmosphere BOTH ways: positive = MIST, a diffusion filter on the lens: light bleeds out of the HIGHLIGHTS and goes milky around them while the detail underneath stays sharp, so it needs something bright in frame to act on; negative = DEHAZE, restores local contrast/colour on hazy footage and seats the blacks back down), diffusion (0..100 — a stocking over the lens: veils the WHOLE frame, halos in the shadows too and micro-contrast down, so unlike mist it shows on a flat evenly-lit shot with nothing bright in it), softness (0..100 — the emulsion falloff: takes the clinical digital edge off, finest detail goes and edges stay put, so grain and a film stock have something to sit in; 12-30 for over-sharpened phone footage, 50+ is a period look. Not a blur and no negative side). SKIN secondary — runs after the primary grade and moves ONLY skin tones (a Cb/Cr qualifier holds the mask, so the background stays put): skinHue, skinSat, skinBright (-100..100), skinTone (-100..100 — rotates WHAT counts as skin ±45°, for when the band misses the complexion), skinSmooth (0..100 — RETOUCH: edge-aware smoothing inside the skin mask only; eyes, lashes and lip edges keep their detail. 15-30 reads natural on camera, 50+ starts looking like a filter). COLOUR WHEELS — FIVE zones, each -100..100. Three are the ASC CDL operators: lift* = shadows, gamma* = midtones, gain* = highlights; per zone R/G/B tint that zone (the three sum to zero = a pure hue push) and Y is its master brightness, e.g. liftB / gammaY / gainR. Lift leaves white alone, gain leaves black alone, gamma moves neither end. Each zone ALSO carries its own saturation — liftSat / gammaSat / gainSat (-100..100): drain noisy shadows or richen only the highlights, the move global saturation cannot make. The other two are BANDED END wheels — black* and white* (blackR/G/B/Y, whiteR/G/B/Y) — offsets confined to the very bottom and very top of the range that fade out before mid-grey. Reach for them when a CDL zone is too broad: tint the deep shadows without touching a face (blackB +20 for cold shadows), or cool a blown sky without cooling the skin under it (whiteB +15). They apply AFTER the CDL and Auto color never touches them. Merges with existing grade.
| Input | Type | |
|---|---|---|
clipId | string | Required |
adjustments | object | Required |
match_grade
Copy color + film look from sourceClipId onto target clip ids (stock B-roll matching the plate). Not AI recolor — copies existing knobs.
| Input | Type | |
|---|---|---|
sourceClipId | string | Required |
targetClipIds | array of string | Required |
copy_props
Copy ALL properties of sourceClipId onto target clips (the context menu's Copy/Paste properties): a video's framing + speed + color + effects + sound, an audio clip's sound, a title's style — keyframes included. Each target takes only what its kind carries. One undo step.
| Input | Type | |
|---|---|---|
sourceClipId | string | Required |
targetClipIds | array of string | Required |
set_effect
Set a per-clip effect directly (escape hatch): effect ∈ blur | radialBlur ({ amount: 0-100, softness?: 0-100, shape?: round|edges, x?, y?, stretchX?, stretchY?, size?: 10-200 } — sharp centre, blurred edges, same geometry as vignette) | upscale (0-100) | dof ({ focus: 0-100 near→far plane, amount: 0-100 aperture } — REAL depth of field from a warmed Depth Anything map; enabling analyses the clip once, then knobs recompose live; never promise live inference per frame) | bgBlur (legacy portrait person-matte blur — prefer dof for scenic shots; number or { amount, feather }) | crop | stroke | shadow | radius | film | filmGrain | stabilize | cleanAudio | color. params is that effect's value (or null to clear). radius is a PERCENT of the pill (0 sharp … 100 fully round), size-independent. film = { intensity: 0-100, stock?: classic|kodak|fuji|cine|velvia|amber|frost|drama|ember|slate|chrome|fade|instant|process|transfer|vintage|mono|silver|noir|tone|dream } — Photos-filter characters + emulsion looks; get_guide('color') for when to pick which. filmGrain = { amount: 0-100 density, opacity?: 0-100 mix default 100, size?: 0-100, speed?: 0-100 } — multi-scale emulsion; keep speed 20-35 for social (get_guide('color')). Animate grain via grainAmount/grainOpacity/grainSize/grainSpeed. Animate radial blur amount via radialBlur.
| Input | Type | |
|---|---|---|
clipId | string | Required |
effect | string | Required |
params | any |
lock_on_point
CapCut-style Camera tracking: follow a face, full body, or high-contrast custom spot and keep it in frame with a virtual camera (zoom + soft follow). x/y are 0..1 of the frame (0,0 = top-left). Faces sit slightly high in frame. strength 0-100 (100 = tight follow); smoothness 0-100 steadies the path. Tracking runs once on-device; composes with set_camera_move.
| Input | Type | |
|---|---|---|
clipId | string | Required |
x | number | Required |
y | number | Required |
strength | number | |
smoothness | number |
stabilize_clip
Steady a shaky handheld clip. Measures the camera's real path on-device once (a few seconds), then replays the counter-move — nothing is baked, and the preview and the export are identical. strength 0-100 (default 70 — how much of the shake to remove) and smoothness 0-100 (default 60 — low keeps deliberate pans and only kills the tremor, high walks toward a locked-off tripod). Steadying CROPS: the reply reports how much of the frame it cost, so check it before stacking a reframe on top. Pass strength 'off' via remove=true to clear it. Translation only — it cannot fix rolling-shutter wobble or a rolled horizon, and it will barely show on a tripod shot (that is correct, not a failure).
| Input | Type | |
|---|---|---|
clipId | string | Required |
strength | number | |
smoothness | number | |
remove | boolean |
set_camera_move
Add a procedural CAMERA MOVE to a clip — the shot gets life without touching the user's own transform or keyframes. kind: 'handheld' (subtle human drift — makes a locked-off shot feel held), 'shake' (sharp impact jitter — an action beat), 'zoom-in' (slow push in, grows intimacy), 'zoom-out' (slow pull back, reveals context), 'pan-left'/'pan-right' (slow lateral drift). amount 0-100 (default 45; 30-60 reads natural, 80+ is stylised). 'off' removes it. Use with restraint — get_guide('editing'): a move needs a reason, and one move per shot.
| Input | Type | |
|---|---|---|
clipId | string | Required |
kind | one of handheld | shake | zoom-in | zoom-out | pan-left | pan-right | off | Required |
amount | number |
set_transform
Position / scale / rotate / fade a clip (main OR overlay/PiP). patch keys: x, y (fraction of canvas; 0 = centre), scale (1 = fit), rotation (degrees), opacity (0..1). Merges with the current transform.
| Input | Type | |
|---|---|---|
clipId | string | Required |
patch | object | Required |
animate
Animate a clip property with keyframes. prop ∈ x | y | scale | rotation | opacity | volume | speed (playback RATE multiplier 0.1–10 where 1 = 100% — Studio shows percent; ramps stretch/compress the clip; smooth frame synth applies on cache/export when ready — do not promise realtime optical on the live playhead) | blur | filmIntensity | radius | strokePx | shadowBlur | cropX/cropY/cropW/cropH (the crop rect — animate it for an in-clip punch-in) | grainAmount/grainOpacity/grainSize/grainSpeed | vignetteX/vignetteY/vignetteStretchX/vignetteStretchY (a vignette that opens or drifts) | fontSize | fontWeight | titleOutline | titleShadowBlur (text — the title's LOOK animates too: an outline that thickens on a beat, a shadow that blooms in), plus every set_color knob by its own name (brightness, vignette, fade, haze — a mist that rolls in or lifts, diffusion, softness, blackR…whiteY, liftR…gainY, liftSat/gammaSat/gainSat, skinHue/skinSat/skinBright/skinSmooth — they animate under a color* prefix, mapped for you). keyframes = [{t, v}] where t is SOURCE seconds for media clips (titles: from tlStart). Values interpolate linearly between points.
| Input | Type | |
|---|---|---|
clipId | string | Required |
prop | string | Required |
keyframes | array of object | Required |
move_keyframes
Move existing keyframes in time — one or many in a single undo step. Each move = { clipId, prop, from, to } with from the keyframe's current time and to the new one (SOURCE seconds for media clips, seconds from tlStart for titles/shapes — the same axis animate uses). prop is any animate prop; colour knobs also take their set_color names (liftR, vignette, skinHue). Read the current keyframes from get_project_digest.
| Input | Type | |
|---|---|---|
moves | array of object | Required |
remove_keyframe
Delete one keyframe of a clip property at time t (same axis as animate). The property keeps animating between the points that remain; with one point left it holds that value.
| Input | Type | |
|---|---|---|
clipId | string | Required |
prop | string | Required |
t | number | Required |
clear_keyframes
Remove a clip's animation: every keyframe of prop, or of every property when prop is omitted. The clip keeps its static values.
| Input | Type | |
|---|---|---|
clipId | string | Required |
prop | string |
set_transition
Set the transition from a clip into the NEXT one — between Video 1 clips, or between flush clips on the same overlay row. type ∈ crossfade | slide-fade | dip-to-black | dip-to-white | slide-left | slide-right | slide-up | slide-down | wipe | zoom-punch | blur-dissolve, or 'none' to remove it. durationSec 0.05–5 (default 0.5): the next clip starts that much before this one ends. Pass the LEADING clip's id.
| Input | Type | |
|---|---|---|
clipId | string | Required |
type | one of crossfade | slide-fade | dip-to-black | dip-to-white | slide-left | slide-right | slide-up | slide-down | wipe | zoom-punch | blur-dissolve | none | Required |
durationSec | number |
set_audio_crossfade
Crossfade an audio clip into the next clip on its track over durationSec (0 removes it). Pass the leading clip's id (from get_project_digest).
| Input | Type | |
|---|---|---|
clipId | string | Required |
durationSec | number ≥ 0 | Required |
add_title
Add a text title at a timeline second (defaults to the playhead). Centered white bold by default — that default IS the machine-made look, so for designed type set the rest: fontId (studio fonts: inter, montserrat, oswald, bebas, rubik, unbounded, playfair, lora, caveat, dancing, jetbrains … or local:<family>), fontWeight, fontSizePx, color, align, plate (a solid colour behind EACH line — the highlighter-strip look), outlinePx + outlineColor, shadow, x / y (normalised from the canvas centre, y negative = up; with align left x is the LEFT edge), rotation, opacity. Use for line breaks. Never put type on a face: use a plate, a brand-colour canvas or a flat part of the picture.
| Input | Type | |
|---|---|---|
text | string | Required |
atSec | number | |
durationSec | number | |
fontSizePx | number | |
color | string | |
align | one of left | center | right | |
fontId | string | |
fontWeight | number | |
plate | string | |
outlinePx | number | |
outlineColor | string | |
shadow | boolean | |
x | number | |
y | number | |
rotation | number | |
opacity | number |
update_title
Edit an existing title/text clip — patch sets text and/or style and/or transform (all merge). style: fontId, fontWeight, fontSizePx, letterSpacing (% of the font size, default 0), lineHeight (% of the font size, default 125), color, align, backgroundColor (the plate behind each line; null removes it), outlinePx, outlineColor, shadow, shadowColor, shadowBlurPx, blur. transform: x, y, scale, rotation, opacity. Also tlStart / durationSec / lane (any layer of the stack — the same lanes videos and shapes use). Shapes are edited with update_shape.
| Input | Type | |
|---|---|---|
clipId | string | Required |
patch | object | Required |
add_graphic
Draw a graphic and lay it on the video as an image overlay — the shapes a designed ad is made of: CTA pills, price tags, stickers and bursts, rating badges, plates, gradients, arrows, underlines. shape: rect | pill | circle | burst | star | arrow | line | ticket | bubble (speech bubble, tail: left|right) | blob (organic shape, seed) | sparkle | squiggle (waves, strokePx) | dots (halftone field: patternPx, gapPx, falloff) | stripes (diagonal: patternPx, gapPx, fillAngle). fill:'none' = outline only (ring/frame with strokePx). Size: width/height in px (omit with text and it fits the text). Colour: fill (+ fillTo + fillAngle for a gradient), strokePx + strokeColor, radius (rect), points (burst/star), shadowBlur + shadowColor + shadowY. Text inside: text (\n for lines), textColor, fontId, fontWeight, fontSizePx. icon: arrow | check | star as a round badge at the right end (iconBg, iconColor). Placement: atSec, durationSec (default: to the end of the picture), x / y (normalised from the canvas centre), widthPx (the shape's own width on the canvas), rotation, opacity. Each call goes on a new layer on top, so layering follows call order. RECIPES — CTA pill: {shape:'pill', text:'Start free', fill:'#101B2D', textColor:'#FFF4DC', fontId:'rubik', fontWeight:800, fontSizePx:58, icon:'arrow', iconBg:'#FFD23F', iconColor:'#101B2D', y:0.3}. Offer sticker: {shape:'burst', width:360, fill:'#FF5A47', text:'50%\nOFF', textColor:'#FFF4DC', fontId:'unbounded', fontWeight:900, fontSizePx:84, rotation:-8, strokePx:0}. Price tag: {shape:'ticket', text:'from €14', fill:'#FFD23F', textColor:'#101B2D', fontSizePx:64}. Rating badge: {shape:'pill', text:'4.9 12k backpackers', fill:'#FFF4DC', textColor:'#101B2D', icon:'star', iconBg:'#F2A900', iconColor:'#FFFFFF'}. Full-canvas gradient background: {shape:'rect', width:1080, height:1920, fill:'#7B61FF', fillTo:'#4A3BD1', fillAngle:90}. Underline: {shape:'line', width:420, height:14, fill:'#FFD23F'}. Real logos are NOT drawn — import the author's file. Same brand colours and faces in every call.
| Input | Type | |
|---|---|---|
shape | one of rect | pill | circle | burst | star | arrow | line | ticket | bubble | blob | sparkle | squiggle | dots | stripes | Required |
width | number | |
height | number | |
fill | string | |
fillTo | string | |
fillAngle | number | |
strokePx | number | |
strokeColor | string | |
radius | number | |
points | number | |
seed | number | |
tail | one of left | right | |
patternPx | number | |
gapPx | number | |
falloff | boolean | |
waves | number | |
text | string | |
textColor | string | |
fontId | string | |
fontWeight | number | |
fontSizePx | number | |
icon | one of arrow | check | star | |
iconBg | string | |
iconColor | string | |
shadowBlur | number | |
shadowColor | string | |
shadowY | number | |
atSec | number | |
durationSec | number | |
x | number | |
y | number | |
widthPx | number | |
rotation | number | |
opacity | number |
add_shape
Draw a live vector SHAPE layer — the same object the user draws with the Shapes tool: kind ∈ rect | ellipse | triangle | star | line | arrow. It lands on its own layer on TOP of the stack (move it with set_layer_order); edit it later with update_shape; animate ANY value with animate (x/y/scale/rotation/opacity, blur, shapeW, shapeH, shapeRadius, shapeFillOpacity, shapeBackdrop, shapeStrokePx, shapeShadowBlur, and colours shapeFillColor / shapeStrokeColor / shapeShadowColor with v = 0xRRGGBB as a number). Geometry in canvas px: w, h (line: w = length, h = thickness; arrow: w = length, h = shaft thickness; rotate with rotation), x / y = the centre normalised from the canvas centre. Look: fill (hex colour), fillOpacity 0-100, radius (rect corners, px), strokePx + strokeColor, shadowBlur + shadowColor (an even halo AROUND the outline — never a dirty drop shadow under glass) and shadowInset (inner shadow), backdropBlur (px — blurs everything UNDER the shape inside its outline: frosted glass; pair with fillOpacity 10-30 and a thin white stroke), blur, mask (the shape is not painted; it clips the layer right above it in the order — a video in a rounded card). Timing: atSec (default playhead) + durationSec (default to the end of the picture), or wholeSheet:true. Prefer this over add_graphic when the shape must stay editable, animate, mask or be glass; add_graphic is for text-carrying badges, bursts and patterns. GLASS PANEL RECIPE: {kind:'rect', w:900, h:300, radius:48, fill:'#FFFFFF', fillOpacity:18, backdropBlur:36, strokePx:3, strokeColor:'#FFFFFF', shadowBlur:60, y:0.25} then add_title on top of it.
| Input | Type | |
|---|---|---|
kind | one of rect | ellipse | triangle | star | line | arrow | Required |
w | number | |
h | number | |
x | number | |
y | number | |
atSec | number | |
durationSec | number | |
wholeSheet | boolean | |
rotation | number | |
opacity | number | |
fill | string | |
fillOpacity | number | |
radius | number | |
strokePx | number | |
strokeColor | string | |
shadowBlur | number | |
shadowColor | string | |
shadowInset | boolean | |
backdropBlur | number | |
blur | number | |
mask | boolean |
update_shape
Edit a shape layer — patch merges: geom ({w, h, radius} keeps the kind; a full geom with another kind replaces it), fill (hex or {from, to, angle} gradient; null = no fill), fillOpacity 0-100, stroke ({color, px, dash?} or null), shadow ({color, blur, y?, inset?} or null), backdropBlur, blur, mask, transform ({x, y, scale, rotation, opacity}), span ({tlStart, durationSec}), name. Values that animate are edited with animate instead (a keyframed value ignores a plain write).
| Input | Type | |
|---|---|---|
clipId | string | Required |
patch | object | Required |
set_layer_order
Reorder the picture's layers — ONE ordinary layer order for everything (the main track, every video/image overlay, title, shape and the captions block). Read the current order bottom→top from the digest's layerOrder (keys: "main", "ov:<clipId>", "tx:<clipId>", "sh:<clipId>", "captions"). Either pass order (the full new bottom→top list) or move one layer: layer + above (the key it should sit right above; null = the very bottom). Captions can go under a video layer too. The timeline is ONE stack of rows: a key moves its whole row (things sharing a lane move together); Video 1 and the captions are rows like any other.
| Input | Type | |
|---|---|---|
order | array of string | |
layer | string | |
above | string | null |
enhance_audio
Clean up bad audio on a clip — on-device noise/hiss/hum removal, room echo/reverb removal on spoken voice, + a voice EQ. Always do this when a clip sounds noisy, echoey, roomy, or hissy; good audio matters more than good video. Presets: 'natural' (default — denoise + de-room, no EQ; same as Sound Enhancer's auto-run), 'podcast' (warm broadcast EQ + compression), 'vocal' (bright/present — for a SUNG vocal, keeps its reverb), 'voiceover' (tight, dry), 'instrument' or 'music' (gentle content-safe denoise + warm shaping for MUSICAL audio — the voice presets would gut music). Pass 'off' to remove it. strength 0-100 = HOW HARD to run it (default Strong ≈ 67; 0 = balanced, 100 = maximum, a 2-pass run with a VAD gate on voice — reach for it only on genuinely bad audio, it costs naturalness), boost 0-100 lifts the cleaned level. clipId = any video or audio clip with sound (from get_project_digest). The preview plays the REAL cleaned sound once the neural pass finishes (seconds — original plays meanwhile); export runs the same pipeline.
| Input | Type | |
|---|---|---|
clipId | string | Required |
preset | one of natural | podcast | vocal | voiceover | instrument | music | off | |
strength | number | |
boost | number |
generate_voice
Synthesize a voiceover ON-DEVICE and place it on an audio track at the playhead (or the nearest later free gap). Same path as Studio's Generate voiceover panel. text is the script. Two engines via voice: natural English Kokoro ids (af_heart/af_bella/af_nicole/am_michael/am_fenrir/am_puck), OR plain multilingual readers (st_f1…st_f5 / st_m1…st_m5) — for readers pass lang (en/ru/de/fr/es/…; 31 codes, default en). Optional speed around 1. Optional trackId. FIRST CALL downloads the chosen model (Kokoro ~90–300MB; Supertonic ~400MB) and can take MINUTES — tell the user and wait. Returns clipId/media/durationSec; unknownWords only applies to Kokoro dictionary misses.
| Input | Type | |
|---|---|---|
text | string | Required |
voice | one of af_heart | af_bella | af_nicole | am_michael | am_fenrir | am_puck | st_f1 | st_f2 | st_f3 | st_f4 | st_f5 | st_m1 | st_m2 | st_m3 | st_m4 | st_m5 | |
lang | string | |
speed | number | |
trackId | string |
mute_track
Mute or unmute an audio track by trackId (from get_project_digest).
| Input | Type | |
|---|---|---|
trackId | string | Required |
muted | boolean | Required |
set_audio_props
Set a clip's audio properties (volume/gain, fades, …) — patch merges. See get_guide('commands') for the fields.
| Input | Type | |
|---|---|---|
clipId | string | Required |
patch | object | Required |
duck_music
Lower every Music-track clip by amountDb (default 18) so dialogue stays intelligible. Static bed duck — not sidechain. After calling, get_mix_audio and read loudness.note.
| Input | Type | |
|---|---|---|
amountDb | number |