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, gif.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.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-text-to-image",
"callBackUrl": "https://your-domain.com/api/callback",
"input": {
"prompt": "A sunlit ceramic studio shelf lined with hand-thrown mugs in muted terracotta and sage glazes, soft morning light through a side window, shallow depth of field, clean editorial product photography, with a small paper tag on the middle shelf that reads \"BATCH 07\".",
"aspect_ratio": "auto",
"resolution": "1K",
"background": "auto",
"output_format": "png"
}
}'{
"code": 200,
"msg": "success",
"data": {
"taskId": "7a1c3e9b52d84f60a3b1c2d4e5f60718"
}
}