klingai-webhook-config
Installation
SKILL.md
Kling AI Webhook Configuration
Overview
Instead of polling task status, pass a callback_url when creating a task. Kling AI will POST the completed task result to your URL when generation finishes. This eliminates polling overhead and reduces API calls.
Supported on: All video generation endpoints (text2video, image2video, video-extend, lip-sync, effects)
How It Works
- Include
callback_urlin your task creation request - Kling queues the task normally
- When task reaches terminal state (
succeedorfailed), Kling POSTs the full result to your URL - Your webhook handler processes the result
Sending a Task with Callback
import jwt, time, os, requests