Zimage Generation

🌐Community
by toolsai · vlatest · Repository

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.

1

Run in terminal (recommended)

terminal
claude mcp add zimage-generation npx -- -y @trustedskills/zimage-generation
2

Or manually add to ~/.claude/settings.json

~/.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> or zimage <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 --output or -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 detail
  • zimage: 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 .env file.
  • 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 requests library.

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 HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
toolsai
Installs
38

🌐 Community

Passed automated security scans.