zimage-skill

$npx mdskill add aAAaqwq/AGI-Super-Team/zimage-skill

Generate images from text prompts via ModelScope API

  • Creates visual content for users requesting pictures or illustrations
  • Depends on ModelScope Z-Image-Turbo model and Bash execution
  • Executes Python scripts with user-provided prompts and optional paths
  • Delivers output as JPG files named result_image.jpg
SKILL.md
.github/skills/zimage-skillView on GitHub ↗
---
name: zimage-skill
description: Generate images using ModelScope Z-Image-Turbo API. Use when user asks to generate, create, or make images, pictures, or illustrations.
allowed-tools: Bash, Write, Read
---

# Z-Image Generation

Generate images using ModelScope's Tongyi-MAI/Z-Image-Turbo model.

## Requirements

```bash
pip install requests Pillow
```

## Usage

```bash
python3 ~/.claude/skills/zimage-skill/generate.py "prompt" [output_path]
```

## Environment

Optional: Set `MODELSCOPE_API_KEY` to use your own API key.

## Examples

```bash
python3 ~/.claude/skills/zimage-skill/generate.py "A golden cat" cat.jpg
python3 ~/.claude/skills/zimage-skill/generate.py "Sunset over mountains"
```

## Notes

- Default output: `result_image.jpg`
- Timeout: 120 seconds max
- Supports Chinese and English prompts
More from aAAaqwq/AGI-Super-Team