Generates images using ModelScope's Z-Image API via a Python script. Useful when the user requests image generation with Z-Image or ModelScope.
Ships in toolsai-free-zimage-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This skill allows you to generate images using the Z-Image model via the ModelScope Inference API.
Use this skill when:
zimage: <prompt> or zimage <prompt>.The skill provides a Python script scripts/generate_zimage.py to handle the API interaction.
requests installed.scripts/generate_zimage.py and paste your key into the DEFAULT_API_KEY variable at the top.--api-key your_token.env in the same folder as the script (scripts/).
MODELSCOPE_API_TOKEN="your_key_here"To generate an image:
# If you used Method A (pasted key in file):
python3 /Users/promptcase/.gemini/antigravity/skills/zimage-generation/scripts/generate_zimage.py "Your descriptive prompt here"
# If you prefer command line (Method B):
python3 /Users/promptcase/.gemini/antigravity/skills/zimage-generation/scripts/generate_zimage.py "Your prompt" --api-key "your_key"
Arguments:
prompt: The text description of the image (required).--output, -o: Specify output filename (optional).--model: Specify a different model ID (optional).--api-key: API key (if not set in file or environment).If the script returns a 401 error mentioning "bind your Alibaba Cloud account", notify the user that they must log in to ModelScope (https://modelscope.cn/my/account) and bind their Alibaba Cloud account to enable API access. This is a one-time setup required by the platform.
# To generate a cyberpunk city
python3 /Users/mattchan/.gemini/antigravity/skills/zimage-generation/scripts/generate_zimage.py "cyberpunk city, neon lights, rainy street, high detail"
What SKILL.md sets; muted values are Claude Code's defaults
/toolsai-free-zimage-skills:zimage-generationfrom toolsai-free-zimage-skills
toolsai-free-zimage-skills@cascade-content-creation-misc-1 is listed by joshuarweaver/cascade-content-creation-misc-1 — review the source before installing
npx claudepluginhub joshuarweaver/cascade-content-creation-misc-1 --plugin toolsai-free-zimage-skillsOther plugins' skills for the same job