Skip to content

Comments

New: add a new plugin kling_aigc-0.0.1.difypkg【Kling AIGC: Support full-generation and editing operations for images and videos, using the latest Kling models (3-Omini, O1, kling-v3, kling-v2.6, and kling-v2.5).】#2089

Merged
crazywoola merged 3 commits intolanggenius:mainfrom
sawyer-shi:main-kling_aigc-0.0.1
Feb 24, 2026

Conversation

@sawyer-shi
Copy link
Contributor

@sawyer-shi sawyer-shi commented Feb 22, 2026

Kling AIGC

A Dify plugin that integrates Kling AI 3.0 models for video, image, and element generation workflows. Supports omni-video, text-to-video, image-to-video, omni-image, image generation, and element management with task-based queries.

Version Information

  • Current Version: v0.0.1
  • Release Date: 2026-02-16
  • Compatibility: Dify Plugin Framework
  • Python Version: 3.12

Version History

  • v0.0.1 (2026-02-16): Initial release with Kling 3.0 video/image/element tools

Quick Start

  1. Install the plugin in your Dify environment
  2. Configure your Kling AI credentials (Access Key + Secret Key)
  3. Create tasks and query results

Key Features

CNEN

  • Video Generation: Omni-video, text-to-video, image-to-video
  • Image Generation: Omni-image and image generation tasks
  • Element Management: Create, query, and delete custom elements
  • Task Queries: Single-task query with optional auto-download
  • Watermark Control: Optional watermark output

Core Features

Video Tools

  • Omni-Video Create: Multi-shot or single-shot video creation
  • Text to Video: Prompt-based video generation
  • Image to Video: First-frame / tail-frame and mask support
  • Video Query: Task status, URLs, and optional download

Image Tools

  • Omni-Image Create: Prompt-based single/series image generation
  • Image Generation: Prompt and optional image reference
  • Image Query: Task status, URLs, and optional download

Element Tools

  • Element Create: Custom subject creation (image/video reference)
  • Element Query: Retrieve element status and details
  • Element Delete: Remove custom elements

Requirements

  • Python 3.12
  • Dify Platform access
  • Kling AI API credentials (Access Key + Secret Key)
  • Required Python packages (installed via requirements.txt):
    • dify_plugin>=0.2.0
    • requests>=2.31.0
    • PyJWT>=2.8.0
    • Pillow>=9.0.0

Installation & Configuration

  1. Install dependencies:
    pip install -r requirements.txt
  2. Configure Kling AI credentials in plugin settings:
    • Access Key
    • Secret Key
  3. Install the plugin in your Dify environment

Notes

  • Generated assets are retained for 30 days; download promptly
  • Queries support auto-download toggles for media retrieval

Developer Information

Plugin Submission Form

1. Metadata

  • Plugin Author:
  • Plugin Name:
  • Repository URL:

2. Submission Type

  • New plugin submission
  • Version update for existing plugin

3. Description

4. Checklist

  • I have read and followed the Publish to Dify Marketplace guidelines
  • I have read and comply with the Plugin Developer Agreement
  • I confirm my plugin works properly on both Dify Community Edition and Cloud Version
  • I confirm my plugin has been thoroughly tested for completeness and functionality
  • My plugin brings new value to Dify

5. Documentation Checklist

Please confirm that your plugin README includes all necessary information:

  • Step-by-step setup instructions
  • Detailed usage instructions
  • All required APIs and credentials are clearly listed
  • Connection requirements and configuration details
  • Link to the repository for the plugin source code

6. Privacy Protection Information

Based on Dify Plugin Privacy Protection Guidelines:

Data Collection

Privacy Policy

  • I confirm that I have prepared and included a privacy policy in my plugin package based on the Plugin Privacy Protection Guidelines

…ll-generation and editing operations for images and videos, using the latest Kling models (3-Omini, O1, kling-v3, kling-v2.6, and kling-v2.5).】
…ll-generation and editing operations for images and videos, using the latest Kling models (3-Omini, O1, kling-v3, kling-v2.6, and kling-v2.5).】
Copy link
Member

@crazywoola crazywoola left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Review Results

