← 返回 Skills 市场
216
总下载
1
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install modelscope-img
功能描述
魔搭(ModelScope)AI 图片生成。支持多种模型、LoRA 微调。触发词:生成图片、AI绘画、文生图、image generation、generate image。当用户要求生成图片、画图、AI 作画,或提到魔搭、ModelScope时使用。
安全使用建议
This skill's code matches its description: it calls ModelScope's inference API, polls for task completion, downloads the produced image, and can save an API key to ~/.modelscope/api_key. Before installing: (1) be aware you must provide a MODELSCOPE_API_KEY even though the registry metadata doesn't list it—check that the key has limited scope and rotate it if needed; (2) note the scripts will write that key to your home directory if you use --save-key—verify file permissions and consider providing the key via an environment variable instead; (3) the tool makes outbound HTTPS calls to api-inference.modelscope.cn and downloads remote image URLs—run in a sandbox or isolated environment if you have strong security constraints; (4) only install the declared pip dependencies from PyPI (requests, pillow) and inspect the included scripts yourself—if you want stronger assurance, run the scripts locally with a throwaway API key first. The primary issue is the metadata omission of the required env var; functionally the skill looks coherent but exercise the usual caution with API keys and outbound network behavior.
功能分析
Type: OpenClaw Skill
Name: modelscope-img
Version: 1.0.2
The skill bundle provides a legitimate interface for generating images via the ModelScope API. The Python scripts (generate_qwen.py and generate_tongyi.py) handle API authentication through standard methods such as environment variables and a local configuration file (~/.modelscope/api_key), and they interact exclusively with the official ModelScope endpoint (api-inference.modelscope.cn). No malicious behavior, data exfiltration, or suspicious execution patterns were detected.
能力标签
能力评估
Purpose & Capability
The skill's name/description and code match: it calls ModelScope's inference API to generate images and supports LoRA. However the skill metadata declares no required environment variables or primary credential while both SKILL.md and the scripts clearly require a MODELSCOPE_API_KEY (CLI arg, env var, or ~/.modelscope/api_key). That omission in metadata is a meaningful mismatch.
Instruction Scope
SKILL.md and the included scripts provide focused runtime instructions: send generation requests to ModelScope endpoints, poll task status, download the returned image URL, and save it. The instructions tell the user to set an API key via env/CLI/config file and to pip-install requests and pillow — all within the expected scope. The scripts do write a config file under the user's home (~/.modelscope/api_key) and download remote images, which are expected for this purpose but should be noted.
Install Mechanism
There is no install spec (instruction-only skill) and included Python scripts only depend on common pip packages (requests, pillow). No binary downloads, third‑party installers, or obscure URLs are used.
Credentials
The skill requires a single API credential (MODELSCOPE_API_KEY) in practice, which is proportionate for a cloud image-generation integration — but that credential is not declared in the registry metadata (required env vars / primaryEnv are empty). The scripts also write the API key to ~/.modelscope/api_key if the user requests saving, so users should ensure the key has appropriate scope and that the file permissions are acceptable.
Persistence & Privilege
The skill does not request elevated privileges or 'always' execution. It may write a small config file (~/.modelscope/api_key) and will perform outbound network calls to api-inference.modelscope.cn and to returned image URLs. This is consistent with its purpose but means it will persist a credential if the user chooses the save-key option.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install modelscope-img - 安装完成后,直接呼叫该 Skill 的名称或使用
/modelscope-img触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.2
- Initial release of modelscope-img skill.
- Added metadata file (_meta.json) for skill packaging and distribution.
v1.0.1
- No changes detected in this version.
- All features and documentation remain the same as the previous release.
v1.0.0
Initial release of ModelScope image generation skill.
- Generates AI images using the ModelScope API and multiple supported models.
- Supports LoRA fine-tuning (single or multiple LoRA IDs/weights).
- Allows prompt-based image generation with customizable output file paths.
- API Key can be configured via command line, environment variable, or config file.
- Simple CLI provided for quick start and flexible parameter usage.
- Requires Python dependencies: requests, pillow.
元数据
常见问题
魔搭图片生成 是什么?
魔搭(ModelScope)AI 图片生成。支持多种模型、LoRA 微调。触发词:生成图片、AI绘画、文生图、image generation、generate image。当用户要求生成图片、画图、AI 作画,或提到魔搭、ModelScope时使用。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 216 次。
如何安装 魔搭图片生成?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install modelscope-img」即可一键安装,无需额外配置。
魔搭图片生成 是免费的吗?
是的,魔搭图片生成 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
魔搭图片生成 支持哪些平台?
魔搭图片生成 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 魔搭图片生成?
由 focus883(@focus883)开发并维护,当前版本 v1.0.2。
推荐 Skills