aspect_ratio supports auto, 1:1, 16:9, 9:16, 3:2, 2:3, 21:9, 4:3.output_format supports png only (default).background: transparent, opaque or auto (default auto). Transparent background requires output_format: "png".1K fixed; resolution is not exposed, and n > 1 is not supported).input_urls and refer to them by order in the prompt (for example, "the product from image 1 on the background from image 2").GET /api/v1/client/tasks/{taskId}callBackUrl parameter so your service can receive completion notifications instead of polling for task status.curl --location 'https://api.emix.ai/api/v1/client/tasks' \
--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"
}
}'{
"code": 200,
"msg": "success",
"data": {
"taskId": "task_gptimage_1765180586443"
}
}