Check Status Required Action
Single .difypkg ✅ Pass -
PR language (no CJK) ✅ Pass -
Project structure ✅ Pass -
Manifest author ✅ Pass -
Icon valid ❌ Fail Error checking icon: 'utf-8' codec can't decode byte 0x89 in position 0: invalid start byte
Version not exists ✅ Pass -
README language (no Chinese) ✅ Pass -
PRIVACY.md exists ✅ Pass -
Dependencies install ✅ Pass -
dify_plugin >= 0.5.0 ❌ Fail dify_plugin version 0.2.0 is too old (need >= 0.5.0)
Install test ❌ Fail Install test failed: Testing plugin in directory: /var/folders/c5/ssq8b54n0rj6rbmghy7_2xdm0000gn/T/tmpos8svrnq/repo/unpacked_plugin
{"version":"0.0.1","type":"plugin","author":"sawyer-shi","name":"kling_aigc","repo":"https://github.com/sawyer-shi/dify-plugins-kling_aigc","description":{"zh_Hans":"可灵AIGC:支持全套图片+视频的生成、编辑等操作,使用最新的可灵模型(3-Omini、O1、kling-v3以及kling-v2.6、kling-v2.5、kling-v2.1和kling-v2.0)。","pt_BR":"Kling AIGC: Support full-generation and editing operations for images and videos, using the latest Kling models (3-Omini, O1, kling-v3, kling-v2.6, and kling-v2.5).","ja_JP":"Kling AIGC: Support full-generation and editing operations for images and videos, using the latest Kling models (3-Omini, O1, kling-v3, kling-v2.6, and kling-v2.5).","en_US":"Kling AIGC: Support full-generation and editing operations for images and videos, using the latest Kling models (3-Omini, O1, kling-v3, kling-v2.6, and kling-v2.5)."},"icon":"icon.png","icon_dark":null,"label":{"zh_Hans":"可灵AIGC","pt_BR":"Kling AIGC","ja_JP":"Kling AIGC","en_US":"Kling AIGC"},"created_at":"2026-02-16T23:19:58.017156+08:00","resource":{"memory":268435456,"permission":{"tool":{"enabled":true},"model":{"enabled":true,"llm":false,"text_embedding":false,"rerank":false,"tts":false,"speech2text":false,"moderation":false},"node":null,"endpoint":{"enabled":true},"app":{"enabled":true},"storage":{"enabled":true,"size":1048576}}},"plugins":{"tools":["provider/kling_aigc.yaml"],"models":[],"endpoints":[],"agent_strategies":[],"datasources":[],"triggers":[]},"meta":{"version":"0.0.1","arch":["amd64","arm64"],"runner":{"language":"python","version":"3.12","entrypoint":"main"},"minimum_dify_version":null}}

{"event": "log", "data": {"level": "INFO", "message": "Installed tool: kling_aigc", "timestamp": 1771898103.203139}}
{"event":"heartbeat","session_id":null,"data":{}}

{"event":"heartbeat","session_id":null,"data":{}}

!!! Force exit after 20 seconds
!!! Plugin test result: failed
!!! Process exited, here is the stderr:

================================================
!!! Have you tested it locally?
|
| Packaging test | ✅ Pass | - |

Next steps

Please address the failed checks above.

Copy link
Member

@crazywoola crazywoola left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-review (concise)

Re-reviewed with concise notes (raw logs removed from the review body).

Check Status Required action
dify_plugin >= 0.5.0 ❌ Fail Update the plugin dependency to dify_plugin>=0.5.0.
Install verification ❌ Fail Install validation did not pass in reviewer pre-check. Please use CI logs to identify and fix the root cause.
Packaging test ✅ Pass No action needed.

Next steps

  1. Bump dify_plugin to >=0.5.0.
  2. Re-run CI and confirm install verification passes.
  3. Push updates and request re-review.

…ll-generation and editing operations for images and videos, using the latest Kling models (3-Omini, O1, kling-v3, kling-v2.6, and kling-v2.5).】
@crazywoola crazywoola merged commit 776f066 into langgenius:main Feb 24, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants