Creator Center
/Tool/TongYi AIGC
app icon

TongYi AIGC

Verified by Dify
No ratings yet
0
S
sawyer-shi/tongyi_aigc

TongYi AIGC: Supports full-featured image and video generation using the latest Alibaba Tongyi models (wan3.0, qwen-image3.0, HappyHorse1.1, wan2.7, Z-image, wan2.6,wan2.5, wan2.2, and wanx2.1).

ProductivityImageVideos

TongYi AIGC

A powerful Dify plugin providing comprehensive AI-powered image and video generation capabilities using Alibaba Cloud Tongyi's latest Wanxiang, Qwen, and Z-Image models. Supports text-to-image, text-to-video, image-to-image, image-to-video, image translation, and more with professional-grade quality and flexible configuration options.

Version Information

  • Current Version: v0.0.5
  • Release Date: 2026-09-20
  • Compatibility: Dify Plugin Framework
  • Python Version: 3.12

Version History

  • v0.0.5 (2026-09-20):
    • Added Wan3.0 (wan3.0-video / wan3.0-video-prime) all-in-one video generation model support
    • wan3.0 capabilities: text-to-video, first-frame/first+last-frame video, all-reference video (image/video/audio free combinations), file-to-video, webpage-to-video, video editing, and video extension (up to 30s, 30fps)
    • wan3.0 uses the workspace-bound Bailian MaaS endpoint: add optional + credentials (region must match your API key)
    • Extended tools: wan_text_2_video, wan_first_image_2_video, wan_first_end_image_2_video, wan_reference_video (new file_url/link_url params), wan_video_continue, wan_video_query (auto MaaS endpoint fallback)
    • Added qwen-image-3.0 / qwen-image-3.0-pro models (unified T2I + I2I editing with 1-3 reference images)
    • qwen-image-3.0 features: long prompts (4500 chars), auto size (model-recommended resolution), prompt_extend_mode (direct/agent), enable_thinking, 1-6 images per request (works on the existing DashScope endpoint)
    • Breaking change: wan_reference_video's parameter split into typed / / (no more extension-based type guessing); existing workflows need to move values into the new parameters
  • v0.0.4 (2026-07-05):
    • Added HappyHorse 1.1 model for all HappyHorse video generation tools
    • Updated default model to happyhorse-1.1 for all HappyHorse features
    • Available happyhorse-1.1 models: happyhorse-1.1-t2v, happyhorse-1.1-i2v, happyhorse-1.1-r2v
  • v0.0.3 (2026-04-26):
    • Added HappyHorse series models for video generation
    • Added HappyHorse Text to Video
    • Added HappyHorse Image to Video - First Frame
    • Added HappyHorse Reference Video
    • Added HappyHorse Video Editing
  • v0.0.2 (2026-04-12):
    • Added new Video Continuation tool (wan_video_continue) - Continue video from existing clips using wan2.7-i2v
    • Added wan2.7-t2v model support for Text to Video
    • Added wan2.7-i2v model support for Image to Video with multi-modal inputs (first-frame, first+last frame, video continuation)
    • Added wan2.7-r2v model support for Reference Video with enhanced features
    • Added wan2.7-image-pro/wan2.7-image models for Image to Image with sequential grouped output mode
    • Added qwen-image2.0 series models: qwen-image-2.0-pro, qwen-image-2.0, qwen-image-edit-max, qwen-image-edit-plus
    • Enhanced resolution control with new parameters for wan2.7 models
    • Added tags for plugin marketplace (productivity, image, videos)
  • v0.0.1 (2026-02-16): Initial release with image and video generation capabilities

Quick Start

  1. Install the plugin in your Dify environment
  2. Configure your Alibaba Cloud API credentials (API Key from DashScope)
  3. Start generating images and videos with AI

