Generates images and videos using MuleRouter or MuleRun multimodal APIs. Text-to-Image, Image-to-Image, Text-to-Video, Image-to-Video, video editing (VACE, k...
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install mulerouter或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install mulerouter⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/mulerouter/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: mulerouter description: Generates images and videos using MuleRouter or MuleRun multimodal APIs. Text-to-Image, Image-to-Image, Text-to-Video, Image-to-Video, video editing (VACE, keyframe interpolation). Use when the user wants to generate, edit, or transform images and videos using AI models like Wan2.6, Veo3, Nano Banana Pro, Sora2, Midjourney. compatibility: Requires Python 3.10+, uv, MULEROUTER_API_KEY env var, and one of MULEROUTER_BASE_URL or MULEROUTER_SITE env var. Needs network access to api.mulerouter.ai or api.mulerun.com. The API key is sent in Authorization headers to the configured endpoint. homepage: https://github.com/mulerouter/mulerouter-skills allowed-tools: Bash(uv run ) Bash(uv sync ) Read metadata: clawdbot: requires: env: ["MULEROUTER_API_KEY"] env_one_of: ["MULEROUTER_BASE_URL", "MULEROUTER_SITE"] bins: ["uv", "python3"] primaryEnv: "MULEROUTER_API_KEY" install: "uv sync" files: ["scripts/", "models/", "core/*", "pyproject.toml"] ---
Generate images and videos using MuleRouter or MuleRun multimodal APIs.
This skill requires the following environment variables to be set before use:
| Variable | Required | Description | |----------|----------|-------------| | MULEROUTER_API_KEY | Yes | API key for authentication (get one here) | | MULEROUTER_BASE_URL | Yes* | Custom API base URL (e.g., https://api.mulerouter.ai). Takes priority over SITE. | | MULEROUTER_SITE | Yes* | API site: mulerouter or mulerun. Used if BASE_URL is not set. |
*At least one of MULEROUTER_BASE_URL or MULEROUTER_SITE must be set.
The API key is included in Authorization: Bearer headers when making network calls to the configured API endpoint.
If any of these variables are missing, the scripts will fail with a configuration error. Check the Configuration section below to set them up.
Before running any commands, verify the environment is configured:
Run the built-in config check script:
uv run python -c "from core.config import load_config; load_config(); print('Configuration OK')"
If this prints "Configuration OK", skip to Step 3. If it raises a ValueError, proceed to Step 2.
If the variables above are not set, ask the user to provide their API key and preferred endpoint.
Create a .env file in the skill's working directory:
# Option 1: Use custom base URL (takes priority over SITE)
MULEROUTER_BASE_URL=https://api.mulerouter.ai
MULEROUTER_API_KEY=your-api-key
# Option 2: Use site (if BASE_URL not set)
# MULEROUTER_SITE=mulerun
# MULEROUTER_API_KEY=your-api-key
Note: MULEROUTER_BASE_URL takes priority over MULEROUTER_SITE. If both are set, MULEROUTER_BASE_URL is used.
Note: The skill only loads variables prefixed with MULEROUTER_ from the .env file. Other variables in the file are ignored.
Important: Do NOT use export shell commands to set credentials. Use a .env file or ensure the variables are already present in your shell environment before invoking the skill.
uv to run scriptsThe skill uses uv for dependency management and execution. Make sure uv is installed and available in your PATH.
Run uv sync to install dependencies.
uv run python scripts/list_models.py
uv run python models/alibaba/wan2.6-t2v/generation.py --list-params
Text-to-Video:
uv run python models/alibaba/wan2.6-t2v/generation.py --prompt "A cat walking through a garden"
Text-to-Image:
uv run python models/alibaba/wan2.6-t2i/generation.py --prompt "A serene mountain lake"
Image-to-Video:
uv run python models/alibaba/wan2.6-i2v/generation.py --prompt "Gentle zoom in" --image "https://example.com/photo.jpg" #remote image url
uv run python models/alibaba/wan2.6-i2v/generation.py --prompt "Gentle zoom in" --image "/path/to/local/image.png" #local image path
For image parameters (--image, --images, etc.), prefer local file paths over base64.
# Preferred: local file path (auto-converted to base64)
--image /tmp/photo.png
--images ["/tmp/photo.png"]
Local file paths are validated before reading: only files with recognized image extensions (.png, .jpg, .jpeg, .gif, .bmp, .webp, .tiff, .tif, .svg, .ico, .heic, .heif, .avif) are accepted. Paths pointing to sensitive system directories or non-image files are rejected. Valid image files are converted to base64 and sent to the API, avoiding command-line length limits that occur with raw base64 strings.
MULEROUTER_API_KEY and either MULEROUTER_BASE_URL or MULEROUTER_SITE are setuv syncuv run python scripts/list_models.py to discover available modelsuv run python models//.py --list-params to see parametersWhen listing models, each model's tags (e.g., [SOTA]) are displayed by default next to its name. Tags help identify model characteristics at a glance — for example, SOTA indicates a state-of-the-art model.
You can also filter models by tag using --tag:
uv run python scripts/list_models.py --tag SOTA
If you are unsure which model to use, present the available options to the user and let them choose. Use the AskUserQuestion tool (or equivalent interactive prompt) to ask the user which model they prefer. For example, if the user asks to "generate an image" without specifying a model, list the relevant image generation models with their tags and descriptions, and ask the user to pick one.
安装 MuleRouter 后,可以对 AI 说这些话来触发它
Help me get started with MuleRouter
Explains what MuleRouter does, walks through the setup, and runs a quick demo based on your current project
Use MuleRouter to generates images and videos using MuleRouter or MuleRun multimodal ...
Invokes MuleRouter with the right parameters and returns the result directly in the conversation
What can I do with MuleRouter in my design & creative workflow?
Lists the top use cases for MuleRouter, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/mulerouter/ 目录(个人级,所有项目可用),或 .claude/skills/mulerouter/(项目级)。重启 AI 客户端后,用 /mulerouter 主动调用,或让 AI 根据上下文自动发现并使用。
MuleRouter 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
MuleRouter 可免费安装使用。请查阅仓库了解许可证信息。
Generates images and videos using MuleRouter or MuleRun multimodal APIs. Text-to-Image, Image-to-Image, Text-to-Video, Image-to-Video, video editing (VACE, k...
MuleRouter 属于「Design & Creative」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my design & creative tasks using MuleRouter
Identifies repetitive steps in your workflow and sets up MuleRouter to handle them automatically