edit_image
Modify images using natural language instructions. Upload an image and describe changes to edit or iterate on visual content.
Instructions
Edit an existing image using natural language instructions (FLUX Kontext).
Pass a reference image and describe the changes you want in the prompt. Great for iterating on generated images.
Args: image_url: URL of the image to edit. prompt: Description of the desired changes.
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>",
"image_url": "<image_url>"
},
"name": "edit_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | ||
| image_url | Yes | ||
| model | No | fal-ai/flux-pro/kontext | |
| seed | No | ||
| output_format | No | png | |
| filename | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||