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

# 04 潜空间

潜空间（LATENT）是 1/8 分辨率的压缩画布，采样在这里发生。尺寸、通道数由模型家族决定，混用会直接报错；也正因为是压缩表示，在 latent 上做放大、拼接、遮罩的成本远低于像素空间。

## 本章节点分布

| 分类                                 | 中文名                     | 节点数 |
| ---------------------------------- | ----------------------- | --- |
| `model/latent`                     | 潜空间                     | 19  |
| `model/latent/advanced`            | 潜空间 · 高级运算              | 8   |
| `model/latent/ltxv`                | 潜空间 · LTXV              | 8   |
| `model/latent/batch`               | 潜空间 · 批处理               | 6   |
| `model/latent/advanced/operations` | 潜空间 · 高级运算 · Operations | 5   |
| `model/latent/trellis`             | 潜空间 · TRELLIS           | 4   |
| `model/latent/hunyuan video`       | 潜空间 · 混元视频              | 3   |
| `model/latent/transform`           | 潜空间 · 几何变换              | 3   |
| `model/latent/ace`                 | 潜空间 · ACE-Step          | 2   |
| `model/latent/hunyuan 3d`          | 潜空间 · 混元 3D             | 2   |
| `model/latent/seedvr`              | 潜空间 · SeedVR2           | 2   |
| `model/latent/stable cascade`      | 潜空间 · Stable Cascade    | 2   |
| `model/latent/triposplat`          | 潜空间 · TripoSplat        | 2   |
| `model/latent/void`                | 潜空间 · VOID              | 2   |
| `latent`                           | 潜空间                     | 1   |
| `model/latent/autoregressive`      | 潜空间 · 自回归视频             | 1   |
| `model/latent/chroma radiance`     | 潜空间 · Chroma Radiance   | 1   |
| `model/latent/cosmos`              | 潜空间 · Cosmos            | 1   |
| `model/latent/flux`                | 潜空间 · Flux              | 1   |
| `model/latent/hidream`             | 潜空间 · HiDream           | 1   |
| `model/latent/hunyuan image`       | 潜空间 · 混元图像              | 1   |
| `model/latent/minimax`             | 潜空间 · MiniMax           | 1   |
| `model/latent/minimax music`       | 潜空间 · MiniMax 音乐        | 1   |
| `model/latent/mochi`               | 潜空间 · Mochi             | 1   |
| `model/latent/qwen`                | 潜空间 · Qwen-Image        | 1   |
| `model/latent/stable diffusion`    | 潜空间 · Stable Diffusion  | 1   |
| `model/latent/yue2`                | 潜空间 · YuE2              | 1   |

## 节点清单

### 潜空间

<span class="catpath">`model/latent` · 19 个</span>

