Single-purpose image generator that calls ModelScope's Z-Image API from a trigger word or command.

CCM score
44 of 100
skills.sh installs
878
GitHub stars
13
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers generating images from a text prompt through scripts/generate_zimage.py using the Z-Image model on ModelScope
  • Takes optional --output, --model, and --api-key arguments, and reads the token from a .env file or a pasted key
  • Enforces a setup check: a 401 error mentioning Alibaba Cloud binding prompts the user to link their account on ModelScope
  • Designed for users who already hold a ModelScope API token and trigger generation with "zimage" or "ModelScope"

Install

$ npx -y skills add toolsai/free-zimage-skills --skill zimage-generation -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Z-Image Generation Skill

This skill allows you to generate images using the Z-Image model via the ModelScope Inference API.

When to Use

Use this skill when:

  • The user requests to generate an image using "Zimage", "zimage:", or "ModelScope".
  • The user inputs a command like zimage: <prompt> or zimage <prompt>.
  • The user wants to use their configured ModelScope API key for image generation.

Usage

The skill provides a Python script scripts/generate_zimage.py to handle the API interaction.

Prerequisites

  • Python 3 with requests installed.
  • API Key Setup (Choose one):
    • Method A (Easiest for beginners): Open scripts/generate_zimage.py and paste your key into the DEFAULT_API_KEY variable at the top.
    • Method B (Temporary): Pass via command line: --api-key your_token
    • Method C (Recommended Project Setup): Create a new text file named .env in the same folder as the script (scripts/).
      • Content of the file should be: MODELSCOPE_API_TOKEN="your_key_here"

Commands

To generate an image:

Details

Repository
github.com/toolsai/free-zimage-skills
Category
AI Image, Video & Voice
First seen
Apr 16, 2026

Similar to Zimage Generation

More AI Image, Video & Voice