Image-to-Image
AI-generatedSummary
Transform an input image into a new image guided by a text prompt using the Seedream 5.0 Lite model via the Kie.ai API.
Inputs
- Model — Select the Seedream model for image-to-image transformation; defaults to 'Seedream 5.0 Lite'.
- Prompt (required) — Text prompt describing the desired transformation applied to the input image.
- Image URL (required) — URL of the input image to be transformed.
- Seed — Number seed for generation randomness; set to 0 to use a random seed.
- Reply URL — Webhook URL to be called when the generation task completes.
- Reply Ref — Custom reference string sent back as part of the webhook callback.
- Wait for Completion — Whether to wait and poll until the generation task completes before returning, with a 5-minute timeout (default true).
Output shape
a single JSON object representing the API response, including task details and generated image URLs
If 'Wait for Completion' is enabled, the operation polls the task status every 3 seconds up to 5 minutes until completion. Otherwise, it returns immediately with the task creation response containing the taskId. The response data includes parsed result URLs for easy access.
Examples
Example 1: Image-to-Image transformation with waiting
Set the 'Prompt' describing the desired output, provide an 'Image URL' for the input image, optionally set 'Seed' or webhook parameters, and enable 'Wait for Completion' to receive the final transformed image data directly.