Qwen-Image 2.1 image generation with OpenVINO
Qwen-Image 2.1 is a unified image generation model that supports text-to-image generation and image-conditioned editing in one pipeline. The prompt and condition images are encoded together by Qwen3-VL and processed by a block-causal diffusion transformer.
Content
Qwen-Image 2.1 image generation with OpenVINO
Qwen-Image 2.1 is a unified image generation model that supports text-to-image generation and image-conditioned editing in one pipeline. The prompt and condition images are encoded together by Qwen3-VL and processed by a block-causal diffusion transformer.
For model architecture and usage details, see the Qwen/Qwen-Image-2.1 model card and the Qwen-Image source repository.
This tutorial demonstrates how to:
- download and convert
Qwen/Qwen-Image-2.1to OpenVINO IR; - run text-to-image generation with OpenVINO GenAI;
- run image-conditioned editing with the same exported model;
- run editing conditioned on several reference images;
- save generated images with reproducible configuration details in their filenames;
- measure pipeline loading, first-run, and warm-run latency;
- launch an interactive demo with pipeline, precision, and device selection.
Important: Qwen-Image 2.1 image conditioning is not classic image-to-image generation based on adding noise to an initial image. The condition image is part of the multimodal context, so this notebook intentionally does not expose a strength parameter.
⚠️ 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.
Notebook Contents
- Install the latest stable Gradio, PyTorch, NNCF, and utility packages; Diffusers 0.41; Optimum Intel >= 2.3.0; and OpenVINO >= 2026.5.0 packages
- Select export options
- Convert the model to OpenVINO IR
- Run text-to-image generation
- Run image-conditioned editing with one or several reference images
- Benchmark text-to-image and single-image editing
- Launch an interactive demo with dynamic pipeline, FP16/INT8/INT4, device, and up to three condition images selection
Installation Instructions
This is a self-contained example that relies solely on its own code.
We recommend running the notebook in a virtual environment. You only need a Jupyter server to start. For details, please refer to the [Installation Guide](../../README.md).
Source and license
- Source
- Intel OpenVINO Notebooks
- Original
- openvinotoolkit/openvino_notebooks/notebooks/qwen-image-2.1
- License
- Apache-2.0