> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-docs-custom-nodes-sdk-v2-frontend.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Wan2ImageToVideoApi - ComfyUI Built-in Node Documentation

> The Wan 2.7 Image to Video node generates a video starting from a first-frame image.

The Wan 2.7 Image to Video node generates a video starting from a first-frame image. You can optionally provide a last-frame image to create a transition between the two, or provide an audio file to guide the video's motion and timing. The node uses an AI model to animate the scene based on your text description.

## Inputs

### Common Inputs

| Parameter       | Description                                                                                                                                                                                | Data Type      | Required | Range           |
| --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------- | -------- | --------------- |
| `model`         | The AI model to use for video generation.                                                                                                                                                  | DYNAMIC\_COMBO | Yes      | `"wan2.7-i2v"`  |
| `first_frame`   | First frame image. The output aspect ratio is derived from this image.                                                                                                                     | IMAGE          | Yes      | -               |
| `last_frame`    | Last frame image. The model generates a video transitioning from first to last frame.                                                                                                      | IMAGE          | No       | -               |
| `audio`         | Audio for driving video generation (e.g., lip sync, beat-matched motion). Duration: 2s-30s. If not provided, the model automatically generates matching background music or sound effects. | AUDIO          | No       | -               |
| `seed`          | Seed to use for generation (default: 0).                                                                                                                                                   | INT            | Yes      | 0 to 2147483647 |
| `prompt_extend` | Whether to enhance the prompt with AI assistance (default: True). This is an advanced setting.                                                                                             | BOOLEAN        | Yes      | True<br />False |
| `watermark`     | Whether to add an AI-generated watermark to the result (default: False). This is an advanced setting.                                                                                      | BOOLEAN        | Yes      | True<br />False |

### wan2.7-i2v Inputs

| Parameter         | Description                                                                                        | Data Type | Required | Range                   |
| ----------------- | -------------------------------------------------------------------------------------------------- | --------- | -------- | ----------------------- |
| `prompt`          | Prompt describing the elements and visual features. Supports English and Chinese. (default: empty) | STRING    | Yes      | -                       |
| `negative_prompt` | Negative prompt describing what to avoid. (default: empty)                                         | STRING    | Yes      | -                       |
| `resolution`      | The resolution of the output video.                                                                | COMBO     | Yes      | `"720P"`<br />`"1080P"` |
| `duration`        | The length of the generated video in seconds (default: 5).                                         | INT       | Yes      | 2 to 15                 |

**Note:** The `audio` input has a duration constraint. If provided, the audio file must be between 2 and 30 seconds long.

## Outputs

| Output Name | Description               | Data Type |
| ----------- | ------------------------- | --------- |
| `output`    | The generated video file. | VIDEO     |

> This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! [Edit on GitHub](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/Wan2ImageToVideoApi/en.md)

***

**Source fingerprint (SHA-256):** `81b0dc9500ff00e1428422d3d9c8df8f790c1d9dec547dcba0d1aa239f8a8beb`
