HologramHologram
Models

Qwen-Image-2.1

76.9k2.7k

Qwen · 7.1B parameters · 33.1 GB · Custom licence

Address
qwen/qwen-image-2.1
Held on
Get it
Status
Verified
Base model
…
Lineage
…
Unchanged from base
…
Trending
#6
Downloads, 30 days
76.9k
Weights
33.1 GB
Revision

We are excited to open-source Qwen-Image-2.1, a unified text-to-image generation and image editing model in the Qwen family. With just 7B parameters in its visual generation component (32 Single-Stream DiT layers), Qwen-Image-2.1 balances generation quality, inference efficiency, and versatility.

At a glance

Task
Text to image
Input
text
Output
image
Parameters
7.1B
Precision
BF16
Format
Safetensors
Library
diffusers
License
other
Released
Sep 2026
Updated
Sep 2026
Likes
2,685
Downloads, all time
70,687

Family

Models built on Qwen-Image-2.1.

Run it

Pinned to the indexed revision.

from diffusers import DiffusionPipeline

pipe = DiffusionPipeline.from_pretrained("Qwen/Qwen-Image-2.1", revision="d26bb61231c349cf6b7896fa83353113880e1ba3")

Through the hub: the same tools, each file from a source that is up (Hugging Face, ModelScope, IPFS), at this revision. The second line checks every file against its address.

export HF_ENDPOINT=https://gethologram.ai
cd "$(hf download Qwen/Qwen-Image-2.1 --quiet)" && curl -s $HF_ENDPOINT/Qwen/Qwen-Image-2.1/resolve/main/SHA256SUMS | sha256sum -c --quiet

Spaces

Used in 100+ Spaces.

Read the full model card
![](https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen-Image/image2.1/logo.png)




🤖 [ModelScope](https://modelscope.cn/models/Qwen/Qwen-Image-2.1)  |
  🤗 [HuggingFace](https://huggingface.co/Qwen/Qwen-Image-2.1)  |
  📑 [Blog](https://qwen.ai/blog?id=qwen-image-2.1)  |
  🖥️ [Demo](https://huggingface.co/spaces/Qwen/Qwen-Image-2.1)  |
  🫨 [Discord](https://discord.gg/BEYSk3pkSu)  |
  💬 [WeChat](https://huggingface.co/Qwen/Qwen-Image-2.1/blob/main/assets/qr.png)

Introduction

We are excited to open-source Qwen-Image-2.1, a unified text-to-image generation and image editing model in the Qwen family. With just 7B parameters in its visual generation component (32 Single-Stream DiT layers), Qwen-Image-2.1 balances generation quality, inference efficiency, and versatility.

Four key improvements define this release:

  • Compact and Efficient — A lightweight architecture with mixed-granularity attention and prefix KV cache reuse delivers strong image quality at low computational cost.

  • Native Transparency, Unified Creation and Editing — Generate regular or transparent (RGBA) images from text, edit transparent layers, and extract subjects from photographs—all in one model.

  • Versatile Editing — Support up to 10 reference images, specify local edits via circles, painted annotations, or separate masks, and preserve identity for people and products.

  • Realistic Textures and Refined Aesthetics — Improved typography, portrait lighting, and fine details for more visually compelling results.

For more details, see the GitHub repo and Blog.

Quick Start

Installation

pip install torch>=2.4.0
pip install transformers>=5.17
pip install git+https://github.com/huggingface/diffusers
pip install accelerate pillow

Text-to-Image

import torch
from diffusers import QwenImage21Pipeline

pipe = QwenImage21Pipeline.from_pretrained(
    "Qwen/Qwen-Image-2.1", torch_dtype=torch.bfloat16
).to("cuda")

image = pipe(
    prompt="A neon shop sign that reads \"QWEN IMAGE 2.1\", rainy night, reflections on wet pavement",
    width=2048, height=2048,
    num_inference_steps=40,
    generator=torch.Generator("cuda").manual_seed(42),
).images[0]

image.save("t2i_example.png")

Image Editing

import torch
from PIL import Image
from diffusers import QwenImage21Pipeline

pipe = QwenImage21Pipeline.from_pretrained(
    "Qwen/Qwen-Image-2.1", torch_dtype=torch.bfloat16
).to("cuda")

input_image = Image.open("input.png")

image = pipe(
    prompt="Change the background to a sunset beach",
    image=input_image,
    num_inference_steps=40,
    generator=torch.Generator("cuda").manual_seed(42),
).images[0]

image.save("edit_example.png")

Transparent Image Generation (RGBA)

Use the recommended prompt format for transparent images:

image = pipe(
    prompt="This is an RGBA image with transparency. A cute cartoon dragon sticker. The image has alpha channel and the background is transparent.",
    width=2048, height=2048,
    num_inference_steps=40,
    generator=torch.Generator("cuda").manual_seed(42),
).images[0]

image.save("transparent_example.png")

Supported Aspect Ratios

aspect_ratios = {
    "1:1":  (2048, 2048),
    "4:3":  (2400, 1792),
    "3:4":  (1792, 2400),
    "3:2":  (2528, 1696),
    "2:3":  (1696, 2528),
    "16:9": (2752, 1536),
    "9:16": (1536, 2752),
}

Memory Optimization

pipe = QwenImage21Pipeline.from_pretrained(
    "Qwen/Qwen-Image-2.1", torch_dtype=torch.bfloat16
)
pipe.enable_model_cpu_offload()

Showcase

Native transparent image generation

Group photograph generated from six portrait references

Text rendering

License

This model is licensed under the Qwen Research License Agreement.

Feedback

Having issues with Qwen-Image-2.1? Our official feedback form connects you directly with the Qwen Image research team. Share your prompts, images, or workflows to help us investigate and improve.

Submit Feedback →

Derived on Sep 30, 2026 from Hugging Face at revision d26bb612, README.md .