text-to-imagediffusersapache-2.0

Tongyi-MAI/Z-Image

huggingface.co/Tongyi-MAI/Z-Image

1,238Likes
60,453Downloads
2026-01-28Updated
diffuserssafetensorstext-to-imageenarxiv:2511.22699license:apache-2.0diffusers:ZImagePipelineregion:usdeploy:azure

Model card

⚡️- Image An Efficient Image Generation Foundation Model with Single-Stream Diffusion Transformer

![Official Site](https://tongyi-mai.github.io/Z-Image-blog/) ![GitHub](https://github.com/Tongyi-MAI/Z-Image) ![Hugging Face](https://huggingface.co/Tongyi-MAI/Z-Image) ![Hugging Face](https://huggingface.co/spaces/Tongyi-MAI/Z-Image) ![ModelScope Model](https://www.modelscope.cn/models/Tongyi-MAI/Z-Image) ![ModelScope Space](https://www.modelscope.cn/aigc/imageGeneration?tab=advanced&versionId=569345&modelType=Checkpoint&sdVersion=Z_IMAGE&modelUrl=modelscope%3A%2F%2FTongyi-MAI%2FZ-Image%3Frevision%3Dmaster)

Welcome to the official repository for the Z-Image(造相)project!

🎨 Z-Image

!Teaser !asethetic !diverse !negative

Z-Image is the foundation model of the ⚡️- Image family, engineered for good quality, robust generative diversity, broad stylistic coverage, and precise prompt adherence. While Z-Image-Turbo is built for speed, Z-Image is a full-capacity, undistilled transformer designed to be the backbone for creators, researchers, and developers who require the highest level of creative freedom.

!z-image

🌟 Key Features

🆚 Z-Image vs Z-Image-Turbo

| Aspect | Z-Image | Z-Image-Turbo | |------|------|------| | CFG | ✅ | ❌ | | Steps | 28~50 | 8 | | Fintunablity | ✅ | ❌ | | Negative Prompting | ✅ | ❌ | | Diversity | High | Low | | Visual Quality | High | Very High | | RL | ❌ | ✅ |

🚀 Quick Start

Installation & Download

Install the latest version of diffusers: ``bash pip install git+https://github.com/huggingface/diffusers ``

Download the model: ``bash pip install -U huggingface_hub HF_XET_HIGH_PERFORMANCE=1 hf download Tongyi-MAI/Z-Image ``

Recommended Parameters

Usage Example

```python import torch from diffusers import ZImagePipeline

Load the pipeline

pipe = ZImagePipeline.from_pretrained( "Tongyi-MAI/Z-Image", torch_dtype=torch.bfloat16, low_cpu_mem_usage=False, ) pipe.to("cuda")

Generate image

prompt = "两名年轻亚裔女性紧密站在一起,背景为朴素的灰色纹理墙面,可能是室内地毯地面。左侧女性留着长卷发,身穿藏青色毛衣,左袖有奶油色褶皱装饰,内搭白色立领衬衫,下身白色裤子;佩戴小巧金色耳钉,双臂交叉于背后。右侧女性留直肩长发,身穿奶油色卫衣,胸前印有“Tun the tables”字样,下方为“New ideas”,搭配白色裤子;佩戴银色小环耳环,双臂交叉于胸前。两人均面带微笑直视镜头。照片,自然光照明,柔和阴影,以藏青、奶油白为主的中性色调,休闲时尚摄影,中等景深,面部和上半身对焦清晰,姿态放松,表情友好,室内环境,地毯地面,纯色背景。" negative_prompt = "" # Optional, but would be powerful when you want to remove some unwanted content

image = pipe( prompt=prompt, negative_prompt=negative_prompt, height=1280, width=720, cfg_normalization=False, num_inference_steps=50, guidance_scale=4, generator=torch.Generator("cuda").manual_seed(42), ).images[0]

image.save("example.png") ```

📜 Citation

If you find our work useful in your research, please consider citing:

``bibtex @article{team2025zimage, title={Z-Image: An Efficient Image Generation Foundation Model with Single-Stream Diffusion Transformer}, author={Z-Image Team}, journal={arXiv preprint arXiv:2511.22699}, year={2025} } ``

Mirrored from the Hugging Face Hub and served from the Conceptio Open Knowledge Archive. Read the original card at https://huggingface.co/Tongyi-MAI/Z-Image.