size tier (auto is billed at the 2K rate). Use max_images to cap the output count. For current prices, see emix.ai/pricing.max_images default = 30): Omitting max_images defaults to 30 and reserves an in-flight balance hold for up to 30 output layers (1 input image + 30 output images, ~190.44 credits at 2K / auto). Pass a smaller max_images (range 2β100, e.g. 5 or 10) when testing with a smaller balance; final billing only charges for the layers actually returned.GET /api/v1/client/tasks/{taskId}callBackUrl parameter to receive automatic notifications when generation completes, rather than polling the status endpoint.curl --location 'https://api.emix.ai/api/v1/client/tasks' \
--header 'Content-Type: application/json' \
--data '{
"model": "seedream/5-5-layer-decomposition",
"callBackUrl": "https://your-domain.com/api/callback",
"input": {
"image_url": "https://static.aiquickdraw.com/tools/example/1786019968051_cKRYLHHu.png",
"prompt": "Separate the title text <bbox>179 58 809 197</bbox> and the parrot <bbox>330 274 641 991</bbox> into independent layers",
"size": "auto",
"output_format": "png",
"max_images": 30,
"text_recognition": false,
"nsfw_checker": false
}
}'{
"code": 200,
"msg": "success",
"data": {
"taskId": "task_seedream_1765172101886"
}
}