Nodes/ComfyUI-fal-API/Kling Video Generation (fal)
ComfyUI Node

Kling Video Generation (fal)

The basic Kling video node, text or image to video

By gokayfem·Created 2 years ago·Updated about 24 hours ago· 203
Kling Video Generation (fal)
  • image
  • STRING
prompt
duration5
aspect_ratio16:9

Kling is the plain-vanilla entry point to Kuaishou's Kling video model inside ComfyUI - no version suffix, minimal knobs, does one job cleanly. It runs on fal's servers (like everything in gokayfem's ComfyUI-fal-API pack), so there's no local model and no VRAM in play. Type a prompt, optionally give it a starting image, and you get back a URL to a generated clip.

Kling has been one of the standout closed video models - strong, coherent motion that open models have spent a long time catching up to. If you want that quality without wrangling a specific version's parameters, this baseline node is the simplest way in. When you outgrow it, the same pack has the fancier KlingPro16 and Kling26Pro nodes with more control.

How it works

Text-to-video or image-to-video from the same node: leave the image empty for pure text-to-video, or plug one in to animate from a still. fal runs the generation and returns a string URL - the video lives on fal's side, not in a native ComfyUI VIDEO socket, so download it before the link expires.

The inputs and outputs that matter

  • prompt - describe the scene and the motion.
  • duration - 5 or 10 seconds. Start at 5; 10 costs more.
  • aspect_ratio - 16:9, 9:16, or 1:1.
  • image (optional) - supply one to switch from text-to-video into image-to-video.

That's the whole surface - this node keeps it deliberately simple (no cfg_scale, no audio toggle; those live on the Pro nodes). The single output is a STRING: the video URL.

How to install it

Via ComfyUI Manager: search ComfyUI-fal-API, install, restart. Manually:

cd ComfyUI/custom_nodes
git clone https://github.com/gokayfem/ComfyUI-fal-API.git
pip install -r ComfyUI-fal-API/requirements.txt

Nothing downloads. Put a fal API key in config.ini under [API] (copy config.ini.example) or export FAL_KEY=your_key, restart, and find it under FAL/VideoGeneration.

Common issues & troubleshooting

  • Auth error. FAL_KEY not set. Fix and restart.
  • The link is dead later. fal result URLs expire - wire the STRING output into the pack's Save-Media-from-URL utility or download it right away.
  • A run errors out. The pack surfaces fal's actual message: content policy, quota, or a bad input. Read it before guessing.
  • Want more control? This node intentionally has few knobs. For guidance strength, audio, or start/end frames, use Kling26Pro or KlingPro16 in the same pack.
  • Cost. Every clip is a paid API call, and 10 seconds costs more than 5. The pack's result cache makes repeat identical calls free (force_rerun bypasses), and the spend guard caps a session.
  • Windows Portable. Missing fal-client? python_embeded\python.exe -m pip install fal-client.

Think of this as the "just make me a Kling clip" button. It's the right node when you want quality without options - and a good first stop before you graduate to the Pro variants.

CategoryFAL/VideoGeneration

Inputs (4)

NameTypeDefaultDescription
promptSTRING
durationCOMBO52 options: 5, 10
aspect_ratioCOMBO16:93 options: 16:9, 9:16, 1:1
imageoptIMAGE

Outputs (1)

NameTypeDescription
STRINGSTRING