kling-omni-video

n8n community node for Kling.ai video generation with built-in auto-refreshing JWT authentication.

Package Information

Released: 2 mo ago
Downloads: 0 weekly / 0 monthly
Latest Version: 1.0.0

Documentation

n8n-nodes-kling-omni-video

An n8n community node for Kling AI's video generation API, covering both plain text-to-video and reference-assisted Omni-video generation.

Installation

Follow the n8n community nodes installation guide, or install manually:

npm install n8n-nodes-kling-omni-video

Credentials

Requires a Kling AI API credential. Kling authenticates via short-lived JWTs signed with an Access Key / Secret Key pair — the node handles token generation and refresh automatically.

Field Description
API Base URL Singapore (api-singapore.klingai.com) or Global (api.klingai.com)
Access Key (ak) Your Kling AI access key
Secret Key (sk) Your Kling AI secret key — used to sign JWTs locally, never sent directly
Token TTL (seconds) How long each generated JWT is valid for (default 1800)
Refresh Skew (seconds) How early to refresh the token before it expires (default 60)

Operations

The Kling Video Generator node supports:

  • Generate Video — submits a new video generation task. Choose between:
    • Text to Video — prompt-only generation
    • Omni Video — reference-assisted generation (image/video/audio references for consistency)
  • Get Task Status — retrieves the status and result of a task by ID.
  • List Tasks — lists all Omni-video tasks (paginated).

Supports multi-shot mode (multiple prompts as a single JSON array for multi-segment generation), negative prompts, and configurable aspect ratio.

Security note

The Secret Key is used to sign JWTs client-side and is never transmitted in requests — only the resulting signed token is sent to Kling's API.

License

MIT

Discussion