Skip to main content

Wan Image to Image

api node/image/Wan
WanImageToImageApi

Generates an image from one or two input images and a text prompt. The output image is currently fixed at 1.6 MP, and its aspect ratio matches the input image(s).

Example

JSON Example
{
  "class_type": "WanImageToImageApi",
  "inputs": {
    "model": "wan2.5-i2i-preview",
    "image": [
      "node_id",
      0
    ],
    "prompt": ""
  }
}

This example shows required inputs only. Connection values like ["node_id", 0] should reference actual node IDs from your workflow.

Inputs

NameTypeStatusConstraintsDefault
model?COMBOrequired-"wan2.5-i2i-preview"
image?IMAGErequired--
prompt?STRINGrequired-""
negative_prompt?STRINGoptional-""
seed?INToptionalmin: 0, max: 2147483647, step: 10
watermark?BOOLEANoptional-true

Outputs

IndexNameTypeIs ListConnection Reference
0IMAGEIMAGENo["{node_id}", 0]
How to connect to these outputs

To connect another node's input to an output from this node, use the connection reference format:

["node_id", output_index]

Where node_id is the ID of this WanImageToImageApi node in your workflow, and output_index is the index from the table above.

Example

If this node has ID "5" in your workflow:

  • IMAGE (IMAGE): ["5", 0]
Was this page helpful?