Translate Image Text
sirv_translate_image_textTranslate visible text in an image into another language while preserving layout and style. Use for packaging, banners, and infographics; returns a translated image URL.
Instructions
Translate the visible text in one image into another language. The layout, type style and the rest of the image stay the same.
Use it for packaging, banners and infographics. Do not use it for plain text that is not in an image: translate that yourself. For other changes to the image, use sirv_edit_image.
Inputs: image_url and target_language (a code or a name, such as es or Spanish) are required. source_language is optional. model defaults to nano-banana-lite-edit.
The source image does not change. Returns result_url, the translated image.
Credits: spends workspace credits. The cost depends on the model and options.
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_url": "<image_url>",
"target_language": "<target_language>"
},
"name": "sirv_translate_image_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Translation model. Default: nano-banana-lite-edit | nano-banana-lite-edit |
| image_url | Yes | Public URL of the image whose text to translate | |
| source_language | No | Language of the text in the image now, as a code or a name. Optional | |
| target_language | Yes | Language to translate into, as a code or a name, such as es or Spanish |