falVideoComing soon

fal-ai/wan-22-vace-fun-a14b/outpainting

fal-ai/wan-22-vace-fun-a14b/outpainting is a 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.

Pricing

Coming soon

$0.13 per second.

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—

The text prompt to guide video generation.

negative_prompttextletterboxing, borders, black bars, bright colors, overexposed, static, blurred details, subtitles, style, artwork, painting, picture, still, overall gray, worst quality, low quality, JPEG compression residue, ugly, incomplete, extra fingers, poorly drawn hands, poorly drawn faces, deformed, disfigured, malformed limbs, fused fingers, still picture, cluttered background, three legs, many people in the background, walking backwards

Negative prompt for video generation.

match_input_num_framestrue or falsefalse

If true, the number of frames in the generated video will match the number of frames in the input video. If false, the number of frames will be determined by the num_frames parameter.

num_framesnumber (whole)
17 to 241
81

Number of frames to generate. Must be between 81 to 241 (inclusive).

match_input_frames_per_secondtrue or falsefalse

If true, the frames per second of the generated video will match the input video. If false, the frames per second will be determined by the frames_per_second parameter.

frames_per_secondnumber (whole)
5 to 30
16

Frames per second of the generated video. Must be between 5 to 30. Ignored if match_input_frames_per_second is true.

seednumber (whole)—

Random seed for reproducibility. If None, a random seed is chosen.

resolutionone of
auto, 240p, 360p, 480p, 580p, 720p
auto

Resolution of the generated video.

aspect_ratioone of
auto, 16:9, 1:1, 9:16
auto

Aspect ratio of the generated video.

num_inference_stepsnumber (whole)
2 to 50
30

Number of inference steps for sampling. Higher values give better quality but take longer.

guidance_scalenumber
1 to 10
5

Guidance scale for classifier-free guidance. Higher values encourage the model to generate images closely related to the text prompt.

samplerone of
unipc, dpm++, euler
unipc

Sampler to use for video generation.

shiftnumber
1 to 15
5

Shift parameter for video generation.

video_url requiredURL or file—

URL to the source video file. Required for outpainting.

ref_image_urlslist—

URLs to source reference image. If provided, the model will use this image as reference.

first_frame_urltext—

URL to the first frame of the video. If provided, the model will use this frame as a reference.

last_frame_urltext—

URL to the last frame of the video. If provided, the model will use this frame as a reference.

enable_prompt_expansiontrue or falsefalse

Whether to enable prompt expansion.

accelerationone of
none, low, regular
regular

Acceleration to use for inference. Options are 'none' or 'regular'. Accelerated inference will very slightly affect output, but will be significantly faster.

video_qualityone of
low, medium, high, maximum
high

The quality of the generated video.

video_write_modeone of
fast, balanced, small
balanced

The write mode of the generated video.

num_interpolated_framesnumber (whole)
0 to 5
0

Number of frames to interpolate between the original frames. A value of 0 means no interpolation.

temporal_downsample_factornumber (whole)
0 to 5
0

Temporal downsample factor for the video. This is an integer value that determines how many frames to skip in the video. A value of 0 means no downsampling. For each downsample factor, one upsample factor will automatically be applied.

enable_auto_downsampletrue or falsefalse

If true, the model will automatically temporally downsample the video to an appropriate frame length for the model, then will interpolate it back to the original frame length.

auto_downsample_min_fpsnumber
1 to 60
15

The minimum frames per second to downsample the video to. This is used to help determine the auto downsample factor to try and find the lowest detail-preserving downsample factor. The default value is appropriate for most videos, if you are using a video with very fast motion, you may need to increase this value. If your video has a very low amount of motion, you could decrease this value to allow for higher downsampling and thus longer sequences.

interpolator_modelone of
rife, film
film

The model to use for frame interpolation. Options are 'rife' or 'film'.

transparency_modeone of
content_aware, white, black
content_aware

The transparency mode to apply to the first and last frames. This controls how the transparent areas of the first and last frames are filled.

return_frames_ziptrue or falsefalse

If true, also return a ZIP file containing all generated frames.

expand_lefttrue or falsefalse

Whether to expand the video to the left.

expand_righttrue or falsefalse

Whether to expand the video to the right.

expand_toptrue or falsefalse

Whether to expand the video to the top.

expand_bottomtrue or falsefalse

Whether to expand the video to the bottom.

expand_rationumber
0 to 1
0.25

Amount of expansion. This is a float value between 0 and 1, where 0.25 adds 25% to the original video size on the specified sides.

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/wan-22-vace-fun-a14b/outpainting",
    "input": {
      "prompt": "A lone woman strides through the neon-drenched streets of Tokyo at night.  Her crimson dress, a vibrant splash of color against the deep blues and blacks of the…",
      "video_url": "https://storage.googleapis.com/falserverless/web-examples/wan/t2v.mp4"
    }
  }'