infery
← All models

Wan 2.2 VACE Fun A14B

wan-22-vace-fun-a14b-inpainting

Video generationby Alibaba

VACE Fun for Wan 2.2 A14B from Alibaba-PAI

Example

Details

Accepts
video + image

Pricing

Price
12.5 cr / second

Prices in credits (1 credit = $0.01).

Data schema

Input

FieldTypeDescription
seedRandom seed for reproducibility. If None, a random seed is chosen.
shiftnumberShift parameter for video generation.
promptrequiredstringThe text prompt to guide video generation.
samplerstringenum: unipc, dpm++, eulerSampler to use for video generation.
sync_modebooleanIf `True`, the media will be returned as a data URI and the output data won't be available in the request history.
video_urlrequiredstringURL to the source video file. Required for inpainting.
num_framesintegerNumber of frames to generate. Must be between 81 to 241 (inclusive).
preprocessbooleanWhether to preprocess the input video.
resolutionstringenum: auto, 240p, 360p, 480p, 580p, 720pResolution of the generated video.
accelerationAcceleration to use for inference. Options are 'none' or 'regular'. Accelerated inference will very slightly affect output, but will be significantly faster.
aspect_ratiostringenum: auto, 16:9, 1:1, 9:16Aspect ratio of the generated video.
video_qualitystringenum: low, medium, high, maximumThe quality of the generated video.
guidance_scalenumberGuidance scale for classifier-free guidance. Higher values encourage the model to generate images closely related to the text prompt.
last_frame_urlURL to the last frame of the video. If provided, the model will use this frame as a reference.
mask_image_urlURL to the guiding mask file. If provided, the model will use this mask as a reference to create masked video using salient mask tracking. Will be ignored if mask_video_url is provided.
mask_video_urlURL to the source mask file. Required for inpainting.
ref_image_urlsarrayUrls to source reference image. If provided, the model will use this image as reference.
first_frame_urlURL to the first frame of the video. If provided, the model will use this frame as a reference.
negative_promptstringNegative prompt for video generation.
video_write_modestringenum: fast, balanced, smallThe write mode of the generated video.
frames_per_secondFrames per second of the generated video. Must be between 5 to 30. Ignored if match_input_frames_per_second is true.
return_frames_zipbooleanIf true, also return a ZIP file containing all generated frames.
transparency_modestringenum: content_aware, white, blackThe transparency mode to apply to the first and last frames. This controls how the transparent areas of the first and last frames are filled.
interpolator_modelstringenum: rife, filmThe model to use for frame interpolation. Options are 'rife' or 'film'.
num_inference_stepsintegerNumber of inference steps for sampling. Higher values give better quality but take longer.
enable_safety_checkerbooleanIf set to true, the safety checker will be enabled. Disabling it requires account authorization; unauthorized requests are always checked.
enable_auto_downsamplebooleanIf 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.
match_input_num_framesbooleanIf 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.
auto_downsample_min_fpsnumberThe 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 increa…
enable_prompt_expansionbooleanWhether to enable prompt expansion.
num_interpolated_framesintegerNumber of frames to interpolate between the original frames. A value of 0 means no interpolation.
temporal_downsample_factorintegerTemporal 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.
match_input_frames_per_secondbooleanIf 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.

Output

FieldTypeDescription
seedintegerThe seed used for generation.
videoThe generated inpainting video file.
promptstringThe prompt used for generation.
frames_zipZIP archive of all video frames if requested.