Qwen (Kie.ai) icon

Qwen (Kie.ai)

Generate images using Qwen via Kie.ai API

Image Edit

AI-generated

Summary

Edit an existing image by providing a prompt, source image URL, and an optional mask URL to apply targeted changes using a selected Qwen image editing model.

Inputs

  • Model — Select which Qwen image editing model to use ('Qwen Image Edit' or 'Qwen 2 Image Edit'). Defaults to 'Qwen Image Edit'.
  • Prompt (required) — Describe the edits or modifications to apply to the image.
  • Image URL (required) — URL of the image to be edited.
  • Mask URL — Optional URL to a mask image to specify areas of the source image to edit selectively.
  • Reply URL — Webhook URL to notify when the editing task completes.
  • Reply Ref — Custom reference string sent back in the webhook callback for tracking.
  • Wait for Completion — Choose whether to wait synchronously for the editing task to complete (polling every 3 seconds, with a 5-minute timeout) or return immediately.

Output shape

a list of JSON objects representing the API responses for each edited image request

If 'Wait for Completion' is enabled, the output contains the final completed result (including edited image URLs); otherwise, it contains the task creation response. Errors may be included per item when 'Continue On Fail' is enabled.

Examples

Example 1: Edit a photo by specifying a text prompt and image URL with optional partial masking.

Set 'Model' to the preferred editing model (default 'Qwen Image Edit'), provide the 'Prompt', and 'Image URL'. Optionally give a 'Mask URL' to constrain edits. Optionally, set 'Reply URL' and 'Reply Ref' to handle asynchronous completion callbacks. Choose whether to wait for the task to finish or proceed immediately.

Links

Discussion