Skip to main content
The Wan2VideoEditApi node uses the Wan 2.7 model to edit a video based on text instructions, reference images, or style transfer. It processes the input video and generates a new video according to the specified parameters like resolution, duration, and aspect ratio.

Inputs

ParameterDescriptionData TypeRequiredRange
modelThe model to use for video editing.COMBOYes"wan2.7-videoedit"
model.promptEditing instructions or style transfer requirements. (default: empty string)STRINGYes-
model.resolutionThe resolution for the output video.COMBOYes"720P"
"1080P"
model.ratioThe aspect ratio for the output video. If not changed, it approximates the input video’s ratio.COMBOYes"16:9"
"9:16"
"1:1"
"4:3"
"3:4"
model.durationThe output duration in seconds. ‘auto’ matches the input video duration. A specific value truncates from the start of the video. (default: “auto”)COMBOYes"auto"
"2"
"3"
"4"
"5"
"6"
"7"
"8"
"9"
"10"
model.reference_imagesA list of up to 4 reference images to guide the edit.IMAGENo-
videoThe video to edit.VIDEOYes-
seedThe seed to use for generation. (default: 0)INTNo0 to 2147483647
audio_setting’auto’: model decides whether to regenerate audio based on the prompt. ‘origin’: preserve the original audio from the input video. (default: “auto”)COMBONo"auto"
"origin"
watermarkWhether to add an AI-generated watermark to the result. (default: False)BOOLEANNo-
Constraints:
  • The model.prompt must be at least 1 character long.
  • The input video must be between 2 and 10 seconds in duration.
  • The model.reference_images input can accept a maximum of 4 images.

Outputs

Output NameDescriptionData Type
outputThe edited video generated by the model.VIDEO
This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub

Source fingerprint (SHA-256): 1ea6cacbf8f5b6666e164c4806d931d21ddd44568e5c9f6d44f389288f5ce84f