| 节点                                                                                        | 角色    | 参数 | 输出              |
| ----------------------------------------------------------------------------------------- | ----- | -- | --------------- |
| [空Latent音频](/nodes/04/EmptyLatentAudio.md)<br/><code>EmptyLatentAudio</code>              | 潜空间创建 | 2  | LATENT          |
| [空Latent图像](/nodes/04/EmptyLatentImage.md) ★<br/><code>EmptyLatentImage</code>            | 潜空间创建 | 3  | LATENT          |
| [获取音频潜空间尺寸](/nodes/04/GetAudioLatentSize.md)<br/><code>GetAudioLatentSize</code>          | 数值读取  | 1  | INT / INT / INT |
| [合成Latent](/nodes/04/LatentComposite.md) ★<br/><code>LatentComposite</code>               | 潜空间处理 | 5  | LATENT          |
| [合成Latent遮罩](/nodes/04/LatentCompositeMasked.md) ★<br/><code>LatentCompositeMasked</code> | 潜空间处理 | 6  | LATENT          |
| [缩放Latent](/nodes/04/LatentUpscale.md) ★<br/><code>LatentUpscale</code>                   | 潜空间处理 | 5  | LATENT          |
| [缩放Latent（比例）](/nodes/04/LatentUpscaleBy.md) ★<br/><code>LatentUpscaleBy</code>           | 潜空间处理 | 3  | LATENT          |
| [加载Latent](/nodes/04/LoadLatent.md) ★<br/><code>LoadLatent</code>                         | 潜空间创建 | 1  | LATENT          |
| [保存Latent](/nodes/04/SaveLatent.md) ★<br/><code>SaveLatent</code>                         | 输出落盘  | 2  | LATENT          |
| [设置Latent噪波遮罩](/nodes/04/SetLatentNoiseMask.md) ★<br/><code>SetLatentNoiseMask</code>     | 潜空间处理 | 2  | LATENT          |
| [修剪视频Latent](/nodes/04/TrimVideoLatent.md)<br/><code>TrimVideoLatent</code>               | 潜空间处理 | 2  | LATENT          |
| [VAE解码](/nodes/04/VAEDecode.md) ★<br/><code>VAEDecode</code>                              | 潜空间解码 | 2  | IMAGE           |
| [VAE解码（音频）](/nodes/04/VAEDecodeAudio.md)<br/><code>VAEDecodeAudio</code>                  | 音频处理  | 2  | AUDIO           |
| [VAE解码音频（分块）](/nodes/04/VAEDecodeAudioTiled.md)<br/><code>VAEDecodeAudioTiled</code>      | 音频处理  | 4  | AUDIO           |
| [VAE解码（分块）](/nodes/04/VAEDecodeTiled.md) ★<br/><code>VAEDecodeTiled</code>                | 潜空间解码 | 6  | IMAGE           |
| [VAE编码](/nodes/04/VAEEncode.md) ★<br/><code>VAEEncode</code>                              | 图像编码  | 2  | LATENT          |
| [VAE编码（音频）](/nodes/04/VAEEncodeAudio.md)<br/><code>VAEEncodeAudio</code>                  | 潜空间创建 | 2  | LATENT          |
| [VAE编码（局部重绘）](/nodes/04/VAEEncodeForInpaint.md) ★<br/><code>VAEEncodeForInpaint</code>    | 潜空间创建 | 4  | LATENT          |
| [VAE编码（分块）](/nodes/04/VAEEncodeTiled.md)<br/><code>VAEEncodeTiled</code>                  | 图像编码  | 6  | LATENT          |

### 潜空间 · 高级运算

<span class="catpath">`model/latent/advanced` · 8 个</span>

| 节点                                                                                              | 角色    | 参数 | 输出     |
| ----------------------------------------------------------------------------------------------- | ----- | -- | ------ |
| [Latent相加](/nodes/04/LatentAdd.md) ★<br/><code>LatentAdd</code>                                 | 潜空间处理 | 2  | LATENT |
| [Latent批处理随机种行为](/nodes/04/LatentBatchSeedBehavior.md)<br/><code>LatentBatchSeedBehavior</code> | 潜空间处理 | 2  | LATENT |
| [潜在空间拼接](/nodes/04/LatentConcat.md)<br/><code>LatentConcat</code>                               | 潜空间处理 | 3  | LATENT |
| [潜在空间切割](/nodes/04/LatentCut.md)<br/><code>LatentCut</code>                                     | 潜空间处理 | 4  | LATENT |
| [Latent切割](/nodes/04/LatentCutToBatch.md)<br/><code>LatentCutToBatch</code>                     | 潜空间处理 | 3  | LATENT |
| [Latent插值](/nodes/04/LatentInterpolate.md) ★<br/><code>LatentInterpolate</code>                 | 潜空间处理 | 3  | LATENT |
| [Latent相乘](/nodes/04/LatentMultiply.md) ★<br/><code>LatentMultiply</code>                       | 潜空间处理 | 2  | LATENT |
| [Latent相减](/nodes/04/LatentSubtract.md) ★<br/><code>LatentSubtract</code>                       | 潜空间处理 | 2  | LATENT |

### 潜空间 · LTXV

<span class="catpath">`model/latent/ltxv` · 8 个</span>