Key Features

  • Multiple Generation Modes: Text-to-image, text-to-video, image-to-image, image-to-video, image translation
  • Latest AI Models: Supports wan3.0, wan2.7, qwen-image2.0, Z-image, wan2.6, wan2.5, wan2.2 for images and videos
  • Wan3.0 All-in-One Video: Text-to-video, first/last frame, reference (image/video/audio), file/webpage-to-video, video editing and extension, up to 30 seconds at 30fps
  • Flexible Image Sizes: Multiple aspect ratios from 1:1 to 21:9 with various resolutions
  • Video Generation: Create videos with customizable duration (up to 30 seconds for wan3.0) and synchronized audio
  • Image Translation: Translate text in images with AI-powered OCR and translation (14+ languages)
  • First-Last Frame Video: Create videos from first and last frame images
  • Reference Video: Generate videos based on reference video style
  • Video Continuation: Continue existing clips with wan2.7-i2v
  • Batch Generation: Generate multiple images in a single request (up to 6 images)
  • Watermark Control: Optional watermark for content authenticity

Core Features

Image Generation

Wan Text to Image (wan_text_2_image)

Generate images from text descriptions using Wanxiang models.

  • Supported Models: wan2.7-image-pro, wan2.7-image, wan2.6-t2i
  • Features:
    • Multiple aspect ratios (1:1, 3:2, 2:3, 16:9, 9:16)
    • High resolution output (up to 4K for wan2.7-image-pro)
    • Optional watermark
    • Sequential grouped image output mode (wan2.7)
    • Thinking mode for enhanced reasoning (wan2.7)
    • Prompt intelligent rewriting
    • Batch generation (1-4 images; up to 12 in wan2.7 sequential mode)
    • Negative prompt support

Wan Image to Image (wan_image_2_image)

Generate images from text and reference images using Wanxiang models.

  • Supported Models: wan2.7-image-pro, wan2.7-image, wan2.6-image (compatibility)
  • Features:
    • Reference image guided generation (1-9 images)
    • Multiple aspect ratios (1:1, 2:3, 3:2, 3:4, 4:3, 9:16, 16:9, 21:9)
    • 1K/2K presets for wan2.7 models
    • Optional watermark
    • Sequential grouped image output mode (wan2.7)
    • Interleaved text and image output mode (wan2.6 compatibility)
    • Prompt intelligent rewriting
    • Batch generation (1-4 images; up to 12 in wan2.7 sequential mode)

Qwen Text to Image (qwen_text_2_image)

Generate images using Qwen image models.

  • Supported Models: qwen-image-3.0-pro, qwen-image-3.0, qwen-image-2.0-pro, qwen-image-2.0, qwen-image-2.0-pro-2026-03-03, qwen-image-2.0-2026-03-03, qwen-image-max, qwen-image-plus, qwen-image
  • Features:
    • qwen-image-3.0: long prompts (up to 4500 chars), auto size (model-recommended resolution), prompt_extend_mode (direct/agent), enable_thinking mode, 1-6 images per request
    • High quality image generation
    • Multiple aspect ratios (16:9, 4:3, 1:1, 3:4, 9:16)
    • Optional watermark
    • Prompt intelligent rewriting
    • Negative prompt support
    • Random seed for reproducibility

Qwen Image to Image (qwen_image_2_image)

Generate images from text and reference images using Qwen models.

  • Supported Models: qwen-image-3.0-pro, qwen-image-3.0, qwen-image-2.0-pro, qwen-image-2.0, qwen-image-edit-max, qwen-image-edit-max-2026-01-16, qwen-image-edit-plus, qwen-image-edit, qwen-image-edit-plus-2025-10-30
  • Features:
    • qwen-image-3.0: unified T2I/I2I editing with 1-3 reference images, long prompts (up to 4500 chars), auto size, enable_thinking mode, 1-6 images per request
    • Reference image guided generation (1-3 images)
    • Multiple aspect ratios (1:1, 2:3, 3:2, 3:4, 4:3, 9:16, 16:9, 21:9)
    • Optional watermark
    • Prompt intelligent rewriting
    • Batch generation (1-6 images)
    • High resolution output (up to 2048*872)

Z-Image Text to Image (z_image_text_2_image)

