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
- 01Generate images from prompts
- 02Use Tongyi-MAI/Z-Image-Turbo
- 03Accept Chinese and English prompts
- 04Choose an output path
- 05Optional ModelScope API key
Use cases
- 01Creating an image from a text prompt
- 02Saving generated images to a chosen file
- 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-skillAfter installing, type/zimage-skillin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
generate.py.gitignoreLICENSEREADME_CN.mdrequirements.txtREADME.mdDetails
From the project READMEZ-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