# Qwen-Image

> Open image generation and editing model that renders readable text, including Chinese

- Category: Multimodal Generation / Image Generation
- Language: Python
- Licence: Apache-2.0
- Repository: https://github.com/QwenLM/Qwen-Image
- Website: https://huggingface.co/Qwen/Qwen-Image
- Canonical page: https://ai-tldr.dev/tools/qwen-image/
- Updated: 2026-09-20

## In short

Qwen-Image is an open image foundation model from Alibaba's Qwen team. It sits in the Image Generation category of the Multimodal Generation tools and is open-source, written in Python and licensed Apache-2.0. To get started: install diffusers.

## Overview

Qwen-Image is an open image foundation model from Alibaba's Qwen team. It is a 20B MMDiT model built for text-to-image generation and image editing, with a particular focus on rendering legible text inside images, including Chinese characters that many other models struggle with.

It is aimed at developers and researchers who want to generate or edit images locally instead of calling a hosted API. Weights are published on Hugging Face and ModelScope, and the model runs through the Hugging Face diffusers library, so it fits into existing Python pipelines.

Within the image-generation category, Qwen-Image stands out for typography and editing rather than only aesthetics. Companion releases like Qwen-Image-Edit handle instruction-based editing, and the project documents acceleration options such as Qwen-Image-Lightning and vLLM-Omni for faster inference.

## What it does

- 20B MMDiT image foundation model for both generation and editing
- Strong text rendering inside images, with notable support for Chinese
- Separate Qwen-Image-Edit weights for instruction-based image editing
- Open weights on Hugging Face and ModelScope under Apache 2.0
- Runs through the Hugging Face diffusers library in standard Python
- Acceleration paths documented, including Qwen-Image-Lightning and vLLM-Omni

## Getting started

Qwen-Image runs through the Hugging Face diffusers library. Install diffusers, then load the pipeline and generate an image. A CUDA GPU with enough VRAM is recommended for a 20B model.

1. Install diffusers

   Install diffusers from source so the Qwen-Image pipeline is available. You also need torch installed.

```bash
pip install git+https://github.com/huggingface/diffusers
```

2. Generate an image

   Load the pipeline from Hugging Face and run a prompt. The weights download automatically on first use.

```python
from diffusers import QwenImagePipeline
import torch

if torch.cuda.is_available():
    torch_dtype = torch.bfloat16
    device = "cuda"
else:
    torch_dtype = torch.float32
    device = "cpu"

pipe = QwenImagePipeline.from_pretrained(
    "Qwen/Qwen-Image-2512",
    torch_dtype=torch_dtype
).to(device)

prompt = "A coffee shop with neon signs"
image = pipe(
    prompt=prompt,
    negative_prompt=" ",
    width=1328,
    height=1328,
    num_inference_steps=50,
    true_cfg_scale=4.0,
    generator=torch.Generator(device="cuda").manual_seed(42)
).images[0]

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

## When to use it

- Generate posters, infographics, or UI mockups where the text inside the image must stay readable
- Produce images that include Chinese text or mixed Chinese-English typography
- Edit existing images with instructions using the Qwen-Image-Edit weights
- Run image generation locally or self-hosted instead of relying on a paid hosted API

## Version history

- 2026-09-20 Qwen-Image-2.1: Qwen-Image-2.1 unifies generation and editing in one model with a 7B visual generation component (32 Single-Stream DiT layers), adds native RGBA output and editing from up to 10 reference images, and steers local edits with a circle, a painted annotation or a mask. Unlike the Apache-2.0 base line, this checkpoint ships under the non-commercial Qwen Research License Agreement.
