# Send wan-image-gen to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "wan",
    "name": "wan-image-gen",
    "source": "tencent",
    "type": "skill",
    "category": "内容创作",
    "sourceUrl": "https://clawhub.ai/xray918/wan",
    "canonicalUrl": "https://clawhub.ai/xray918/wan",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/wan",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=wan",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "wan",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-01T05:34:32.202Z",
      "expiresAt": "2026-05-08T05:34:32.202Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=wan",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=wan",
        "contentDisposition": "attachment; filename=\"wan-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "wan"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/wan"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/wan",
    "downloadUrl": "https://openagent3.xyz/downloads/wan",
    "agentUrl": "https://openagent3.xyz/skills/wan/agent",
    "manifestUrl": "https://openagent3.xyz/skills/wan/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/wan/agent.md"
  }
}
```
## Documentation

### Wan Image Generation

通过阿里云 DashScope API 调用 wan2.6-t2i 模型生成图片，下载到本地桌面，并上传到 catbox.moe 图床获取公网链接。

### 环境变量

DASHSCOPE_API_KEY="需要此 KEY 时询问用户"

### Step 1: 提交图片生成任务

调用 DashScope 同步接口生成图片：

curl --location 'https://dashscope-intl.aliyuncs.com/api/v1/services/aigc/multimodal-generation/generation' \\
  --header 'Content-Type: application/json' \\
  --header 'Authorization: Bearer $DASHSCOPE_API_KEY' \\
  --data '{
    "model": "wan2.6-t2i",
    "input": {
      "messages": [
        {
          "role": "user",
          "content": [
            {
              "text": "<用户提示词>"
            }
          ]
        }
      ]
    },
    "parameters": {
      "prompt_extend": true,
      "watermark": false,
      "n": 1,
      "negative_prompt": "",
      "size": "1280*1280"
    }
  }'

注意事项：

size 格式使用 * 分隔（如 1280*1280），不是 x
可选尺寸：1024*1024、1280*1280、720*1280、1280*720 等
图片 URL 有过期时间，生成后必须立即下载

### Step 2: 下载图片到桌面

从响应中提取图片 URL，下载到桌面目录：

curl -o ~/Desktop/generated_image.png "<图片URL>"

下载路径：/home/{用户名}/Desktop/（Linux）或 ~/Desktop/（macOS）
下载完成后输出文件的绝对路径

### Step 3: 上传到 catbox.moe 图床

将图片上传到 catbox.moe 获取公网永久链接：

curl -F "reqtype=fileupload" -F "fileToUpload=@~/Desktop/generated_image.png" https://catbox.moe/user/api.php

上传成功后返回公网地址，格式如：https://files.catbox.moe/xxxx.png

### 完整流程示例

export DASHSCOPE_API_KEY="sk-ec70253d8fb14e53a679726ad2e1563c"

# 1. 生成图片
RESPONSE=$(curl -s --location 'https://dashscope-intl.aliyuncs.com/api/v1/services/aigc/multimodal-generation/generation' \\
  --header 'Content-Type: application/json' \\
  --header "Authorization: Bearer $DASHSCOPE_API_KEY" \\
  --data '{
    "model": "wan2.6-t2i",
    "input": {
      "messages": [{"role":"user","content":[{"text":"一只可爱的猫咪"}]}]
    },
    "parameters": {
      "prompt_extend": true,
      "watermark": false,
      "n": 1,
      "negative_prompt": "",
      "size": "1280*1280"
    }
  }')

# 2. 提取图片 URL 并下载
IMAGE_URL=$(echo "$RESPONSE" | python3 -c "import sys,json; print(json.load(sys.stdin)['output']['choices'][0]['message']['content'][0]['image'])")
curl -o ~/Desktop/generated_image.png "$IMAGE_URL"
echo "图片已下载到: $(cd ~/Desktop && pwd)/generated_image.png"

# 3. 上传到 catbox.moe
PUBLIC_URL=$(curl -s -F "reqtype=fileupload" -F "fileToUpload=@$HOME/Desktop/generated_image.png" https://catbox.moe/user/api.php)
echo "公网地址: $PUBLIC_URL"

### 错误处理

若 API 返回错误码，检查 code 和 message 字段
若图片 URL 过期（下载返回 403），需重新提交生成任务
若 catbox.moe 上传失败，重试即可
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: xray918
- Version: 1.0.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-01T05:34:32.202Z
- Expires at: 2026-05-08T05:34:32.202Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/wan)
- [Send to Agent page](https://openagent3.xyz/skills/wan/agent)
- [JSON manifest](https://openagent3.xyz/skills/wan/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/wan/agent.md)
- [Download page](https://openagent3.xyz/downloads/wan)