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

# ByteDanceFirstLastFrameNode - ComfyUI Built-in Node Documentation

> This node generates a video using a text prompt along with first and last frame images.

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        | Description                                                                                                                                                                             | Data Type | Required | Range                                                                                         |
| ---------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------- | -------- | --------------------------------------------------------------------------------------------- |
| `model`          | The model used for video generation (default: `"seedance-1-5-pro-251215"`).                                                                                                             | COMBO     | Yes      | `"seedance-1-5-pro-251215"`<br />`"seedance-1-0-pro-250528"`                                  |
| `prompt`         | The text prompt used to generate the video. Must not be empty and must not contain reserved parameter keywords (`resolution`, `ratio`, `duration`, `seed`, `camerafixed`, `watermark`). | STRING    | Yes      | -                                                                                             |
| `first_frame`    | 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.                                                           | IMAGE     | Yes      | -                                                                                             |
| `last_frame`     | 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.                                                            | IMAGE     | Yes      | -                                                                                             |
| `resolution`     | The resolution of the output video.                                                                                                                                                     | COMBO     | Yes      | `"480p"`<br />`"720p"`<br />`"1080p"`                                                         |
| `aspect_ratio`   | The aspect ratio of the output video.                                                                                                                                                   | COMBO     | Yes      | `"adaptive"`<br />`"16:9"`<br />`"4:3"`<br />`"1:1"`<br />`"3:4"`<br />`"9:16"`<br />`"21:9"` |
| `duration`       | The duration of the output video in seconds. When using `seedance-1-5-pro-251215`, the minimum duration is 4 seconds. (default: 5)                                                      | INT       | Yes      | 3 - 12                                                                                        |
| `seed`           | Seed to use for generation. (default: 0)                                                                                                                                                | INT       | No       | 0 - 2147483647                                                                                |
| `camera_fixed`   | 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)                   | BOOLEAN   | No       | -                                                                                             |
| `watermark`      | Whether to add an "AI generated" watermark to the video. (default: False)                                                                                                               | BOOLEAN   | No       | -                                                                                             |
| `generate_audio` | This parameter is ignored for any model except `seedance-1-5-pro-251215`. (default: False)                                                                                              | BOOLEAN   | No       | -                                                                                             |

**Note:** For the `seedance-1-5-pro-251215` model, `duration` must be 4 seconds or greater. Both `first_frame` and `last_frame` must be between 300x300 and 6000x6000 pixels and have an aspect ratio between 0.4 and 2.5. The `prompt` is checked and rejected if it contains reserved parameter keywords.

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

***

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