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

# ByteDance2FirstLastFrameNode - ComfyUI Built-in Node Documentation

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

This node uses ByteDance's Seedance 2.0 model to generate a video. It creates the video based on a text prompt and a required first frame image. You can optionally provide a last frame image to guide the ending of the video sequence.

## Inputs

| Parameter              | Description                                                                                                                                                                                                                                        | Data Type | Required | Range                                       |
| ---------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------- | -------- | ------------------------------------------- |
| `model`                | The model to use for video generation. Seedance 2.0 is for maximum quality, while Seedance 2.0 Fast is optimized for speed. Selecting a model will reveal additional inputs for `prompt`, `resolution`, `ratio`, `duration`, and `generate_audio`. | COMBO     | Yes      | `"Seedance 2.0"`<br />`"Seedance 2.0 Fast"` |
| `first_frame`          | The image to use as the first frame of the video.                                                                                                                                                                                                  | IMAGE     | No       | -                                           |
| `last_frame`           | The image to use as the last frame of the video.                                                                                                                                                                                                   | IMAGE     | No       | -                                           |
| `first_frame_asset_id` | A Seedance asset\_id to use as the first frame. This cannot be used at the same time as the `first_frame` image input. Default is an empty string.                                                                                                 | STRING    | No       | -                                           |
| `last_frame_asset_id`  | A Seedance asset\_id to use as the last frame. This cannot be used at the same time as the `last_frame` image input. Default is an empty string.                                                                                                   | STRING    | No       | -                                           |
| `seed`                 | A seed value. Changing this seed will cause the node to re-run, but the results are non-deterministic. Default is 0.                                                                                                                               | INT       | No       | 0 to 2147483647                             |
| `watermark`            | Whether to add a watermark to the generated video. Default is False.                                                                                                                                                                               | BOOLEAN   | No       | -                                           |

**Parameter Constraints:**

* You must provide **either** a `first_frame` image **or** a `first_frame_asset_id`. Providing both will cause an error.
* You cannot provide both a `last_frame` image and a `last_frame_asset_id` for the same frame.
* The `model` input is a dynamic combo. After selecting a model, you must also fill in the revealed `prompt` field (a text description) and configure the other revealed parameters (`resolution`, `ratio`, `duration`, `generate_audio`).

## Outputs

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

***

**Source fingerprint (SHA-256):** `434d6ad8f005515677b0de73b57df916aa589adff94aad892827202e6ebcb6e1`
