Change the text in an image
replace_textChange or remove text in a photo or screenshot and keep the same font, colour and background. Give each line to change as { from, to }: "from" is the text as it appears in the image, "to" the new text (empty to remove it). Up to 20 lines per image; 1 credit per image. The image is scanned first; if a "from" is not found, nothing is charged and the error lists the lines that were read. IDs, certificates, receipts, invoices and bank documents are refused. Edits usually take about a minute; waits up to 50 seconds, and if still editing, call get_edit with wait_seconds 30.
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": {
"replacements": "<replacements>"
},
"name": "replace_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hint | No | Optional: where the text is when it appears more than once, e.g. "the line at the bottom". | |
| locale | No | Language of the person asking (for our statistics only). Default en. | |
| image_url | No | Public https URL of the image (PNG or JPG). | |
| image_base64 | No | The image as base64, with or without a data: prefix. Use when there is no URL. | |
| replacements | Yes | ||
| wait_seconds | No | How long to wait for the result before returning, 0 to 50 seconds. |