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

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              | Data Type | Required | Range                                       | Description                                                                                                                                                                                                                                        |
| ---------------------- | --------- | -------- | ------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `model`                | COMBO     | Yes      | `"Seedance 2.0"`<br />`"Seedance 2.0 Fast"` | 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`. |
| `first_frame`          | IMAGE     | No       | -                                           | The image to use as the first frame of the video.                                                                                                                                                                                                  |
| `last_frame`           | IMAGE     | No       | -                                           | The image to use as the last frame of the video.                                                                                                                                                                                                   |
| `first_frame_asset_id` | STRING    | No       | -                                           | 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.                                                                                                 |
| `last_frame_asset_id`  | STRING    | No       | -                                           | 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.                                                                                                   |
| `seed`                 | INT       | No       | 0 to 2147483647                             | A seed value. Changing this seed will cause the node to re-run, but the results are non-deterministic. Default is 0.                                                                                                                               |
| `watermark`            | BOOLEAN   | No       | -                                           | Whether to add a watermark to the generated video. Default is False.                                                                                                                                                                               |

**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 | Data Type | Description          |
| ----------- | --------- | -------------------- |
| `output`    | VIDEO     | The generated video. |

***

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