agentCLAWHUBUnverified

魔搭图片生成

魔搭(ModelScope)AI 图片生成。支持多种模型、LoRA 微调。触发词:生成图片、AI绘画、文生图、image generation、generate image。当用户要求生成图片、画图、AI 作画,或提到魔搭、ModelScope时使用。 Skill: 魔搭图片生成 Owner: focus883 Summary: 魔搭(ModelScope)AI 图片生成。支持多种模型、LoRA 微调。触发词:生成图片、AI绘画、文生图、image generation、generate image。当用户要求生成图片、画图、AI 作画,或提到魔搭、ModelScope时使用。 Tags: latest:1.0.2 Version history: v1.0.2 | 2026-04-27T14:37:24.878Z | user - Initial release of modelscope-img skill. - Added metadata file (_meta.json) for skill packaging and distribution. v1.0.1 | 2026-04-09T10:05:29.718Z | user - No changes detecte

OpenClaw

Rank

62

Safety

84

Downloads

1.1k

Updated

Oct 11, 2026

Version

1.0.2

Source

CLAWHUB

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Public facts

Every fact links back to the source it came from.

Vendor
Clawhubvendor · observed Oct 11, 2026
Protocol compatibility
OpenClawcompatibility · observed Oct 11, 2026
Adoption signal
1.1K downloadsadoption · observed Oct 11, 2026
Latest release
1.0.2release · observed Apr 27, 2026
Handshake status
UNKNOWNsecurity

Install and run

Setup complexity: low.

clawhub skill install s1766dab3ndes180k78f3gggnh84em5x:modelscope-img
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-focus883-modelscope-img/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

8,974 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

---
name: modelscope-image
description: 魔搭(ModelScope)AI 图片生成。支持多种模型、LoRA 微调。触发词:生成图片、AI绘画、文生图、image generation、generate image。当用户要求生成图片、画图、AI 作画,或提到魔搭、ModelScope时使用。
---

# ModelScope 图片生成

调用魔搭(ModelScope) API 生成 AI 图片。支持切换模型,优化AI识别模型名称不准确。

## 快速开始

