Image-to-Image
AI-generatedSummary
Generate a new image based on an input image and a text prompt using the Qwen image-to-image model from Kie.ai.
Inputs
- Prompt (required) — Text description guiding the image generation.
- Image URL (required) — URL of the base image to transform.
- Aspect Ratio — Desired aspect ratio of the output image (options: 1:1, 16:9, 9:16).
- Model — Selects which Qwen image-to-image model version to use (e.g., Qwen Image 2.0 recommended).
- Negative Prompt — Specifies elements to avoid in the generated image.
- Seed — Random seed for image generation (0 for a random seed).
- Reply URL — Webhook URL to notify when the image generation task completes.
- Reply Ref — Custom reference string sent back in the webhook callback.
- Wait for Completion — Whether to wait and poll for task completion before returning (3 seconds interval, 5 minutes timeout).
Output shape
a JSON array with one entry per input item containing the API response for each image-to-image request
If 'Wait for Completion' is enabled, the node polls the Kie.ai API until the image generation task completes or times out, returning the final task status with result URLs if successful. Otherwise, it returns the immediate creation response containing a task ID. On failure, the node throws unless 'Continue On Fail' is enabled. Webhook URL and reference can be used for asynchronous task status updates.
Examples
Example 1: Basic Usage
Provide a descriptive prompt and an image URL, select the model and aspect ratio, optionally set a seed, and enable 'Wait for Completion' to obtain the generated image URLs directly after processing.