Skip to main content

Kling Image Generation

api node/image/Kling
KlingImageGenerationNode

Kling Image Generation Node. Generate an image from a text prompt with an optional reference image.

Example

JSON Example
{
  "class_type": "KlingImageGenerationNode",
  "inputs": {
    "prompt": "a beautiful landscape, high quality, detailed",
    "negative_prompt": "blurry, low quality",
    "image_type": null,
    "image_fidelity": 0.5,
    "human_fidelity": 0.45,
    "model_name": "kling-v2",
    "aspect_ratio": "16:9",
    "n": 1
  }
}

This example shows required inputs only. Connection values like ["node_id", 0] should reference actual node IDs from your workflow.

Inputs

NameTypeStatusConstraintsDefault
prompt?STRINGrequired--
negative_prompt?STRINGrequired--
image_typeCOMBOrequired--
image_fidelity?FLOATrequiredmin: 0, max: 1, step: 0.010.5
human_fidelity?FLOATrequiredmin: 0, max: 1, step: 0.010.45
model_nameCOMBOrequired-"kling-v2"
aspect_ratioCOMBOrequired-"16:9"
n?INTrequiredmin: 1, max: 91
imageIMAGEoptional--

Outputs

IndexNameTypeIs ListConnection Reference
0IMAGEIMAGENo["{node_id}", 0]
How to connect to these outputs

To connect another node's input to an output from this node, use the connection reference format:

["node_id", output_index]

Where node_id is the ID of this KlingImageGenerationNode node in your workflow, and output_index is the index from the table above.

Example

If this node has ID "5" in your workflow:

  • IMAGE (IMAGE): ["5", 0]
Was this page helpful?