Generate images using Z-Image Turbo model.

  • Supported Models: z-image-turbo
  • Features:
    • Fast image generation
    • Extensive aspect ratio support (1:1, 2:3, 3:2, 3:4, 4:3, 7:9, 9:7, 9:16, 9:21, 16:9, 21:9)
    • Multiple resolution options (1024 to 2048 pixels)
    • Prompt intelligent rewriting
    • Random seed for reproducibility

Image Translation (qwen_image_translate)

Translate text in images with AI-powered OCR and translation.

  • Supported Models: qwen-mt-image
  • Features:
    • Automatic text detection
    • Multi-language translation (14 languages)
    • Supported languages: Chinese, English, Japanese, Korean, French, German, Spanish, Russian, Italian, Portuguese, Arabic, Thai, Vietnamese, Indonesian
    • Domain hint for improved translation
    • Sensitive words filtering
    • Terminology support

Video Generation

Text to Video (wan_text_2_video)

Generate videos from text descriptions using Wanxiang models.

  • Supported Models: wan3.0-video, wan3.0-video-prime, wan2.7-t2v, wan2.6-t2v, wan2.5-t2v-preview, wan2.2-t2v-plus, wanx2.1-t2v-turbo, wanx2.1-t2v-plus
  • Features:
    • wan3.0: prompts up to 20000 chars, duration 2-30s (or -1 smart duration), 480P/720P/1080P, adaptive ratio, up to 30fps output (requires workspace_id + region credentials)
    • Duration: 2-15 seconds for wan2.x (model dependent); up to 30 seconds for wan3.0
    • Resolution control: (wan3.0/wan2.7) or (wan2.6 and earlier)
    • Synchronized audio generation
    • Prompt intelligent rewriting
    • Single/Multi shot support (shot_type for wan2.6, prompt-driven for wan2.7)
    • Custom audio URL support (wan2.x)
    • Negative prompt support (wan2.x)

Image to Video (wan_first_image_2_video)

Generate video from a single image with text description.

  • Supported Models: wan3.0-video, wan3.0-video-prime, wan2.7-i2v, wan2.6-i2v, wan2.5-i2v-preview, wan2.2-i2v-flash, wan2.2-i2v-plus, wanx2.1-i2v-turbo, wanx2.1-i2v-plus
  • Features:
    • Multi-modal inputs on wan2.7-i2v: first-frame, first+last frame, or video continuation
    • wan3.0: first-frame / first+last frame modes (audio not supported in these modes) and video continuation via reference_video
    • Single image input as first frame (legacy models)
    • Duration: 2-15 seconds for wan2.x; up to 30s (or -1 smart) for wan3.0
    • Resolution: 480P, 720P, 1080P
    • Synchronized audio generation
    • Video effect templates
    • Prompt intelligent rewriting
    • Single/Multi shot support

First-Last Frame Video (wan_first_end_image_2_video)

Generate video from first and last frame images.

  • Supported Models: wan3.0-video, wan3.0-video-prime, wan2.7-i2v, wan2.2-kf2v-flash
  • Features:
    • First and last frame input
    • Smooth transition generation
    • Resolution: 480P, 720P, 1080P
    • Video effect templates (wan2.x)
    • Prompt intelligent rewriting

Reference Video (wan_reference_video)

Generate videos based on reference media.

  • Supported Models: wan3.0-video, wan3.0-video-prime, wan2.7-r2v, wan2.6-r2v, wan2.6-r2v-flash
  • Features:
    • wan3.0 all-in-one reference mode: reference images (max 10) / videos (max 5) / audios (max 5) free combination, plus file-to-video and webpage-to-video (file_url / link_url), reference voice mapped to reference_audio, prompts up to 20000 chars referencing media by order (e.g. "image 1", "video 1", "audio 1"), also covers video editing and extension use cases
    • Multi-modal references (images/videos) input (up to 5) for wan2.7
    • Optional first-frame and reference voice support (wan2.7-r2v)
    • Duration: 2-10 seconds (or up to 15s for wan2.7 without reference video); wan3.0 up to 30s or -1 smart duration
    • Resolution: 480P/720P/1080P (wan3.0) or 720P/1080P (wan2.7), adaptive ratio for wan3.0
    • Synchronized audio generation (wan2.6-r2v-flash only)
    • Single/Multi shot support (wan2.x)
    • Prompt intelligent rewriting (forced on for wan3.0 file/link inputs)

