Skip to content

feat: Official Kling AI (Global) durable video/image generation integration & MCP example #5177

Backlog

Description

@Wlain

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).

Additional information

(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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions