Z-Image Studio

v1.0.0Developer Toolsstable

A local text-to-image generation server that enables AI agents to generate images, manage models, and browse history using the Z-Image-Turbo model. It supports hardware acceleration across NVIDIA, Apple Silicon, and AMD GPUs via multiple MCP transpor

aiappleapple-siliconcudadiffusers
Share:
116
Stars
0
Downloads
0
Weekly
0/5

What is Z-Image Studio?

Z-Image Studio is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to local text-to-image generation server that enables ai agents to generate images, manage models, and browse history using the z-image-turbo model. it supports hardware acceleration across nvidia, apple...

A local text-to-image generation server that enables AI agents to generate images, manage models, and browse history using the Z-Image-Turbo model. It supports hardware acceleration across NVIDIA, Apple Silicon, and AMD GPUs via multiple MCP transpor

This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • A local text-to-image generation server that enables AI agen

Use Cases

Text-to-image generation locally
GPU acceleration support
Image model management
iconben

Maintainer

LicenseApache 2.0
Languagepython
Versionv1.0.0
UpdatedMay 19, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx z-image-studio

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Z-Image Studio

Z-Image Studio is a local text-to-image generation server powered by the Tongyi-MAI/Z-Image-Turbo diffusion model from Hugging Face. It runs entirely on your machine and exposes three MCP tools — generate, list_models, and list_history — so AI agents can generate images, manage models, and browse generation history without any cloud API calls. It supports hardware acceleration on NVIDIA CUDA, Apple Silicon (MPS), AMD ROCm, and Intel XPU, making it a fully offline, privacy-preserving alternative to cloud image generation APIs.

Prerequisites

  • Python 3.11+ (Python 3.12+ supported, but torch.compile is disabled by default on 3.12)
  • pip or uv package manager
  • A supported GPU: NVIDIA (CUDA), Apple Silicon (MPS), AMD (ROCm on Linux), or Intel XPU — or CPU as fallback
  • Sufficient disk space for model weights (~few GB) which are downloaded from Hugging Face on first run
  • An MCP-compatible client such as Claude Desktop or Claude Code
1

Install Z-Image Studio

Install via pip or uv. The uv tool install method is recommended as it creates an isolated environment automatically.

# Recommended: via uv tool (isolated install)
uv tool install git+https://github.com/iconben/z-image-studio.git

# Or via pip
pip install z-image-studio
2

Start the MCP server

Run `zimg-mcp` to launch the MCP server in stdio mode. On first run, the Z-Image-Turbo model weights are downloaded from Hugging Face automatically.

zimg-mcp
# First run downloads model weights — this may take several minutes
# depending on your internet connection speed
3

Optional: test image generation via CLI

Verify the installation works by generating a test image from the command line before configuring the MCP client.

# Basic generation test
zimg generate "A futuristic city with neon lights"

# With options
zimg gen "A majestic dragon" --seed 12345 --steps 20 --precision q8

# List available models
zimg models
4

Configure your MCP client

Add Z-Image Studio to your MCP client configuration. The server exposes three tools: generate, list_models, and list_history.

# Tools exposed:
# generate     - Generate an image from a text prompt
# list_models  - List available model variants
# list_history - Browse previously generated images
5

Optional: launch the web UI

Z-Image Studio also includes a web interface for browsing history and generating images visually.

# Start the web UI on port 8000
zimg serve --host 0.0.0.0 --port 8000
# Open http://localhost:8000 in your browser

Z-Image Studio Examples

Client configuration (Claude Desktop)

Configure Claude Desktop to launch the Z-Image Studio MCP server. The zimg-mcp command must be on your PATH after installation.

{
  "mcpServers": {
    "z-image-studio": {
      "command": "zimg-mcp",
      "env": {
        "Z_IMAGE_STUDIO_OUTPUT_DIR": "/path/to/output/images"
      }
    }
  }
}

Prompts to try

Use these prompts to generate images, check available models, and browse history through your AI assistant.

- "Generate an image of a serene mountain lake at sunrise."
- "Create a photorealistic portrait of an astronaut on Mars."
- "Generate a pixel art style cityscape at night."
- "What image generation models are available?"
- "Show me the last 10 images I generated."
- "Generate an image with seed 42 so I can reproduce it later."

Troubleshooting Z-Image Studio

Model download fails or takes too long on first run

The Z-Image-Turbo model weights are downloaded from Hugging Face on first run. Ensure you have a stable internet connection and sufficient disk space. If the download fails, retry running `zimg-mcp` — it resumes partial downloads.

Generated images are black or all the same colour

This is typically caused by the safety filter intercepting outputs. Z-Image Studio disables the safety filter by default to prevent false positives, but verify this in your config. Also try a different precision setting: `--precision q8` or `--precision q4` for lower memory usage.

Out of memory errors on GPU during generation

Reduce image dimensions (default is 1280×720 — try 512×512 for testing), use a lower precision model (`--precision q4`), or set `ZIMAGE_ENABLE_TORCH_COMPILE=0` to disable torch compilation. Automatic attention slicing is enabled by default to reduce VRAM usage.

Frequently Asked Questions about Z-Image Studio

What is Z-Image Studio?

Z-Image Studio is a Model Context Protocol (MCP) server that local text-to-image generation server that enables ai agents to generate images, manage models, and browse history using the z-image-turbo model. it supports hardware acceleration across nvidia, apple silicon, and amd gpus via multiple mcp transpor It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Z-Image Studio?

Follow the installation instructions on the Z-Image Studio GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Z-Image Studio?

Z-Image Studio works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Z-Image Studio free to use?

Yes, Z-Image Studio is open source and available under the Apache 2.0 license. You can use it freely in both personal and commercial projects.

Browse More Developer Tools MCP Servers

Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "z-image-studio": { "command": "npx", "args": ["-y", "z-image-studio"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Z-Image Studio?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides