inpaint
Remove or replace objects in images using AI inpainting to edit visual content by specifying what to change with text prompts.
Instructions
Remove or replace objects in an image using AI inpainting. Cost: $0.15. Requires Tier 1+.
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": {
"media_url": "<media_url>",
"prompt": "<prompt>"
},
"name": "inpaint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| media_url | Yes | URL of the image to edit | |
| prompt | Yes | What to remove, replace, or change in the image | |
| mask_url | No | Optional mask image URL (white = edit area, black = keep) |