resolution sets the output size tier: 1K, 2K or 4K. Higher tiers take longer and use more credits.background only applies at 1K. Leave it out at 2K and 4K.aspect_ratio defaults to auto. Supported: auto, 1:1, 3:2, 2:3, 4:3, 3:4, 5:4, 4:5, 16:9, 9:16, 2:1, 1:2, 21:9, 9:21, 3:1, 1:3.input_urls and refer to them by order in the prompt (for example, "the product from image 1 on the background from image 2").callBackUrl parameter so your service can receive completion notifications instead of polling for task status.curl --location 'https://api.kie.ai/api/v1/jobs/createTask' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "gpt-image-2-6/flare-image-to-image",
"callBackUrl": "https://your-domain.com/api/callback",
"input": {
"prompt": "Keep the shelf, the mug shapes, the window light and the camera angle unchanged. Change the glaze of every mug to matte black, and add a small chalkboard sign on the top shelf that reads \"FRESH ROAST\" in white chalk lettering.",
"input_urls": [
"https://example.com/your-image.png"
],
"aspect_ratio": "auto",
"resolution": "1K",
"background": "auto",
"output_format": "png"
}
}'{
"code": 200,
"msg": "success",
"data": {
"taskId": "3f2b8c61d0e94a7b8c5d6e7f80912a3b"
}
}