| 节点                                                                                         | 角色    | 参数 | 输出              |
| ------------------------------------------------------------------------------------------ | ----- | -- | --------------- |
| [空Latent视频（LTXV）](/nodes/04/EmptyLTXVLatentVideo.md)<br/><code>EmptyLTXVLatentVideo</code> | 潜空间创建 | 4  | LATENT          |
| [LTXV音频VAE解码](/nodes/04/LTXVAudioVAEDecode.md)<br/><code>LTXVAudioVAEDecode</code>         | 音频处理  | 2  | AUDIO           |
| [LTXV音频VAE编码](/nodes/04/LTXVAudioVAEEncode.md)<br/><code>LTXVAudioVAEEncode</code>         | 潜空间创建 | 2  | LATENT          |
| [拼接 AV 潜空间](/nodes/04/LTXVConcatAVLatent.md)<br/><code>LTXVConcatAVLatent</code>           | 潜空间处理 | 2  | LATENT          |
| [LTXV 空音频潜空间](/nodes/04/LTXVEmptyLatentAudio.md)<br/><code>LTXVEmptyLatentAudio</code>     | 潜空间创建 | 4  | LATENT          |
| [LTXV 冻结潜空间](/nodes/04/LTXVFreezeLatent.md)<br/><code>LTXVFreezeLatent</code>              | 潜空间处理 | 1  | LATENT          |
| [LTXV潜空间上采样器](/nodes/04/LTXVLatentUpsampler.md)<br/><code>LTXVLatentUpsampler</code>       | 潜空间处理 | 3  | LATENT          |
| [分离 AV 潜空间](/nodes/04/LTXVSeparateAVLatent.md)<br/><code>LTXVSeparateAVLatent</code>       | 潜空间处理 | 1  | LATENT / LATENT |

### 潜空间 · 批处理

<span class="catpath">`model/latent/batch` · 6 个</span>

| 节点                                                                                            | 角色    | 参数 | 输出     |
| --------------------------------------------------------------------------------------------- | ----- | -- | ------ |
| [批量latent](/nodes/04/BatchLatentsNode.md)<br/><code>BatchLatentsNode</code>                   | 潜空间创建 | 1  | LATENT |
| [组合Latent批次](/nodes/04/LatentBatch.md) ★<br/><code>LatentBatch</code>                         | 潜空间处理 | 2  | LATENT |
| [从批次获取Latent](/nodes/04/LatentFromBatch.md) ★<br/><code>LatentFromBatch</code>                | 潜空间处理 | 3  | LATENT |
| [重设Latent批次](/nodes/04/RebatchLatents.md)<br/><code>RebatchLatents</code>                     | 潜空间处理 | 2  | LATENT |
| [复制Latent批次](/nodes/04/RepeatLatentBatch.md) ★<br/><code>RepeatLatentBatch</code>             | 潜空间处理 | 2  | LATENT |
| [替换视频Latent](/nodes/04/ReplaceVideoLatentFrames.md)<br/><code>ReplaceVideoLatentFrames</code> | 潜空间处理 | 3  | LATENT |

### 潜空间 · 高级运算 · Operations

<span class="catpath">`model/latent/advanced/operations` · 5 个</span>

| 节点                                                                                                                  | 角色    | 参数 | 输出               |
| ------------------------------------------------------------------------------------------------------------------- | ----- | -- | ---------------- |
| [Latent应用操作](/nodes/04/LatentApplyOperation.md)<br/><code>LatentApplyOperation</code>                               | 潜空间处理 | 2  | LATENT           |
| [Latent应用操作CFG](/nodes/04/LatentApplyOperationCFG.md)<br/><code>LatentApplyOperationCFG</code>                      | 模型补丁  | 4  | MODEL            |
| [Latent Operation Blend](/nodes/04/LatentOperationBlend.md)<br/><code>LatentOperationBlend</code>                   | 功能节点  | 2  | LATENT_OPERATION |
| [Latent操作锐化](/nodes/04/LatentOperationSharpen.md)<br/><code>LatentOperationSharpen</code>                           | 功能节点  | 3  | LATENT_OPERATION |
| [Latent操作色调映射Reinhard](/nodes/04/LatentOperationTonemapReinhard.md)<br/><code>LatentOperationTonemapReinhard</code> | 功能节点  | 1  | LATENT_OPERATION |

### 潜空间 · TRELLIS

<span class="catpath">`model/latent/trellis` · 4 个</span>

