Skip to content

Videos (stories)

Each step queues work and returns at once with a short receipt:

{"id", "title", "status", "error", "stages", "warnings"}

Wait by long-polling the same small shape. It answers on the next change, after wait seconds (up to 20), or at once when nothing runs:

GET /films/{id}/status?wait=15

Read the full project only when you need its content: GET /films/{id} (add ?include=words for caption word timings). List your videos, newest first: GET /films?status=ready&type=story&engine=video&page=1.

Lock a product or a character across every scene:

POST /uploads/reference multipart: file=@image.jpg {"path": "<media id>"}
POST /uploads/reference/url {"url": "https://..."} the same, from a link

PNG, JPEG, WEBP or GIF up to 12 MB and 50 megapixels. It is saved again without its metadata, upright, at most 2048 pixels a side.

It starts as a draft: nothing is billed.

POST /films
{
"title": "5 to 200 characters",
"description": "50 to 5000 characters: the brief and direction",
"genre": "comedy",
"language": "it",
"image_ref": "<media id>",
"image_preset": "<style key>",
"engine": "storyboard",
"aspect_ratio": "9:16",
"scene_count": 6,
"resolution": 720,
"enhance": false,
"character_sheet": true,
"character_images": ["<media id>"],
"models": {},
"agent_id": "<screenwriter id>",
"write_story": false,
"max_credits": 20
}
Field Notes
title, description Required
language Narration language; default is the title’s. List: GET /voices/defaults
engine storyboard (stills), video (AI clips) or animated (see Animated)
aspect_ratio 9:16, 16:9 or 1:1. The finished video is 1080x1920, 1920x1080 or 1080x1080
scene_count 1 up to the platform cap; default 8
resolution 320, 720 or 1080: the AI clips on the video engine
enhance Rewrite each image and video prompt first (a small text charge)
speech_mode Video engine: in_scene or to_camera
camera_style Video engine: free, observed or presenter
render_preset Video engine: draft, cartoon, realistic, high; empty follows the style
character_sheet, character_images See Keep characters consistent
models Per-step models, see Models
agent_id A screenwriter
write_story true queues the paid writer now

Write it yourself, for free:

PUT /films/{id}/story
{"story": {
"logline": "...", "style": "...",
"characters": [{"name": "...", "description": "..."}],
"scenes": [{"prompt": "what to show", "narration": "what is said", "motion": true}]
}}

Or have the screenwriter write it from the title and brief (billed), then wait until stages.story.state is ready:

POST /films/{id}/story/rewrite {"max_credits": 20}

A clip scene may also take:

Field Does
seconds How long its clip runs when no one speaks in it
end_prompt An end still; the clip moves from the image to it. Keep the same camera angle
speaker A cast name who says the narration on camera
sound What is heard, for example "sizzling pan, clinking glasses"
first_frame previous_clip (smoothest join, made one after another), scene, previous_picture, picture (with first_ref) or off
last_frame end (default), next (flows into the next scene) or off; only models with takes_last_frame
refs Up to 4 images of this film that guide this scene’s image
audio_mode voiceover, native (the clip’s own sound) or none

The story may take "music": "the music's mood". PUT the story again to edit it: a scene keeps its image and clip while its prompt is unchanged, and its narration audio while its narration is unchanged. GET /films/{id}/story reads just the script.

POST /films/{id}/scenes {"confirm": true, "with_voiceover": true, "models": {}}

Makes only what is missing: an image per scene, a clip per motion scene on the video engine, and (with with_voiceover) the narration on its own lane. On the video engine a paid run without "confirm": true answers 409 confirm_required with its estimate. Wait until stages.visual_assets.state is ready. A scene that fails does not stop the others; send /scenes again to retry them.

Redo every image or every clip: POST /films/{id}/images {} or POST /films/{id}/videos {"confirm": true}.

POST /films/{id}/audio {} skip if /scenes sent with_voiceover
POST /films/{id}/music {} optional; 403 not_available while music is off
POST /films/{id}/assemble {"gap": 0.5}

Captions are off unless you ask:

{"show": true, "karaoke": false, "color": "#FFD400", "scale": 1.0, "gap": 0.5, "position": "bottom"}

scale 0.4 to 3, gap 0 to 3 seconds, position bottom, middle or top. Captions are priced per started minute. Wait until stages.assembly.state is ready; the project’s video is the finished file.

POST /films/{id}/scenes/{index}/image {"prompt": "optional new prompt"}
POST /films/{id}/scenes/{index}/video
POST /films/{id}/scenes/{index}/audio {"narration": "optional new line"}

index starts at 0; error text counts scenes from 1. image with {"end": true} redraws only the end still.

PATCH /films/{id}/settings {"music_level": "off", "stills": 5}

music_level (off, low, medium, high), stills (1 to 5 pictures per scene on storyboard), voice_pace (tight, natural, slow), enhance, speech_mode, camera_style, render_preset. What you leave out stays.

Every receipt carries stages: story, character, visual_assets, voiceover, music, assembly, each {"state", "done", "total"}. state is idle, queued, running, ready or error. Stages run independently; retry a failed one by sending its step again. Read stages, not the top-level status.

  • image_ref: every scene image is drawn to match your photo.
  • Character sheet: a portrait of each main character, made before the scenes. Left out, it is made when a named character appears in more than one scene. Each portrait costs one image.
PUT /films/{id}/character-sheet {"character_sheet": true}
POST /films/{id}/character {} make or remake it now
PUT /films/{id}/character-images {"character_images": ["<media id>"]} your own sheet, free; [] goes back

Priority: a series’ cast portraits, then your own sheet, then the generated sheet, then image_ref. Pick an image model with takes_image: true.