Text-to-image generation with Z-Image-Turbo and OpenVINO
Z-Image-Turbo is Alibaba's production-ready, open-source 6B-parameter image generation model from the Z-Image family.
Content
Text-to-image generation with Z-Image-Turbo and OpenVINO
Z-Image-Turbo is Alibaba's production-ready, open-source 6B-parameter image generation model from the Z-Image family.
Highlights
- Photorealistic quality + strong bilingual (Chinese & English) text rendering
- Excellent instruction-following and in-context editing (supports bounding boxes, object-level control)
- Uses Single-Stream Diffusion Transformer (S3-DiT): text and image tokens processed in one unified stream
- Prompt Enhancer (PE) + Decoupled DMD/DMDR distillation for high-quality 1–8 step generation
More details about model can be found in paper post and model card.
In this tutorial we consider how to convert and optimize Z-Image-Turbo using Optimum Intel and run it with OpenVINO GenAI.
Notebook Contents
In this demonstration, you will learn how to perform text-to-image generation using Z-Image-Turbo and OpenVINO.
The tutorial consists of the following steps:
- Install prerequisites
- Collect Pytorch model pipeline
- Convert model to OpenVINO intermediate representation (IR) format
- Compress weights using NNCF
- Prepare OpenVINO GenAI inference pipeline
- Run Text-to-Image generation
- Launch interactive demo
Installation Instructions
This is a self-contained example that relies solely on its own code.</br> We recommend running the notebook in a virtual environment. You only need a Jupyter server to start. For further details, please refer to [Installation Guide](../../README.md).
[!WARNING]
⚠️ EXPERIMENTAL NOTEBOOK
This notebook demonstrates a model that has not been fully validated with OpenVINO. It may be fully supported and validated in the future.
The notebook uses OpenVINO >= 2026.5.0 and Optimum Intel >= 2.3.0. Transformers 5.x is required during export so the resulting model directory includes the OpenVINO tokenizer models used by the GenAI pipeline.
Source and license
- Source
- Intel OpenVINO Notebooks
- Original
- openvinotoolkit/openvino_notebooks/notebooks/z-image-turbo
- License
- Apache-2.0