| 节点                                                                                                                      | 角色    | 参数 | 输出                      |
| ----------------------------------------------------------------------------------------------------------------------- | ----- | -- | ----------------------- |
| [EmptyTrellis2LatentStructure](/nodes/04/EmptyTrellis2LatentStructure.md)<br/><code>EmptyTrellis2LatentStructure</code> | 潜空间创建 | 1  | LATENT                  |
| [VaeDecodeShapeTrellis](/nodes/04/VaeDecodeShapeTrellis.md)<br/><code>VaeDecodeShapeTrellis</code>                      | 3D 网格 | 2  | MESH / SHAPE_SUBDIVIDES |
| [VaeDecodeStructureTrellis2](/nodes/04/VaeDecodeStructureTrellis2.md)<br/><code>VaeDecodeStructureTrellis2</code>       | 体素    | 3  | VOXEL                   |
| [VaeDecodeTextureTrellis](/nodes/04/VaeDecodeTextureTrellis.md)<br/><code>VaeDecodeTextureTrellis</code>                | 体素    | 3  | VOXEL                   |

### 潜空间 · 混元视频

<span class="catpath">`model/latent/hunyuan video` · 3 个</span>

| 节点                                                                                                                                        | 角色    | 参数 | 输出     |
| ----------------------------------------------------------------------------------------------------------------------------------------- | ----- | -- | ------ |
| [空Latent视频（Hunyuan）](/nodes/04/EmptyHunyuanLatentVideo.md)<br/><code>EmptyHunyuanLatentVideo</code>                                       | 潜空间创建 | 4  | LATENT |
| [空Latent视频（Hunyuan1.5）](/nodes/04/EmptyHunyuanVideo15Latent.md)<br/><code>EmptyHunyuanVideo15Latent</code>                                | 潜空间创建 | 4  | LATENT |
| [Hunyuan Video 15 Latent 使用模型放大](/nodes/04/HunyuanVideo15LatentUpscaleWithModel.md)<br/><code>HunyuanVideo15LatentUpscaleWithModel</code> | 潜空间处理 | 6  | LATENT |

### 潜空间 · 几何变换

<span class="catpath">`model/latent/transform` · 3 个</span>

| 节点                                                                    | 角色    | 参数 | 输出     |
| --------------------------------------------------------------------- | ----- | -- | ------ |
| [裁剪Latent](/nodes/04/LatentCrop.md) ★<br/><code>LatentCrop</code>     | 潜空间处理 | 5  | LATENT |
| [翻转Latent](/nodes/04/LatentFlip.md) ★<br/><code>LatentFlip</code>     | 潜空间处理 | 2  | LATENT |
| [旋转Latent](/nodes/04/LatentRotate.md) ★<br/><code>LatentRotate</code> | 潜空间处理 | 2  | LATENT |

### 潜空间 · ACE-Step

<span class="catpath">`model/latent/ace` · 2 个</span>

| 节点                                                                                                                | 角色    | 参数 | 输出     |
| ----------------------------------------------------------------------------------------------------------------- | ----- | -- | ------ |
| [EmptyAceStep1.5LatentAudio](/nodes/04/EmptyAceStep1.5LatentAudio.md)<br/><code>EmptyAceStep1.5LatentAudio</code> | 潜空间创建 | 2  | LATENT |
| [空Latent音频（AceStep）](/nodes/04/EmptyAceStepLatentAudio.md)<br/><code>EmptyAceStepLatentAudio</code>               | 潜空间创建 | 2  | LATENT |

### 潜空间 · 混元 3D

<span class="catpath">`model/latent/hunyuan 3d` · 2 个</span>

| 节点                                                                                                    | 角色    | 参数 | 输出     |
| ----------------------------------------------------------------------------------------------------- | ----- | -- | ------ |
| [空Latent图像（Hunyuan3Dv2）](/nodes/04/EmptyLatentHunyuan3Dv2.md)<br/><code>EmptyLatentHunyuan3Dv2</code> | 潜空间创建 | 2  | LATENT |
| [VAE解码（Hunyuan3D）](/nodes/04/VAEDecodeHunyuan3D.md)<br/><code>VAEDecodeHunyuan3D</code>               | 体素    | 4  | VOXEL  |

### 潜空间 · SeedVR2

<span class="catpath">`model/latent/seedvr` · 2 个</span>

