Erase something from a photo
erase_objectRemove an object or person from a photo and fill the gap naturally. 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": "erase_object"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | No | ChatGPT only: the photo the user attached. Use image_url everywhere else. | |
| prompt | No | What to remove, in plain words, for example: the man in the background, the power lines. | |
| 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. | |
| mask_url | No | Optional black-and-white mask (https or popnow:// link): white marks what to remove. Use it instead of, or together with, prompt. | |
| image_url | No | The photo to clean up (https or popnow:// link). |