> ## Documentation Index
> Fetch the complete documentation index at: https://docs.comfy.org/llms.txt
> Use this file to discover all available pages before exploring further.

# ByteDanceFirstLastFrameNode - ComfyUI Built-in Node Documentation

> Complete documentation for the ByteDanceFirstLastFrameNode node in ComfyUI. Learn its inputs, outputs, parameters and usage.

> 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/ByteDanceFirstLastFrameNode/en.md)

This node generates a video using a text prompt along with first and last frame images. It takes your description and the two key frames to create a complete video sequence that transitions between them. The node provides various options to control the video's resolution, aspect ratio, duration, and other generation parameters.

## Inputs

| Parameter        | Data Type | Required | Range                                                                                              | Description                                                                                                                                                           |
| ---------------- | --------- | -------- | -------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `model`          | COMBO     | Yes      | `"seedance-1-5-pro-251215"`<br />`"seedance-1-0-pro-250528"`<br />`"seedance-1-0-lite-i2v-250428"` | The model to use for video generation (default: `"seedance-1-0-lite-i2v-250428"`).                                                                                    |
| `prompt`         | STRING    | Yes      | -                                                                                                  | The text prompt used to generate the video.                                                                                                                           |
| `first_frame`    | IMAGE     | Yes      | -                                                                                                  | First frame to be used for the video. Must be between 300x300 and 6000x6000 pixels, with an aspect ratio between 0.4 and 2.5.                                         |
| `last_frame`     | IMAGE     | Yes      | -                                                                                                  | Last frame to be used for the video. Must be between 300x300 and 6000x6000 pixels, with an aspect ratio between 0.4 and 2.5.                                          |
| `resolution`     | COMBO     | Yes      | `"480p"`<br />`"720p"`<br />`"1080p"`                                                              | The resolution of the output video.                                                                                                                                   |
| `aspect_ratio`   | COMBO     | Yes      | `"adaptive"`<br />`"16:9"`<br />`"4:3"`<br />`"1:1"`<br />`"3:4"`<br />`"9:16"`<br />`"21:9"`      | The aspect ratio of the output video (default: `"adaptive"`).                                                                                                         |
| `duration`       | INT       | Yes      | 3 - 12                                                                                             | The duration of the output video in seconds (default: 5). Note: For the `seedance-1-5-pro-251215` model, the minimum supported duration is 4 seconds.                 |
| `seed`           | INT       | No       | 0 - 2147483647                                                                                     | Seed to use for generation (default: 0).                                                                                                                              |
| `camera_fixed`   | BOOLEAN   | No       | -                                                                                                  | Specifies whether to fix the camera. The platform appends an instruction to fix the camera to your prompt, but does not guarantee the actual effect (default: False). |
| `watermark`      | BOOLEAN   | No       | -                                                                                                  | Whether to add an "AI generated" watermark to the video (default: False).                                                                                             |
| `generate_audio` | BOOLEAN   | No       | -                                                                                                  | This parameter is ignored for any model except `seedance-1-5-pro-251215` (default: False).                                                                            |

## Outputs

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

***

**Source fingerprint (SHA-256):** `ac16faf3aabcb06154c6a8815cc20c8a0e0c3a6b5b21e7d49813c10dce33d7be`
