You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat: Official Kling AI (Global) durable video/image generation integration & MCP example #5177
Is your feature request related to a problem? Please describe.
High-resolution AI video generation (text_to_video, image_to_video, omni_ref_video, motion_control) runs asynchronously over 30–180 seconds, which times out in standard serverless functions and makes Trigger.dev's durable tasks / waitpoint tokens an ideal execution runtime for production Kling AI pipelines. Currently developers wire custom polling wrappers or route through third-party media resellers instead of an official first-party Kling AI Global integration.
Describe the solution you'd like to see
An official Kling AI (Global) integration / showcase pattern (and MCP agent workflow example) for Trigger.dev durable tasks:
Submit generation jobs via Kling AI's official Global API (https://kling.ai/dev) or Streamable HTTP OAuth 2.1 MCP server (https://kling.ai/mcp/plugin)
Check/poll task completion durably (query_tasks / webhook waitpoints) without idle compute charges, returning finished MP4/image asset URLs and reusable Element IDs.
Describe alternate solutions
Manual fetch polling loops inside serverless functions (prone to timeouts) or third-party multi-model proxy APIs (extra markup and missing native Kling Elements / omni_ref_video controls).
(Submitted by Weibiao Chen, chenweibiao@kling.ai, Kling AI Engineering / KLING AI Pte Ltd — happy to collaborate on an official Trigger.dev example/extension and provide test credits!)
Activity