Nodes/ComfyUI-KIE-Nodes-Next/Qwen 2.1 - Image to Image
ComfyUI Node

Qwen 2.1 - Image to Image

Qwen 2.1 - Image to Image OpenAPI Specification

By felipederosilva·Created 24 days ago·Updated about 11 hours ago· 0
Qwen 2.1 - Image to Image
  • image_urls
  • image
  • url
  • all_urls_json
  • task_id
  • raw_json
  • credits_consumed
  • credits_left
◄promptReplace the backpack in the first image with the colour scheme from the second image, and leave everything else unchanged►
◄aspect_ratioauto►
◄resolution1K►
◄backgroundopaque►
◄output_formatpng►
◄enhance_prompttrue►
◄seed20260921►
◄mask_urlhttps://example.com/room-mask.png►
◄nsfw_checkerfalse►
◄timeout_seconds1200►
◄callback_url►
CategoryKIE Next/Image/Qwen

Inputs (12)

NameTypeDefaultDescription
image_urlsIMAGE—
promptSTRINGReplace the backpack in the first image with the colour scheme from the second image, and leave everything else unchangedThe prompt describing the result you want. Required. Any language is supported, up to 5000 characters; longer input returns 422. When `mask_url` is supplied, use it to describe what should be generated inside the white area of the mask.
aspect_ratiooptCOMBOautoOutput aspect ratio. Defaults to `auto`, which takes the aspect ratio of the first reference image and snaps it to the nearest supported ratio. The actual pixel size also depends on `resolution` — see the aspect ratio table above. Ignored in local-edit mode.
resolutionoptCOMBO1KOutput resolution tier. `1K` is the faster option; `2K` produces four times the pixels and takes considerably longer, up to about 3 minutes with reference images. Only `1K` and `2K` are accepted — any other value, including `4K`, returns 422.
backgroundoptCOMBOopaqueBackground type. transparent outputs a PNG or WebP with a real alpha channel and cannot be used with JPEG. When using transparent, describe only the subject — prompts that mention a background, scene, surface, etc. may produce a non-transparent result.
output_formatoptCOMBOpngOutput image format. `png` (default) and `webp` both carry an alpha channel and can be used with `background: transparent`. `jpeg` has no alpha channel and cannot be combined with a transparent background.
enhance_promptoptBOOLEANtrueRewrites the prompt into a fuller scene description before generating, which noticeably improves quality. Enabled by default (also when the parameter is omitted); pass false to turn it off.
seedoptINT20260921-2147483648–2147483647The random seed. Omit it to generate with a random seed; the seed actually used is returned with the result. Passing the same seed together with the same prompt and parameters reproduces the same image within the same service version.
mask_urloptSTRINGhttps://example.com/room-mask.pngInpainting mask that switches the request into local-edit mode. A black and white image where **white marks the area to change and black is kept unchanged**, with a few pixels of feathering along the boundary. It must be used with exactly one entry in `image_urls`, otherwise the request returns 422. The mask should have the same aspect ratio as that reference image; a mask of a different size is scaled to it. In local-edit mode the output ratio follows the reference image, so `aspect_ratio` and `enhance_prompt` are ignored and reported in the `ignored` field of the result. It cannot be combined with `background: transparent`, which returns 422.
nsfw_checkeroptBOOLEANfalseDefaults to false. You can set it to false based on your needs. If set to false, our content filtering will be disabled, and all results will be returned directly by the model itself. Note: There is no guarantee that everything can be filtered out; if you are not satisfied with the results, you will need to make your own arrangements.
timeout_secondsoptINT120030–7200—
callback_urloptSTRINGOptional KIE callback URL. Leave empty for normal ComfyUI use.

Outputs (7)

NameTypeDescription
imageIMAGE—
urlSTRING—
all_urls_jsonSTRING—
task_idSTRING—
raw_jsonSTRING—
credits_consumedFLOAT—
credits_leftFLOAT—