💡 Summary
This skill generates images using the ModelScope Z-Image-Turbo API based on user prompts.
🎯 Target Audience
🤖 AI Roast: “Powerful, but the setup might scare off the impatient.”
Risk: Medium. Review: shell/CLI command execution; outbound network access (SSRF, data egress); API keys/tokens handling and storage; dependency pinning and supply-chain risk. Run with least privilege and audit before enabling in production.
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
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
Pros
- Quick and easy image generation.
- Supports both English and Chinese prompts.
- Customizable output file path.
Cons
- Requires an API key for advanced features.
- Limited to the capabilities of the underlying model.
- Timeout for generation may be restrictive.
Related Skills
pytorch
S“It's the Swiss Army knife of deep learning, but good luck figuring out which of the 47 installation methods is the one that won't break your system.”
agno
S“It promises to be the Kubernetes for agents, but let's see if developers have the patience to learn yet another orchestration layer.”
nuxt-skills
S“It's essentially a well-organized cheat sheet that turns your AI assistant into a Nuxt framework parrot.”
Disclaimer: This content is sourced from GitHub open source projects for display and rating purposes only.
Copyright belongs to the original author yizhiyanhua-ai.
