使用魔搭平台(ModelScope)API进行图片生成和编辑
Scanned 9/4/2026
Install to Claude Code
npx -y skills add NeverSight/skills_feed --skill modelscope-api --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Modelscope Api?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/neversight-modelscope-api)More formats (shields.io, HTML) on the badges page.
---
name: modelscope-api
description: 使用魔搭平台(ModelScope)API进行图片生成和编辑
---
# ModelScope API 图片生成/编辑
## 环境准备
- Node.js >= 18(使用内置 fetch)
- 设置环境变量:
```bash
set MODELSCOPE_API_KEY=ms-你的API密钥
```
## 功能
### 1. 图片生成 (image-generator.js)
使用 `Tongyi-MAI/Z-Image-Turbo` 模型根据提示词生成图片。
```bash
node image-generator.js -p "一只可爱的猫咪"
node image-generator.js -p "科幻城市夜景" -o city_night.jpg
```
参数:
- `-p, --prompt` - 生成提示词(必需)
- `-o, --output` - 输出文件名(可选)
- `-h, --help` - 显示帮助
### 2. 图片编辑 (image-editor.js)
使用 `Qwen/Qwen-Image-Edit-2511` 模型编辑已有图片。
```bash
node image-editor.js -i ./photo.jpg -p "给图中的人戴上墨镜"
node image-editor.js -i ./dog.png -p "给狗戴上生日帽" -o birthday_dog.jpg
```
参数:
- `-i, --image` - 输入图片路径(必需)
- `-p, --prompt` - 编辑提示词(必需)
- `-o, --output` - 输出文件名(可选)
- `-h, --help` - 显示帮助
## 输出信息
脚本会显示模型调用限制信息:
- 模型剩余调用次数
- 总请求剩余次数
## 目录结构
```
modelscope-api/
├── SKILL.md # 技能说明文档
├── image-generator.js # 图片生成脚本
└── image-editor.js # 图片编辑脚本
```
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!
Playbook for creating and editing uCoz landing pages via MCP tools (`templates_tool`, `ftp_tool`, `modules_tool`). Use for tasks such as: "build a landing page", "update the homepage as a landing page", "create a promo page on the homepage", "add a lead form / menu / SEO to the homepage". Homepage: `page_list`, `page_get`; first publish — `page_update` with full `page_tmpl`; HTML edits after generation — `patch_template` (module_id=2, template_id=1), not `update_template`. Activate the mail f...
Interact with the Paperclip control plane API to manage tasks, coordinate with other agents, and follow company governance. Use when you need to check assignments, update task status, delegate work, post comments, set up or manage routines (recurring scheduled tasks), or call any Paperclip API endpoint. Do NOT use for the actual domain work itself (writing code, research, etc.) — only for Paperclip coordination.
Digital Audio Workstation usage, music composition, interactive music systems, and game audio implementation for immersive soundscapes.
Instantly.ai cold email outreach API - manage campaigns, leads, accounts, and analytics. Use for cold email automation, lead management, campaign creation/monitoring, and email account warmup.
Automated semantic versioning and release workflow for Claude Code plugins. Handles version increments across package.json, marketplace.json, plugin.json manifests, build verification, git tagging, GitHub releases, and changelog generation. NPM publishing is the final human-required handoff because the maintainer raised npm security.