kind | enum | Required | What the run makes. Every model must be of this kind, except that `voice` and `dub` take `speech` models, `caption` takes a `transcription` model tagged `timestamps`, `lipsync`, `remix` and `faceswap` take models with that tag, `resync` takes a model tagged `lipsync`, and `cutout`, `relight` and `expand` take `image` models that take a reference. The clip tools `trim`, `reframe`, `sound`, `speed`, `grade` and `join` take no model. One of: video, image, edit, upscale, avatar, speech, voice, music, dub, lipsync, caption, remix, faceswap, trim, reframe, sound, speed, grade, join, cutout, relight, expand, resync. |
|---|
prompt | string | Optional | The final prompt text, with any Director fields, look and camera moves already in it. For an avatar, the script; for speech, the text to speak. Required for image, video, edit, upscale, avatar, music, speech without `turns`, and a remix swap, where it says what to put in. Voice, dub, lipsync and resync fill a short default; for lipsync and resync it directs the motion. For a motion remix or a face swap it is extra direction, up to 7,500 characters, added to the instruction the model is sent. For relight, the light in your words, with or without `preset`; for expand, what fills the new area. Not used by caption, cutout or the clip tools. |
|---|
models | string[] | Optional | One to six model ids from GET /models. Required except for caption, cutout, relight, expand and resync, which run on a default model when it is left out. Music takes one or two; a dub takes exactly one. Caption takes one transcriber tagged `timestamps`, such as `openai/whisper-large-v3-turbo`. Cutout defaults to the cheapest image model that makes a transparent background; relight and expand to `google/gemini-nano-banana-2.1`; resync takes one model tagged `lipsync` and defaults to `heygen/avatar-iv`. Not used by the clip tools. |
|---|
draft | boolean | Optional | Run each model at its cheapest tier. Default false. |
|---|
tier | string | Optional | A resolution or quality, used by every model that offers it. Remix, faceswap, lipsync and resync take one too, such as `480p` or `720p`, and so do the image tools. |
|---|
seconds | integer | Optional | Seconds of video. Required for edit and upscale: the length of the source clip. Required for voice and dub: the source length, 1 to 300. Required for lipsync with `audioUrl`: the recording’s length, 1 to 120; with `script` it may be left out. Required for resync: the clip’s length, 1 to 120. Required for caption: the clip’s length, 1 to 300. Required for remix and faceswap: the clip’s length, 1 to 30, and no longer than every model makes. Required for the clip tools: the clip’s length, 1 to 300; for join, the clips’ length together. For music, the track length, which must be one the model lists when it lists any. Not used by speech, which is quoted per character. |
|---|
aspectRatio | string | Optional | Such as `9:16`. Every model must offer it. Required for reframe: `9:16`, `1:1`, `4:5` or `16:9`. Required for expand: the new frame. |
|---|
audio | boolean | Optional | Set false to turn sound off on models that make it. |
|---|
count | integer 1-10 | Optional | Images per model, for image runs. |
|---|
seed | integer 0-2147483647 | Optional | The seed, 0 to 2147483647. Default: a random one in that range, kept on the run and on each item whose model takes a seed, so a finish can repeat it. A model that takes no seed refuses one you set and runs without the random one. |
|---|
references | string[] | Optional | Reference image URLs, labelled in the prompt as A, B, C. An avatar takes the portrait and the voice recording here. A motion remix takes one picture, the character; a swap takes at most one, the thing to put in; a face swap takes one, the face. |
|---|
firstFrame | string | Optional | An image the clip starts on. Required for lipsync: the portrait, one face looking at the camera. Format: uri. |
|---|
lastFrame | string | Optional | An image the clip ends on. Format: uri. |
|---|
sourceVideoUrl | string | Optional | The clip an edit, an upscale, a voice change, a dub, a caption run, a remix, a face swap, a resync or a clip tool other than join works on. A remix or face swap model fetches it, so it must be a public URL. Format: uri. |
|---|
sourceImageUrl | string | Optional | Required for cutout, relight and expand: the picture to work on. The model fetches it, so it must be a public URL. Format: uri. |
|---|
sourceAudioUrl | string | Optional | The recording a voice change or a dub works on. Voice and dub take exactly one of `sourceAudioUrl` and `sourceVideoUrl`. Format: uri. |
|---|
sourceLanguage | enum | Optional | The language spoken in the source, for voice, dub and caption. Default: detected. One of: ar, bg, bn, cs, da, de, el, en, en-GB, es-419, es-ES, et, fi, fil, fr-CA, fr-FR, he, hi, hr, hu, id, it, ja, ko, lt, lv, ms, nl, no, pl, pt-BR, pt-PT, ro, ru, sk, sl, sv, ta, th, tr, uk, ur, vi, zh-Hans. |
|---|
voice | string | Optional | A stock voice id, for speech, voice and dub. Each model that lists it speaks in it; the others use their default, the first they list. 400 when no model in `models` lists it. For lipsync and resync with `script`: a voice `speechModel` lists, default its first. |
|---|
voices | object | Optional | A voice per model, for speech and voice, such as `{"elevenlabs/eleven-v4": "sarah"}`. Each key must be in `models`, and each value a voice that model lists. |
|---|
instructions | string | Optional | Delivery, for speech and voice: tone, pace, emotion. Sent to the models whose `params` has `instructions`; the others ignore it. |
|---|
voiceUrl | string | Optional | A recording of one speaker, 10 to 30 seconds, to clone, for speech and voice. Every model must have `voiceCloning`. Not with `voice` or `voices`. Format: uri. |
|---|
turns | object[] | Optional | A dialogue, for speech: 2 to 40 turns `{speaker, text, voice?, instructions?}`, with `speaker` up to 40 characters and `text` up to 2,000. Every model must have `multiSpeaker`. Each speaker gets its turn’s `voice` when the model lists it, else the model’s voices in order. A model that lists no voices needs a `voice` on every turn, as its provider names them. Without `prompt`, the prompt is the turns as `Speaker: text` lines. |
|---|
languages | enum | Optional | Target languages, for dub: 1 to 6 different tags. One item per language, in this order. One of: ar, bg, bn, cs, da, de, el, en, en-GB, es-419, es-ES, et, fi, fil, fr-CA, fr-FR, he, hi, hr, hu, id, it, ja, ko, lt, lv, ms, nl, no, pl, pt-BR, pt-PT, ro, ru, sk, sl, sv, ta, th, tr, uk, ur, vi, zh-Hans. |
|---|
cloneVoice | boolean | Optional | For dub: speak in the original speaker’s voice, cloned from a clean slice of the source. Default: true when the model has `voiceCloning` and no `voice` is set. 400 when true and the model cannot clone. |
|---|
subtitles | boolean | Optional | For dub: burn subtitles in the target language into the clip. Needs `sourceVideoUrl`. Default false. |
|---|
style | string | Optional | For music: genre and instruments, such as `lo-fi hip hop, warm Rhodes, vinyl crackle`. |
|---|
bpm | integer 40-240 | Optional | For music: the tempo in beats per minute. |
|---|
key | string | Optional | For music: the musical key, such as `A minor`. |
|---|
audioUrl | string | Optional | For lipsync and resync: the recording the face speaks, 1 to 120 seconds. Send it or `script`, not both. The model fetches it, so it must be a public URL. For join: a music or voice track mixed under the clips, cut at their end. Format: uri. |
|---|
audioSeconds | integer 1-120 | Optional | Required for resync with `audioUrl`: the recording’s length, which the item is priced on. |
|---|
script | string | Optional | For lipsync and resync, in place of `audioUrl`: words `speechModel` speaks first, about two minutes at most. The item is priced on the time it takes to say, one second per 15 characters, plus the speech. |
|---|
speechModel | string | Optional | For lipsync and resync with `script`: the speech model that says it. GET /models?kind=speech lists them. Default elevenlabs/eleven-v4. |
|---|
frameSeconds | number | Optional | For resync: the time of the frame to animate, in seconds from the start, below `seconds`. Default: the frame Looptake picks. |
|---|
resyncLips | boolean | Optional | For dub: re-animate the speaker to each language with `heygen/avatar-iv`, from one frame of the clip. Needs `sourceVideoUrl`, one person talking, and `seconds` up to 120. Default false. |
|---|
captions | object | Optional | For caption: how the captions look, `{style, position, size, color, accent}`, each optional. `style` is `highlight` (default), `pop`, `bounce`, `typewriter`, `outline`, `box`, `glass`, `gradient`, `neon` or `minimal`; `position` is `bottom` (default), `middle` or `top`; `size` is `s`, `m` (default) or `l`; `color` (the text) and `accent` (the spoken word, the box, the glow or the gradient’s end) are `#rrggbb` and default to the style’s own colours. |
|---|
lines | object[] | Optional | For caption: edited lines to burn, `{start, end, text, words?}` with times in seconds and `words` as `{text, start, end}`. Lines are in order and do not overlap; `text` is at most 200 characters. With `lines` the clip is not transcribed and the item is quoted and charged 0. Start from an item’s `transcript.lines`. |
|---|
mode | enum | Optional | Required for remix and sound. Remix: `motion`, the character in `references` performs the clip’s moves, on video models only; `swap`, the thing `prompt` names is replaced, after the picture in `references` when there is one (video models only), else on any remix model. Sound: `extract` gives the sound as an MP3; `remove` gives the clip with no sound. One of: motion, swap, extract, remove. |
|---|
consent | boolean | Optional | Required for faceswap, and must be true: "I have the right to use this face. I will not use it to impersonate or mislead anyone." Stored on the run as `params.consent`, `{text, acceptedAt}`. |
|---|
start | number | Optional | Required for trim: where the cut starts, in seconds from the start of the clip. |
|---|
end | number | Optional | Required for trim: where the cut ends, in seconds, after `start` and within `seconds`. A cut is at least 0.5 seconds. |
|---|
fit | enum | Optional | For reframe. `crop` cuts the new frame out of the clip; `pad` shows the whole clip over a blurred copy of itself. Default crop. One of: crop, pad. |
|---|
position | number | Optional | For reframe with `fit: crop`: where across the clip the frame sits, from 0 (the left edge) to 1 (the right). Default 0.5. |
|---|
speed | number | Optional | Required for speed: how many times as fast the clip plays, 0.5 to 2, to two decimals. The sound keeps its pitch. |
|---|
preset | enum | Optional | Required for grade: a colour preset, `warm`, `cool`, `mono`, `noir`, `faded`, `contrast`, `vivid` or `vhs`. For relight: a light, `golden-hour`, `softbox`, `neon`, `overcast` or `candle`; a relight needs `preset`, `prompt` or both. One of: warm, cool, mono, noir, faded, contrast, vivid, vhs, golden-hour, softbox, neon, overcast, candle. |
|---|
clips | string[] | Optional | Required for join: 2 to 10 clip URLs, in the order they play. `seconds` is their length together, at most 300. |
|---|
workspaceId | string | Optional | Which workspace. Defaults to the key’s default workspace. Format: id. |
|---|