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.output_format defaults to png. Passing jpg is treated as jpeg. Supported: png, jpeg, webp.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/sunburst-image-to-image",
"callBackUrl": "https://your-domain.com/api/callback",
"input": {
"prompt": "Keep the brass compass, its position, the engraving details and the camera angle unchanged. Replace the nautical map underneath with an antique star chart, and add soft blue ambient light coming from the upper left.",
"input_urls": [
"https://example.com/your-image.png"
],
"aspect_ratio": "auto",
"resolution": "1K",
"background": "auto",
"output_format": "png"
}
}'{
"code": 200,
"msg": "success",
"data": {
"taskId": "c5d6e7f8091a2b3c4d5e6f708192a3b4"
}
}