Split an image into layers
split_into_layersSplit a flat image (PNG, JPG or WebP, at least 512 × 512 px) into named transparent layers, with the hidden parts behind objects filled in. Costs 1 credit per layer returned (up to 17 by default, or up to 100 when prompt lists or asks for more parts); 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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "split_into_layers"
}
}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 (up to 17 layers), or list/ask for more parts to allow up to 100 layers. | |
| 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. |