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

# KlingFirstLastFrameNode - ComfyUI Built-in Node Documentation

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

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):** `b71119c3267e2a74d2180e5182463c78828e892bfcf1eeb7c33a0f4d7019997f`
