Instructions to use Qwen/Qwen-Image-2.1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Qwen/Qwen-Image-2.1 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Qwen/Qwen-Image-2.1", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Qwen Image 2.1 Edit: 8 Real-World Image Editing Stress Tests in ComfyUI
Identity preservation + relighting
Prompt
Edit the input image from a rainy Tokyo night into a cold snowy Tokyo morning. Preserve the woman's facial identity, expression, pose, hairstyle, clothing, body proportions, camera position, framing and depth of field. Replace the nighttime neon illumination with soft natural morning daylight. Snow is falling outside the café window and snow has accumulated on visible outdoor surfaces. Update the window reflections and lighting on the woman naturally for the new environment. Do not otherwise alter the subject.
Input Image
Output Image
Material/color editing + product fidelity
Prompt
Change only the headphones from matte black to glossy pearl white ceramic with subtle metallic silver accents. Preserve the exact headphone design, geometry, proportions, ear-cup shape, headband, orientation and floating position. Keep the aluminum pedestal, background, composition, shadows and camera angle unchanged. Update only the reflections and highlights necessary for the new glossy material.
Input Image
Output Image
Full article with all the Prompt, Input and Output images at: https://blog.hexgrid.cloud/qwen-image-2-1-edit-8-real-world-image-editing-stress-tests-in-comfyui
Generation Details:
Task: Edit Image
Model: Qwen Image 2.1
Engine: ComfyUI Workflow
GPU: RTX A6000
Generation latency: ~45 seconds per Image
Infrastructure: One-click workflow for Qwen-Image 2.1 at HexGrid Cloud



