ai_replace
Replace a marked area of an image with something described in words. Returns { processedImage }. Cost: 3 credits.
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": {
"image": "<image>",
"replacePrompt": "<replacePrompt>"
},
"name": "ai_replace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | The image with the area to change painted over in semi-transparent red brush strokes (the AirGallery app sends rgba(255, 80, 80, 0.6)), as a base64 data URI or HTTPS URL | |
| replacePrompt | Yes | What should appear in the marked area |