Skip to main content

Z-Vision Generator — cross-platform AI image and video generator

Project description

Z-Vision Generator

CI PyPI Python 3.14+ License: AGPL-3.0

Z-Vision Generator Logo

Local AI image and video generation — hassle-free and fun. No tangled node graphs, no cloud dependencies, just prompts and results. Runs on macOS (Apple Silicon / MLX) and Windows (NVIDIA / CUDA), tuned for an M-series Mac with 32 GB unified memory and an NVIDIA RTX 3080.

Features

  • Image generation — text-to-image with Z-Image and FLUX.2 Klein (4B/9B) model families
  • Video generation — text-to-video and image-to-video with LTX-2.3 (macOS)
  • Cross-platform — automatic backend selection: MLX on macOS, CUDA on Windows
  • Prompt system — YAML prompt files with variables, structured prompts, snippets, and batch runs
  • Model store — central ~/.ziv/ directory with bare-name resolution and HuggingFace fallback
  • LoRA support — single or stacked, configurable weights, bare-name resolution
  • Image upscale — generate small → Lanczos → img2img refine → CAS sharpen
  • Video upscale — distilled-only two-stage 2× spatial upscaling
  • Reference images — img2img steering from any starting image
  • Quantization — 4-bit and 8-bit on both platforms
  • Post-processing — contrast, saturation, and CAS sharpening (image only)
  • Interactive controls — skip, quit, pause, and repeat during batch runs (image only)

Platform Support

Platform Image Generation Video Generation
macOS (Apple Silicon) ✅ Z-Image / FLUX via mflux/MLX ✅ LTX-2.3 via MLX
Windows (NVIDIA GPU) ✅ Z-Image / FLUX via diffusers/CUDA ❌ Not supported

Installation

Requires Python 3.14+ and uv.

uv is required. This package cannot be installed with pip — some dependencies are only available via uv source overrides. All commands below use uv.

# Install globally from PyPI
uv tool install z-vision-generator

# Install globally from repository
uv tool install -e git+https://github.com/knuthelge/ZVisionGenerator.git

# Development setup
git clone https://github.com/knuthelge/ZVisionGenerator && cd ZVisionGenerator
uv sync

Video generation requires ffmpeg. On macOS, ziv-video offers to install it via Homebrew on first run.

Quick Start

# Generate an image (bare name from ~/.ziv/models/)
ziv -m my-model --prompt "a beautiful sunset"

# Generate from a HuggingFace model
ziv -m Tongyi-MAI/Z-Image-Turbo --prompt "a cat in a garden"

# Batch run from a prompts file
ziv -m my-model -p prompts.yaml -r 3

# Generate a video
ziv-video -m dgrauet/ltx-2.3-mlx-q4 --prompt "A cat walking through a garden"

# Image-to-video
ziv-video -m dgrauet/ltx-2.3-mlx-q4 --image photo.jpg --prompt "Camera zooms in slowly"

Documentation

Full documentation is available at knuthelge.github.io/ZVisionGenerator.

Contributing

Contributions are welcome! See CONTRIBUTING.md for guidelines.

License

This project is licensed under the GNU Affero General Public License v3.0 or later.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

z_vision_generator-0.6.0.tar.gz (936.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

z_vision_generator-0.6.0-py3-none-any.whl (79.9 kB view details)

Uploaded Python 3

File details

Details for the file z_vision_generator-0.6.0.tar.gz.

File metadata

  • Download URL: z_vision_generator-0.6.0.tar.gz
  • Upload date:
  • Size: 936.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for z_vision_generator-0.6.0.tar.gz
Algorithm Hash digest
SHA256 79b63fa85dd8ced5fb1c968f4c55f8af8993922d5f554bed0ccf389c3d7a0b00
MD5 ebd3c686c25e245f165373b6e43283ad
BLAKE2b-256 9333e31a6c45ace87f92102abfdbbfa7810ded6d340a2e915e1cd04d4cfc8c49

See more details on using hashes here.

File details

Details for the file z_vision_generator-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: z_vision_generator-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 79.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for z_vision_generator-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 687ace87262594237de1deadda191ef16a23d7801ff5882254270a8a4e396e6c
MD5 59b428d7c1518cf8f9a26fad9bdcaf52
BLAKE2b-256 f421596aabf9be35c9f125377d6c4f87fe255e74c339b4aacba81beaf3e3fd87

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page