Split an image into layers
split_into_layersSplit a flat image (PNG, JPG or WebP) into named transparent layers, with the hidden parts behind objects filled in. Costs 1 credit per layer returned (at most 17); the account needs at least 5 credits to start. Pass the image as a public https URL or as base64. Waits up to 50 seconds; if it is still processing, call get_layers later.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | No | Optional: what to separate, in plain words, e.g. "the cat, the sofa and the background". Leave empty to let the model decide. | |
| image_url | No | Public https URL of the image. | |
| image_base64 | No | The image as base64, with or without a data: prefix. Use when there is no URL. | |
| wait_seconds | No | How long to wait for the result before returning, 0 to 50 seconds. |