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

# KlingImageGenerationNode - ComfyUI Built-in Node Documentation

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

Kling 图像生成节点可根据文本提示生成图像，并支持使用参考图像进行引导。该节点基于文本描述和参考设置创建一张或多张图像，然后将生成的图像作为输出返回。

## 输入

| 参数       | 描述                                  | 数据类型   | 是否必填 | 取值范围                                                                                      |
| -------- | ----------------------------------- | ------ | ---- | ----------------------------------------------------------------------------------------- |
| `提示词`    | 正向文本提示                              | STRING | 是    | -                                                                                         |
| `负面提示词`  | 反向文本提示                              | STRING | 是    | -                                                                                         |
| `图像类型`   | 图像参考类型选择（高级）。当提供参考图像时必填。            | COMBO  | 是    | `"subject_reference"`<br />`"style_reference"`                                            |
| `图像参考强度` | 用户上传图像的参考强度（默认值：0.5，高级）             | FLOAT  | 是    | 0.0 - 1.0                                                                                 |
| `主体参考强度` | 主体参考相似度（默认值：0.45，高级）                | FLOAT  | 是    | 0.0 - 1.0                                                                                 |
| `模型`     | 图像生成模型选择（默认值："kling-v3"）            | COMBO  | 是    | `"kling-v3"`<br />`"kling-v2"`<br />`"kling-v1-5"`                                        |
| `宽高比`    | 生成图像的宽高比（默认值："16:9"）                | COMBO  | 是    | `"16:9"`<br />`"9:16"`<br />`"1:1"`<br />`"4:3"`<br />`"3:4"`<br />`"21:9"`<br />`"9:21"` |
| `图像数量`   | 生成图像数量（默认值：1）                       | INT    | 是    | 1 - 9                                                                                     |
| `图像`     | 可选的参考图像                             | IMAGE  | 否    | -                                                                                         |
| `种子`     | 种子控制节点是否应重新运行；无论种子如何，结果均非确定性（默认值：0） | INT    | 否    | 0 - 2147483647                                                                            |

**参数约束：**

* `image` 参数为可选。当提供参考图像时，`image_type` 参数必须设置为 `"subject_reference"` 或 `"style_reference"`。
* 当未提供参考图像时，`image_type`、`image_fidelity` 和 `human_fidelity` 参数不会被使用。
* 正向提示和反向提示的最大长度为 `MAX_PROMPT_LENGTH_IMAGE_GEN` 个字符。
* `seed` 参数为可选，且不保证确定性结果。

## 输出

| 输出名称     | 描述          | 数据类型  |
| -------- | ----------- | ----- |
| `output` | 基于输入参数生成的图像 | IMAGE |

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

***

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