> For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.

# 参考Latent（ReferenceLatent）

<div class="node-meta"><code>ReferenceLatent</code><span>model/conditioning</span><span>角色：条件修饰</span><span class="star">★ 常用节点</span></div>

此节点为编辑模型设置引导 latent。它接收 conditioning 数据和可选的 latent 输入，然后修改 conditioning 以包含参考 latent 信息。如果模型支持，你可以串联多个 Set Reference Latent 节点来设置多个参考图像。

- - 参考 latent 以样本张量列表的形式存储，因此按顺序连接多个 Set Reference Latent 节点会追加额外参考，而不是替换前一个参考。
- - 当没有连接 `latent` 时，节点会将传入的 `conditioning` 原样传递，不做更改。

## 参数

| 参数             | 类型                | 默认 / 范围 | 说明                                                |
| -------------- | ----------------- | ------- | ------------------------------------------------- |
| `conditioning` | CONDITIONING · 条件 | —（连线输入） | 文本/图像编码后的条件张量。                                    |
| `latent`（选填）   | LATENT · 潜空间      | —（连线输入） | 可选的 latent 数据，用作编辑模型的参考。如果未提供，则 conditioning 原样返回 |

## 输出

| 输出           | 类型           | 说明 |
| ------------ | ------------ | -- |
| CONDITIONING | CONDITIONING | 条件 |

## 怎么接

- **上游**：CLIPTextEncode / 条件节点
- **下游**：KSampler.positive / negative
- **接线**：上游接 CLIPTextEncode 出来的条件，输出继续接 KSampler 的 `positive`/`negative`；多个条件修饰可以串联，后面的会覆盖或叠加前面的区域/强度设置。

## 使用案例

属于「条件修饰」类节点，向下游提供条件，最终进采样器的 positive 或 negative。从 `conditioning` 开始填就能跑起来。典型接法：`CLIPTextEncode` → 本节点 → `KSampler.positive`。输出类型是 CONDITIONING，只能接同类型的输入端口，颜色对不上就是接错了。

## 端口与连线示意

![ReferenceLatent 端口与连线示意](/svg/ReferenceLatent.svg)

## 同类节点

[ClipSetLastLayer](/nodes/03/CLIPSetLastLayer.md) · [ClipTextEncode](/nodes/03/CLIPTextEncode.md) · [CLIP视觉编码](/nodes/03/CLIPVisionEncode.md) · [内补模型条件](/nodes/03/InpaintModelConditioning.md) · [应用风格模型](/nodes/03/StyleModelApply.md) · [音频编码器编码](/nodes/03/AudioEncoderEncode.md) · [CLIP文本编码(ControlNet)](/nodes/03/CLIPTextEncodeControlnet.md) · [规格化视频Latent](/nodes/03/NormalizeVideoLatentStart.md) · [PiD 条件处理](/nodes/03/PiDConditioning.md) · [多参考潜空间](/nodes/03/ReferenceMultiLatent.md) · [ReferenceTimbreAudio](/nodes/03/ReferenceTimbreAudio.md) · [保存条件](/nodes/03/SaveConditioning.md)
