falVideoAvailable now

fal-ai/kling-video/v4/video-to-video/edit

fal-ai/kling-video/v4/video-to-video/edit is a video tool from fal that runs in the background and returns video. Pay as you go, with one API key.

Pricing

$0.183 per second of source plus output at 1080p ($0.122 at 720p), at least twice the output's length.

Limits

Runs
In the background
Returns
video
Longest queue wait
1 hour
Run deadline
30 minutes
Longest run, end to end
930 minutes
Largest inline input
1 MB
Largest input file
500 MB
Largest output
5 GB
Outputs per run
16

Input

FieldKindDefaultDescription
prompt requiredtext—

Edit instruction. Reference the source video as @Video1.

video_url requiredURL or file—

The video to edit (3-30s), referenced as @Video1.

Max file size: 300.0MB, Min width: 700px, Min height: 700px, Max width: 4553px, Max height: 4553px, Min aspect ratio: 0.40, Max aspect ratio: 2.50, Min duration: 3.0s, Max duration: 30.05s, Min FPS: 23.9, Max FPS: 60.05, Timeout: 30.0s

image_urlsURLs or files—

Reference images, referenced as @Image1, @Image2, ...

video_urlsURLs or files—

Reference videos, referenced as @Video2, @Video3, ... (max 4). The source, reference and element videos must total at most 30s.

elementsJSON—

Characters/objects, referenced as @Element1, @Element2, ... (max 7). Up to 3 elements may carry a voice_id and up to 3 may be video elements.

voice_idslist—

Voices referenced in the prompt as @Voice1, @Voice2, ... (max 3, including voices bound to elements). Create one with https://fal.ai/models/fal-ai/kling-video/create-voice

durationnumber (whole)
3 to 30
—

Output duration in seconds (3-30). Defaults to the source video's length.

resolutionone of
720p, 1080p
1080p

Output resolution.

Same request in code

curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "fal",
    "model": "fal-ai/kling-video/v4/video-to-video/edit",
    "input": {
      "prompt": "Change the background to a tropical island at sunset.",
      "video_url": "<video_url>"
    }
  }'