> ## 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.

# Wan2VideoContinuationApi - ComfyUI Built-in Node Documentation

> The Wan 2.7 Video Continuation node generates a new video segment that continues from the end of an input video clip.

The Wan 2.7 Video Continuation node generates a new video segment that continues from the end of an input video clip. It uses the Wan 2.7 model to synthesize the continuation based on a text prompt and can optionally guide the ending towards a specific target frame.

## Inputs

### Common Inputs

| Parameter       | Description                                                                                         | Data Type      | Required | Range           |
| --------------- | --------------------------------------------------------------------------------------------------- | -------------- | -------- | --------------- |
| `model`         | The video generation model to use.                                                                  | DYNAMIC\_COMBO | Yes      | `"wan2.7-i2v"`  |
| `first_clip`    | Input video to continue from. Duration: 2s-10s. The output aspect ratio is derived from this video. | VIDEO          | Yes      | 2s to 10s       |
| `last_frame`    | Last frame image. The continuation will transition towards this frame.                              | IMAGE          | 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)                                   | BOOLEAN        | Yes      | -               |
| `watermark`     | Whether to add an AI-generated watermark to the result. (default: False)                            | BOOLEAN        | Yes      | -               |

### 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)                        | STRING    | Yes      | -                       |
| `negative_prompt` | Negative prompt describing what to avoid. (default: empty string)                                                                | STRING    | Yes      | -                       |
| `resolution`      | The resolution for the output video.                                                                                             | COMBO     | Yes      | `"720P"`<br />`"1080P"` |
| `duration`        | Total output duration in seconds. The model generates continuation to fill the remaining time after the input clip. (default: 5) | INT       | Yes      | 2 to 15                 |

**Note:** The `first_clip` input video must be between 2 and 10 seconds in duration.

## Outputs

| Output Name | Description                       | Data Type |
| ----------- | --------------------------------- | --------- |
| `output`    | The generated video continuation. | 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/Wan2VideoContinuationApi/en.md)

***

**Source fingerprint (SHA-256):** `591e551676969bc1fedb5f820f6866512c132bb98ee8ef1766d1e0b389e2dc11`
