edit_image
Edit images by providing text instructions describing desired changes. Supports multiple images and customizable models.
Instructions
Edit one or more images with text instructions using Pruna AI.
Args: prompt: Edit instruction describing the desired changes images: 1-5 image URLs or local file paths model: Model to use (default: p-image-edit) aspect_ratio: Output aspect ratio seed: Random seed for reproducible generation
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": {
"prompt": "<prompt>",
"images": "<images>"
},
"name": "edit_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | ||
| model | No | p-image-edit | |
| images | Yes | ||
| prompt | Yes | ||
| aspect_ratio | No | match_input_image |