Skip to content

Image To Image

Overview

The Image To Image node transforms an input image by applying a style transfer, inpainting, or prompt-guided diffusion pass, producing a modified image as output. Use it to restyle contender outputs, fill masked regions, or apply visual transformations within a battle workflow. The node requires a valid image input (URL or base64) and a text prompt describing the desired transformation; an API credential for the underlying image model must be configured. On failure, execution routes to the error output port with a structured error payload.

Configuration

FieldTypeRequiredDescription
modelenumYesThe image generation model to use for the transformation (e.g. stable-diffusion-xl, dall-e-3, flux-dev).
promptstringYesText prompt describing the desired output image or transformation style.
negative_promptstringNoText describing features to suppress or avoid in the output image.
strengthnumberNoHow strongly the prompt overrides the input image. Range 0.0–1.0; lower values preserve more of the original (default: 0.75).
mask_image_keystringNoWorkflow data key for a binary mask image used in inpainting mode. When provided, only the masked region is transformed.
stepsnumberNoNumber of diffusion steps. Higher values improve quality at the cost of latency (default: 30).
credential_idstringYesID of the stored API credential for the selected image model provider.

Inputs

PortTypeDescription
imagestringSource image to transform, as a URL or base64-encoded data URI.
maskstringOptional binary mask image (URL or base64) defining the inpainting region. Overrides mask_image_key in config when present.
prompt_overridestringOptional runtime prompt that overrides the static prompt set in config.

Outputs

PortTypeDescription
outputstringThe transformed image as a base64-encoded data URI or URL, depending on provider response format.
metadataobjectProvider response metadata including model used, seed, steps, and finish reason.
errorobjectStructured error payload emitted when the transformation fails (e.g. invalid image, credential error, timeout). Contains code and message fields.

Example

json
{
  "nodeType": "image_to_image",
  "config": {
    "model": "stable-diffusion-xl",
    "prompt": "oil painting style, warm golden tones, impressionist brushwork",
    "strength": 0.6,
    "steps": 30,
    "credential_id": "cred_sdxl_prod_01"
  }
}