Skip to content

API

Videos endpoint

POST /api/v1/videos — start an asynchronous video job, poll for completion, download the MP4, and extend Omni clips.

On this page

Create a video

POST /api/v1/videos starts an asynchronous job and returns 202 with the job. Credits for every segment are held up front; segments that do not deliver return their credits when the job settles.

FieldTypeNotes
promptstringWhat to generate. Required except for Motion Control, where it is optional scene context.
providerstring (optional)google, openrouter, or fal. Inferred from the model when omitted.
modelstring (optional)A video model id, e.g. fal/bytedance/seedance-2.5. Defaults to the first catalog model.
aspectRatiostring (optional)16:9, 9:16, 1:1, 4:3, 3:4, or 21:9, subject to model support.
durationSecondsinteger (optional)A duration the model supports (see the model table in Imagine & Video).
targetSecondsinteger (optional)Chained total length for Omni (the 30s preset).
resolutionstring (optional)480p, 720p, 1080p, or 4k, subject to model support.
startFrameImagestring (optional)Base64 data URI (JPEG/PNG/WebP, under 8 MB) for image-to-video models; the character image for Motion Control.
referenceVideostring (optional)Motion Control only: base64 data URI (MP4/MOV/WebM/M4V, under 25 MB).
referenceDurationSecondsnumber (optional)Motion Control only: the reference video’s probed length.
characterOrientationstring (optional)Motion Control only: image or video.
keepOriginalSoundboolean (optional)Motion Control only: whether the reference audio carries through.
curl https://www.lumivoralabs.com/api/v1/videos \
  -H "Authorization: Bearer lv_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "model": "fal/bytedance/seedance-2.5",
    "prompt": "A drone shot over a neon harbor at dusk",
    "aspectRatio": "16:9",
    "durationSeconds": 10,
    "resolution": "1080p"
  }'

Poll and download

Poll GET /api/v1/videos/:id (the job's pollUrl). The job moves through queued and running to done or failed, reporting segmentsDone, segmentsTotal, creditsCharged, and an error message on failure. A poll that finds the video done downloads and stores the MP4 in the same request. When done, url points at GET /api/v1/videos/:id/content, which streams the MP4. Jobs are scoped to your account; another account's id returns 404.

Extend a clip

Finished Gemini Omni Flash jobs report canExtend, extendSeconds, and an extendUrl. POST /api/v1/videos/:id/extend appends one extension turn (3–10 seconds, up to 30 seconds total) for one credit. If an extend fails, the previous clip is restored and the extend credit is returned.

Image-to-video and Motion Control

Send startFrameImage with an image-to-video model to animate a still. For Kling Motion Control models, send the character image as startFrameImage and the motion reference as referenceVideo, with characterOrientation and keepOriginalSound as needed. Motion Control runs on your fal.ai key.

Questions this page does not answer? Email support@lumivoralabs.com.