| 节点                                                                                           | 角色    | 参数 | 输出           |
| -------------------------------------------------------------------------------------------- | ----- | -- | ------------ |
| [分割 SeedVR2 latent](/nodes/04/SeedVR2TemporalChunk.md)<br/><code>SeedVR2TemporalChunk</code> | 潜空间处理 | 3  | LATENT / INT |
| [合并 SeedVR2 latent](/nodes/04/SeedVR2TemporalMerge.md)<br/><code>SeedVR2TemporalMerge</code> | 潜空间处理 | 2  | LATENT       |

### 潜空间 · Stable Cascade

<span class="catpath">`model/latent/stable cascade` · 2 个</span>

| 节点                                                                                                                       | 角色    | 参数 | 输出              |
| ------------------------------------------------------------------------------------------------------------------------ | ----- | -- | --------------- |
| [空Latent图像（Stable Cascade）](/nodes/04/StableCascade_EmptyLatentImage.md)<br/><code>StableCascade_EmptyLatentImage</code> | 潜空间创建 | 4  | LATENT / LATENT |
| [Stable Cascade_C阶段_VAE编码](/nodes/04/StableCascade_StageC_VAEEncode.md)<br/><code>StableCascade_StageC_VAEEncode</code>  | 图像编码  | 3  | LATENT / LATENT |

### 潜空间 · TripoSplat

<span class="catpath">`model/latent/triposplat` · 2 个</span>

| 节点                                                                                                   | 角色   | 参数 | 输出    |
| ---------------------------------------------------------------------------------------------------- | ---- | -- | ----- |
| [TripoSplat 采样预览](/nodes/04/TripoSplatSamplingPreview.md)<br/><code>TripoSplatSamplingPreview</code> | 模型补丁 | 7  | MODEL |
| [TripoSplat 解码](/nodes/04/VAEDecodeTripoSplat.md)<br/><code>VAEDecodeTripoSplat</code>               | 高斯泼溅 | 4  | SPLAT |

### 潜空间 · VOID

<span class="catpath">`model/latent/void` · 2 个</span>

| 节点                                                                                                 | 角色   | 参数 | 输出     |
| -------------------------------------------------------------------------------------------------- | ---- | -- | ------ |
| [VOIDWarpedNoise](/nodes/04/VOIDWarpedNoise.md)<br/><code>VOIDWarpedNoise</code>                   | 图像编码 | 6  | LATENT |
| [VOIDWarpedNoiseSource](/nodes/04/VOIDWarpedNoiseSource.md)<br/><code>VOIDWarpedNoiseSource</code> | 噪声源  | 1  | NOISE  |

### 潜空间

<span class="catpath">`latent` · 1 个</span>

| 节点                                                                   | 角色   | 参数 | 输出                    |
| -------------------------------------------------------------------- | ---- | -- | --------------------- |
| [获取潜空间尺寸](/nodes/04/GetLatentSize.md)<br/><code>GetLatentSize</code> | 数值读取 | 1  | INT / INT / INT / INT |

### 潜空间 · 自回归视频

<span class="catpath">`model/latent/autoregressive` · 1 个</span>

| 节点                                                                                        | 角色    | 参数 | 输出     |
| ----------------------------------------------------------------------------------------- | ----- | -- | ------ |
| [EmptyARVideoLatent](/nodes/04/EmptyARVideoLatent.md)<br/><code>EmptyARVideoLatent</code> | 潜空间创建 | 4  | LATENT |

### 潜空间 · Chroma Radiance

<span class="catpath">`model/latent/chroma radiance` · 1 个</span>

| 节点                                                                                                                       | 角色    | 参数 | 输出     |
| ------------------------------------------------------------------------------------------------------------------------ | ----- | -- | ------ |
| [空Latent图像（ChromaRadiance）](/nodes/04/EmptyChromaRadianceLatentImage.md)<br/><code>EmptyChromaRadianceLatentImage</code> | 潜空间创建 | 3  | LATENT |

### 潜空间 · Cosmos

<span class="catpath">`model/latent/cosmos` · 1 个</span>

| 节点                                                                                               | 角色    | 参数 | 输出     |
| ------------------------------------------------------------------------------------------------ | ----- | -- | ------ |
| [空Latent视频（Cosmos）](/nodes/04/EmptyCosmosLatentVideo.md)<br/><code>EmptyCosmosLatentVideo</code> | 潜空间创建 | 4  | LATENT |

### 潜空间 · Flux

