Skip to content

Qwen-Image 2.1

Qwen-Image 2.1 makes an image from a prompt. To edit from reference images, use qwen_image_21_edit. Qwen Research License: non-commercial use only.

Workflow id: qwen_image_21 · Text → Image

Calling it

POST /api/image/generate
{
  "workflow": "qwen_image_21",
  "prompt": "..."
}

Params

Every input this workflow takes. Your install is the source of truth:GET /api/workflows/qwen_image_21 returns these as they are on your machine.

  • prompt · str · required
    Describe the picture. Put any text that should appear in the image in quotes.
  • negative_prompt · str · optional
    Only read when cfg is above 1.
  • width · int · default 1024
    Multiples of 32. Qwen's listed sizes run from 2048x2048 at 1:1 to 2752x1536 at 16:9.
  • height · int · default 1024
    Multiples of 32.
  • seed · int · optional
    Optional. Leave it out and every run is a new random take. Send a seed only to remake an image exactly: the seed a job used is in its record.
  • steps · int · default 25
    ComfyUI's template runs 25; Qwen's own examples run 40.
  • cfg · float · default 1
    Keep at 1 for the official path. Raise it only to use a negative prompt.
  • sampler · str · default euler
  • scheduler · str · default simple
  • unet · str · default qwen_image_2.1_int8_convrot.safetensors
  • clip · str · default qwen3vl_8b_int8_convrot.safetensors
    Text encoder file on the node. The default is the int8 build; qwen3vl_8b_w4a8.safetensors (6.31 GB) is a smaller one from the same repo for nodes short on system RAM.
  • vae · str · default qwen_image_2.1_vae_bf16.safetensors