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

# KlingImageGenerationNode - ComfyUI Built-in Node Documentation

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

Kling Image Generation Node generates images from text prompts with the option to use a reference image for guidance. It creates one or more images based on your text description and reference settings, then returns the generated images as output.

## Inputs

| Parameter         | Description                                                                                                 | Data Type | Required | Range                                                                                     |
| ----------------- | ----------------------------------------------------------------------------------------------------------- | --------- | -------- | ----------------------------------------------------------------------------------------- |
| `prompt`          | Positive text prompt                                                                                        | STRING    | Yes      | Maximum 500 characters                                                                    |
| `negative_prompt` | Negative text prompt                                                                                        | STRING    | Yes      | Maximum 500 characters                                                                    |
| `image_type`      | Image reference type selection (advanced). Required when a reference image is provided.                     | COMBO     | Yes      | `"subject_reference"`<br />`"style_reference"`                                            |
| `image_fidelity`  | Reference intensity for user-uploaded images (default: 0.5, advanced)                                       | FLOAT     | Yes      | 0.0 - 1.0                                                                                 |
| `human_fidelity`  | Subject reference similarity (default: 0.45, advanced)                                                      | FLOAT     | Yes      | 0.0 - 1.0                                                                                 |
| `model_name`      | Model selection for image generation (default: "kling-v3")                                                  | COMBO     | Yes      | `"kling-v3"`<br />`"kling-v2"`<br />`"kling-v1-5"`                                        |
| `aspect_ratio`    | Aspect ratio for generated images (default: "16:9")                                                         | COMBO     | Yes      | `"16:9"`<br />`"9:16"`<br />`"1:1"`<br />`"4:3"`<br />`"3:4"`<br />`"21:9"`<br />`"9:21"` |
| `n`               | Number of generated images (default: 1)                                                                     | INT       | Yes      | 1 - 9                                                                                     |
| `image`           | Optional reference image                                                                                    | IMAGE     | No       | -                                                                                         |
| `seed`            | Seed controls whether the node should re-run; results are non-deterministic regardless of seed (default: 0) | INT       | No       | 0 - 2147483647                                                                            |

**Parameter Constraints:**

* The `image` parameter is optional. When a reference image is provided, the `image_type` parameter must be set to either `"subject_reference"` or `"style_reference"`.
* When no reference image is provided, the `image_type`, `image_fidelity`, and `human_fidelity` parameters are not used.
* Prompt and negative prompt have a maximum length of 500 characters.
* The `seed` parameter is optional and does not guarantee deterministic results.

## Outputs

| Output Name | Description                                      | Data Type |
| ----------- | ------------------------------------------------ | --------- |
| `output`    | Generated image(s) based on the input parameters | IMAGE     |

> 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/KlingImageGenerationNode/en.md)

***

**Source fingerprint (SHA-256):** `65bd6ea842877a9af9a7b554fe020418291d06ae6cc35e86127ab524aadd48c1`
