qwen-wanx-image

Generate or edit images using WanX (Alibaba's text-to-image model).

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "qwen-wanx-image" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-bcd62aa8034f84efd2dd76e539b4181aa1e2991cc1938de63a8ccd35c022005a. Verify the upstream source and version against https://skillhub.cn/skills/user_46180358/wanx-img before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Generate or edit images using WanX (Alibaba's text-to-image model).

0 Downloads

Introduction source: third_party · user_46180358 · 1.0.0 Reference

SkillPi interpretation

Tasks
Generate or edit images using WanX (Alibaba's text-to-image model)
Software, accounts and paid services
Python 3.12+ LLM API credentials configured in demo scripts DashScope Python SDK 1.25.8+
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: wanx-img
description: Generate or edit images using WanX (Alibaba's text-to-image model)
allowed-tools: Read, Bash

Overview

This skill provides commands for generating and editing images using the WanX model from Alibaba.

Workflow

  1. decide user's intent: whether to generate a new image, or edit given images
  2. decide which version of visual LLM will be used, use the highest version by default, if it's not availiable or rejected by provider, then downgrade to other version
  3. if user provides images urls/paths, you don't need to read the files but only pass them to scripts
  4. if user specify size of image in pixel number, pass it to scripts, or if user specify aspect ratio, convert it to image size and then pass to scripts
  5. run a proper script to generate or edit images with user input prompt, synchronously by default
  6. output original prompts, extended actual prompts, size of image, and full urls of generated images (don't miss any parameters from the url for example Signature etc. )

Conversion between ratio and image size

The total number of pixels must be between [12801280, 14401440] and the aspect ratio must be between [1:4, 4:1]. For example, 7682700 meets the requirements. The default value is 12801280.

aspect ratio image size
1:1 1280*1280
3:4 1104*1472
4:3 1472*1104
9:16 960*1696
16:9 1696*960

Available Scripts

  • wanx2.6-text-to-image-v2-demo.py - Generate images from text prompts, using WanX visual model version 2.6
  • wanx2.6-image-edit-demo.py - Edit images with text prompts, optionally with reference/mask images, using WanX visual model version 2.6
  • wanx2.5-text-to-image-v2-demo.py - Generate images from text prompts, using WanX visual model version 2.5
  • wanx2.5-image-edit-demo.py - Edit images with text prompts, optionally with reference/mask images, using WanX visual model version 2.5
  • wanx2.2-text-to-image-v2-demo.py - Generate images from text prompts, using WanX visual model version 2.2

Setting Up

首次使用时,进入目录并安装依赖:

cd ~/.claude/skills/wanx-img
python3 -m venv ~/.pyenv/versions/py312-ai-rag
source ~/.pyenv/versions/py312-ai-rag/bin/activate
pip install dashscope python-dotenv argparse
cp .env.example .env

后续执行python脚本时,先执行source ~/.pyenv/versions/py312-ai-rag/bin/activate,然后再执行脚本。如果python或python3命令找不到合适的packages,则应用~/.pyenv/versions/py312-ai-rag/bin/python来替代作为执行器。

Usage Examples

  • Use custom prompt to generate image

    ~/.pyenv/versions/py312-ai-rag/bin/python "./scripts/wanx2.6-text-to-image-v2-demo.py" --prompt "一只可爱的猫咪在花园里玩耍. ar 3:4" --size "960*1280"
  • Use synchronous call with custom prompt and negative prompt to generate image

    ~/.pyenv/versions/py312-ai-rag/bin/python "./scripts/wanx2.6-text-to-image-v2-demo.py" -p "美丽的日落风景" -n "人物" --sync
  • Use custom prompt and referencing images to edit image

    ~/.pyenv/versions/py312-ai-rag/bin/python "./scripts/wanx2.6-image-edit-demo.py" --prompt "参考图1的风格和图2的背景,生成番茄炒蛋" --images http://1.img http://2.img -m http://3.img -b http://4.img
  • Use synchronous call with custom prompt to edit iamge

    ~/.pyenv/versions/py312-ai-rag/bin/python "./scripts/wanx2.6-image-edit-demo.py" -p "参考图1的风格和图2的背景,生成番茄炒蛋" --sync

Requirements

  • Python 3.12+
  • LLM API credentials configured in demo scripts
  • DashScope Python SDK 1.25.8+

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value80/100

Highlights

  • 提供基于阿里云 WanX 模型的文生图与图生图能力,满足内容创作与设计辅助需求
  • 支持多版本模型降级机制,提升服务可用性
Trigger Precision95/100

Highlights

  • 触发词精准描述核心功能(Generate or edit images using WanX),边界清晰
Structure and Standards90/100

Highlights

  • 文档结构完整,包含完整的工作流、参数说明、示例和依赖说明
  • 提供清晰的宽高比与像素尺寸转换表格,便于用户理解
Execution Reliability75/100

Areas to improve

  • 缺少具体错误处理说明 Reported severity: Minor

    文档未说明 API 调用失败、网络异常等常见错误的处理方式

    Recommendation: 建议补充常见错误码处理逻辑和重试机制说明

  • 依赖外部 .env 配置 Reported severity: Minor

    执行依赖外部 .env 文件配置 API 凭证,但未说明配置项具体含义及获取方式

    Recommendation: 建议说明 .env 文件中各配置项的含义及如何获取 DashScope API 凭证

Highlights

  • 工具来源明确(阿里云 WanX 模型),参数说明清晰
  • 提供完整的环境配置指引和脚本执行示例
Evidence Verifiability (mean of the first four)85/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

  • Install or fetch external dependencies

    Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.

    Mentioned in main document · lines 48
  • Accounts, secrets or authorization

    Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.

    Mentioned in main document · lines 80
Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • 1.img
  • 2.img
  • 3.img
  • 4.img

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Python 3.12+ LLM API credentials configured in demo scripts DashScope Python SDK 1.25.8+

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.