Video Continuation (wan_video_continue)

Continue a video from an existing first clip.

  • Supported Models: wan3.0-video, wan3.0-video-prime, wan2.7-i2v
  • Features:
    • Supports and (wan2.7); wan3.0 uses reference_video + extension-intent prompt with adaptive ratio (last frame as reference image)
    • Duration 2-15 seconds (wan2.7) or up to 30s / -1 smart (wan3.0)
    • Prompt intelligent rewriting and watermark control

Video Query (wan_video_query)

Query the status and results of video generation tasks.

  • Features:
    • Real-time task status
    • Video download URL retrieval
    • Optional automatic video download
    • Automatic wan3.0 MaaS endpoint fallback when the task is not found on DashScope (requires workspace_id + region credentials)

Image Translation Query (qwen_image_translate_query)

Query image translation task status and results.

  • Features:
    • Real-time task status
    • Translated image retrieval

Technical Advantages

  • Latest AI Models: Access to Alibaba Cloud's newest Wanxiang, Qwen, and Z-Image models
  • High Quality Output: Professional-grade image and video generation
  • Flexible Configuration: Extensive parameter options for fine-tuning
  • Async Processing: Efficient video generation with task-based workflow
  • Multi-Format Support: Support for various image and video formats
  • Audio Generation: Automatic synchronized audio for videos
  • Batch Processing: Generate multiple images efficiently
  • Image Translation: AI-powered text translation in images (14+ languages)

Requirements

  • Python 3.12
  • Dify Platform access
  • Alibaba Cloud API credentials (API Key from DashScope)
  • Required Python packages (installed via requirements.txt):
    • dify_plugin>=0.2.0
    • requests>=2.31.0,<3.0.0
    • pillow>=10.0.0,<11.0.0

Installation & Configuration

  1. Install the required dependencies:

  2. Configure your Alibaba Cloud API credentials in the plugin settings:

    • API Key: Your Alibaba Cloud DashScope API key (secret-input, encrypted by Dify, never logged)
    • Workspace ID (optional): Bailian business space ID, required for wan3.0 models
    • Region (optional): Bailian workspace region (cn-beijing default), must match your API key region for wan3.0
  3. Install the plugin in your Dify environment

Usage

Image Generation Tools

1. Wan Text to Image

Generate images from text descriptions.

  • Parameters:
    • : Model version (default: wan2.7-image-pro)
    • : Text description of the image (required, wan2.7 <=5000 chars, wan2.6 <=2100 chars)
    • : Describe what you don't want (<=500 chars, wan2.6 compatibility)
    • : Image size (default: 2K, supports 1K/2K/4K or specific resolutions like 1024*1024)
    • : Number of images to generate (1-4, up to 12 with wan2.7 sequential mode)
    • : Enable grouped image generation for wan2.7 (default: false)
    • : Enable thinking mode for enhanced reasoning on wan2.7 (default: true)
    • : Enable prompt intelligent rewriting (default: true)
    • : Enable/disable watermark (default: true)
    • : Random seed for reproducibility

2. Wan Image to Image

Generate images from text and reference images.

  • Parameters:
    • : Model version (default: wan2.7-image-pro)
    • : Text description (required, <=5000 chars)
    • : Reference image files (1-9 images, required)
    • : Image size (default: 2K)
    • : Number of images to generate (1-4, up to 12 when on wan2.7)
    • : Enable grouped image generation for wan2.7 (default: false)
    • : Enable interleaved output (default: false)
    • : Enable prompt intelligent rewriting (default: true)
    • : Enable/disable watermark (default: true)

3. Qwen Text to Image

Generate images using Qwen models.

  • Parameters:
    • : Text description (required)
    • : Model version (default: qwen-image-3.0-pro)
    • : Image size (default: 1664*928)
    • : Describe what you don't want
    • : Enable prompt intelligent rewriting
    • : Enable/disable watermark (default: true)
    • : Random seed for reproducibility

