edit_image
Edit images by creating a Nano Banana task on RunAPI with source image URLs and an optional prompt. Returns task ID, status, and output URLs.
Instructions
Create a Nano Banana task on RunAPI (edit image). Returns a task id, status, and output URLs.
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": {
"source_image_urls": "<source_image_urls>"
},
"name": "edit_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | Poll until the task reaches a terminal status. | |
| model | No | RunAPI model slug for this model line. | |
| prompt | No | Declared type: string. | |
| timeout_ms | No | ||
| aspect_ratio | No | Declared type: string. Known values: "1:1", "1:4", "1:8", "2:3", "3:2", "3:4", "4:1", "4:3", "4:5", "5:4", "8:1", "9:16", "16:9", "21:9", "auto". | |
| callback_url | No | Declared type: string. | |
| output_format | No | Declared type: string. Known values: "png", "jpeg". | |
| poll_interval_ms | No | ||
| source_image_urls | Yes | Declared type: array. |