Back to Home
iconben icon

z-image-studio

Verified Safe

by iconben

Overview

Z-Image Studio is a local toolkit for high-quality text-to-image generation using the Z-Image-Turbo model, providing CLI, Web UI, and MCP server interfaces with hardware optimizations.

Installation

Run Command
docker run -d --name z-image-studio -p 8000:8000 -v zimg-data:/data -v zimg-config:/home/appuser/.z-image-studio -v zimg-outputs:/data/outputs iconben/z-image-studio:latest

Environment Variables

  • SDNQ_LOG_LEVEL
  • ZIMAGE_BASE_URL
  • ZIMAGE_DISABLE_MCP
  • ZIMAGE_ENABLE_TORCH_COMPILE
  • Z_IMAGE_STUDIO_DATA_DIR
  • Z_IMAGE_STUDIO_OUTPUT_DIR

Security Notes

File upload (`/loras` endpoint) allows `.safetensors` files up to 1GB. While `safetensors` are generally safer than `pickle`, a malicious file could potentially exploit vulnerabilities in the `diffusers` loading process. The server performs hash checks and filename collision resolution, and files are stored in a dedicated `loras` directory. URL construction for `ResourceLink` in MCP SSE/Streamable HTTP modes relies on extracting base URL from request headers (`X-Forwarded-Proto`, `X-Forwarded-Host`) if `ZIMAGE_BASE_URL` is not set. In a misconfigured proxy environment, these headers could be spoofed, potentially leading to incorrect or malicious resource URIs. However, path traversal within the URL is mitigated by `urllib.parse.urljoin` and `urllib.parse.quote` for file paths. Image saving (`save_image`) includes robust path safety checks to prevent directory traversal attacks.

Similar Servers

Stats

Interest Score82
Security Score8
Cost ClassHigh
Avg Tokens100
Stars74
Forks6
Last Update2026-01-18

Tags

AI Image GenerationCLIWeb UIMCP ServerLocal