Zimage Generation
Generate photorealistic images from text prompts using advanced AI models, ideal for content creation and visualization.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add zimage-generation npx -- -y @trustedskills/zimage-generation
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"zimage-generation": {
"command": "npx",
"args": [
"-y",
"@trustedskills/zimage-generation"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill enables AI agents to generate photorealistic images from text prompts using the Z-Image model through the ModelScope Inference API. It provides a Python script for interacting with the API, allowing users to create visualizations and content based on their textual descriptions. The generated images are powered by advanced AI models accessible via ModelScope.
When to use it
- When a user explicitly requests image generation using "Zimage", "zimage:", or "ModelScope".
- When a user provides a command formatted as
zimage: <prompt>orzimage <prompt>. - When you want to leverage a configured ModelScope API key for image creation.
Key capabilities
- Generates images from text prompts using the Z-Image model.
- Supports multiple API key setup methods (direct editing of script, command line argument, or environment variable).
- Allows specifying an output filename via
--outputor-o. - Provides option to select a different ModelScope model ID via
--model.
Example prompts
zimage: A fluffy cat wearing a hat.zimage cyberpunk city, neon lights, rainy street, high detailzimage: A futuristic landscape with floating islands.
Tips & gotchas
- API Key Required: You must configure an API key to use this skill. Choose from pasting directly into the script, passing via command line, or setting up a
.envfile. - Alibaba Cloud Account Binding: If you receive a 401 error related to binding your Alibaba Cloud account, you'll need to log in to ModelScope (https://modelscope.cn/my/account) and link your account to enable API access – this is a one-time setup.
- Python Environment: Ensure you have Python 3 installed with the
requestslibrary.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.