Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
toolsai avatar

Zimage Generation

  • 827 installs
  • 12 repo stars
  • Updated January 25, 2026
  • toolsai/free-zimage-skills

zimage-generation is an agent skill that generates images through ModelScope's Z-Image Inference API for developers who want on-demand Z-Image renders from zimage: prompts inside coding agent sessions.

About

zimage-generation is a toolsai free-zimage-skills integration that calls ModelScope's Z-Image model via the ModelScope Inference API when developers type zimage: prompts or mention Zimage and ModelScope keywords. The skill activates on commands like zimage: <prompt> or natural requests to generate images with a configured ModelScope API key. Developers reach for zimage-generation when agents need a specific Z-Image backend instead of generic DALL-E or Stable Diffusion wrappers. The workflow is intentionally narrow: validate trigger phrases, forward prompts to ModelScope, and return generated raster assets for documentation, UI mocks, or content pipelines.

  • Generates images via ModelScope's Z-Image Inference API
  • Supports trigger phrases: Zimage, ModelScope, zimage:
  • Three API key setup methods including .env file
  • Provides ready-to-run Python script generate_zimage.py
  • Command-line support for custom prompts and keys

Zimage Generation by the numbers

  • 827 all-time installs (skills.sh)
  • +7 installs in the week ending Aug 5, 2026 (Skillselion tracking)
  • Ranked #312 of 1,335 Generative Media skills by installs in the Skillselion catalog
  • Security screen: HIGH risk (skills.sh audit)
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/toolsai/free-zimage-skills --skill zimage-generation

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs827
repo stars12
Security audit1 / 3 scanners passed
Last updatedJanuary 25, 2026
Repositorytoolsai/free-zimage-skills

How do you generate images with ModelScope Z-Image?

Generate high-quality images on demand using the ModelScope Z-Image model directly from agent prompts.

Who is it for?

Developers with a ModelScope API key who want agents to generate images specifically through the Z-Image model on demand.

Skip if: Developers needing multi-model image routing, local Stable Diffusion GPU inference, or video generation pipelines.

When should I use this skill?

A developer types zimage:, mentions ModelScope image generation, or asks to generate images with the Z-Image model.

What you get

ModelScope Z-Image API response and generated raster image file from agent prompt.

  • generated image file
  • API response metadata

Files

SKILL.mdMarkdownGitHub ↗

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:

# 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).

API Verification Note

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.

Example

# 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"

Related skills

How it compares

Use zimage-generation when the requirement explicitly names ModelScope Z-Image rather than general-purpose image generation skills.

FAQ

How do you trigger zimage-generation?

zimage-generation activates when developers use zimage: <prompt> commands or mention Zimage and ModelScope keywords, routing prompts to the ModelScope Z-Image Inference API with a configured API key.

Which API does zimage-generation use?

zimage-generation calls ModelScope's Z-Image model through the ModelScope Inference API, returning generated images for agent workflows that specify Z-Image rather than generic image backends.

Is Zimage Generation safe to install?

skills.sh reports 1 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.