4. Qwen Image to Image

Generate images from text and reference images using Qwen models.

  • Parameters:
    • : Text description (required)
    • : Reference image files (1-3 images, required)
    • : Model version (default: qwen-image-3.0-pro)
    • : Image size (default: 1024*1024)
    • : Number of images to generate (1-6, default: 3)
    • : Enable prompt intelligent rewriting
    • : Enable/disable watermark (default: true)

5. Z-Image Text to Image

Generate images using Z-Image Turbo.

  • Parameters:
    • : Text description (required, <=800 chars)
    • : Model version (default: z-image-turbo)
    • : Image size (default: 1024*1536)
    • : Enable prompt intelligent rewriting (default: false)
    • : Random seed for reproducibility

6. Image Translation

Translate text in images.

  • Parameters:
    • : Image URL for translation (required)
    • : Target language (required)
    • : Source language (default: auto)
    • : Domain hint for improved translation
    • : Sensitive words (JSON array)
    • : Terminologies (JSON array)
    • : Model version (default: qwen-mt-image)

Video Generation Tools

7. Text to Video

Generate videos from text descriptions.

  • Parameters:
    • : Model version (default: wan3.0-video)
    • : Text description (required)
    • : Describe what you don't want
    • : Video resolution (default: 1920*1080)
    • : Duration in seconds (model dependent, default: 5)
    • : Custom audio file URL
    • : Auto generate audio (default: true)
    • : Single or multi shot (default: single)
    • : Enable prompt intelligent rewriting (default: true)
    • : Enable/disable watermark (default: true)
    • : Random seed for reproducibility

8. Image to Video

Generate video from an image or continue from a video clip.

  • Parameters:
    • : Model version (default: wan3.0-video, supports wan2.7-i2v and earlier)
    • : Text description
    • / : First frame image input
    • / : Optional last frame image (wan2.7-i2v)
    • : Optional first clip video URL for continuation (wan2.7-i2v)
    • : Video resolution (default: 1080P)
    • : Duration in seconds (model dependent, default: 5)
    • : Video effect template
    • : Custom audio file URL (wan2.7-i2v only in first-frame modes)
    • : Auto generate audio (default: true)
    • : Single or multi shot (default: single)
    • : Enable prompt intelligent rewriting (default: true)
    • : Enable/disable watermark (default: true)

9. First-Last Frame Video

Generate video from first and last frame images.

  • Parameters:
    • : Model version (default: wan3.0-video)
    • : Text description
    • : First frame image (required)
    • : Last frame image
    • : Video resolution (default: 720P)
    • : Video effect template
    • : Enable prompt intelligent rewriting (default: true)
    • : Enable/disable watermark (default: true)

10. Reference Video

Generate videos based on reference video style.

  • Parameters:
    • : Model version (default: wan3.0-video)
    • : Text description (required, wan2.7 max 5000 / wan2.6 max 1500)
    • / / : Typed reference URLs (semicolon-separated; wan3.0: max 10 images / 5 videos / 5 audios, prompt can reference them in order e.g. image 1 / video 1 / audio 1; wan2.x: images+videos total max 5, audios ignored)
    • / : Document / public webpage URL for wan3.0 file/webpage-to-video
    • : Optional first frame image URL (wan2.7-r2v)
    • : Optional reference voice URL (wan2.7-r2v)
    • : Legacy resolution in (wan2.6; also mapped for wan2.7 compatibility)
    • / : Native wan2.7 resolution tier and aspect ratio
    • : Duration in seconds (wan2.6: 2-10; wan2.7: 2-10 or up to 15 without reference video)
    • : Single or multi shot (wan2.6)
    • : Auto generate audio (default: true, wan2.6-r2v-flash only)
    • : Enable prompt intelligent rewriting (default: true)
    • : Enable/disable watermark (default: true)

11. Video Query

Query video generation task status.

  • Parameters:
    • : Video generation task ID (required)
    • : Download video when available (default: false)

