transform_image
Apply AI-powered transformations to images using prompts and optional control methods. Accepts file paths, URLs, or base64, including masks for inpainting.
Instructions
Transform existing images using AI with various control methods. Accepts file paths directly (e.g. C:\photo.jpg), URLs, or base64. File paths are automatically processed without displaying the base64 string.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mask | No | Mask image for inpainting (base64 or URL) | |
| seed | No | Seed for reproducible generation | |
| image | Yes | Input image as: file path (e.g. C:\photo.jpg or /home/user/image.png), URL, base64 string, or image cache ID. File paths are automatically handled without displaying base64. | |
| model | No | Model ID to use for transformation | |
| prompt | Yes | Transformation prompt describing desired changes | |
| strength | No | Transformation strength (0=no change, 1=complete change) | |
| control_type | No | ControlNet type | |
| display_mode | No | How to return the image: display (show image), save (return base64 for saving), both (show image and provide base64) | display |
| negative_prompt | No | What to avoid in the transformation |