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

# KlingOmniProFirstLastFrameNode - ComfyUI Built-in Node Documentation

> Complete documentation for the KlingOmniProFirstLastFrameNode 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/KlingOmniProFirstLastFrameNode/zh.md)

此节点使用 Kling AI 模型生成视频。它需要一个起始图像和文本提示。您可以选择性地提供一个结束图像或最多六个参考图像，以引导视频的内容和风格。该节点处理这些输入，以创建指定时长和分辨率的视频。

## 输入参数

| 参数名                | 数据类型   | 必填 | 取值范围                    | 描述                                       |
| ------------------ | ------ | -- | ----------------------- | ---------------------------------------- |
| `model_name`       | COMBO  | 是  | `"kling-video-o1"`      | 用于视频生成的具体 Kling AI 模型。                   |
| `prompt`           | STRING | 是  | -                       | 描述视频内容的文本提示。可以包含正面和负面的描述。                |
| `duration`         | INT    | 是  | 3 到 10                  | 生成视频的期望时长，单位为秒（默认：5）。                    |
| `first_frame`      | IMAGE  | 是  | -                       | 视频序列的起始图像。                               |
| `end_frame`        | IMAGE  | 否  | -                       | 视频的可选结束帧。此参数不能与 `reference_images` 同时使用。 |
| `reference_images` | IMAGE  | 否  | -                       | 最多 6 个额外的参考图像。                           |
| `resolution`       | COMBO  | 否  | `"1080p"`<br />`"720p"` | 生成视频的输出分辨率（默认："1080p"）。                  |

**重要限制：**

* `end_frame` 输入不能与 `reference_images` 输入同时使用。
* 如果您不提供 `end_frame` 或任何 `reference_images`，则 `duration` 只能设置为 5 或 10 秒。
* 所有输入图像（`first_frame`、`end_frame` 以及任何 `reference_images`）的宽度和高度都必须至少为 300 像素。
* 所有输入图像的宽高比必须在 1:2.5 到 2.5:1 之间。
* 通过 `reference_images` 输入最多可提供 6 张图像。
* `prompt` 文本的长度必须在 1 到 2500 个字符之间。

## 输出参数

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