falVideo to videoAvailable now

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

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

Try itfrom $0.1222 / second

Pricing

resolution: 720p up to $7.332, 1080p up to $10.998 per run for a 30-second source, the maximum. Billed on input plus output seconds, at least twice the output. The final charge comes from usage.

Limits

Runs
In the background
Returns
video
Longest queue wait
3600s
Run deadline
1800s
Largest inline input
1024 KB
Largest input file
500 MB
Largest output
4768 MB
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
1080pOutput 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>"
    }
  }'