Change one thing in a video
edit_video_regionChange one thing in an existing video and keep the rest as it was: recolor something to an exact color, remove, replace or add an object, swap the background, or change the lighting, weather or style. Name the thing in target. 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
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": {
"video_url": "<video_url>",
"instruction": "<instruction>"
},
"name": "edit_video_region"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | What kind of change: auto (default, decide from the instruction), recolor, remove, replace, add, background (keep the subject, change everything around it), relight, weather or style. | |
| model | No | Optional model that can edit videos or swap objects in them (list_models with category video shows them). Leave empty to let PopNow pick one for the kind of change. | |
| target | No | Optional: the thing to change, in a few words as it looks in the clip, for example: the coat, the car on the left. For background, the subject to keep. | |
| 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. | |
| color_hex | No | Optional exact color as #RRGGBB, for example #C8553D. Used with recolor. | |
| video_url | Yes | The clip to change (3 to 10 seconds works best): a popnow:// link from an earlier result, or a public https link. | |
| resolution | No | Optional output resolution the model offers, for example 480p, 720p or 768p (list_models with the model shows them). Leave empty for the default. Higher costs more. | |
| instruction | Yes | The one change to make, in plain words, for example: make the coat burnt orange, remove the cyclist, put a red umbrella in her hand, turn it into a snowy evening. | |
| reference_image_urls | No | Optional pictures (https or popnow:// links) of the new look, object or place, up to 4. |