{
  "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": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/wan",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=wan",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "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."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "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."
        },
        {
          "label": "Upgrade existing",
          "body": "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."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "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."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/wan",
    "agentPageUrl": "https://openagent3.xyz/skills/wan/agent",
    "manifestUrl": "https://openagent3.xyz/skills/wan/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/wan/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "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."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "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."
      },
      {
        "label": "Upgrade existing",
        "body": "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."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Wan Image Generation",
        "body": "通过阿里云 DashScope API 调用 wan2.6-t2i 模型生成图片，下载到本地桌面，并上传到 catbox.moe 图床获取公网链接。"
      },
      {
        "title": "环境变量",
        "body": "DASHSCOPE_API_KEY=\"需要此 KEY 时询问用户\""
      },
      {
        "title": "Step 1: 提交图片生成任务",
        "body": "调用 DashScope 同步接口生成图片：\n\ncurl --location 'https://dashscope-intl.aliyuncs.com/api/v1/services/aigc/multimodal-generation/generation' \\\n  --header 'Content-Type: application/json' \\\n  --header 'Authorization: Bearer $DASHSCOPE_API_KEY' \\\n  --data '{\n    \"model\": \"wan2.6-t2i\",\n    \"input\": {\n      \"messages\": [\n        {\n          \"role\": \"user\",\n          \"content\": [\n            {\n              \"text\": \"<用户提示词>\"\n            }\n          ]\n        }\n      ]\n    },\n    \"parameters\": {\n      \"prompt_extend\": true,\n      \"watermark\": false,\n      \"n\": 1,\n      \"negative_prompt\": \"\",\n      \"size\": \"1280*1280\"\n    }\n  }'\n\n注意事项：\n\nsize 格式使用 * 分隔（如 1280*1280），不是 x\n可选尺寸：1024*1024、1280*1280、720*1280、1280*720 等\n图片 URL 有过期时间，生成后必须立即下载"
      },
      {
        "title": "Step 2: 下载图片到桌面",
        "body": "从响应中提取图片 URL，下载到桌面目录：\n\ncurl -o ~/Desktop/generated_image.png \"<图片URL>\"\n\n下载路径：/home/{用户名}/Desktop/（Linux）或 ~/Desktop/（macOS）\n下载完成后输出文件的绝对路径"
      },
      {
        "title": "Step 3: 上传到 catbox.moe 图床",
        "body": "将图片上传到 catbox.moe 获取公网永久链接：\n\ncurl -F \"reqtype=fileupload\" -F \"fileToUpload=@~/Desktop/generated_image.png\" https://catbox.moe/user/api.php\n\n上传成功后返回公网地址，格式如：https://files.catbox.moe/xxxx.png"
      },
      {
        "title": "完整流程示例",
        "body": "export DASHSCOPE_API_KEY=\"sk-ec70253d8fb14e53a679726ad2e1563c\"\n\n# 1. 生成图片\nRESPONSE=$(curl -s --location 'https://dashscope-intl.aliyuncs.com/api/v1/services/aigc/multimodal-generation/generation' \\\n  --header 'Content-Type: application/json' \\\n  --header \"Authorization: Bearer $DASHSCOPE_API_KEY\" \\\n  --data '{\n    \"model\": \"wan2.6-t2i\",\n    \"input\": {\n      \"messages\": [{\"role\":\"user\",\"content\":[{\"text\":\"一只可爱的猫咪\"}]}]\n    },\n    \"parameters\": {\n      \"prompt_extend\": true,\n      \"watermark\": false,\n      \"n\": 1,\n      \"negative_prompt\": \"\",\n      \"size\": \"1280*1280\"\n    }\n  }')\n\n# 2. 提取图片 URL 并下载\nIMAGE_URL=$(echo \"$RESPONSE\" | python3 -c \"import sys,json; print(json.load(sys.stdin)['output']['choices'][0]['message']['content'][0]['image'])\")\ncurl -o ~/Desktop/generated_image.png \"$IMAGE_URL\"\necho \"图片已下载到: $(cd ~/Desktop && pwd)/generated_image.png\"\n\n# 3. 上传到 catbox.moe\nPUBLIC_URL=$(curl -s -F \"reqtype=fileupload\" -F \"fileToUpload=@$HOME/Desktop/generated_image.png\" https://catbox.moe/user/api.php)\necho \"公网地址: $PUBLIC_URL\""
      },
      {
        "title": "错误处理",
        "body": "若 API 返回错误码，检查 code 和 message 字段\n若图片 URL 过期（下载返回 403），需重新提交生成任务\n若 catbox.moe 上传失败，重试即可"
      }
    ],
    "body": "Wan Image Generation\n\n通过阿里云 DashScope API 调用 wan2.6-t2i 模型生成图片，下载到本地桌面，并上传到 catbox.moe 图床获取公网链接。\n\n环境变量\nDASHSCOPE_API_KEY=\"需要此 KEY 时询问用户\"\n\n工作流程\nStep 1: 提交图片生成任务\n\n调用 DashScope 同步接口生成图片：\n\ncurl --location 'https://dashscope-intl.aliyuncs.com/api/v1/services/aigc/multimodal-generation/generation' \\\n  --header 'Content-Type: application/json' \\\n  --header 'Authorization: Bearer $DASHSCOPE_API_KEY' \\\n  --data '{\n    \"model\": \"wan2.6-t2i\",\n    \"input\": {\n      \"messages\": [\n        {\n          \"role\": \"user\",\n          \"content\": [\n            {\n              \"text\": \"<用户提示词>\"\n            }\n          ]\n        }\n      ]\n    },\n    \"parameters\": {\n      \"prompt_extend\": true,\n      \"watermark\": false,\n      \"n\": 1,\n      \"negative_prompt\": \"\",\n      \"size\": \"1280*1280\"\n    }\n  }'\n\n\n注意事项：\n\nsize 格式使用 * 分隔（如 1280*1280），不是 x\n可选尺寸：1024*1024、1280*1280、720*1280、1280*720 等\n图片 URL 有过期时间，生成后必须立即下载\nStep 2: 下载图片到桌面\n\n从响应中提取图片 URL，下载到桌面目录：\n\ncurl -o ~/Desktop/generated_image.png \"<图片URL>\"\n\n下载路径：/home/{用户名}/Desktop/（Linux）或 ~/Desktop/（macOS）\n下载完成后输出文件的绝对路径\nStep 3: 上传到 catbox.moe 图床\n\n将图片上传到 catbox.moe 获取公网永久链接：\n\ncurl -F \"reqtype=fileupload\" -F \"fileToUpload=@~/Desktop/generated_image.png\" https://catbox.moe/user/api.php\n\n上传成功后返回公网地址，格式如：https://files.catbox.moe/xxxx.png\n完整流程示例\nexport DASHSCOPE_API_KEY=\"sk-ec70253d8fb14e53a679726ad2e1563c\"\n\n# 1. 生成图片\nRESPONSE=$(curl -s --location 'https://dashscope-intl.aliyuncs.com/api/v1/services/aigc/multimodal-generation/generation' \\\n  --header 'Content-Type: application/json' \\\n  --header \"Authorization: Bearer $DASHSCOPE_API_KEY\" \\\n  --data '{\n    \"model\": \"wan2.6-t2i\",\n    \"input\": {\n      \"messages\": [{\"role\":\"user\",\"content\":[{\"text\":\"一只可爱的猫咪\"}]}]\n    },\n    \"parameters\": {\n      \"prompt_extend\": true,\n      \"watermark\": false,\n      \"n\": 1,\n      \"negative_prompt\": \"\",\n      \"size\": \"1280*1280\"\n    }\n  }')\n\n# 2. 提取图片 URL 并下载\nIMAGE_URL=$(echo \"$RESPONSE\" | python3 -c \"import sys,json; print(json.load(sys.stdin)['output']['choices'][0]['message']['content'][0]['image'])\")\ncurl -o ~/Desktop/generated_image.png \"$IMAGE_URL\"\necho \"图片已下载到: $(cd ~/Desktop && pwd)/generated_image.png\"\n\n# 3. 上传到 catbox.moe\nPUBLIC_URL=$(curl -s -F \"reqtype=fileupload\" -F \"fileToUpload=@$HOME/Desktop/generated_image.png\" https://catbox.moe/user/api.php)\necho \"公网地址: $PUBLIC_URL\"\n\n错误处理\n若 API 返回错误码，检查 code 和 message 字段\n若图片 URL 过期（下载返回 403），需重新提交生成任务\n若 catbox.moe 上传失败，重试即可"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/xray918/wan",
    "publisherUrl": "https://clawhub.ai/xray918/wan",
    "owner": "xray918",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "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"
  }
}