> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-docs-recommend-assets-api.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.

> 本文档由 AI 生成。如果您发现任何错误或有改进建议，欢迎贡献！ [在 GitHub 上编辑](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/KlingFirstLastFrameNode/zh.md)

此节点使用 Kling 3.0 模型生成视频。它基于文本提示、指定时长以及提供的起始帧和结束帧两张图像来创建视频。该节点还可以为视频生成伴随音频。

## 输入参数

| 参数                 | 数据类型    | 必填 | 范围                      | 描述                                               |
| ------------------ | ------- | -- | ----------------------- | ------------------------------------------------ |
| `prompt`           | STRING  | 是  | N/A                     | 指导视频生成的文本描述。长度必须在 1 到 2500 个字符之间。                |
| `duration`         | INT     | 否  | 3 到 15                  | 视频的时长，单位为秒（默认值：5）。                               |
| `first_frame`      | IMAGE   | 是  | N/A                     | 视频的起始图像。必须至少为 300x300 像素，且宽高比在 1:2.5 到 2.5:1 之间。 |
| `end_frame`        | IMAGE   | 是  | N/A                     | 视频的结束图像。必须至少为 300x300 像素，且宽高比在 1:2.5 到 2.5:1 之间。 |
| `generate_audio`   | BOOLEAN | 否  | N/A                     | 控制是否为视频生成音频（默认值：True）。                           |
| `model`            | COMBO   | 否  | `"kling-v3"`            | 模型和生成设置。选择此选项会显示一个嵌套的 `resolution` 参数。           |
| `model.resolution` | COMBO   | 否  | `"1080p"`<br />`"720p"` | 生成视频的分辨率。此参数仅在 `model` 设置为 `"kling-v3"` 时可用。     |
| `seed`             | INT     | 否  | 0 到 2147483647          | 用于控制节点是否应重新运行的数字。无论种子值如何，结果都是非确定性的（默认值：0）。       |

**注意：** `first_frame` 和 `end_frame` 图像必须满足指定的最小尺寸和宽高比要求，节点才能正常工作。

## 输出参数

| 输出名称     | 数据类型  | 描述       |
| -------- | ----- | -------- |
| `output` | VIDEO | 生成的视频文件。 |
