{
  "schemaVersion": "1.0",
  "item": {
    "slug": "aisa-media-gen",
    "name": "AIsa Media Gen",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/AIsaPay/aisa-media-gen",
    "canonicalUrl": "https://clawhub.ai/AIsaPay/aisa-media-gen",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/aisa-media-gen",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=aisa-media-gen",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "scripts/media_gen_client.py"
    ],
    "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-23T16:43:11.935Z",
      "expiresAt": "2026-04-30T16:43:11.935Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
        "contentDisposition": "attachment; filename=\"4claw-imageboard-1.0.1.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/aisa-media-gen"
    },
    "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/aisa-media-gen",
    "agentPageUrl": "https://openagent3.xyz/skills/aisa-media-gen/agent",
    "manifestUrl": "https://openagent3.xyz/skills/aisa-media-gen/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/aisa-media-gen/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": "OpenClaw Media Gen 🎬",
        "body": "用 AIsa API 一把钥匙生成图片与视频：\n\n图片：gemini-3-pro-image-preview（Gemini GenerateContent）\n视频：wan2.6-t2v（通义万相 / Qwen Wan 2.6，异步任务）\n\nAPI 文档索引见 AIsa API Reference（可从 https://aisa.mintlify.app/llms.txt 找到所有页面）。"
      },
      {
        "title": "图片生成（Gemini）",
        "body": "\"生成一张赛博朋克风格的城市夜景，霓虹灯，雨夜，电影感\""
      },
      {
        "title": "视频生成（Wan 2.6）",
        "body": "\"用一张参考图生成 5 秒镜头：镜头缓慢推进，风吹动头发，电影感，浅景深\""
      },
      {
        "title": "Quick Start",
        "body": "export AISA_API_KEY=\"your-key\""
      },
      {
        "title": "Endpoint",
        "body": "Base URL: https://api.aisa.one/v1\nPOST /models/{model}:generateContent\n\n文档：google-gemini-chat（GenerateContent）见 https://aisa.mintlify.app/api-reference/chat/chat-api/google-gemini-chat.md。"
      },
      {
        "title": "curl 示例（返回 inline_data 时为图片）",
        "body": "curl -X POST \"https://api.aisa.one/v1/models/gemini-3-pro-image-preview:generateContent\" \\\n  -H \"Authorization: Bearer $AISA_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"contents\":[\n      {\"role\":\"user\",\"parts\":[{\"text\":\"A cute red panda, ultra-detailed, cinematic lighting\"}]}\n    ]\n  }'\n\n说明：该接口的响应中可能出现 candidates[].parts[].inline_data（通常包含 base64 数据与 mime 类型）；客户端脚本会自动解析并保存文件。"
      },
      {
        "title": "Create task",
        "body": "Base URL: https://api.aisa.one/apis/v1\nPOST /services/aigc/video-generation/video-synthesis\nHeader：X-DashScope-Async: enable（必填，异步）\n\n文档：video-generation 见 https://aisa.mintlify.app/api-reference/aliyun/video/video-generation.md。\n\ncurl -X POST \"https://api.aisa.one/apis/v1/services/aigc/video-generation/video-synthesis\" \\\n  -H \"Authorization: Bearer $AISA_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"X-DashScope-Async: enable\" \\\n  -d '{\n    \"model\":\"wan2.6-t2v\",\n    \"input\":{\n      \"prompt\":\"cinematic close-up, slow push-in, shallow depth of field\",\n      \"img_url\":\"https://upload.wikimedia.org/wikipedia/commons/thumb/3/3a/Cat03.jpg/320px-Cat03.jpg\"\n    },\n    \"parameters\":{\n      \"resolution\":\"720P\",\n      \"duration\":5,\n      \"shot_type\":\"single\",\n      \"watermark\":false\n    }\n  }'"
      },
      {
        "title": "Poll task",
        "body": "GET /services/aigc/tasks?task_id=...\n\n文档：task 见 https://aisa.mintlify.app/api-reference/aliyun/video/task.md。\n\ncurl \"https://api.aisa.one/apis/v1/services/aigc/tasks?task_id=YOUR_TASK_ID\" \\\n  -H \"Authorization: Bearer $AISA_API_KEY\""
      },
      {
        "title": "Python Client",
        "body": "# 生成图片（保存到本地文件）\npython3 {baseDir}/scripts/media_gen_client.py image \\\n  --prompt \"A cute red panda, cinematic lighting\" \\\n  --out \"out.png\"\n\n# 创建视频任务（需要 img_url）\npython3 {baseDir}/scripts/media_gen_client.py video-create \\\n  --prompt \"cinematic close-up, slow push-in\" \\\n  --img-url \"https://upload.wikimedia.org/wikipedia/commons/thumb/3/3a/Cat03.jpg/320px-Cat03.jpg\" \\\n  --duration 5\n\n# 轮询任务状态\npython3 {baseDir}/scripts/media_gen_client.py video-status --task-id YOUR_TASK_ID\n\n# 等待直到成功（可选：成功后打印 video_url）\npython3 {baseDir}/scripts/media_gen_client.py video-wait --task-id YOUR_TASK_ID --poll 10 --timeout 600\n\n# 等待直到成功并自动下载 mp4\npython3 {baseDir}/scripts/media_gen_client.py video-wait --task-id YOUR_TASK_ID --download --out out.mp4"
      }
    ],
    "body": "OpenClaw Media Gen 🎬\n\n用 AIsa API 一把钥匙生成图片与视频：\n\n图片：gemini-3-pro-image-preview（Gemini GenerateContent）\n视频：wan2.6-t2v（通义万相 / Qwen Wan 2.6，异步任务）\n\nAPI 文档索引见 AIsa API Reference（可从 https://aisa.mintlify.app/llms.txt 找到所有页面）。\n\n🔥 你可以做什么\n图片生成（Gemini）\n\"生成一张赛博朋克风格的城市夜景，霓虹灯，雨夜，电影感\"\n\n视频生成（Wan 2.6）\n\"用一张参考图生成 5 秒镜头：镜头缓慢推进，风吹动头发，电影感，浅景深\"\n\nQuick Start\nexport AISA_API_KEY=\"your-key\"\n\n🖼️ Image Generation (Gemini)\nEndpoint\nBase URL: https://api.aisa.one/v1\nPOST /models/{model}:generateContent\n\n文档：google-gemini-chat（GenerateContent）见 https://aisa.mintlify.app/api-reference/chat/chat-api/google-gemini-chat.md。\n\ncurl 示例（返回 inline_data 时为图片）\ncurl -X POST \"https://api.aisa.one/v1/models/gemini-3-pro-image-preview:generateContent\" \\\n  -H \"Authorization: Bearer $AISA_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"contents\":[\n      {\"role\":\"user\",\"parts\":[{\"text\":\"A cute red panda, ultra-detailed, cinematic lighting\"}]}\n    ]\n  }'\n\n\n说明：该接口的响应中可能出现 candidates[].parts[].inline_data（通常包含 base64 数据与 mime 类型）；客户端脚本会自动解析并保存文件。\n\n🎞️ Video Generation (Qwen Wan 2.6 / Tongyi Wanxiang)\nCreate task\nBase URL: https://api.aisa.one/apis/v1\nPOST /services/aigc/video-generation/video-synthesis\nHeader：X-DashScope-Async: enable（必填，异步）\n\n文档：video-generation 见 https://aisa.mintlify.app/api-reference/aliyun/video/video-generation.md。\n\ncurl -X POST \"https://api.aisa.one/apis/v1/services/aigc/video-generation/video-synthesis\" \\\n  -H \"Authorization: Bearer $AISA_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"X-DashScope-Async: enable\" \\\n  -d '{\n    \"model\":\"wan2.6-t2v\",\n    \"input\":{\n      \"prompt\":\"cinematic close-up, slow push-in, shallow depth of field\",\n      \"img_url\":\"https://upload.wikimedia.org/wikipedia/commons/thumb/3/3a/Cat03.jpg/320px-Cat03.jpg\"\n    },\n    \"parameters\":{\n      \"resolution\":\"720P\",\n      \"duration\":5,\n      \"shot_type\":\"single\",\n      \"watermark\":false\n    }\n  }'\n\nPoll task\nGET /services/aigc/tasks?task_id=...\n\n文档：task 见 https://aisa.mintlify.app/api-reference/aliyun/video/task.md。\n\ncurl \"https://api.aisa.one/apis/v1/services/aigc/tasks?task_id=YOUR_TASK_ID\" \\\n  -H \"Authorization: Bearer $AISA_API_KEY\"\n\nPython Client\n# 生成图片（保存到本地文件）\npython3 {baseDir}/scripts/media_gen_client.py image \\\n  --prompt \"A cute red panda, cinematic lighting\" \\\n  --out \"out.png\"\n\n# 创建视频任务（需要 img_url）\npython3 {baseDir}/scripts/media_gen_client.py video-create \\\n  --prompt \"cinematic close-up, slow push-in\" \\\n  --img-url \"https://upload.wikimedia.org/wikipedia/commons/thumb/3/3a/Cat03.jpg/320px-Cat03.jpg\" \\\n  --duration 5\n\n# 轮询任务状态\npython3 {baseDir}/scripts/media_gen_client.py video-status --task-id YOUR_TASK_ID\n\n# 等待直到成功（可选：成功后打印 video_url）\npython3 {baseDir}/scripts/media_gen_client.py video-wait --task-id YOUR_TASK_ID --poll 10 --timeout 600\n\n# 等待直到成功并自动下载 mp4\npython3 {baseDir}/scripts/media_gen_client.py video-wait --task-id YOUR_TASK_ID --download --out out.mp4"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/AIsaPay/aisa-media-gen",
    "publisherUrl": "https://clawhub.ai/AIsaPay/aisa-media-gen",
    "owner": "AIsaPay",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/aisa-media-gen",
    "downloadUrl": "https://openagent3.xyz/downloads/aisa-media-gen",
    "agentUrl": "https://openagent3.xyz/skills/aisa-media-gen/agent",
    "manifestUrl": "https://openagent3.xyz/skills/aisa-media-gen/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/aisa-media-gen/agent.md"
  }
}