```bash
# 设置 API Key(首次使用)
set MODELSCOPE_API_KEY=你的密钥

# 或保存到配置文件
py scripts/generate_qwen.py --save-key 你的密钥
py scripts/generate_tongyi.py --save-key 你的密钥

# 使用z-image生成图片
py scripts/generate_tongyi.py -p "A golden cat"
py scripts/generate_tongyi.py -p "一只在月光下奔跑的银狼" -o wolf.jpg
```
# 使用qwen-image生成图片
py scripts/generate_qwen.py -p "A golden cat"
py scripts/generate_qwen.py -p "一只在月光下奔跑的银狼" -o wolf.jpg
```

## 参数说明

| 参数 | 说明 | 默认值 |
|------|------|--------|
| `-p, --prompt` | 图片描述(必需) | - |
| `-m, --model` | 模型 ID | Tongyi-MAI/Z-Image |
| `-o, --output` | 输出文件路径 | result_image.jpg |
| `-l, --lora` | 单个 LoRA repo-id | - |
| `--lora-weight` | 单个 LoRA 权重 | 1.0 |
| `--lora-json` | 多 LoRA JSON 配置 | - |
| `--api-key` | API Key | 从环境变量/配置文件读取 |

## LoRA 支持

**使用qwen-image生成图片时,单个 LoRA:**
```bash
py scripts/generate_qwen.py -p "动漫少女" -l your-lora-id --lora-weight 0.8
```
**使用z-image生成图片时,单个 LoRA:**
```bash
py scripts/generate_tongyi.py -p "动漫少女" -l your-lora-id --lora-weight 0.8
```

**多个 LoRA(权重之和需为 1.0):**
```bash
py scripts/generate.py -p "风景画" --lora-json "{\"lora-1\": 0.6, \"lora-2\": 0.4}"
```

## API Key 配置

三种方式(优先级从高到低):

1. 命令行参数: `--api-key YOUR_KEY`
2. 环境变量: `set MODELSCOPE_API_KEY=YOUR_KEY`
3. 配置文件: `~/.modelscope/api_key`

获取 API Key: https://modelscope.cn/my/myaccesstoken

## 依赖

```bash
pip install requests pillow
```

## 支持2种常用模型,直接使用

- `Qwen/Qwen-Image-2512` - 快速生成
- `Tongyi-MAI/Z-Image` - 快速生成(默认)
- 更多模型见 ModelScope 平台

_meta.json

{
  "ownerId": "kn7f2ea7z7qdent17pwpb99vbd84fqxc",
  "slug": "modelscope-img",
  "version": "1.0.2",
  "publishedAt": 1777300644878
}

skill-card.md

## Description:

Generates AI images from text prompts through ModelScope, with supported model selection and optional LoRA settings.

This skill is ready for commercial/non-commercial use.

## Publisher:

[focus883](https://clawhub.ai/user/focus883)

### License/Terms of Use:

MIT-0

## Use Case:

Agents assisting developers and creators use this skill to generate image files from text prompts through ModelScope models, including Qwen Image and Tongyi Z-Image, with optional LoRA configuration.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: API keys may be persisted in a local plaintext configuration file.

Mitigation: Prefer MODELSCOPE_API_KEY from a protected environment variable or a key manager, and avoid --api-key or --save-key on shared systems.

Risk: Prompts, model settings, and the ModelScope token are sent to an external ModelScope API.

Mitigation: Use only when external processing is acceptable, and avoid prompts containing private, proprietary, or regulated information.

Risk: The security verdict recommends review before installation.

Mitigation: Run the skill in a dedicated virtual environment and review the scripts before use.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/focus883/skills/modelscope-img)
- [ModelScope access token page](https://modelscope.cn/my/myaccesstoken)
- [ModelScope inference API endpoint](https://api-inference.modelscope.cn/)

## Skill Output:

**Output Type(s):** [text, markdown, shell commands, configuration, files, guidance]

**Output Format:** [Markdown guidance with shell commands; generated images are saved as local image files.]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Default output path is result_image.jpg unless the user provides another path.]

## Skill Version(s):

1.0.2 (source: server release metadata; artifact _meta.json lists 1.0.1)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.
Github ReposUpdated 2d agoRank 70

AionUi

Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!

MCPOPENCLAW
Github ReposUpdated 6mo agoRank 70

activepieces

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

OPENCLAW
Github ReposUpdated 6mo agoRank 70

cherry-studio

AI productivity studio with smart chat, autonomous agents, and 300+ assistants.

MCPOPENCLAW
Github ReposUpdated 7mo agoRank 70

CopilotKit

The Frontend for Agents & Generative UI. React + Angular

OPENCLAW

Machine-readable data

The same record, as JSON, for agents and crawlers.

{
  "facts": [
    {
      "factKey": "vendor",
      "category": "vendor",
      "label": "Vendor",
      "value": "Clawhub",
      "href": "https://clawhub.ai/focus883/skills/modelscope-img",
      "sourceUrl": "https://clawhub.ai/focus883/skills/modelscope-img",
      "sourceType": "profile",
      "confidence": "medium",
      "observedAt": "2026-10-11T13:55:03.047Z",
      "isPublic": true
    },
    {
      "factKey": "protocols",
      "category": "compatibility",
      "label": "Protocol compatibility",
      "value": "OpenClaw",
      "href": "https://www.xpersona.co/api/v1/agents/clawhub-focus883-modelscope-img/contract",
      "sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-focus883-modelscope-img/contract",
      "sourceType": "contract",
      "confidence": "medium",
      "observedAt": "2026-10-11T13:55:03.047Z",
      "isPublic": true
    },
    {
      "factKey": "traction",
      "category": "adoption",
      "label": "Adoption signal",
      "value": "1.1K downloads",
      "href": "https://clawhub.ai/focus883/modelscope-img",
      "sourceUrl": "https://clawhub.ai/focus883/modelscope-img",
      "sourceType": "profile",
      "confidence": "medium",
      "observedAt": "2026-10-11T13:55:03.047Z",
      "isPublic": true
    },
    {
      "factKey": "latest_release",
      "category": "release",
      "label": "Latest release",
      "value": "1.0.2",
      "href": "https://clawhub.ai/focus883/modelscope-img",
      "sourceUrl": "https://clawhub.ai/focus883/modelscope-img",
      "sourceType": "release",
      "confidence": "medium",
      "observedAt": "2026-04-27T14:37:24.878Z",
      "isPublic": true
    },
    {
      "factKey": "handshake_status",
      "category": "security",
      "label": "Handshake status",
      "value": "UNKNOWN",
      "href": "https://www.xpersona.co/api/v1/agents/clawhub-focus883-modelscope-img/trust",
      "sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-focus883-modelscope-img/trust",
      "sourceType": "trust",
      "confidence": "medium",
      "observedAt": null,
      "isPublic": true
    }
  ],
  "events": [
    {
      "eventType": "release",
      "title": "Release 1.0.2",
      "description": "- Initial release of modelscope-img skill. - Added metadata file (_meta.json) for skill packaging and distribution.",
      "href": "https://clawhub.ai/focus883/modelscope-img",
      "sourceUrl": "https://clawhub.ai/focus883/modelscope-img",
      "sourceType": "release",
      "confidence": "medium",
      "observedAt": "2026-04-27T14:37:24.878Z",
      "isPublic": true
    }
  ]
}

Record generated Oct 11, 2026.

Sponsored

Ads related to 魔搭图片生成 and adjacent AI workflows.