aspect_ratio supports auto, 1:1, 16:9, 9:16, 3:2, 2:3, 21:9, 4:3.output_format supports png (default).background: transparent, opaque or auto (default auto).input_urls and refer to them by order in the prompt (for example, "the product from image 1 on the background from image 2").frame_count supports auto (default), 4, 9, 16, 25, 36, 64.frame_duration_ms: auto (default), or any integer from 20 to 2000 rounded to a multiple of 10 ms.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/economy-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",
"background": "auto",
"output_format": "png",
"frame_count": "auto",
"frame_duration_ms": "auto"
}
}'{
"code": 200,
"msg": "success",
"data": {
"taskId": "7a1c3e9b52d84f60a3b1c2d4e5f60718"
}
}