mcpField
Z
zimage-skill

zimage-skill

github.com/yizhiyanhua-aiCreative & media5263 installsUpdated 40w ago
Repository

About zimage-skill

A command-line skill that generates images with ModelScope's Tongyi-MAI/Z-Image-Turbo model from Chinese or English prompts. It saves the generated image to a specified path or the default result_image.jpg file.

Key features

  1. 01Generate images from prompts
  2. 02Use Tongyi-MAI/Z-Image-Turbo
  3. 03Accept Chinese and English prompts
  4. 04Choose an output path
  5. 05Optional ModelScope API key

Use cases

  1. 01Creating an image from a text prompt
  2. 02Saving generated images to a chosen file
  3. 03Generating images with Chinese prompts

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/yizhiyanhua-ai/zimage-skill --skill zimage-skill

After installing, type/zimage-skillin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

generate.py
.gitignore
LICENSE
README_CN.md
requirements.txt
README.md

Details

From the project README

Z-Image Generation

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

Requirements

pip install requests Pillow

Usage

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

Environment

Optional: Set MODELSCOPE_API_KEY to use your own API key.

Examples

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

Comments

Markdown supported