This node uses the Kling 3.0 model to generate a video. It creates the video based on a text prompt, a specified duration, and two provided images: a starting frame and an ending frame. The node can also generate accompanying audio for the video.

## Inputs

| Parameter | Description | Data Type | Required | Range |
| --- | --- | --- | --- | --- |
| `prompt` | The text description that guides the video generation. Must be between 1 and 2500 characters long. | STRING | Yes | N/A |
| `duration` | The length of the video in seconds (default: 5). | INT | No | 3 to 15 |
| `first_frame` | The starting image for the video. Must be at least 300x300 pixels and have an aspect ratio between 1:2.5 and 2.5:1. | IMAGE | Yes | N/A |
| `end_frame` | The ending image for the video. Must be at least 300x300 pixels and have an aspect ratio between 1:2.5 and 2.5:1. | IMAGE | Yes | N/A |
| `generate_audio` | Controls whether to generate audio for the video (default: True). | BOOLEAN | No | N/A |
| `model` | Model and generation settings. Selecting this option reveals a nested `resolution` parameter. | COMBO | No | `"kling-v3"` |
| `model.resolution` | The resolution for the generated video. This parameter is only available when the `model` is set to `"kling-v3"` (default: `"1080p"`). | COMBO | No | `"4k"`<br>`"1080p"`<br>`"720p"` |
| `seed` | A number used to control whether the node should re-run. The results are non-deterministic regardless of the seed value (default: 0). | INT | No | 0 to 2147483647 |

**Note:** The `first_frame` and `end_frame` images must meet the specified minimum size and aspect ratio requirements for the node to function correctly.

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

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