> ## 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.

# StableCascade_StageC_VAEEncode - ComfyUI Built-in Node Documentation

> The StableCascadeStageCVAEEncode node processes an input image through a VAE encoder to generate latent representations for the Stable Cascade model.

The StableCascade\_StageC\_VAEEncode node processes an input image through a VAE encoder to generate latent representations for the Stable Cascade model. It first resizes the image based on a compression factor and the VAE's downscale ratio, then encodes the resized image. The node outputs two latent tensors: one for stage C (the actual encoded result) and one for stage B (a zero-filled placeholder).

## Inputs

| Parameter | Description | Data Type | Required | Range |
| - | - | - | - | - |
| `image` | The input image to be encoded into latent space | IMAGE | Yes | - |
| `vae` | The VAE model used for encoding the image | VAE | Yes | - |
| `compression` | The compression factor applied to the image before encoding. The image dimensions are divided by this value, then multiplied by the VAE's downscale ratio. This is an advanced parameter. (default: 42) | INT | Yes | 4-128 (step: 1) |

## Outputs

| Output Name | Description | Data Type |
| - | - | - |
| `stage_c` | The encoded latent representation for stage C of the Stable Cascade model | LATENT |
| `stage_b` | A placeholder latent representation for stage B. Currently returns a zero-filled tensor with dimensions calculated from the input image size. | LATENT |

> This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! [Edit on GitHub](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/StableCascade_StageC_VAEEncode/en.md)

***

**Source fingerprint (SHA-256):** `1679aaac77057fcc359e5428906d5227f6c2dde721aabbfb5a32c08738ac376c`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.