Qwen
Blog

Qwen

Qwen Team
2026.09.21
·Web·by igor
#AI Model#Image Editing#Image Generation#Open Source#Qwen

Key Points

  • 1Qwen-Image-2.1 is a compact 7B-parameter model that unifies text-to-image generation and image editing within a single, efficient architecture.
  • 2The model natively supports the creation and editing of transparent (RGBA) images, allowing for precise subject extraction and multi-layer composition.
  • 3With support for up to 10 reference images and flexible local editing techniques, the model excels at maintaining high fidelity for portraits and products across diverse creative tasks.

Qwen-Image-2.1 is an open-source, unified visual generation and editing model characterized by a compact 7B parameter architecture. It utilizes a DiT (Diffusion Transformer) backbone consisting of 32 Single-Stream DiT layers, engineered to balance high-quality image synthesis with computational efficiency.

Core Methodology and Architectural Efficiency

The model achieves performance parity with larger counterparts through a specialized mixed-granularity attention architecture designed to optimize inference speed, particularly during complex multi-image editing tasks. This architecture distinguishes between two types of data streams:
  • Token-level Causal Mask: Applied to text-based inputs, including system prefixes and user-defined editing instructions, to maintain temporal/logical dependency.
  • Chunk-level Mask: Applied to image generation processes to facilitate efficient latent space transformations.

To minimize latency and memory overhead, the model employs KV cache reuse. Input reference images and editing prompts are computed during an initial step and cached as static context. This prevents redundant re-computation of the base scene during iterative editing cycles, significantly enhancing throughput.

Unified Creation and Editing Capabilities

Qwen-Image-2.1 integrates standard image generation with native transparency support (RGBA output). By processing prompts that specify output requirements, the model can generate standalone subjects with transparent backgrounds or perform targeted edits on transparent layers. This includes the ability to extract subjects from existing RGB photos and convert them into transparent layers for modular design workflows.

Advanced Editing and Fidelity

The model offers a highly versatile editing pipeline:
  • Multi-Reference Integration: It supports up to 10 simultaneous reference images, enabling coherent compositions for complex tasks like group portrait assembly, virtual try-on (incorporating model, clothing, and accessories), and interior design.
  • Local Editing Constraints: The model provides flexible region selection via circles, hand-painted annotations, or explicit mask inputs. This allows for precise modifications (e.g., in-painting or style transfer) while ensuring the surrounding context remains preserved.
  • Fidelity Optimization: Specifically tuned to maintain identity consistency for human portraits and structural/textual integrity for product photography, ensuring that defining features persist through transformation tasks.

Expanded Application Domains

Beyond traditional image manipulation, the model is capable of generating panoramic views from single source images, creating information-rich infographics from product photography, and synthesizing complete storyboards from character design sheets. These tasks are supported by aesthetic improvements in typography and portrait lighting, achieved through refined training on complex layouts and fine-grained visual details.