Skip to content
Back to skills

Modelscope Api

ASecurity

使用魔搭平台(ModelScope)API进行图片生成和编辑

  • 225 stars
  • 0 votes
  • 0 copies
  • 25 views
  • Added September 4, 2026
toolsbashnodeapi

Works with

  • api

Security analysis

A100/100

Pro scans all 13 files and shows the line behind each finding

Scanned September 4, 2026

npx -y skills add NeverSight/skills_feed --skill modelscope-api --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Modelscope Api?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Modelscope Api
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/neversight-modelscope-api/badge)](https://www.skillsdirectory.com/skills/neversight-modelscope-api)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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       # 图片编辑脚本
```

Files in this skill

  • SKILL.md1.4 KB
  • description_ar.txt132 B
  • description_cn.txt57 B
  • description_de.txt77 B
  • description_en.txt61 B
  • description_es.txt86 B
  • description_fr.txt93 B
  • description_it.txt95 B
  • description_ja.txt80 B
  • description_ko.txt70 B
  • description_ru.txt141 B
  • description_tw.txt57 B
  • stats.json68 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.