<span class="catpath">`model/latent/flux` · 1 个</span>

| 节点                                                                                              | 角色    | 参数 | 输出     |
| ----------------------------------------------------------------------------------------------- | ----- | -- | ------ |
| [空Latent图像（Flux2）](/nodes/04/EmptyFlux2LatentImage.md) ★<br/><code>EmptyFlux2LatentImage</code> | 潜空间创建 | 3  | LATENT |

### 潜空间 · HiDream

<span class="catpath">`model/latent/hidream` · 1 个</span>

| 节点                                                                                                      | 角色    | 参数 | 输出     |
| ------------------------------------------------------------------------------------------------------- | ----- | -- | ------ |
| [空 HiDream-O1 潜空间图像](/nodes/04/EmptyHiDreamO1LatentImage.md)<br/><code>EmptyHiDreamO1LatentImage</code> | 潜空间创建 | 3  | LATENT |

### 潜空间 · 混元图像

<span class="catpath">`model/latent/hunyuan image` · 1 个</span>

| 节点                                                                                                  | 角色    | 参数 | 输出     |
| --------------------------------------------------------------------------------------------------- | ----- | -- | ------ |
| [空Latent图像（Hunyuan）](/nodes/04/EmptyHunyuanImageLatent.md)<br/><code>EmptyHunyuanImageLatent</code> | 潜空间创建 | 3  | LATENT |

### 潜空间 · MiniMax

<span class="catpath">`model/latent/minimax` · 1 个</span>

| 节点                                                                                                 | 角色    | 参数 | 输出     |
| -------------------------------------------------------------------------------------------------- | ----- | -- | ------ |
| [空 MiniMax H3 AV 潜空间](/nodes/04/EmptyMiniMaxH3LatentAV.md)<br/><code>EmptyMiniMaxH3LatentAV</code> | 潜空间创建 | 3  | LATENT |

### 潜空间 · MiniMax 音乐

<span class="catpath">`model/latent/minimax music` · 1 个</span>

| 节点                                                                                                                  | 角色    | 参数 | 输出     |
| ------------------------------------------------------------------------------------------------------------------- | ----- | -- | ------ |
| [空 MiniMax Music3 潜空间音频](/nodes/04/EmptyMiniMaxMusic3LatentAudio.md)<br/><code>EmptyMiniMaxMusic3LatentAudio</code> | 潜空间创建 | 2  | LATENT |

### 潜空间 · Mochi

<span class="catpath">`model/latent/mochi` · 1 个</span>

| 节点                                                                                            | 角色    | 参数 | 输出     |
| --------------------------------------------------------------------------------------------- | ----- | -- | ------ |
| [空Latent视频（Mochi）](/nodes/04/EmptyMochiLatentVideo.md)<br/><code>EmptyMochiLatentVideo</code> | 潜空间创建 | 4  | LATENT |

### 潜空间 · Qwen-Image

<span class="catpath">`model/latent/qwen` · 1 个</span>

| 节点                                                                                                                            | 角色    | 参数 | 输出     |
| ----------------------------------------------------------------------------------------------------------------------------- | ----- | -- | ------ |
| [空Latent图像（QwenImageLayerd）](/nodes/04/EmptyQwenImageLayeredLatentImage.md)<br/><code>EmptyQwenImageLayeredLatentImage</code> | 潜空间创建 | 4  | LATENT |

### 潜空间 · Stable Diffusion

<span class="catpath">`model/latent/stable diffusion` · 1 个</span>

| 节点                                                                                        | 角色    | 参数 | 输出     |
| ----------------------------------------------------------------------------------------- | ----- | -- | ------ |
| [空Latent图像（SD3）](/nodes/04/EmptySD3LatentImage.md) ★<br/><code>EmptySD3LatentImage</code> | 潜空间创建 | 3  | LATENT |

### 潜空间 · YuE2

<span class="catpath">`model/latent/yue2` · 1 个</span>

| 节点                                                                                      | 角色    | 参数 | 输出     |
| --------------------------------------------------------------------------------------- | ----- | -- | ------ |
| [空 YuE2 潜空间音频](/nodes/04/EmptyYuE2LatentAudio.md)<br/><code>EmptyYuE2LatentAudio</code> | 潜空间创建 | 2  | LATENT |
