> ## Documentation Index
> Fetch the complete documentation index at: https://docs.comfy.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Pikaswaps - ComfyUI Built-in Node Documentation

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

Pika Swaps 节点可将视频中的物体或区域替换为新图像。您可以使用遮罩定义需要替换的区域，该节点会在整个视频序列中无缝替换指定内容。

## 输入

| 参数                | 说明                 | 数据类型   | 是否必填 | 范围             |
| ----------------- | ------------------ | ------ | ---- | -------------- |
| `video`           | 需要替换其中物体的视频。       | VIDEO  | 是    | -              |
| `image`           | 用于替换视频中遮罩物体的图像。    | IMAGE  | 是    | -              |
| `mask`            | 使用遮罩定义视频中需要替换的区域。  | MASK   | 是    | -              |
| `prompt_text`     | 描述所需替换效果的文本提示。     | STRING | 是    | -              |
| `negative_prompt` | 描述替换过程中需避免内容的文本提示。 | STRING | 是    | -              |
| `seed`            | 用于生成一致结果的随机种子值。    | INT    | 是    | 0 到 4294967295 |

**注意：** 此节点需要提供所有输入参数。`video`、`image` 和 `mask` 共同定义替换操作，其中遮罩指定视频中哪些区域将被提供的图像替换。

## 输出

| 输出名称     | 说明                      | 数据类型  |
| -------- | ----------------------- | ----- |
| `output` | 已处理完成的视频，其中指定物体或区域已被替换。 | VIDEO |

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

***

**Source fingerprint (SHA-256):** `007b7bc429fdada2fb8910392b056ae3a98d482cce9e280bdcd162ede497eb03`
