Edit a photo
edit_imageChange a photo with words: new style, new outfit, new background, add or remove things. Charged in USD to your PopNow balance; the tool quotes the price.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"prompt": "<prompt>"
},
"name": "edit_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | No | ChatGPT only: the photo the user attached. Use image_url everywhere else. | |
| model | No | Optional PopNow model id (see list_models). Leave empty for the default, Nano Banana 2.1. | |
| prompt | Yes | What to change, in plain words, for example: make it a watercolor painting, or put her in a red jacket. | |
| 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 photo to edit: a public https link, or a popnow:// link from an earlier result. | |
| aspect_ratio | No | Optional new shape, for example 1:1, 16:9, 9:16. Default keeps the original shape. | |
| more_image_urls | No | Optional extra reference photos (https or popnow:// links), for example a product to put in the scene. |