Image to Image
image_to_imageTransform an existing image by describing desired changes. Adjust the strength parameter to control how much the image is altered.
Instructions
Transform an existing image based on a text prompt. The strength parameter controls how much the image changes (0.0 = minimal change, 1.0 = maximum change). Provide the image as a URL or base64-encoded string.
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": "<image>",
"prompt": "<prompt>",
"strength": "<strength>"
},
"name": "image_to_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | Number of output images (1-6). | |
| image | Yes | Source image as a URL or base64-encoded string. Max 5MB, <16MP, max 4096px per side. | |
| model | No | Model to use. | |
| style | No | Style category. Not supported for V4 models. | |
| prompt | Yes | Description of desired changes to the image. | |
| strength | Yes | Change magnitude from 0.0 (minimal) to 1.0 (maximum). | |
| style_id | No | Custom style ID. | |
| substyle | No | Substyle to refine the style. | |
| random_seed | No | Seed for reproducibility. | |
| image_format | No | Output format. | |
| negative_prompt | No | What to avoid. |