Split a picture into layers
split_layersSeparate a finished picture into editable layers (text, people, objects, background) as transparent PNGs. Charged in USD to your PopNow balance. Call it without max_usd for a quote, then again with max_usd after the user approves.
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_layers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | No | ChatGPT only: the picture the user attached. Use image_url everywhere else. | |
| model | No | Optional model that can split layers (list_models with category image shows them). Leave empty for the default, Seedream 5.0 Pro. | |
| prompt | No | Optional: name the parts to separate, for example the title text, the person, the background. Leave empty to let PopNow decide. | |
| max_usd | No | Approved maximum in USD as a decimal string with up to 9 fractional digits, copied from the quoted cost_usd. Set it only after the user approves; leave it out to get a quote. Nothing is charged without it. | |
| currency | No | Optional. Always USD for this endpoint. | |
| image_url | No | The finished picture to split into layers (https or popnow:// link). |