> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-docs-recommend-assets-api.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# WanImageToImageApi - ComfyUI Built-in Node Documentation

> Complete documentation for the WanImageToImageApi node in ComfyUI. Learn its inputs, outputs, parameters and usage.

> 本文档由 AI 生成。如果您发现任何错误或有改进建议，欢迎贡献！ [在 GitHub 上编辑](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/WanImageToImageApi/zh.md)

## 概述

Wan Image to Image 节点能够基于一张或两张输入图像以及文本提示生成新图像。它会根据您提供的描述对输入图像进行转换，创建出保持原始输入图像宽高比的新图像。无论输入尺寸如何，输出图像都固定为160万像素。

## 输入

| 参数                | 数据类型    | 必需 | 取值范围                 | 描述                              |
| ----------------- | ------- | -- | -------------------- | ------------------------------- |
| `model`           | COMBO   | 是  | "wan2.5-i2i-preview" | 使用的模型（默认："wan2.5-i2i-preview"）。 |
| `image`           | IMAGE   | 是  | -                    | 单图编辑或多图融合，最多支持2张图像。             |
| `prompt`          | STRING  | 是  | -                    | 用于描述元素和视觉特征的提示词，支持英文/中文（默认：空）。  |
| `negative_prompt` | STRING  | 否  | -                    | 负面文本提示词，用于指导避免生成的内容（默认：空）。      |
| `seed`            | INT     | 否  | 0 到 2147483647       | 生成时使用的随机种子（默认：0）。               |
| `watermark`       | BOOLEAN | 否  | -                    | 是否在结果中添加"AI生成"水印（默认：true）。      |

**注意：** 此节点仅接受恰好1张或2张输入图像。如果提供超过2张图像或未提供任何图像，节点将返回错误。

## 输出

| 输出名称    | 数据类型  | 描述                |
| ------- | ----- | ----------------- |
| `image` | IMAGE | 基于输入图像和文本提示生成的图像。 |