12. Image Translation Query

Query image translation task status.

  • Parameters:
    • : Translation task ID (required)

13. HappyHorse Text to Video

Generate videos from text using HappyHorse model.

  • Parameters:
    • : Model version (default: happyhorse-1.0-t2v)
    • : Text description for video generation (required)
    • : Video resolution - 720P or 1080P (default: 1080P)
    • : Aspect ratio - 16:9, 9:16, 1:1, 4:3, 3:4 (default: 16:9)
    • : Video duration in seconds, range [3, 15] (default: 5)
    • : Enable/disable watermark (default: true)
    • : Random seed for reproducibility

14. HappyHorse Image to Video - First Frame

Generate videos from images using HappyHorse model.

  • Parameters:
    • : Model version (default: happyhorse-1.0-i2v)
    • : Text description for video generation (optional)
    • : First frame image file (optional)
    • : Video resolution - 720P or 1080P (default: 1080P)
    • : Video duration in seconds, range [3, 15] (default: 5)
    • : Enable/disable watermark (default: true)
    • : Random seed for reproducibility

15. HappyHorse Reference Video

Generate videos from multiple reference images using HappyHorse model.

  • Parameters:
    • : Model version (default: happyhorse-1.0-r2v)
    • : Text description for video generation (required)
    • : Reference image files (1-9 images, required)
    • : Video resolution - 720P or 1080P (default: 1080P)
    • : Aspect ratio - 16:9, 9:16, 3:4, 4:3, 1:1 (default: 16:9)
    • : Video duration in seconds, range [3, 15] (default: 5)
    • : Enable/disable watermark (default: true)
    • : Random seed for reproducibility

16. HappyHorse Video Edit

Edit videos using HappyHorse model with optional reference images.

  • Parameters:
    • : Model version (default: happyhorse-1.0-video-edit)
    • : Editing instruction for the video (required)
    • : Public URL of the input video (required)
    • : Optional reference image files (1-5 images)
    • : Video resolution - 720P or 1080P (default: 1080P)
    • : Enable/disable watermark (default: true)
    • : Audio handling mode - auto or origin (default: auto)
    • : Random seed for reproducibility

17. Video Continue

Continue videos from first clip using wan2.7-i2v model.

  • Parameters:
    • : Model version (default: wan3.0-video)
    • : Describe how the video should continue (optional, max 5000 chars)
    • : Describe what should not appear (optional, max 500 chars)
    • : First clip file (mp4/mov, 2-10s recommended)
    • : First clip URL (http/https/oss)
    • : Last frame image file (optional)
    • : Last frame image URL (optional)
    • : Video resolution (default: 1080P)
    • : Video duration in seconds, range [2, 15] (default: 5)
    • : Enable/disable watermark (default: true)
    • : Random seed for reproducibility

Notes

  • Video generation is asynchronous; use Video Query to check status and retrieve results
  • Image translation is asynchronous; use Image Translation Query to check status
  • Duration limits vary by model (see model documentation in tool descriptions)
  • Reference images should be under 10MB in size
  • Watermark is enabled by default for content authenticity
  • Prompt intelligent rewriting is enabled by default for better results

Developer Information

  • Author:
  • Email: [email protected]
  • License: Apache License 2.0
  • Source Code:
  • Support: Through Dify platform and GitHub Issues

License Notice

This project is licensed under Apache License 2.0. See LICENSE file for full license text.


Ready to create stunning images and videos with AI?

CATEGORY
Tool
VERSION
0.0.5
sawyer-shi·Updated 2 hours ago
REPOSITORY
https://github.com/sawyer-shi/dify-plugins-tongyi_aigc
REQUIREMENTS
LLM invocation
Tool invocation
App invocation
Endpoint registration
Maximum memory
256MB
Maximum storage
1MB
Access domain

Some outbound calls build their address at runtime, so the list may be incomplete.

Declared

Wildcard host

Declared

Wildcard host

Declared

Wildcard host

Security
Security Rating

Last checked 10/29/2026 06:12 AM · version 0.0.5

Give a rate
SHARE WITH