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

# KlingFirstLastFrameNode - ComfyUI Built-in Node Documentation

> This node uses the Kling 3.0 model to generate a video.

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

### Common Inputs

| Parameter        | Description                                                                                                         | Data Type      | Required | Range           |
| ---------------- | ------------------------------------------------------------------------------------------------------------------- | -------------- | -------- | --------------- |
| `model`          | Model and generation settings. Selecting this option reveals a nested `resolution` parameter.                       | DYNAMIC\_COMBO | No       | `"kling-v3"`    |
| `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             |
| `seed`           | Seed controls whether the node should re-run; results are non-deterministic regardless of seed (default: 0).        | INT            | No       | 0 to 2147483647 |

### Kling V3 Inputs

| Parameter    | Description                                                  | Data Type | Required | Range                               |
| ------------ | ------------------------------------------------------------ | --------- | -------- | ----------------------------------- |
| `resolution` | The resolution for the generated video (default: `"1080p"`). | COMBO     | No       | `"4k"`<br />`"1080p"`<br />`"720p"` |

**Note:** The `first_frame` and `end_frame` images must be at least 300x300 pixels and have an aspect ratio between 1:2.5 and 2.5:1 for the node to function correctly. The `prompt` must be between 1 and 2500 characters. The `resolution` option maps to a Kling generation mode: `"4k"`, `"1080p"` (pro), and `"720p"` (standard).

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