falVideo to videoComing soon

fal-ai/cogvideox-5b/video-to-video

fal-ai/cogvideox-5b/video-to-video is a video to video tool from fal that runs in the background and returns video. Coming soon: listed with its price, not yet open to runs.

This tool is listed but not yet available to run.

Priced by usage

Pricing

$0.26 per video. 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—The prompt to generate the video from.
video_sizeJSON{"width":720,"height":480}The size of the generated video.
negative_prompttextThe negative prompt to generate video from
lorasJSON[] The LoRAs to use for the image generation. We currently support one lora.
num_inference_stepsnumber (whole)
1 to 50
50The number of inference steps to perform.
seednumber (whole)— The same seed and the same prompt given to the same version of the model will output the same video every time.
guidance_scalenumber
0 to 20
7 The CFG (Classifier Free Guidance) scale is a measure of how close you want the model to stick to your prompt when looking for a related video to show you.
use_rifetrue or falsetrueUse RIFE for video interpolation
export_fpsnumber (whole)
4 to 32
16The target FPS of the video
video_url requiredURL or file—The video to generate the video from.
strengthnumber
0.05 to 1
0.8The strength to use for Video to Video. 1.0 completely remakes the video while 0.0 preserves the original.

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/cogvideox-5b/video-to-video",
    "input": {
      "prompt": "An astronaut stands triumphantly at the peak of a towering mountain. Panorama of rugged peaks and valleys. Very futuristic vibe and animated aesthetic.…",
      "video_url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/hiker.mp4"
    }
  }'