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

# PhotoMaker编码（PhotoMakerEncode）

<div class="node-meta"><code>PhotoMakerEncode</code><span>model/conditioning/photomaker</span><span>角色：条件编码</span><span class="star">★ 常用节点</span></div>

PhotoMakerEncode 节点将参考图像与文本提示词相结合，为图像生成创建条件数据。当文本包含单词 "photomaker" 时，该节点使用 PhotoMaker 模型将参考图像的视觉身份插入到提示词中该位置处的条件数据中。

## 参数

| 参数           | 类型           | 默认 / 范围 | 说明                                  |
| ------------ | ------------ | ------- | ----------------------------------- |
| `photomaker` | PHOTOMAKER   | —（连线输入） | 用于处理参考图像并生成基于图像的嵌入向量的 PhotoMaker 模型 |
| `image`      | IMAGE · 图像   | —（连线输入） | RGB 图像输入；尺寸不一致会被缩放或裁切。              |
| `clip`       | CLIP · 文本编码器 | —（连线输入） | 用于文本分词和文本编码的 CLIP 模型                |
| `text`       | STRING       | 多行文本    | 要叠加的文字内容。                           |

## 输出

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

## 怎么接

- **上游**：CLIP / CLIP_VISION / 编码模型
- **下游**：KSampler.positive / negative
- **接线**：把 CLIP（或视觉/音频编码器）接到本节点，输出的 CONDITIONING 接 KSampler 的 `positive` 或 `negative`；条件在采样器之前还可以继续用条件修饰节点加工。

## 使用案例

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

## 端口与连线示意

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